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:
2026-02-09 06:54:04 +08:00
parent 3126ed5e64
commit 05a0d07dbb
23 changed files with 7205 additions and 112 deletions

View File

@@ -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();