refactor(sidebar): remove branch from left sidebar

This commit is contained in:
Travis Shivers 2020-08-25 19:06:45 -05:00
parent c788fcf6cc
commit 8dd941fcfe
2 changed files with 0 additions and 7 deletions

View File

@ -146,7 +146,6 @@
class="text-center pa-2"
style="opacity: 0.7; font-size: 12px;"
>
<div>Branch {{ branch }}</div>
<div>Build #{{ hash }}</div>
<div>Last updated {{ updatedAt }}</div>
</div>
@ -229,10 +228,6 @@ export default {
version() {
return process.env.VUE_APP_VERSION;
},
branch() {
return process.env.VUE_APP_GIT_BRANCH;
},
},
methods: {

View File

@ -16,13 +16,11 @@ try {
const lastCommit = lcl.getLastCommitSync();
process.env.VUE_APP_GIT_HASH = lastCommit.shortHash;
process.env.VUE_APP_GIT_DATE = lastCommit.committer.date;
process.env.VUE_APP_GIT_BRANCH = lastCommit.gitBranch;
} catch (e) {
// Sometimes on CI stuff they build with .git being present
// TODO: find better way to do this
process.env.VUE_APP_GIT_DATE = Math.floor(Date.now() / 1000);
process.env.VUE_APP_GIT_HASH = process.env.REVISION;
process.env.VUE_APP_GIT_BRANCH = process.env.SOURCE_BRANCH;
}
module.exports = {