refactor(sidebar): remove branch from left sidebar
This commit is contained in:
parent
c788fcf6cc
commit
8dd941fcfe
|
@ -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: {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue