braks
95095c67c8
refactor(nc-gui): use shared composable instead of injection state for permissions
2 years ago
braks
58210be87a
refactor(nc-gui): remove `useInjectionState` from `useUIPermission`
2 years ago
braks
9f387b6342
chore(nc-gui): remove unused var
2 years ago
braks
4bd0dccc8d
refactor(nc-gui): cancel permission check if prematurely caught
2 years ago
braks
84b9f8b10f
refactor(nc-gui): use injection state for `useUIPermission`
2 years ago
braks
e7ec02c160
refactor(nc-gui): return permission check if preview permission found
2 years ago
braks
92110603ee
refactor(nc-gui): stop duplicating allRoles & check preview permissions separately
2 years ago
braks
96d12f6f80
refactor(nc-gui): use computed value in all permissions state
2 years ago
braks
e56282fec2
refactor(nc-gui): replace computed with useState to prevent unnecessary duplicates
2 years ago
braks
be0b641f36
chore(nc-gui): add generic to narrow roles type
2 years ago
braks
9a43bfa787
refactor(nc-gui): use enum for role permission keys
2 years ago
braks
27791f5054
refactor(nc-gui): clean up permission types
2 years ago
braks
0a1e224273
fix(nc-gui): cleanup sidebar state on scope dispose
2 years ago
braks
ba8ee402dc
fix(nc-gui): auth tab constantly re-opening
...
* Only reload project if it's not loaded already
* Prevent tab from re-opening
2 years ago
Wing-Kam Wong
f97ea536b4
chore: move nc-gui-v2 to nc-gui
2 years ago
Pranav C
174c9a8957
fix(gui-v2): handle opening shared view/base opening in same window
...
Signed-off-by: Pranav C <pranavxc@gmail.com>
2 years ago
Wing-Kam Wong
fe6f1282e4
refactor(gui-v2): isUIAllowed
2 years ago
braks
e8de580842
refactor(gui-v2): project list page style fixes
2 years ago
braks
fb07bbacea
chore(gui-v2): cleanup typecheck issues
2 years ago
Pranav C
832362ba7c
feat(gui-v2): add preview as option
...
Signed-off-by: Pranav C <pranavxc@gmail.com>
2 years ago
Pranav C
dcd5fba24e
Update index.ts
2 years ago
braks
9820ed6a20
chore(gui-v2): properly type rolePermission and remove unnecessary check
2 years ago
braks
f9d8389cec
chore(gui-v2): remove unnecessary typecast
2 years ago
braks
222539efee
fix(gui-v2): permission type not allowing wildcard
...
# What's changed?
* rename `RolePermissions` to `Permission`
* allow wildcard permission for creator and owner roles
2 years ago
Pranav C
6b883a004a
refactor(gui-v2): ui permission code correction, reduce modal size
...
Signed-off-by: Pranav C <pranavxc@gmail.com>
2 years ago
braks
2520a8ed6c
feat(gui-v2): add proper role permissions type
2 years ago
braks
ec3b7af0ce
refactor(gui-v2): replace `useGlobalState` with `useGlobal`
...
# What's changed?
* `useGlobal` replaces `useGlobalState`
* split into actions, getters, state
* injects into nuxt app on init (regardless where it's called)
2 years ago
Pranav C
8f9152bff2
feat(gui-v2): sync column width with server
...
Signed-off-by: Pranav C <pranavxc@gmail.com>
2 years ago
Pranav C
633da7b296
feat(gui-v2): Load project specific role and use it in ui permission composable
...
Signed-off-by: Pranav C <pranavxc@gmail.com>
2 years ago
Pranav C
7953923a28
feat: add isUIAllowed composable
...
Signed-off-by: Pranav C <pranavxc@gmail.com>
2 years ago