version_tab.js 675 B

123456789101112131415161718192021222324
  1. import { extractCommit } from 'src/services/version/version.service'
  2. const pleromaFeCommitUrl = 'https://git.pleroma.social/pleroma/pleroma-fe/commit/'
  3. const pleromaBeCommitUrl = 'https://git.pleroma.social/pleroma/pleroma/commit/'
  4. const VersionTab = {
  5. data () {
  6. const instance = this.$store.state.instance
  7. return {
  8. backendVersion: instance.backendVersion,
  9. frontendVersion: instance.frontendVersion
  10. }
  11. },
  12. computed: {
  13. frontendVersionLink () {
  14. return pleromaFeCommitUrl + this.frontendVersion
  15. },
  16. backendVersionLink () {
  17. return pleromaBeCommitUrl + extractCommit(this.backendVersion)
  18. }
  19. }
  20. }
  21. export default VersionTab