refactor: @xenia/signage: the slides and the player's logic shared by the terminal and the manager (platform-v2 step 5.6a)
The signage slides (SlideView, TextSlide, MenuSlide, Widgets) and the pure logic (schedule pick, slide windows, menu pages) move from the terminal into packages/signage, so the manager's previews draw a slide exactly as the TV does. Sizes are container units (cqmin) instead of viewport units: a slide draws inside any box with container-type: size (frameStyle sets it on the TV). Tests move with it (10). Dockerfiles copy its package.json; both apps' Tailwind content include it; run-all runs its tests. Signage e2e and the compose stack passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@ COPY packages/ui/package.json packages/ui/
|
||||
COPY packages/i18n/package.json packages/i18n/
|
||||
COPY packages/api/package.json packages/api/
|
||||
COPY packages/access/package.json packages/access/
|
||||
COPY packages/signage/package.json packages/signage/
|
||||
COPY waiter_pwa/package.json waiter_pwa/
|
||||
COPY manager_dashboard/package.json manager_dashboard/
|
||||
COPY terminal/package.json terminal/
|
||||
|
||||
@@ -8,13 +8,14 @@
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"test": "node --test \"tests/*.test.mjs\"",
|
||||
"lint": "eslint eslint.config.js tests src/shell src/live src/pages/platform src/pages/online src/pages/media src/pages/staff src/pages/Settings/sections src/pages/LoginPage.jsx src/components/NotificationBell.jsx src/components/PhoneListener.jsx src/pages/PhonePage.jsx src/store/phoneStore.js src/components/UserMenuButton.jsx src/pages/reports/operations/LogsPanel.jsx src/api/client.js src/store/authStore.js src/main.jsx"
|
||||
"lint": "eslint eslint.config.js tests src/shell src/live src/pages/platform src/pages/online src/pages/media src/pages/signage src/pages/staff src/pages/Settings/sections src/pages/LoginPage.jsx src/components/NotificationBell.jsx src/components/PhoneListener.jsx src/pages/PhonePage.jsx src/store/phoneStore.js src/components/UserMenuButton.jsx src/pages/reports/operations/LogsPanel.jsx src/api/client.js src/store/authStore.js src/main.jsx"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tanstack/react-query": "^5.107.1",
|
||||
"@xenia/access": "^0.0.0",
|
||||
"@xenia/api": "^0.0.0",
|
||||
"@xenia/i18n": "^0.0.0",
|
||||
"@xenia/signage": "^0.0.0",
|
||||
"@xenia/ui": "^0.0.0",
|
||||
"axios": "^1.21.1",
|
||||
"lucide-react": "^1.73.0",
|
||||
|
||||
@@ -4,7 +4,7 @@ import xenia from '@xenia/ui/tailwind-preset'
|
||||
export default {
|
||||
// Shared design tokens (bg-surface, text-ink-2, rounded-control…); adds names only
|
||||
presets: [xenia],
|
||||
content: ['./index.html', './src/**/*.{js,jsx}'],
|
||||
content: ['./index.html', './src/**/*.{js,jsx}', '../packages/signage/src/**/*.{js,jsx}'], // signage slides use a few utilities (5.6a)
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
|
||||
Reference in New Issue
Block a user