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
+1 -1
View File
@@ -2,7 +2,7 @@
import { API_ORIGIN, APP_TYPES, PROXY_APP_ID, HSTATES, ISTATES, RSTATES } from '../constants.js';
import { fetcher } from 'pankow';
import { sleep } from 'pankow/utils';
import moment from 'moment';
import moment from 'moment-timezone';
function installationStateLabel(app) {
if (!app) return '';
+1 -1
View File
@@ -1,5 +1,5 @@
import moment from 'moment';
import moment from 'moment-timezone';
import { ansiToHtml } from 'anser';
import { API_ORIGIN } from '../constants.js';
+2
View File
@@ -30,6 +30,8 @@ function create() {
if (error || result.status !== 200) return [error || result];
result.body.isAtLeastUserManager = [ ROLES.OWNER, ROLES.ADMIN, ROLES.MAIL_MANAGER, ROLES.USER_MANAGER ].indexOf(result.body.role) !== -1;
result.body.isAtLeastMailManager = [ ROLES.OWNER, ROLES.ADMIN, ROLES.MAIL_MANAGER ].indexOf(result.body.role) !== -1;
result.body.isAtLeastAdmin = [ ROLES.OWNER, ROLES.ADMIN ].indexOf(result.body.role) !== -1;
result.body.isAtLeastOwner = [ ROLES.OWNER ].indexOf(result.body.role) !== -1;