import { extractCommit } from 'src/services/version/version.service' const pleromaFeCommitUrl = 'https://git.froth.zone/sam/pleroma-fe/commit/' const pleromaBeCommitUrl = 'https://git.froth.zone/sam/pleroma/commits/' const VersionTab = { data () { const instance = this.$store.state.instance return { backendVersion: instance.backendVersion, frontendVersion: instance.frontendVersion } }, computed: { frontendVersionLink () { return pleromaFeCommitUrl + this.frontendVersion }, backendVersionLink () { return pleromaBeCommitUrl + extractCommit(this.backendVersion) } } } export default VersionTab