Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85829937
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/components/about/about.js b/src/components/about/about.js
index 404843e8bc..dc67334918 100644
--- a/src/components/about/about.js
+++ b/src/components/about/about.js
@@ -1,32 +1,41 @@
+import { mapState } from 'pinia'
+
import FeaturesPanel from '../features_panel/features_panel.vue'
import InstanceSpecificPanel from '../instance_specific_panel/instance_specific_panel.vue'
import MRFTransparencyPanel from '../mrf_transparency_panel/mrf_transparency_panel.vue'
import StaffPanel from '../staff_panel/staff_panel.vue'
import TermsOfServicePanel from '../terms_of_service_panel/terms_of_service_panel.vue'
import { useInstanceStore } from 'src/stores/instance.js'
import { useMergedConfigStore } from 'src/stores/merged_config.js'
+const pleromaFeCommitUrl =
+ 'https://git.pleroma.social/pleroma/pleroma-fe/commit/'
+
const About = {
components: {
InstanceSpecificPanel,
FeaturesPanel,
TermsOfServicePanel,
StaffPanel,
MRFTransparencyPanel,
},
computed: {
showFeaturesPanel() {
return useInstanceStore().instanceIdentity.showFeaturesPanel
},
+ frontendVersionLink() {
+ return pleromaFeCommitUrl + this.frontendVersion
+ },
+ ...mapState(useInstanceStore, ['backendVersion', 'backendRepository', 'frontendVersion']),
showInstanceSpecificPanel() {
return (
useInstanceStore().instanceIdentity.showInstanceSpecificPanel &&
!useMergedConfigStore().mergedConfig.hideISP &&
useInstanceStore().instanceIdentity.instanceSpecificPanelContent
)
},
},
}
export default About
diff --git a/src/components/about/about.vue b/src/components/about/about.vue
index 8a551485fa..df395c7dde 100644
--- a/src/components/about/about.vue
+++ b/src/components/about/about.vue
@@ -1,11 +1,45 @@
<template>
- <div class="column-inner">
+ <div class="About column-inner">
<instance-specific-panel v-if="showInstanceSpecificPanel" />
<staff-panel />
<terms-of-service-panel />
<MRFTransparencyPanel />
<features-panel v-if="showFeaturesPanel" />
+ <div class="panel panel-default">
+ <div class="panel-heading">
+ <div class="title">{{ $t('settings.version.title') }}</div>
+ </div>
+ <div class="panel-body">
+ <dl>
+ <dt>{{ $t('settings.version.backend_version') }}</dt>
+ <dd>
+ <a
+ :href="backendRepository"
+ target="_blank"
+ >
+ {{ backendVersion }}
+ </a>
+ </dd>
+ <dt>{{ $t('settings.version.frontend_version') }}</dt>
+ <dd>
+ <a
+ :href="frontendVersionLink"
+ target="_blank"
+ >
+ {{ frontendVersion }}
+ </a>
+ </dd>
+ </dl>
+ </div>
+ </div>
</div>
</template>
<script src="./about.js"></script>
+<style>
+ .About {
+ dl {
+ padding-left: 1em;
+ }
+ }
+</style>
diff --git a/src/components/settings_modal/tabs/developer_tab.js b/src/components/settings_modal/tabs/developer_tab.js
index b500d2f031..7558785f5f 100644
--- a/src/components/settings_modal/tabs/developer_tab.js
+++ b/src/components/settings_modal/tabs/developer_tab.js
@@ -1,48 +1,42 @@
+import { mapState } from 'pinia'
import BooleanSetting from '../helpers/boolean_setting.vue'
import SharedComputedObject from '../helpers/shared_computed_object.js'
import { useInstanceStore } from 'src/stores/instance.js'
import { cacheKey, clearCache, emojiCacheKey } from 'src/services/sw/sw.js'
const pleromaFeCommitUrl =
'https://git.pleroma.social/pleroma/pleroma-fe/commit/'
const VersionTab = {
- data() {
- const instance = useInstanceStore()
- return {
- backendVersion: instance.backendVersion,
- backendRepository: instance.backendRepository,
- frontendVersion: instance.frontendVersion,
- }
- },
components: {
BooleanSetting,
},
computed: {
frontendVersionLink() {
return pleromaFeCommitUrl + this.frontendVersion
},
+ ...mapState(useInstanceStore, ['backendVersion', 'backendRepository', 'frontendVersion']),
...SharedComputedObject(),
},
methods: {
clearAssetCache() {
this.clearCache(cacheKey)
},
clearEmojiCache() {
this.clearCache(emojiCacheKey)
},
clearCache(key) {
clearCache(key)
.then(() => {
this.$store.dispatch('settingsSaved', { success: true })
})
.catch((error) => {
this.$store.dispatch('settingsSaved', { error })
})
},
},
}
export default VersionTab
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 1, 1:31 AM (15 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1802075
Default Alt Text
(4 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline