feat: implement tenant-side creator audit feature and update related tests and documentation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2
frontend/superadmin/dist/index.html
vendored
2
frontend/superadmin/dist/index.html
vendored
@@ -7,7 +7,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Sakai Vue</title>
|
||||
<link href="https://fonts.cdnfonts.com/css/lato" rel="stylesheet">
|
||||
<script type="module" crossorigin src="./assets/index-CsH8eBi3.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index-DRIu3C4l.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-CLNNtsXI.css">
|
||||
</head>
|
||||
|
||||
|
||||
@@ -225,10 +225,18 @@ const router = createRouter({
|
||||
]
|
||||
});
|
||||
|
||||
const isDemoOnlyRoute = (path) => {
|
||||
return path.startsWith('/uikit/') || path === '/blocks' || path === '/pages/empty' || path === '/pages/crud' || path === '/documentation' || path === '/landing';
|
||||
};
|
||||
|
||||
let tokenValidated = false;
|
||||
let tokenValidationPromise = null;
|
||||
|
||||
router.beforeEach(async (to) => {
|
||||
if (!import.meta.env.DEV && isDemoOnlyRoute(to.path)) {
|
||||
return { name: 'dashboard' };
|
||||
}
|
||||
|
||||
if (to.meta?.requiresAuth !== true) return true;
|
||||
|
||||
const isAuthed = hasSuperAuthToken();
|
||||
|
||||
Reference in New Issue
Block a user