Modify links in version tab for AGPL compliance

This commit is contained in:
Ruby Iris Juric 2024-09-25 11:49:11 +10:00
parent 77bd94519e
commit 682eed8ce6
Signed by: srxl
GPG key ID: B6D7116C451A5B41

View file

@ -1,22 +1,20 @@
import { extractCommit } from 'src/services/version/version.service' const pleromaFeCommitUrl = 'https://akkoma.dev/srxl/pleroma-fe/src/branch/wl-stable'
const pleromaBeCommitUrl = 'https://akkoma.dev/srxl/akkoma/src/branch/wl-stable'
const pleromaFeCommitUrl = 'https://akkoma.dev/AkkomaGang/pleroma-fe/commit/'
const pleromaBeCommitUrl = 'https://akkoma.dev/AkkomaGang/akkoma/commit/'
const VersionTab = { const VersionTab = {
data () { data () {
const instance = this.$store.state.instance const instance = this.$store.state.instance
return { return {
backendVersion: instance.backendVersion, backendVersion: `${instance.backendVersion} (with Website League patches)`,
frontendVersion: instance.frontendVersion frontendVersion: `${instance.frontendVersion} (with Website League patches)`
} }
}, },
computed: { computed: {
frontendVersionLink () { frontendVersionLink () {
return pleromaFeCommitUrl + this.frontendVersion return pleromaFeCommitUrl
}, },
backendVersionLink () { backendVersionLink () {
return pleromaBeCommitUrl + extractCommit(this.backendVersion) return pleromaBeCommitUrl
} }
} }
} }