Initial move from angular shell to vue

This commit is contained in:
Johannes Zellner
2025-03-16 11:12:49 +01:00
parent 5fd4e2f008
commit 3a32aab066
18 changed files with 387 additions and 272 deletions
+4 -3
View File
@@ -6,6 +6,7 @@ const t = i18n.t;
import { ref, onMounted, watch } from 'vue';
import { Dropdown } from 'pankow';
import moment from 'moment-timezone';
import Section from '../components/Section.vue';
import CloudronAccount from '../components/CloudronAccount.vue';
import SystemUpdate from '../components/SystemUpdate.vue';
@@ -15,7 +16,7 @@ import CloudronModel from '../models/CloudronModel.js';
const cloudronModel = CloudronModel.create();
// Timezone
const allTimezones = window.timezones;
const allTimezones = moment.tz.names().map(t => { return { id: t }; });
const timeZone = ref('');
const currentTimeZone = ref('');
@@ -92,8 +93,8 @@ onMounted(async () => {
<CloudronAccount />
<Section :title="$t('settings.timezone.title')">
<p v-html="$t('settings.timezone.description', { timeZone: prettyTimeZone(timeZone) })"></p>
<Dropdown v-model="timeZone" :options="allTimezones" option-key="id" option-label="display" />
<p v-html="$t('settings.timezone.description', { timeZone })"></p>
<Dropdown v-model="timeZone" :options="allTimezones" option-key="id" option-label="id" />
</Section>
<Section :title="$t('settings.language.title')">