feat(M08-D): 补多小程序与租户配置
This commit is contained in:
@@ -16,6 +16,7 @@ for (const pattern of [
|
||||
"activeModule = 'thirdParty'",
|
||||
"activeModule = 'people'",
|
||||
"activeModule = 'devices'",
|
||||
"activeModule = 'platformApps'",
|
||||
'平台运营总览',
|
||||
'StoresRoomsPanel',
|
||||
'OrdersPanel',
|
||||
@@ -23,6 +24,7 @@ for (const pattern of [
|
||||
'ThirdPartyPanel',
|
||||
'MembersStaffPanel',
|
||||
'DevicesPanel',
|
||||
'PlatformAppsPanel',
|
||||
'运营总览',
|
||||
'savedToken',
|
||||
'loadCleaningWorkspace'
|
||||
@@ -175,6 +177,14 @@ for (const pattern of [
|
||||
assert.match(devices, new RegExp(pattern));
|
||||
}
|
||||
|
||||
const platformApps = read('admin/src/components/PlatformAppsPanel.vue');
|
||||
for (const pattern of ['listPlatformApplications', 'updatePlatformApplicationConfig', 'bindPlatformApplication', 'AppSecret', 'extraConfigText']) {
|
||||
assert.match(platformApps, new RegExp(pattern));
|
||||
}
|
||||
const platformRoutes = read('backend/src/routes/platform-management.ts');
|
||||
assert.match(platformRoutes, /'\/admin-api\/platform-apps'/);
|
||||
assert.match(platformRoutes, /PLATFORM_MANAGEMENT_FORBIDDEN/);
|
||||
|
||||
const routes = read('backend/src/routes/business-statistics.ts');
|
||||
assert.match(routes, /'\/app-api\/management\/statistics', '\/admin-api\/statistics'/);
|
||||
|
||||
@@ -212,6 +222,7 @@ for (const pattern of [
|
||||
'.member-detail-grid',
|
||||
'.device-metrics',
|
||||
'.device-topology-grid',
|
||||
'.platform-app-metrics',
|
||||
'@media (max-width: 980px)',
|
||||
'@media (max-width: 560px)'
|
||||
]) {
|
||||
|
||||
@@ -20,8 +20,10 @@ $requiredFiles = @(
|
||||
"backend/src/tasks/worker.ts",
|
||||
"backend/src/routes/health.ts",
|
||||
"backend/src/routes/platform-bootstrap.ts",
|
||||
"backend/src/routes/platform-management.ts",
|
||||
"backend/src/routes/auth.ts",
|
||||
"backend/src/tenancy/platform-config-repository.ts",
|
||||
"backend/src/tenancy/platform-admin-repository.ts",
|
||||
"backend/src/server.ts",
|
||||
"backend/tests/backend-contract.test.mjs",
|
||||
"backend/tests/migration-contract.test.mjs",
|
||||
@@ -31,6 +33,7 @@ $requiredFiles = @(
|
||||
"backend/tests/legacy-read-repository.test.mjs",
|
||||
"backend/tests/task-repository.test.mjs",
|
||||
"backend/tests/platform-config-repository.test.mjs",
|
||||
"backend/tests/platform-management.test.mjs",
|
||||
"backend/tests/auth.test.mjs",
|
||||
"backend/tests/rbac.test.mjs",
|
||||
"scripts/dev/wsl/mysql-migration-roundtrip.sh",
|
||||
@@ -81,6 +84,11 @@ if ($LASTEXITCODE -ne 0) {
|
||||
throw "backend contract test failed"
|
||||
}
|
||||
|
||||
& node backend/tests/platform-management.test.mjs
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "platform management test failed"
|
||||
}
|
||||
|
||||
& npm --prefix backend run build
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "backend build failed"
|
||||
|
||||
Reference in New Issue
Block a user