mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-23 21:55:30 +02:00
✨ Shows app version + status in Config and About menu
This commit is contained in:
parent
840a4296b3
commit
dcdcdfb979
@ -2,8 +2,9 @@
|
|||||||
<modal :name="modalName" :resizable="true" width="40%" height="60%" classes="dashy-modal">
|
<modal :name="modalName" :resizable="true" width="40%" height="60%" classes="dashy-modal">
|
||||||
<div class="about-modal">
|
<div class="about-modal">
|
||||||
<router-link to="/about">
|
<router-link to="/about">
|
||||||
<h2>Dashy V{{ appVersion }}</h2>
|
<h2>Dashy</h2>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
<AppVersion />
|
||||||
<h3>Service Worker Status</h3>
|
<h3>Service Worker Status</h3>
|
||||||
<code v-html="serviceWorkerInfo">{{ serviceWorkerInfo }}</code>
|
<code v-html="serviceWorkerInfo">{{ serviceWorkerInfo }}</code>
|
||||||
<br>
|
<br>
|
||||||
@ -39,10 +40,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import AppVersion from '@/components/Configuration/AppVersion';
|
||||||
import { modalNames, sessionStorageKeys } from '@/utils/defaults';
|
import { modalNames, sessionStorageKeys } from '@/utils/defaults';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppInfoModal',
|
name: 'AppInfoModal',
|
||||||
|
components: {
|
||||||
|
AppVersion,
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
modalName: modalNames.ABOUT_APP,
|
modalName: modalNames.ABOUT_APP,
|
||||||
|
@ -40,8 +40,8 @@
|
|||||||
<p class="small-screen-note" style="display: none;">
|
<p class="small-screen-note" style="display: none;">
|
||||||
You are using a very small screen, and some screens in this menu may not be optimal
|
You are using a very small screen, and some screens in this menu may not be optimal
|
||||||
</p>
|
</p>
|
||||||
<p class="app-version">{{ $t('config.app-version-note') }} {{ appVersion }}</p>
|
|
||||||
<p class="language">{{ getLanguage() }}</p>
|
<p class="language">{{ getLanguage() }}</p>
|
||||||
|
<AppVersion />
|
||||||
<div class="config-note">
|
<div class="config-note">
|
||||||
<span>{{ $t('config.backup-note') }}</span>
|
<span>{{ $t('config.backup-note') }}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -74,7 +74,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import hljs from 'highlight.js/lib/core';
|
import hljs from 'highlight.js/lib/core';
|
||||||
import yaml from 'highlight.js/lib/languages/yaml';
|
import yaml from 'highlight.js/lib/languages/yaml';
|
||||||
import 'highlight.js/styles/mono-blue.css';
|
import 'highlight.js/styles/mono-blue.css';
|
||||||
@ -85,6 +84,7 @@ import { getUsersLanguage } from '@/utils/ConfigHelpers';
|
|||||||
import JsonEditor from '@/components/Configuration/JsonEditor';
|
import JsonEditor from '@/components/Configuration/JsonEditor';
|
||||||
import CustomCssEditor from '@/components/Configuration/CustomCss';
|
import CustomCssEditor from '@/components/Configuration/CustomCss';
|
||||||
import RebuildApp from '@/components/Configuration/RebuildApp';
|
import RebuildApp from '@/components/Configuration/RebuildApp';
|
||||||
|
import AppVersion from '@/components/Configuration/AppVersion';
|
||||||
|
|
||||||
import DownloadIcon from '@/assets/interface-icons/config-download-file.svg';
|
import DownloadIcon from '@/assets/interface-icons/config-download-file.svg';
|
||||||
import DeleteIcon from '@/assets/interface-icons/config-delete-local.svg';
|
import DeleteIcon from '@/assets/interface-icons/config-delete-local.svg';
|
||||||
@ -102,6 +102,7 @@ export default {
|
|||||||
jsonParser: JsonToYaml,
|
jsonParser: JsonToYaml,
|
||||||
backupId: localStorage[localStorageKeys.BACKUP_ID] || '',
|
backupId: localStorage[localStorageKeys.BACKUP_ID] || '',
|
||||||
appVersion: process.env.VUE_APP_VERSION,
|
appVersion: process.env.VUE_APP_VERSION,
|
||||||
|
latestVersion: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@ -119,6 +120,7 @@ export default {
|
|||||||
JsonEditor,
|
JsonEditor,
|
||||||
CustomCssEditor,
|
CustomCssEditor,
|
||||||
RebuildApp,
|
RebuildApp,
|
||||||
|
AppVersion,
|
||||||
DownloadIcon,
|
DownloadIcon,
|
||||||
DeleteIcon,
|
DeleteIcon,
|
||||||
EditIcon,
|
EditIcon,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user