feat(M08-D): 补广告与装修管理
This commit is contained in:
@@ -17,6 +17,7 @@ for (const pattern of [
|
||||
"activeModule = 'people'",
|
||||
"activeModule = 'devices'",
|
||||
"activeModule = 'platformApps'",
|
||||
"activeModule = 'content'",
|
||||
'平台运营总览',
|
||||
'StoresRoomsPanel',
|
||||
'OrdersPanel',
|
||||
@@ -25,6 +26,7 @@ for (const pattern of [
|
||||
'MembersStaffPanel',
|
||||
'DevicesPanel',
|
||||
'PlatformAppsPanel',
|
||||
'ContentManagementPanel',
|
||||
'运营总览',
|
||||
'savedToken',
|
||||
'loadCleaningWorkspace'
|
||||
@@ -185,6 +187,27 @@ const platformRoutes = read('backend/src/routes/platform-management.ts');
|
||||
assert.match(platformRoutes, /'\/admin-api\/platform-apps'/);
|
||||
assert.match(platformRoutes, /PLATFORM_MANAGEMENT_FORBIDDEN/);
|
||||
|
||||
const content = read('admin/src/components/ContentManagementPanel.vue');
|
||||
for (const pattern of [
|
||||
'listMediaAssets',
|
||||
'uploadMediaImage',
|
||||
'listDecorations',
|
||||
'saveDecoration',
|
||||
'publishDecoration',
|
||||
'listAdvertisements',
|
||||
'saveAdvertisement',
|
||||
'updateAdvertisement',
|
||||
'媒体素材',
|
||||
'门店装修',
|
||||
'广告投放'
|
||||
]) {
|
||||
assert.match(content, new RegExp(pattern));
|
||||
}
|
||||
const contentRoutes = read('backend/src/routes/content-management.ts');
|
||||
assert.match(contentRoutes, /'\/admin-api\/media\/images'/);
|
||||
assert.match(contentRoutes, /'\/admin-api\/decorations'/);
|
||||
assert.match(contentRoutes, /'\/admin-api\/advertisements\/:id'/);
|
||||
|
||||
const routes = read('backend/src/routes/business-statistics.ts');
|
||||
assert.match(routes, /'\/app-api\/management\/statistics', '\/admin-api\/statistics'/);
|
||||
|
||||
@@ -223,6 +246,9 @@ for (const pattern of [
|
||||
'.device-metrics',
|
||||
'.device-topology-grid',
|
||||
'.platform-app-metrics',
|
||||
'.content-metrics',
|
||||
'.asset-gallery',
|
||||
'.component-editor',
|
||||
'@media (max-width: 980px)',
|
||||
'@media (max-width: 560px)'
|
||||
]) {
|
||||
|
||||
Reference in New Issue
Block a user