diff --git a/ux/src/pages/AdminGeneral.vue b/ux/src/pages/AdminGeneral.vue index e4594413..7b3486a2 100644 --- a/ux/src/pages/AdminGeneral.vue +++ b/ux/src/pages/AdminGeneral.vue @@ -589,8 +589,8 @@ async function save () { type: 'positive', message: t('admin.general.saveSuccess') }) + await adminStore.fetchSites() if (adminStore.currentSiteId === siteStore.id) { - await adminStore.fetchSites() siteStore.$patch({ title: state.config.title, description: state.config.description, diff --git a/ux/src/pages/AdminSystem.vue b/ux/src/pages/AdminSystem.vue index a4fb7cc6..f0335a07 100644 --- a/ux/src/pages/AdminSystem.vue +++ b/ux/src/pages/AdminSystem.vue @@ -4,8 +4,8 @@ q-page.admin-system .col-auto img.admin-icon.animated.fadeInLeft(src='/_assets/icons/fluent-processor.svg') .col.q-pl-md - .text-h5.text-primary.animated.fadeInLeft {{ $t('admin.system.title') }} - .text-subtitle1.text-grey.animated.fadeInLeft.wait-p2s {{ $t('admin.system.subtitle') }} + .text-h5.text-primary.animated.fadeInLeft {{ t('admin.system.title') }} + .text-subtitle1.text-grey.animated.fadeInLeft.wait-p2s {{ t('admin.system.subtitle') }} .col-auto q-btn.q-mr-sm.acrylic-btn( icon='las la-question-circle' @@ -16,20 +16,20 @@ q-page.admin-system type='a' ) q-btn.q-mr-sm.acrylic-btn( - icon='las la-redo-alt' + icon='fa-solid fa-rotate' flat color='secondary' - :loading='loading > 0' + :loading='state.loading > 0' @click='load' ) q-btn.acrylic-btn( ref='copySysInfoBtn' flat - icon='las la-clipboard' + icon='fa-regular fa-clipboard' label='Copy System Info' color='primary' @click='' - :disabled='loading > 0' + :disabled='state.loading > 0' ) q-separator(inset) .row.q-pa-md.q-col-gutter-md @@ -43,18 +43,18 @@ q-page.admin-system q-item blueprint-icon(icon='breakable', :hue-rotate='-45') q-item-section - q-item-label {{ $t('admin.system.currentVersion') }} - q-item-label(caption) {{$t('admin.system.currentVersionHint')}} + q-item-label {{ t('admin.system.currentVersion') }} + q-item-label(caption) {{t('admin.system.currentVersionHint')}} q-item-section - q-item-label.dark-value(caption) {{ info.currentVersion }} + q-item-label.dark-value(caption) {{ state.info.currentVersion }} q-separator(inset) q-item blueprint-icon(icon='cloud-checked', :hue-rotate='-45') q-item-section - q-item-label {{ $t('admin.system.latestVersion') }} - q-item-label(caption) {{$t('admin.system.latestVersionHint')}} + q-item-label {{ t('admin.system.latestVersion') }} + q-item-label(caption) {{t('admin.system.latestVersionHint')}} q-item-section - q-item-label.dark-value(caption) {{ info.latestVersion }} + q-item-label.dark-value(caption) {{ state.info.latestVersion }} //- ----------------------- //- CLIENT @@ -62,44 +62,44 @@ q-page.admin-system q-no-ssr q-card.q-mt-md.q-pb-sm.shadow-1 q-card-section - .text-subtitle1 {{$t('admin.system.client')}} + .text-subtitle1 {{t('admin.system.client')}} q-item blueprint-icon(icon='navigation-toolbar-top', :hue-rotate='-45') q-item-section - q-item-label {{$t('admin.system.browser')}} - q-item-label(caption) {{$t('admin.system.browserHint')}} + q-item-label {{t('admin.system.browser')}} + q-item-label(caption) {{t('admin.system.browserHint')}} q-item-section q-item-label.dark-value(caption) {{ clientBrowser }} q-separator(inset) q-item blueprint-icon(icon='computer', :hue-rotate='-45') q-item-section - q-item-label {{$t('admin.system.clientPlatform')}} - q-item-label(caption) {{$t('admin.system.clientPlatformHint')}} + q-item-label {{t('admin.system.clientPlatform')}} + q-item-label(caption) {{t('admin.system.clientPlatformHint')}} q-item-section q-item-label.dark-value(caption) {{ clientPlatform }} q-separator(inset) q-item blueprint-icon(icon='translation', :hue-rotate='-45') q-item-section - q-item-label {{$t('admin.system.clientLanguage')}} - q-item-label(caption) {{$t('admin.system.clientLanguageHint')}} + q-item-label {{t('admin.system.clientLanguage')}} + q-item-label(caption) {{t('admin.system.clientLanguageHint')}} q-item-section q-item-label.dark-value(caption) {{ clientLanguage }} q-separator(inset) q-item blueprint-icon(icon='cookies', :hue-rotate='-45') q-item-section - q-item-label {{$t('admin.system.clientCookies')}} - q-item-label(caption) {{$t('admin.system.clientCookiesHint')}} + q-item-label {{t('admin.system.clientCookies')}} + q-item-label(caption) {{t('admin.system.clientCookiesHint')}} q-item-section q-item-label.dark-value(caption) {{ clientCookies }} q-separator(inset) q-item blueprint-icon(icon='widescreen', :hue-rotate='-45') q-item-section - q-item-label {{$t('admin.system.clientViewport')}} - q-item-label(caption) {{$t('admin.system.clientViewportHint')}} + q-item-label {{t('admin.system.clientViewport')}} + q-item-label(caption) {{t('admin.system.clientViewportHint')}} q-item-section q-item-label.dark-value(caption) {{ clientViewport }} @@ -109,86 +109,86 @@ q-page.admin-system //- ----------------------- q-card.q-pb-sm.shadow-1 q-card-section - .text-subtitle1 {{$t('admin.system.engines')}} + .text-subtitle1 {{t('admin.system.engines')}} q-item blueprint-icon(icon='nodejs', :hue-rotate='-45') q-item-section q-item-label Node.js - q-item-label(caption) {{$t('admin.system.nodejsHint')}} + q-item-label(caption) {{t('admin.system.nodejsHint')}} q-item-section - q-item-label.dark-value(caption) {{ info.nodeVersion }} + q-item-label.dark-value(caption) {{ state.info.nodeVersion }} q-separator(inset) q-item blueprint-icon(icon='postgresql', :hue-rotate='-45') q-item-section - q-item-label {{$t('admin.system.database')}} - q-item-label(caption) {{$t('admin.system.databaseHint')}} + q-item-label {{t('admin.system.database')}} + q-item-label(caption) {{t('admin.system.databaseHint')}} q-item-section q-item-label.dark-value(caption) PostgreSQL {{dbVersion}} q-separator(inset) q-item blueprint-icon(icon='database', :hue-rotate='-45') q-item-section - q-item-label {{$t('admin.system.databaseHost')}} - q-item-label(caption) {{$t('admin.system.databaseHostHint')}} + q-item-label {{t('admin.system.databaseHost')}} + q-item-label(caption) {{t('admin.system.databaseHostHint')}} q-item-section - q-item-label.dark-value(caption) {{ info.dbHost }} + q-item-label.dark-value(caption) {{ state.info.dbHost }} //- ----------------------- //- HOST INFORMATION //- ----------------------- q-card.q-mt-md.q-pb-sm.shadow-1 q-card-section - .text-subtitle1 {{ $t('admin.system.hostInfo') }} + .text-subtitle1 {{ t('admin.system.hostInfo') }} q-item blueprint-icon(:icon='platformLogo', :hue-rotate='-45') q-item-section - q-item-label {{ $t('admin.system.os') }} - q-item-label(caption) {{$t('admin.system.osHint')}} + q-item-label {{ t('admin.system.os') }} + q-item-label(caption) {{t('admin.system.osHint')}} q-item-section - q-item-label.dark-value(caption) {{ (info.platform === 'docker') ? 'Docker Container (Linux)' : info.operatingSystem }} + q-item-label.dark-value(caption) {{ (state.info.platform === 'docker') ? 'Docker Container (Linux)' : state.info.operatingSystem }} q-separator(inset) q-item blueprint-icon(icon='server', :hue-rotate='-45') q-item-section - q-item-label {{ $t('admin.system.hostname') }} - q-item-label(caption) {{$t('admin.system.hostnameHint')}} + q-item-label {{ t('admin.system.hostname') }} + q-item-label(caption) {{t('admin.system.hostnameHint')}} q-item-section - q-item-label.dark-value(caption) {{ info.hostname }} + q-item-label.dark-value(caption) {{ state.info.hostname }} q-separator(inset) q-item blueprint-icon(icon='processor', :hue-rotate='-45') q-item-section - q-item-label {{ $t('admin.system.cpuCores') }} - q-item-label(caption) {{$t('admin.system.cpuCoresHint')}} + q-item-label {{ t('admin.system.cpuCores') }} + q-item-label(caption) {{t('admin.system.cpuCoresHint')}} q-item-section - q-item-label.dark-value(caption) {{ info.cpuCores }} + q-item-label.dark-value(caption) {{ state.info.cpuCores }} q-separator(inset) q-item blueprint-icon(icon='memory-slot', :hue-rotate='-45') q-item-section - q-item-label {{ $t('admin.system.totalRAM') }} - q-item-label(caption) {{$t('admin.system.totalRAMHint')}} + q-item-label {{ t('admin.system.totalRAM') }} + q-item-label(caption) {{t('admin.system.totalRAMHint')}} q-item-section - q-item-label.dark-value(caption) {{ info.ramTotal }} + q-item-label.dark-value(caption) {{ state.info.ramTotal }} q-separator(inset) q-item blueprint-icon(icon='program', :hue-rotate='-45') q-item-section - q-item-label {{ $t('admin.system.workingDirectory') }} - q-item-label(caption) {{$t('admin.system.workingDirectoryHint')}} + q-item-label {{ t('admin.system.workingDirectory') }} + q-item-label(caption) {{t('admin.system.workingDirectoryHint')}} q-item-section - q-item-label.dark-value(caption) {{ info.workingDirectory }} + q-item-label.dark-value(caption) {{ state.info.workingDirectory }} q-separator(inset) q-item blueprint-icon(icon='automation', :hue-rotate='-45') q-item-section - q-item-label {{ $t('admin.system.configFile') }} - q-item-label(caption) {{$t('admin.system.configFileHint')}} + q-item-label {{ t('admin.system.configFile') }} + q-item-label(caption) {{t('admin.system.configFileHint')}} q-item-section - q-item-label.dark-value(caption) {{ info.configFile }} + q-item-label.dark-value(caption) {{ state.info.configFile }} - //- v-list-item-action-text {{ $t('admin.system.published') }} {{ info.latestVersionReleaseDate | moment('from') }} + //- v-list-item-action-text {{ t('admin.system.published') }} {{ state.info.latestVersionReleaseDate | moment('from') }} //- v-card-actions(v-if='info.upgradeCapable && !isLatestVersion && info.platform === `docker`', :class='$vuetify.theme.dark ? `grey darken-3-d5` : `indigo lighten-5`') //- .caption.indigo--text.pl-3(:class='$vuetify.theme.dark ? `text--lighten-4` : ``') Wiki.js can perform the upgrade to the latest version for you. //- v-spacer @@ -226,180 +226,208 @@ q-page.admin-system //- ) -