feat/page-claning: moved some consts from lib

This commit is contained in:
Andrian Roshandy
2025-11-24 08:11:50 +07:00
parent 8aac6c4318
commit 33abc5b50c
15 changed files with 323 additions and 10 deletions

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
import type { Permission } from "~/models/role";
// Should we define the keys first?
// export type Keys = 'key1' | 'key2' | 'key3' | etc
export const permissions: Record<string, Record<string, Permission[]>> = {
'/infra-src/bed': {
'div|fin': ['C', 'R', 'U', 'D'],
},
'/infra-src/chamber': {
'div|fin': ['C', 'R', 'U', 'D'],
},
'/infra-src/room': {
'div|fin': ['C', 'R', 'U', 'D'],
},
'/infra-src/warehouse': {
'div|fin': ['C', 'R', 'U', 'D'],
},
'/infra-src/building': {
'div|fin': ['C', 'R', 'U', 'D'],
},
'/infra-src/floor': {
'div|fin': ['C', 'R', 'U', 'D'],
},
'/infra-src/counter': {
'div|fin': ['C', 'R', 'U', 'D'],
},
'/infra-src/public-screen': {
'div|fin': ['C', 'R', 'U', 'D'],
},
}