1
0
Fork 0
forked from srxl/akkoma-fe

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 untrusted user: srxl
GPG key ID: B6D7116C451A5B41

View file

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