added skeleton ACL class

This commit is contained in:
Christopher Bisset 2022-08-18 13:02:05 +10:00
parent 7d6f0203ae
commit 42e117deb1
2 changed files with 12 additions and 2 deletions

View file

@ -14,6 +14,14 @@ export class Device {
}
}
export class ACL {
public groups: {[key: string]: string} = {}
public constructor(init?: Partial<Route>) {
Object.assign(this, init);
}
}
export class Route {
advertisedRoutes: string[] = [];
enabledRoutes: string[] = [];

View file

@ -1,5 +1,5 @@
import { writable } from 'svelte/store';
import { Device, User } from '$lib/common/classes';
import { Device, User, ACL } from '$lib/common/classes';
// used to store the value of an alert across all components
export const alertStore = writable('');
@ -24,4 +24,6 @@ export const deviceSearchStore = writable('');
export const deviceSortStore = writable('id');
export const deviceSortDirectionStore = writable('ascending');
export const userSortStore = writable('id');
export const sortDirectionStore = writable('ascending');
export const sortDirectionStore = writable('ascending');
// stores ACL object
export const aclStore = writable(new ACL());