[verified] refactor: establish service and frontend boundaries

This commit is contained in:
chick
2026-07-15 02:43:41 +08:00
parent 0ac6faa6a3
commit e04a16e817
29 changed files with 917 additions and 598 deletions
+9 -2
View File
@@ -24,7 +24,8 @@ test('home screen is a simadmin card wall and device detail owns interactions',
assert.match(app, /function openDeviceDetail/)
assert.match(app, /function renderDeviceDetails/)
assert.match(app, /data-open-detail/)
assert.match(app, /\['home', 'detail', 'rawpage', 'api'\]/)
const router = await text('public/router/view-router.js')
assert.match(router, /\['home', 'detail', 'rawpage', 'api'\]/)
assert.match(app, /温度/)
assert.match(app, /流量|速率/)
assert.match(app, /内存|磁盘/)
@@ -37,7 +38,13 @@ test('home screen is a simadmin card wall and device detail owns interactions',
})
test('home device cards show complete content without ellipsis truncation', async () => {
const css = await text('public/styles.css')
const entry = await text('public/styles.css')
const css = await text('public/styles/components.css')
assert.match(entry, /styles\/tokens\.css/)
assert.match(entry, /styles\/base\.css/)
assert.match(entry, /styles\/components\.css/)
assert.match(entry, /styles\/responsive\.css/)
assert.match(css, /\.sim-device-card/)
assert.match(css, /\.home-device-grid/)