remove unused variables in locale view

This commit is contained in:
Girish Ramakrishnan
2025-09-10 16:57:45 +02:00
parent 45ba89c89a
commit 14907849cc
+1 -16
View File
@@ -19,10 +19,6 @@ const cloudronModel = CloudronModel.create();
const config = ref({});
const info = ref({});
const uptime = ref('');
const activeSince = ref('');
const memory = ref({});
const cpus = ref({});
// Timezone
const allTimezones = moment.tz.names().map(t => { return { id: t }; });
@@ -49,15 +45,7 @@ async function onLanguageChange(value) {
}
onMounted(async () => {
let [error, result] = await systemModel.memory();
if (error) return console.error(error);
memory.value = result;
[error, result] = await systemModel.cpus();
if (error) return console.error(error);
cpus.value = result;
[error, result] = await cloudronModel.getTimeZone();
let [error, result] = await cloudronModel.getTimeZone();
if (error) return console.error(error);
timeZone.value = result;
@@ -85,9 +73,6 @@ onMounted(async () => {
if (error) return console.error(error);
info.value = result;
uptime.value = moment.duration(info.value.uptimeSecs, 'seconds').locale(navigator.language).humanize();
activeSince.value = info.value.activationTime ? moment(info.value.activationTime).fromNow() : 'unknown';
[error, result] = await dashboardModel.config();
if (error) return console.error(error);
config.value = result;