pleroma-fe/src/components/about/about.js

45 lines
1.4 KiB
JavaScript
Raw Normal View History

import { mapState } from 'pinia'
import FeaturesPanel from 'src/components/features_panel/features_panel.vue'
import InstanceSpecificPanel from 'src/components/instance_specific_panel/instance_specific_panel.vue'
import MRFTransparencyPanel from 'src/components/mrf_transparency_panel/mrf_transparency_panel.vue'
import StaffPanel from 'src/components/staff_panel/staff_panel.vue'
import TermsOfServicePanel from 'src/components/terms_of_service_panel/terms_of_service_panel.vue'
2026-01-29 20:40:00 +02:00
import { useInstanceStore } from 'src/stores/instance.js'
import { useMergedConfigStore } from 'src/stores/merged_config.js'
2026-01-29 20:40:00 +02:00
const pleromaFeCommitUrl =
'https://git.pleroma.social/pleroma/pleroma-fe/commit/'
const About = {
components: {
InstanceSpecificPanel,
FeaturesPanel,
2019-11-08 23:21:07 -06:00
TermsOfServicePanel,
2019-11-09 00:09:32 -06:00
StaffPanel,
2026-01-06 16:22:52 +02:00
MRFTransparencyPanel,
},
computed: {
2026-01-06 16:22:52 +02:00
showFeaturesPanel() {
2026-01-29 15:11:47 +02:00
return useInstanceStore().instanceIdentity.showFeaturesPanel
2026-01-06 16:22:52 +02:00
},
frontendVersionLink() {
return pleromaFeCommitUrl + this.frontendVersion
},
2026-05-13 16:12:52 +03:00
...mapState(useInstanceStore, [
'backendVersion',
'backendRepository',
'frontendVersion',
]),
2026-01-06 16:22:52 +02:00
showInstanceSpecificPanel() {
return (
2026-01-29 15:11:47 +02:00
useInstanceStore().instanceIdentity.showInstanceSpecificPanel &&
!useMergedConfigStore().mergedConfig.hideISP &&
2026-01-29 15:11:47 +02:00
useInstanceStore().instanceIdentity.instanceSpecificPanelContent
2026-01-06 16:22:52 +02:00
)
},
},
}
export default About