2026-05-05 11:40:49 +03:00
|
|
|
import { mapState } from 'pinia'
|
|
|
|
|
|
2026-06-04 21:56:25 +03:00
|
|
|
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'
|
2019-01-07 17:26:47 +00:00
|
|
|
|
2026-01-29 20:40:00 +02:00
|
|
|
import { useInstanceStore } from 'src/stores/instance.js'
|
2026-03-24 21:42:22 +02:00
|
|
|
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
2026-01-29 20:40:00 +02:00
|
|
|
|
2026-05-05 11:40:49 +03:00
|
|
|
const pleromaFeCommitUrl =
|
|
|
|
|
'https://git.pleroma.social/pleroma/pleroma-fe/commit/'
|
|
|
|
|
|
2019-01-07 17:26:47 +00:00
|
|
|
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,
|
2019-02-05 06:12:14 -08:00
|
|
|
},
|
|
|
|
|
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
|
|
|
},
|
2026-05-05 11:40:49 +03: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 &&
|
2026-03-24 21:42:22 +02:00
|
|
|
!useMergedConfigStore().mergedConfig.hideISP &&
|
2026-01-29 15:11:47 +02:00
|
|
|
useInstanceStore().instanceIdentity.instanceSpecificPanelContent
|
2026-01-06 16:22:52 +02:00
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
},
|
2019-01-07 17:26:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default About
|