new package dbHandler accesscontrol memeberdb and login with rights
All checks were successful
Build Quasar SPA and Go Backend for memberApp / build-spa (push) Successful in 2m20s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, .exe, windows) (push) Successful in 5m27s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, , linux) (push) Successful in 5m32s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm, 6, , linux) (push) Successful in 5m28s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm64, , linux) (push) Successful in 5m29s
All checks were successful
Build Quasar SPA and Go Backend for memberApp / build-spa (push) Successful in 2m20s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, .exe, windows) (push) Successful in 5m27s
Build Quasar SPA and Go Backend for memberApp / build-backend (amd64, , linux) (push) Successful in 5m32s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm, 6, , linux) (push) Successful in 5m28s
Build Quasar SPA and Go Backend for memberApp / build-backend (arm64, , linux) (push) Successful in 5m29s
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
export interface Right {
|
||||
name: string;
|
||||
read: boolean;
|
||||
write: boolean;
|
||||
delete: boolean;
|
||||
}
|
||||
|
||||
export type Rights = Right[];
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { Rights } from './rights';
|
||||
import type { Permissions } from '../checkboxes/permissions';
|
||||
|
||||
export interface Role {
|
||||
id?: number;
|
||||
role: string;
|
||||
rights: Rights | null;
|
||||
permissions: Permissions;
|
||||
}
|
||||
|
||||
export type Roles = Role[];
|
||||
|
||||
@@ -2,5 +2,18 @@ export type Settings = {
|
||||
icon: string;
|
||||
databaseName: string;
|
||||
primaryColor: string;
|
||||
primaryColorText: string;
|
||||
secondaryColor: string;
|
||||
secondaryColorText: string;
|
||||
};
|
||||
|
||||
export function DefaultSettings(): Settings {
|
||||
return {
|
||||
icon: '',
|
||||
databaseName: 'members.dba',
|
||||
primaryColor: document.documentElement.style.getPropertyValue('--q-primary-text'),
|
||||
primaryColorText: document.documentElement.style.getPropertyValue('--q-primary'),
|
||||
secondaryColor: document.documentElement.style.getPropertyValue('--q-secondary'),
|
||||
secondaryColorText: document.documentElement.style.getPropertyValue('--q-secondary-text'),
|
||||
};
|
||||
}
|
||||
|
||||
12
src/vueLib/models/user.ts
Normal file
12
src/vueLib/models/user.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { Permissions } from '../checkboxes/permissions';
|
||||
|
||||
export interface User {
|
||||
id: number;
|
||||
username: string;
|
||||
role: string;
|
||||
permissions?: Permissions;
|
||||
}
|
||||
|
||||
export interface UserState {
|
||||
user: User | null;
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
import type { Settings } from './settings';
|
||||
|
||||
export interface User {
|
||||
id?: number;
|
||||
user: string;
|
||||
email: string;
|
||||
role: string;
|
||||
expires: string;
|
||||
password?: string;
|
||||
settings?: Settings;
|
||||
}
|
||||
|
||||
export type Users = User[];
|
||||
|
||||
Reference in New Issue
Block a user