mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
feat: add missing page-config route definitions for login, dashboard, and admin pages
This commit is contained in:
16
e2e/tests.ts
16
e2e/tests.ts
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* Playwright Tests - Auto-discover and execute JSON test definitions
|
||||
*
|
||||
* This file loads all JSON test definitions from packages/*/playwright/tests.json
|
||||
* and registers them as Playwright tests at runtime.
|
||||
*
|
||||
* Usage: npm run test:e2e
|
||||
*/
|
||||
|
||||
import { test } from '@playwright/test'
|
||||
import { loadAllPackageTests } from './json-runner/playwright-json-runner'
|
||||
import { resolve } from 'path'
|
||||
|
||||
// Discover and register all JSON tests from packages
|
||||
const packagesDir = resolve(__dirname, '../packages')
|
||||
void loadAllPackageTests(packagesDir, test)
|
||||
13
packages/dashboard/page-config/page-config.json
Normal file
13
packages/dashboard/page-config/page-config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"id": "page_dashboard_home",
|
||||
"path": "/dashboard",
|
||||
"title": "Dashboard",
|
||||
"packageId": "dashboard",
|
||||
"component": "dashboard_home",
|
||||
"level": 1,
|
||||
"requiresAuth": true,
|
||||
"isPublished": true,
|
||||
"sortOrder": 0
|
||||
}
|
||||
]
|
||||
13
packages/package_manager/page-config/page-config.json
Normal file
13
packages/package_manager/page-config/page-config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"id": "page_package_manager_list",
|
||||
"path": "/admin/packages",
|
||||
"title": "Package Management",
|
||||
"packageId": "package_manager",
|
||||
"component": "package_list_admin",
|
||||
"level": 4,
|
||||
"requiresAuth": true,
|
||||
"isPublished": true,
|
||||
"sortOrder": 0
|
||||
}
|
||||
]
|
||||
13
packages/role_editor/page-config/page-config.json
Normal file
13
packages/role_editor/page-config/page-config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"id": "page_role_editor_list",
|
||||
"path": "/admin/roles",
|
||||
"title": "Role Management",
|
||||
"packageId": "role_editor",
|
||||
"component": "role_list_admin",
|
||||
"level": 3,
|
||||
"requiresAuth": true,
|
||||
"isPublished": true,
|
||||
"sortOrder": 0
|
||||
}
|
||||
]
|
||||
13
packages/ui_login/page-config/page-config.json
Normal file
13
packages/ui_login/page-config/page-config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"id": "page_ui_login_login",
|
||||
"path": "/login",
|
||||
"title": "Login",
|
||||
"packageId": "ui_login",
|
||||
"component": "login_page",
|
||||
"level": 0,
|
||||
"requiresAuth": false,
|
||||
"isPublished": true,
|
||||
"sortOrder": 0
|
||||
}
|
||||
]
|
||||
13
packages/user_manager/page-config/page-config.json
Normal file
13
packages/user_manager/page-config/page-config.json
Normal file
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"id": "page_user_manager_list",
|
||||
"path": "/admin/users",
|
||||
"title": "User Management",
|
||||
"packageId": "user_manager",
|
||||
"component": "user_list_admin",
|
||||
"level": 3,
|
||||
"requiresAuth": true,
|
||||
"isPublished": true,
|
||||
"sortOrder": 0
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user