mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-08-04 13:42:46 +00:00
added skeleton ACL class
This commit is contained in:
parent
7d6f0203ae
commit
42e117deb1
2 changed files with 12 additions and 2 deletions
|
|
@ -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[] = [];
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
Loading…
Add table
Add a link
Reference in a new issue