@feedmepos/mf-order-setting 0.0.105 → 0.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DisplaySystemView-aLqc6lz9.js +9068 -0
- package/dist/{FoodCourtInvitationsView-Bo174yfB.js → FoodCourtInvitationsView-B30qld2i.js} +4 -4
- package/dist/{FoodCourtOrderSettingsView-uUe53O0Z.js → FoodCourtOrderSettingsView-CWmaKgbe.js} +1 -1
- package/dist/{FoodCourtOrdersView-CxC5oGp2.js → FoodCourtOrdersView-FfrganVo.js} +4 -4
- package/dist/{FoodCourtStallsView-BEpRBmSL.js → FoodCourtStallsView-CpGZNP6p.js} +2 -2
- package/dist/{FoodCourtStatusView-DA7mdsuf.js → FoodCourtStatusView-ljQUwIwk.js} +1 -1
- package/dist/{KioskDevicesView-BY9Egk75.js → KioskDevicesView-BwDAYIhX.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CxroxD-b.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-VidDJfGG.js} +487 -473
- package/dist/KioskSettingView-mfhi9vuf.js +1240 -0
- package/dist/{KioskView-BYL0u6kj.js → KioskView-6p5h92fk.js} +173 -167
- package/dist/{OrderSettingsView-BBHAhgE9.js → OrderSettingsView-Cf_Ye9U_.js} +11 -11
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang--9bdtLE1.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-TJJ3PBlq.js} +1 -1
- package/dist/{app-BV2USn83.js → app-BorqCaJT.js} +6965 -6415
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Bp4Kgnt_.js → dayjs.min-CTTY2vkL.js} +1 -1
- package/dist/display-preview/assets/{BandBoard-DIcfXsNV.js → BandBoard-BLwgs3WX.js} +1 -1
- package/dist/display-preview/assets/{CarouselBlock-XAhTyEWB.js → CarouselBlock-CUrVSbQp.js} +1 -1
- package/dist/display-preview/assets/{CategoryBoard-DBKe18hv.js → CategoryBoard-BkvpcxHR.js} +1 -1
- package/dist/display-preview/assets/{ImageBlock-BCbnYSHq.js → ImageBlock-0UYDHTm0.js} +1 -1
- package/dist/display-preview/assets/{PickupMode-Df_TPCh8.js → PickupMode-BY4iL0BH.js} +1 -1
- package/dist/display-preview/assets/{StatusBoard-28z3bPOf.js → StatusBoard-DGEZ6hvH.js} +1 -1
- package/dist/display-preview/assets/{TextBlock-CvJKITtx.js → TextBlock-CxKwtqoO.js} +1 -1
- package/dist/display-preview/assets/{VideoBlock-Dop43wDv.js → VideoBlock-BKkxdLAd.js} +1 -1
- package/dist/display-preview/assets/{index-cqMoOpSN.js → index-B1olKQmQ.js} +2 -2
- package/dist/display-preview/assets/{pickupView-DRMVXqrc.js → pickupView-CB9fV5jD.js} +1 -1
- package/dist/display-preview/images/feedme-bg-left-image.png +0 -0
- package/dist/display-preview/index.html +1 -1
- package/dist/{featureFlag-C1uGG7u6.js → featureFlag-DFenoxmg.js} +1 -1
- package/dist/frontend/mf-order/src/api/display-system/index.d.ts +2 -2
- package/dist/frontend/mf-order/src/app.d.ts +118 -12
- package/dist/frontend/mf-order/src/composables/useDisplaySystemPermission.d.ts +5 -0
- package/dist/frontend/mf-order/src/main.d.ts +118 -12
- package/dist/frontend/mf-order/src/modules/display-system/interface.d.ts +9 -11
- package/dist/frontend/mf-order/src/modules/display-system/legacy-ods/convert.d.ts +10 -0
- package/dist/frontend/mf-order/src/modules/kiosk/deviceCount.d.ts +18 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +12 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/tableNumberHint.d.ts +33 -0
- package/dist/frontend/mf-order/src/stores/display-system/index.d.ts +10 -70
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +51 -0
- package/dist/frontend/mf-order/src/views/display-system/DisplayTemplateEditor.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/display-system/legacy-ods/LegacyOdsTemplateList.vue.d.ts +11 -2
- package/dist/frontend/mf-order/src/views/display-system/view-selection.d.ts +1 -2
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-0GuybwuA.js → index-BZkJr7iu.js} +1 -1
- package/dist/{index-HF3qh9qG.js → index-C4Isv-r7.js} +1 -1
- package/dist/{index-CRNutZC_.js → index-DuJOWWP8.js} +4 -4
- package/dist/{index-D0ZIByef.js → index-nUvyt9Wm.js} +1 -1
- package/dist/{index-KWOCCun9.js → index-tLkJL436.js} +2 -2
- package/dist/{order.dto-GQaBESZq.js → order.dto-nVwtcdX2.js} +6049 -5992
- package/dist/package/entity/display/mediaHosts.d.ts +4 -0
- package/dist/package/entity/food-court/order-v2.do.d.ts +667 -0
- package/dist/package/entity/food-court/order-v2.dto.d.ts +262 -0
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +16 -0
- package/dist/package/entity/order-platform/menu.dto.d.ts +44 -44
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +52 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +293 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +42 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +174 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +42 -0
- package/dist/package/entity/websocket/websocket.dto.d.ts +92 -0
- package/dist/style.css +1 -1
- package/dist/{useInternalUser-C39xpsBU.js → useInternalUser-HhxjbzGl.js} +1 -1
- package/package.json +3 -3
- package/src/api/display-system/index.ts +2 -2
- package/src/composables/useDisplaySystemPermission.spec.ts +27 -0
- package/src/composables/useDisplaySystemPermission.ts +16 -0
- package/src/locales/en-US.json +51 -17
- package/src/locales/ja-JP.json +26 -11
- package/src/locales/th-TH.json +32 -17
- package/src/locales/zh-CN.json +51 -17
- package/src/modules/display-system/interface.spec.ts +1 -32
- package/src/modules/display-system/interface.ts +7 -24
- package/src/modules/display-system/legacy-ods/convert.spec.ts +65 -0
- package/src/modules/display-system/legacy-ods/convert.ts +95 -0
- package/src/modules/display-system/legacy-ods/media.spec.ts +16 -0
- package/src/modules/kiosk/deviceCount.spec.ts +23 -0
- package/src/modules/kiosk/deviceCount.ts +21 -0
- package/src/modules/order-setting/kiosk/interface.ts +13 -0
- package/src/modules/order-setting/kiosk/tableNumberHint.spec.ts +68 -0
- package/src/modules/order-setting/kiosk/tableNumberHint.ts +71 -0
- package/src/router/display-system-permission.spec.ts +13 -0
- package/src/router/routes.ts +2 -1
- package/src/stores/display-system/index.spec.ts +104 -0
- package/src/stores/display-system/index.ts +18 -7
- package/src/stores/order-setting/mapper.ts +11 -2
- package/src/views/display-system/DisplayInspector.vue +3 -0
- package/src/views/display-system/DisplayModulePickerDialog.vue +8 -0
- package/src/views/display-system/DisplaySystemView.conversion.spec.ts +164 -0
- package/src/views/display-system/DisplaySystemView.vue +72 -26
- package/src/views/display-system/DisplayTemplateEditor.spec.ts +18 -0
- package/src/views/display-system/DisplayTemplateEditor.vue +8 -2
- package/src/views/display-system/legacy-ods/LegacyOdsTemplateList.spec.ts +44 -4
- package/src/views/display-system/legacy-ods/LegacyOdsTemplateList.vue +12 -4
- package/src/views/display-system/view-selection.spec.ts +4 -17
- package/src/views/display-system/view-selection.ts +3 -4
- package/src/views/kiosk/devices/KioskDevicesView.vue +6 -2
- package/src/views/kiosk/devices/KioskLicenseSummary.spec.ts +45 -0
- package/src/views/kiosk/devices/KioskLicenseSummary.vue +9 -2
- package/src/views/kiosk/settings/KioskSettingView.vue +140 -6
- package/vitest.config.ts +1 -0
- package/dist/DisplaySystemView-CFr9DnaD.js +0 -8926
- package/dist/KioskSettingView-DPaQ7YFV.js +0 -1124
package/src/locales/ja-JP.json
CHANGED
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"acceptQueue": "待ち行列を受け付ける",
|
|
262
262
|
"acceptQueueSublabel": "お客様はFeedMeアプリで順番待ちができます",
|
|
263
263
|
"acceptReservation": "予約を受け付ける",
|
|
264
|
-
"acceptReservationSublabel": "
|
|
264
|
+
"acceptReservationSublabel": "お客様はテーブルを予約できます。この設定はFeedMeスタッフのみ変更できます",
|
|
265
265
|
"acceptReservationRequiresPosVersion": "メイン POS は POS {min} 以降が必要です(この店舗は {version})",
|
|
266
266
|
"actiavteFeedmeExpress": "FeedMe Expressを有効にする",
|
|
267
267
|
"activated": "有効化済み",
|
|
@@ -500,7 +500,8 @@
|
|
|
500
500
|
"kioskDisplay": "デバイス",
|
|
501
501
|
"licenseSummaryKiosk": "キオスクライセンス",
|
|
502
502
|
"licenseSummaryTablet": "タブレットライセンス",
|
|
503
|
-
"
|
|
503
|
+
"licenseSummaryInUse": "使用中 {used} / {total}",
|
|
504
|
+
"licenseSummaryFree": "空き {free} 件",
|
|
504
505
|
"licenseSummaryNextExpiry": "次の期限 {date}",
|
|
505
506
|
"licenseSummaryNoFree": "空きライセンスがありません。追加するには FeedMe にお問い合わせください。",
|
|
506
507
|
"licenseSummaryUnlimited": "このビジネスはキオスクやタブレットの登録にライセンスが不要です。",
|
|
@@ -820,6 +821,7 @@
|
|
|
820
821
|
"subItemDisplayModeListView": "サブアイテムリストビュー",
|
|
821
822
|
"hideProductCode": "商品コードを非表示",
|
|
822
823
|
"submitOrderInstruction": "注文送信指示",
|
|
824
|
+
"submitOrderInstructionHint": "お客様が注文を送信した後にキオスクに表示されます。「カウンターで支払う」のテキストは、支払い設定でオフライン支払い方法を追加していない場合、「カウンターで支払う」ボタンにも表示されます。",
|
|
823
825
|
"success": "成功",
|
|
824
826
|
"sunday": "日曜日",
|
|
825
827
|
"fulfillmentModeSetting": "フルフィルメントモード設定",
|
|
@@ -831,6 +833,12 @@
|
|
|
831
833
|
"tableSelected": "テーブルが選択されました",
|
|
832
834
|
"tableService": "テーブルサービス",
|
|
833
835
|
"tableServiceSetting": "テーブルサービス設定",
|
|
836
|
+
"tableNumber": "テーブル番号",
|
|
837
|
+
"showHintMessage": "ヒントメッセージを表示",
|
|
838
|
+
"showHintMessageSublabel": "キオスクのテーブル番号ページのテンキーの下に短いヒントを表示します(縦向きのキオスクのみ)。",
|
|
839
|
+
"hintMessage": "ヒントメッセージ",
|
|
840
|
+
"customiseHintMessageEmpty": "空欄の言語は、キオスク標準の文言が表示されます。",
|
|
841
|
+
"hintMessageOffNote": "「ヒントメッセージを表示」をオンにすると、キオスクにこれらの文言が表示されます。",
|
|
834
842
|
"takeaway": "テイクアウト",
|
|
835
843
|
"takeawayTitle": "テイクアウト",
|
|
836
844
|
"taxExclusive": "税抜",
|
|
@@ -862,7 +870,8 @@
|
|
|
862
870
|
"kioskLanguageRestrict": "表示する言語を制限する",
|
|
863
871
|
"kioskLanguageRestrictSublabel": "オフ:対応するすべての言語を表示。オン:下でチェックした言語のみ表示。",
|
|
864
872
|
"kioskOnly": "キオスク",
|
|
865
|
-
"showingDevices": "{
|
|
873
|
+
"showingDevices": "{total} 台中 {count} 台を表示",
|
|
874
|
+
"devicesAtOutlet": "この店舗のデバイス:{total} 台",
|
|
866
875
|
"noDevicesMatch": "検索条件に一致するデバイスはありません",
|
|
867
876
|
"noDevicesBound": "ワンタイムコードで最初のキオスクまたはタブレットを紐付けましょう。",
|
|
868
877
|
"clickToCopy": "クリックしてコピー",
|
|
@@ -1054,6 +1063,7 @@
|
|
|
1054
1063
|
}
|
|
1055
1064
|
},
|
|
1056
1065
|
"displaySystem": {
|
|
1066
|
+
"editor": { "ui": { "queuePremiumRequired": "Queue Premium の契約が必要です。" } },
|
|
1057
1067
|
"legacyOds": {
|
|
1058
1068
|
"addConfiguration": "設定を追加",
|
|
1059
1069
|
"duplicate": "複製",
|
|
@@ -1160,10 +1170,10 @@
|
|
|
1160
1170
|
"close": "閉じる",
|
|
1161
1171
|
"save": "保存",
|
|
1162
1172
|
"saved": "保存しました",
|
|
1163
|
-
"title": "ODS
|
|
1164
|
-
"switchToLegacy": "
|
|
1165
|
-
"switchToDisplaySystem": "Display
|
|
1166
|
-
"openLegacyTab": "
|
|
1173
|
+
"title": "旧版 ODS テンプレート",
|
|
1174
|
+
"switchToLegacy": "旧版 ODS テンプレートに切り替え",
|
|
1175
|
+
"switchToDisplaySystem": "TV Display に切り替え",
|
|
1176
|
+
"openLegacyTab": "旧版 ODS テンプレートを管理",
|
|
1167
1177
|
"color": {
|
|
1168
1178
|
"primary": {
|
|
1169
1179
|
"title": "ブランドのメインカラー",
|
|
@@ -1221,16 +1231,21 @@
|
|
|
1221
1231
|
}
|
|
1222
1232
|
}
|
|
1223
1233
|
},
|
|
1224
|
-
"title": "Display
|
|
1225
|
-
"screens": "Screens", "configurations": "Configurations", "addScreen": "Add screen", "addConfiguration": "Add configuration", "selectRestaurant": "Select a restaurant", "availabilityUnavailable": "
|
|
1234
|
+
"title": "TV Display", "description": "壁掛けテレビに受取呼出、待ち番号、広告を表示します。対応する POS v7 および POS v8 のバージョンで利用できます。", "descriptionDetail": "Create reusable Pickup and Queue configurations, then assign them to screens.",
|
|
1235
|
+
"screens": "Screens", "configurations": "Configurations", "addScreen": "Add screen", "addConfiguration": "Add configuration", "selectRestaurant": "Select a restaurant", "availabilityUnavailable": "この店舗で TV Display を利用できるか確認できませんでした。再試行してください。",
|
|
1236
|
+
"retryAvailability": "再試行", "tvSettingsNotEnabled": "この店舗では TV Display の設定がまだ有効になっていません。サポートにお問い合わせください。",
|
|
1237
|
+
"odsTitle": "ODS テンプレート",
|
|
1238
|
+
"odsDescription": "ODS の受け取り画面のレイアウトを設定します。",
|
|
1239
|
+
"switchToOds": "ODS に切り替え",
|
|
1240
|
+
"posUnsupported": "店舗のメイン POS を TV Display に対応するバージョンに更新してください。", "posUnsupportedVersion": "この店舗のメイン POS は {version} で、TV Display に対応していません。対応するバージョンに更新してください。", "screenLimitReached": "All TV slots for this restaurant are in use, or its subscription includes none. Buy another TV slot, or pause a screen.",
|
|
1226
1241
|
"noScreens": "No display screens yet", "noScreensDescription": "Add the first display screen for {restaurant}.", "noConfigurations": "No display configurations yet", "noConfigurationsDescription": "Create a reusable Pickup or Queue configuration.",
|
|
1227
1242
|
"noConfiguration": "No configuration", "allRestaurants": "All restaurants", "online": "Online", "offline": "Offline", "deviceId": "Device ID", "lastSeen": "Last seen", "appVersion": "App version", "bundleVersion": "Bundle version",
|
|
1228
|
-
"schemaVersion": "Schema version", "updatedAt": "Updated", "loadFailed": "Unable to load Display
|
|
1243
|
+
"schemaVersion": "Schema version", "updatedAt": "Updated", "loadFailed": "Unable to load TV Display data.", "saveFailed": "Unable to save the display setting.", "deleteFailed": "Unable to delete the display setting.",
|
|
1229
1244
|
"configSaved": "Display configuration saved.", "configDeleted": "Display configuration deleted.", "screenSaved": "Display screen saved.", "screenDeleted": "Display screen deleted.", "copyLabel": "{label} copy",
|
|
1230
1245
|
"deleteConfigConfirm": "Delete configuration “{label}”?", "deleteScreenConfirm": "Delete display screen “{name}”?", "common": { "save": "Save", "cancel": "Cancel" },
|
|
1231
1246
|
"status": { "unbound": "Unbound", "active": "Active", "disabled": "Disabled" },
|
|
1232
1247
|
"screenEditor": { "addTitle": "Add display screen", "editTitle": "Edit display screen", "description": "Pair the physical display from POS after creating it.", "name": "Screen name", "nameRequired": "Enter a screen name.", "mode": "Display mode", "unavailable": "Unavailable", "config": "Configuration", "noConfig": "No configuration", "status": "Status", "filters": "Pickup order filters", "filtersDescription": "Leave every field empty to show all pickup orders.", "exactSlots": "Exact pickup numbers", "slotPatterns": "Pickup number patterns (advanced)", "slotPatternsPlaceholder": "For example: P.*", "slotPatternsHelp": "RE2 regular expressions matched against the complete pickup number.", "invalidSlotPattern": "“{pattern}” is not a valid supported pickup number pattern.", "fulfillmentTypes": "Order types", "selectFulfillmentTypes": "Select order types", "integrationSources": "Delivery platforms", "selectIntegrationSources": "Select delivery platforms", "commaSeparated": "Comma-separated values", "fulfillmentType": { "DINE_IN": "Dine in", "TAKEAWAY": "Takeaway", "PICKUP": "Pickup", "DELIVERY": "Delivery", "DRIVE_THRU": "Drive-thru" }, "integrationSource": { "GRABFOOD": "GrabFood", "FOODPANDA": "foodpanda", "SHOPEEFOOD": "ShopeeFood", "FEEDME": "FeedMe online ordering" } },
|
|
1233
|
-
"configEditor": { "addTitle": "Add display configuration", "editTitle": "Edit display configuration", "description": "Configure and preview the customer-visible layout.", "basic": "Basic information", "label": "Configuration name", "labelRequired": "Enter a configuration name.", "mode": "Display mode", "availability": "Restaurant availability", "allRestaurants": "Available to all restaurants", "selectedRestaurants": "Only selected restaurants", "restaurantRequired": "Select at least one restaurant.", "presets": "Presets", "classicPreset": "Classic board", "classicPresetDescription": "Full-width standard board.", "sidePreset": "Side visual", "sidePresetDescription": "Board with a decorative side panel.", "colors": "Color overrides", "primaryColor": "Primary", "accentColor": "Accent", "onPrimaryColor": "Text on primary", "textPrimaryColor": "Primary text", "textSecondaryColor": "Secondary text", "useBrandColor": "Use brand color", "brandColor": "Brand color", "displaySettings": "Pickup display settings", "groupBy": "Group orders by", "groupByType": "Order type", "groupByStatus": "Order status", "statusLayout": "Status board layout", "horizontal": "Horizontal", "vertical": "Vertical", "statusColumns": "Status columns", "slidingSeconds": "Slide interval (seconds)", "showCurrentOrder": "Show latest ready order", "showDeliveryIcons": "Show delivery icons", "showOrderCount": "Show order count", "showEstimatedTime": "Show estimated time", "showOrderTypeTabs": "Show order type tabs", "showProgressBar": "Show pagination progress", "queueSettings": "Queue display settings", "paxBandSource": "Pax band source", "queueSettingsSource": "Queue settings", "customSource": "Custom", "calledSlots": "Called entries shown", "showWaitingCount": "Show waiting count", "layoutSettings": "Layout settings", "backgroundImage": "Background image", "sidePanelImage": "Side panel image", "boardWidth": "Board width", "boardAlign": "Board alignment", "alignStart": "Start", "alignCenter": "Center", "alignEnd": "End", "chooseImage": "Choose image", "upload": "Upload", "uploading": "Uploading…", "uploadFailed": "Image upload failed.", "disable": "Disable", "disabled": "Disabled", "livePreview": "Live preview", "previewDescription": "Rendered live by the same
|
|
1248
|
+
"configEditor": { "addTitle": "Add display configuration", "editTitle": "Edit display configuration", "description": "Configure and preview the customer-visible layout.", "basic": "Basic information", "label": "Configuration name", "labelRequired": "Enter a configuration name.", "mode": "Display mode", "availability": "Restaurant availability", "allRestaurants": "Available to all restaurants", "selectedRestaurants": "Only selected restaurants", "restaurantRequired": "Select at least one restaurant.", "presets": "Presets", "classicPreset": "Classic board", "classicPresetDescription": "Full-width standard board.", "sidePreset": "Side visual", "sidePresetDescription": "Board with a decorative side panel.", "colors": "Color overrides", "primaryColor": "Primary", "accentColor": "Accent", "onPrimaryColor": "Text on primary", "textPrimaryColor": "Primary text", "textSecondaryColor": "Secondary text", "useBrandColor": "Use brand color", "brandColor": "Brand color", "displaySettings": "Pickup display settings", "groupBy": "Group orders by", "groupByType": "Order type", "groupByStatus": "Order status", "statusLayout": "Status board layout", "horizontal": "Horizontal", "vertical": "Vertical", "statusColumns": "Status columns", "slidingSeconds": "Slide interval (seconds)", "showCurrentOrder": "Show latest ready order", "showDeliveryIcons": "Show delivery icons", "showOrderCount": "Show order count", "showEstimatedTime": "Show estimated time", "showOrderTypeTabs": "Show order type tabs", "showProgressBar": "Show pagination progress", "queueSettings": "Queue display settings", "paxBandSource": "Pax band source", "queueSettingsSource": "Queue settings", "customSource": "Custom", "calledSlots": "Called entries shown", "showWaitingCount": "Show waiting count", "layoutSettings": "Layout settings", "backgroundImage": "Background image", "sidePanelImage": "Side panel image", "boardWidth": "Board width", "boardAlign": "Board alignment", "alignStart": "Start", "alignCenter": "Center", "alignEnd": "End", "chooseImage": "Choose image", "upload": "Upload", "uploading": "Uploading…", "uploadFailed": "Image upload failed.", "disable": "Disable", "disabled": "Disabled", "livePreview": "Live preview", "previewDescription": "Rendered live by the same runtime used on TV Display screens.", "previewLoading": "Loading the TV Display preview…", "previewUnavailable": "The TV Display preview could not be loaded.", "previewRetry": "Retry" }
|
|
1234
1249
|
}
|
|
1235
1250
|
},
|
|
1236
1251
|
"menu": {
|
package/src/locales/th-TH.json
CHANGED
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
"acceptQueue": "จองคิว",
|
|
465
465
|
"acceptQueueSublabel": "ลูกค้าสามารถจองคิวผ่านแอป FeedMe",
|
|
466
466
|
"acceptReservation": "รับการจองโต๊ะ",
|
|
467
|
-
"acceptReservationSublabel": "
|
|
467
|
+
"acceptReservationSublabel": "เปิดให้จองโต๊ะได้ (สำหรับลูกค้า)",
|
|
468
468
|
"acceptReservationRequiresPosVersion": "ต้องใช้ POS {min} ขึ้นไปเป็น Main POS (สาขานี้ใช้ {version})",
|
|
469
469
|
"actiavteFeedmeExpress": "เปิดใช้งาน FeedMe Express",
|
|
470
470
|
"activated": "เปิดใช้งานแล้ว",
|
|
@@ -710,7 +710,8 @@
|
|
|
710
710
|
"kioskDisplay": "อุปกรณ์",
|
|
711
711
|
"licenseSummaryKiosk": "ใบอนุญาตคีออสก์",
|
|
712
712
|
"licenseSummaryTablet": "ใบอนุญาตแท็บเล็ต",
|
|
713
|
-
"
|
|
713
|
+
"licenseSummaryInUse": "ใช้งาน {used} / {total}",
|
|
714
|
+
"licenseSummaryFree": "ว่าง {free}",
|
|
714
715
|
"licenseSummaryNextExpiry": "หมดอายุถัดไป {date}",
|
|
715
716
|
"licenseSummaryNoFree": "ไม่มีใบอนุญาตว่าง ติดต่อ FeedMe เพื่อเพิ่ม",
|
|
716
717
|
"licenseSummaryUnlimited": "ธุรกิจนี้ไม่ต้องใช้ใบอนุญาตในการผูกคีออสก์หรือแท็บเล็ต",
|
|
@@ -1028,6 +1029,7 @@
|
|
|
1028
1029
|
"subItemDisplayModeListView": "โหมดรายการผลิตภัณฑ์เพิ่มเติม",
|
|
1029
1030
|
"hideProductCode": "ซ่อนรหัสสินค้า",
|
|
1030
1031
|
"submitOrderInstruction": "ส่งข้อความสั่งซื้อ",
|
|
1032
|
+
"submitOrderInstructionHint": "แสดงบนคีออสก์หลังจากลูกค้าส่งคำสั่งซื้อ ข้อความชำระที่เคาน์เตอร์จะแสดงบนปุ่มชำระที่เคาน์เตอร์ด้วย เว้นแต่คุณได้เพิ่มวิธีชำระเงินแบบออฟไลน์ในส่วนการชำระเงิน",
|
|
1031
1033
|
"success": "สำเร็จ",
|
|
1032
1034
|
"sunday": "วันอาทิตย์",
|
|
1033
1035
|
"fulfillmentModeSetting": "การตั้งค่าโหมดการให้บริการ",
|
|
@@ -1038,6 +1040,12 @@
|
|
|
1038
1040
|
"tableSelected": "โต๊ะที่เลือก",
|
|
1039
1041
|
"tableService": "บริการโต๊ะ",
|
|
1040
1042
|
"tableServiceSetting": "การตั้งค่าบริการโต๊ะ",
|
|
1043
|
+
"tableNumber": "หมายเลขโต๊ะ",
|
|
1044
|
+
"showHintMessage": "แสดงข้อความแนะนำ",
|
|
1045
|
+
"showHintMessageSublabel": "แสดงข้อความแนะนำสั้น ๆ ใต้แป้นตัวเลขของหน้ากรอกหมายเลขโต๊ะบนคีออสก์ (เฉพาะคีออสก์แนวตั้ง)",
|
|
1046
|
+
"hintMessage": "ข้อความแนะนำ",
|
|
1047
|
+
"customiseHintMessageEmpty": "เว้นภาษาใดว่างไว้ คีออสก์จะใช้ข้อความเดิมของภาษานั้น",
|
|
1048
|
+
"hintMessageOffNote": "คีออสก์จะแสดงข้อความเหล่านี้เมื่อเปิด \"แสดงข้อความแนะนำ\"",
|
|
1041
1049
|
"takeaway": "ซื้อกลับบ้าน",
|
|
1042
1050
|
"takeawayTitle": "ซื้อกลับบ้าน",
|
|
1043
1051
|
"taxExclusive": "พิเศษ",
|
|
@@ -1069,7 +1077,8 @@
|
|
|
1069
1077
|
"kioskLanguageRestrict": "จำกัดภาษาที่แสดง",
|
|
1070
1078
|
"kioskLanguageRestrictSublabel": "ปิด: แสดงทุกภาษาที่รองรับ เปิด: แสดงเฉพาะภาษาที่เลือกด้านล่าง",
|
|
1071
1079
|
"kioskOnly": "คีออสก์",
|
|
1072
|
-
"showingDevices": "แสดง {count} จาก {total}",
|
|
1080
|
+
"showingDevices": "แสดง {count} จาก {total} เครื่อง",
|
|
1081
|
+
"devicesAtOutlet": "อุปกรณ์ในสาขานี้: {total} เครื่อง",
|
|
1073
1082
|
"noDevicesMatch": "ไม่มีอุปกรณ์ตรงกับเกณฑ์การค้นหาของคุณ",
|
|
1074
1083
|
"noDevicesBound": "ผูกคีออสก์หรือแท็บเล็ตเครื่องแรกของคุณด้วยรหัสแบบใช้ครั้งเดียว",
|
|
1075
1084
|
"clickToCopy": "คลิกเพื่อคัดลอก",
|
|
@@ -1128,6 +1137,7 @@
|
|
|
1128
1137
|
"selectPlatform": "เลือกแพลตฟอร์ม",
|
|
1129
1138
|
"platform": "แพลตฟอร์ม",
|
|
1130
1139
|
"displaySystem": {
|
|
1140
|
+
"editor": { "ui": { "queuePremiumRequired": "ต้องสมัครสมาชิก Queue Premium" } },
|
|
1131
1141
|
"legacyOds": {
|
|
1132
1142
|
"addConfiguration": "เพิ่มการกำหนดค่า",
|
|
1133
1143
|
"duplicate": "ทำซ้ำ",
|
|
@@ -1290,23 +1300,28 @@
|
|
|
1290
1300
|
"close": "ปิด",
|
|
1291
1301
|
"save": "บันทึก",
|
|
1292
1302
|
"saved": "บันทึกการตั้งค่าแล้ว",
|
|
1293
|
-
"title": "เทมเพลต ODS
|
|
1294
|
-
"switchToLegacy": "สลับไปที่เทมเพลต ODS
|
|
1295
|
-
"switchToDisplaySystem": "สลับไปที่ Display
|
|
1296
|
-
"openLegacyTab": "จัดการเทมเพลต ODS
|
|
1303
|
+
"title": "เทมเพลต ODS รุ่นเดิม",
|
|
1304
|
+
"switchToLegacy": "สลับไปที่เทมเพลต ODS รุ่นเดิม",
|
|
1305
|
+
"switchToDisplaySystem": "สลับไปที่ TV Display",
|
|
1306
|
+
"openLegacyTab": "จัดการเทมเพลต ODS รุ่นเดิม"
|
|
1297
1307
|
},
|
|
1298
|
-
"title": "Display
|
|
1299
|
-
"description": "
|
|
1308
|
+
"title": "TV Display",
|
|
1309
|
+
"description": "แสดงการเรียกรับสินค้า หมายเลขคิว และโฆษณาบนทีวีที่ติดผนังในร้าน รองรับ POS v7 และ POS v8 เวอร์ชันที่เข้ากันได้",
|
|
1300
1310
|
"descriptionDetail": "Create reusable Pickup and Queue configurations, then assign them to screens.",
|
|
1301
1311
|
"screens": "Screens",
|
|
1302
1312
|
"configurations": "Configurations",
|
|
1303
1313
|
"addScreen": "Add screen",
|
|
1304
1314
|
"addConfiguration": "Add configuration",
|
|
1305
1315
|
"selectRestaurant": "Select a restaurant",
|
|
1306
|
-
"availabilityUnavailable": "
|
|
1307
|
-
"
|
|
1308
|
-
"
|
|
1309
|
-
"
|
|
1316
|
+
"availabilityUnavailable": "ไม่สามารถตรวจสอบได้ว่าร้านนี้รองรับ TV Display หรือไม่ โปรดลองอีกครั้ง",
|
|
1317
|
+
"retryAvailability": "ลองอีกครั้ง",
|
|
1318
|
+
"tvSettingsNotEnabled": "ร้านนี้ยังไม่ได้เปิดใช้งานการตั้งค่า TV Display โปรดติดต่อฝ่ายสนับสนุนเพื่อเปิดใช้งาน",
|
|
1319
|
+
"odsTitle": "เทมเพลต ODS",
|
|
1320
|
+
"odsDescription": "กำหนดเค้าโครงหน้าจอรับอาหาร ODS",
|
|
1321
|
+
"switchToOds": "สลับไปที่ ODS",
|
|
1322
|
+
"posUnsupported": "โปรดอัปเกรด POS หลักของร้านเป็นเวอร์ชันที่รองรับ TV Display",
|
|
1323
|
+
"posUnsupportedVersion": "POS หลักของร้านนี้ใช้เวอร์ชัน {version} ซึ่งยังไม่รองรับ TV Display โปรดอัปเกรดเป็นเวอร์ชันที่รองรับ",
|
|
1324
|
+
"screenLimitReached": "All TV slots for this restaurant are in use, or its subscription includes none. Buy another TV slot, or pause a screen.",
|
|
1310
1325
|
"noScreens": "No display screens yet",
|
|
1311
1326
|
"noScreensDescription": "Add the first display screen for {restaurant}.",
|
|
1312
1327
|
"noConfigurations": "No display configurations yet",
|
|
@@ -1321,7 +1336,7 @@
|
|
|
1321
1336
|
"bundleVersion": "Bundle version",
|
|
1322
1337
|
"schemaVersion": "Schema version",
|
|
1323
1338
|
"updatedAt": "Updated",
|
|
1324
|
-
"loadFailed": "Unable to load Display
|
|
1339
|
+
"loadFailed": "Unable to load TV Display data.",
|
|
1325
1340
|
"saveFailed": "Unable to save the display setting.",
|
|
1326
1341
|
"deleteFailed": "Unable to delete the display setting.",
|
|
1327
1342
|
"configSaved": "Display configuration saved.",
|
|
@@ -1431,9 +1446,9 @@
|
|
|
1431
1446
|
"disable": "Disable",
|
|
1432
1447
|
"disabled": "Disabled",
|
|
1433
1448
|
"livePreview": "Live preview",
|
|
1434
|
-
"previewDescription": "Rendered live by the same
|
|
1435
|
-
"previewLoading": "Loading the Display
|
|
1436
|
-
"previewUnavailable": "The Display
|
|
1449
|
+
"previewDescription": "Rendered live by the same runtime used on TV Display screens.",
|
|
1450
|
+
"previewLoading": "Loading the TV Display preview…",
|
|
1451
|
+
"previewUnavailable": "The TV Display preview could not be loaded.",
|
|
1437
1452
|
"previewRetry": "Retry"
|
|
1438
1453
|
}
|
|
1439
1454
|
},
|
package/src/locales/zh-CN.json
CHANGED
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
"acceptQueue": "接受队列",
|
|
354
354
|
"acceptQueueSublabel": "客户可以在FeedMe应用中使用排队功能",
|
|
355
355
|
"acceptReservation": "接受预订",
|
|
356
|
-
"acceptReservationSublabel": "
|
|
356
|
+
"acceptReservationSublabel": "客户可以预订餐桌。仅 FeedMe 员工可更改此设置",
|
|
357
357
|
"acceptReservationRequiresPosVersion": "主 POS 需为 POS {min} 或更高版本(此门店当前为 {version})",
|
|
358
358
|
"actiavteFeedmeExpress": "激活FeedMe外卖配送",
|
|
359
359
|
"activated": "已激活",
|
|
@@ -599,7 +599,8 @@
|
|
|
599
599
|
"kioskDisplay": "设备",
|
|
600
600
|
"licenseSummaryKiosk": "自助点餐机许可证",
|
|
601
601
|
"licenseSummaryTablet": "平板许可证",
|
|
602
|
-
"
|
|
602
|
+
"licenseSummaryInUse": "已使用 {used} / {total}",
|
|
603
|
+
"licenseSummaryFree": "空闲 {free} 个",
|
|
603
604
|
"licenseSummaryNextExpiry": "最近到期 {date}",
|
|
604
605
|
"licenseSummaryNoFree": "没有空闲许可证。请联系 FeedMe 添加。",
|
|
605
606
|
"licenseSummaryUnlimited": "此商家绑定自助点餐机或平板无需许可证。",
|
|
@@ -919,6 +920,7 @@
|
|
|
919
920
|
"subItemDisplayModeListView": "附加产品列表模式",
|
|
920
921
|
"hideProductCode": "隐藏产品编号",
|
|
921
922
|
"submitOrderInstruction": "提交订单文本",
|
|
923
|
+
"submitOrderInstructionHint": "顾客提交订单后在自助点餐机上显示。柜台付款文本也会显示在柜台付款按钮上,除非您已在付款设置中添加线下付款方式。",
|
|
922
924
|
"success": "成功",
|
|
923
925
|
"sunday": "星期日",
|
|
924
926
|
"fulfillmentModeSetting": "履约模式设置",
|
|
@@ -930,6 +932,12 @@
|
|
|
930
932
|
"tableSelected": "已选择餐桌",
|
|
931
933
|
"tableService": "餐桌服务",
|
|
932
934
|
"tableServiceSetting": "餐桌服务设置",
|
|
935
|
+
"tableNumber": "桌号",
|
|
936
|
+
"showHintMessage": "显示提示信息",
|
|
937
|
+
"showHintMessageSublabel": "在自助点餐机桌号页面的数字键盘下方显示简短提示(仅限竖屏自助点餐机)。",
|
|
938
|
+
"hintMessage": "提示信息",
|
|
939
|
+
"customiseHintMessageEmpty": "某种语言留空,则该语言继续使用点餐机自带的文字。",
|
|
940
|
+
"hintMessageOffNote": "「显示提示信息」开启后,点餐机才会显示这些文字。",
|
|
933
941
|
"takeaway": "外带",
|
|
934
942
|
"takeawayTitle": "外带",
|
|
935
943
|
"taxExclusive": "不含税",
|
|
@@ -961,7 +969,8 @@
|
|
|
961
969
|
"kioskLanguageRestrict": "限制显示的语言",
|
|
962
970
|
"kioskLanguageRestrictSublabel": "关闭:显示所有支持的语言。开启:只显示下面勾选的语言。",
|
|
963
971
|
"kioskOnly": "自助点餐机",
|
|
964
|
-
"showingDevices": "显示 {count} / {total}",
|
|
972
|
+
"showingDevices": "显示 {count} / {total} 台设备",
|
|
973
|
+
"devicesAtOutlet": "此门店设备:{total} 台",
|
|
965
974
|
"noDevicesMatch": "没有设备符合您的搜索条件",
|
|
966
975
|
"noDevicesBound": "使用一次性代码绑定您的第一台自助点餐机或平板。",
|
|
967
976
|
"clickToCopy": "点击复制",
|
|
@@ -1022,6 +1031,24 @@
|
|
|
1022
1031
|
"rateLimitWarning": "每分钟只允许一次请求。请稍后再试",
|
|
1023
1032
|
"displaySystem": {
|
|
1024
1033
|
"legacyOds": {
|
|
1034
|
+
"conversion": {
|
|
1035
|
+
"action": "转换为新版模板",
|
|
1036
|
+
"review": "检查 ODS 转换结果",
|
|
1037
|
+
"existing": "该配置已转换过。当前打开的是已保存的新版模板,不会重复创建。",
|
|
1038
|
+
"binding": "旧模板和旧屏幕保持不变。新版模板在品牌内共享,保存后请绑定到目标屏幕;旧版默认模板和门店分配不会自动应用。",
|
|
1039
|
+
"orientation": "初始采用横屏。如需竖屏,请切换方向并在保存前检查预览。",
|
|
1040
|
+
"completedOrders": "不导入旧屏本机的隐藏已完成订单和语音设置;新版使用 TV Display 的取餐状态与播报逻辑。",
|
|
1041
|
+
"style": "旧版特殊卡片样式替换为标准状态看板,保留分组和颜色。",
|
|
1042
|
+
"typeTabs": "新版看板不支持订单类型标签页,已省略。",
|
|
1043
|
+
"progress": "新版状态看板不显示旧版的翻页进度条。",
|
|
1044
|
+
"statistics": "订单数量和预计时间仅在状态看板中支持,分类看板不显示这些统计。",
|
|
1045
|
+
"boardWidth": "看板会填满所在区域,旧版宽度和对齐采用近似布局;可在预览中调整区域比例。",
|
|
1046
|
+
"footer": "旧版设置图标页脚替换为标准页脚,隐藏页脚取决于门店权益。",
|
|
1047
|
+
"missingImage": "有图片使用不支持或未知的相对地址,已省略;保存前请重新选择图片。",
|
|
1048
|
+
"sizeAdjusted": "部分尺寸或翻页间隔已调整到支持范围,请检查预览。",
|
|
1049
|
+
"currentOrder": "当前叫号显示在取餐看板内,不再叠加于侧栏图片上。",
|
|
1050
|
+
"background": "背景图应用于取餐区域,不再横跨整个屏幕。"
|
|
1051
|
+
},
|
|
1025
1052
|
"addConfiguration": "添加配置",
|
|
1026
1053
|
"duplicate": "复制",
|
|
1027
1054
|
"duplicateConfiguration": "复制配置",
|
|
@@ -1183,10 +1210,11 @@
|
|
|
1183
1210
|
"close": "关闭",
|
|
1184
1211
|
"save": "保存",
|
|
1185
1212
|
"saved": "设置已保存",
|
|
1186
|
-
"title": "ODS
|
|
1187
|
-
"switchToLegacy": "
|
|
1188
|
-
"switchToDisplaySystem": "切换到 Display
|
|
1189
|
-
"openLegacyTab": "
|
|
1213
|
+
"title": "旧版 ODS 模板",
|
|
1214
|
+
"switchToLegacy": "切换到旧版 ODS 模板",
|
|
1215
|
+
"switchToDisplaySystem": "切换到 TV Display",
|
|
1216
|
+
"openLegacyTab": "管理旧版 ODS 模板",
|
|
1217
|
+
"migrationNote": "TV Display 现已支持 POS v7。可通过「转换为新版模板」把 ODS 模板转换为 TV Display 模板。"
|
|
1190
1218
|
},
|
|
1191
1219
|
"addTemplate": "新建显示模板",
|
|
1192
1220
|
"editTemplate": "编辑显示模板",
|
|
@@ -1337,24 +1365,30 @@
|
|
|
1337
1365
|
"incompleteModule": "请先完成{area}里{name}的设置。",
|
|
1338
1366
|
"groupPickup": "取餐",
|
|
1339
1367
|
"groupQueue": "排队",
|
|
1368
|
+
"queuePremiumRequired": "需要订阅 Queue Premium。",
|
|
1340
1369
|
"groupMedia": "媒体",
|
|
1341
1370
|
"groupInfo": "信息"
|
|
1342
1371
|
}
|
|
1343
1372
|
},
|
|
1344
|
-
"title": "Display
|
|
1345
|
-
"description": "
|
|
1373
|
+
"title": "TV Display(门店大屏)",
|
|
1374
|
+
"description": "在挂墙电视大屏上展示取餐叫号、排队号码和广告。兼容版本的 POS v7 和 POS v8 均可使用。",
|
|
1346
1375
|
"descriptionDetail": "创建可复用的 Pickup 与 Queue 配置,并将配置分配给显示屏。",
|
|
1347
1376
|
"screens": "显示屏",
|
|
1348
1377
|
"configurations": "配置",
|
|
1349
1378
|
"addScreen": "添加显示屏",
|
|
1350
1379
|
"addConfiguration": "添加配置",
|
|
1351
1380
|
"selectRestaurant": "选择餐厅",
|
|
1352
|
-
"screensUsed": "{used}/{limit}
|
|
1381
|
+
"screensUsed": "已用 {used}/{limit} 个 TV slot",
|
|
1353
1382
|
"noModulesLicensed": "未开通任何模块",
|
|
1354
|
-
"availabilityUnavailable": "
|
|
1355
|
-
"
|
|
1356
|
-
"
|
|
1357
|
-
"
|
|
1383
|
+
"availabilityUnavailable": "暂时无法确认此门店是否支持 TV Display,请重试。",
|
|
1384
|
+
"retryAvailability": "重试",
|
|
1385
|
+
"tvSettingsNotEnabled": "该门店尚未开放 TV Display 设置入口,请联系支持人员开通。",
|
|
1386
|
+
"odsTitle": "ODS 模板",
|
|
1387
|
+
"odsDescription": "配置 ODS 取餐屏的显示布局。",
|
|
1388
|
+
"switchToOds": "切换到 ODS",
|
|
1389
|
+
"posUnsupported": "请将此门店主 POS 升级到支持 TV Display 的版本。",
|
|
1390
|
+
"posUnsupportedVersion": "此门店主 POS 当前版本为 {version},暂不支持 TV Display,请升级到支持的版本。",
|
|
1391
|
+
"screenLimitReached": "此门店的 TV slot 已全部用完,或当前订阅不包含 TV slot。可以加购 TV slot,或停用一块屏幕。",
|
|
1358
1392
|
"noScreens": "暂无显示屏",
|
|
1359
1393
|
"noScreensDescription": "为 {restaurant} 添加第一个显示屏。",
|
|
1360
1394
|
"noConfigurations": "暂无显示配置",
|
|
@@ -1364,14 +1398,14 @@
|
|
|
1364
1398
|
"online": "在线",
|
|
1365
1399
|
"offline": "离线",
|
|
1366
1400
|
"unlicensed": "未授权",
|
|
1367
|
-
"unlicensedNote": "
|
|
1401
|
+
"unlicensedNote": "超出此门店的 TV slot 数量,POS 会在这块屏上标记未授权。可以加购 TV slot,或停用一块屏幕。",
|
|
1368
1402
|
"deviceId": "设备 ID",
|
|
1369
1403
|
"lastSeen": "最后在线",
|
|
1370
1404
|
"appVersion": "应用版本",
|
|
1371
1405
|
"bundleVersion": "Bundle 版本",
|
|
1372
1406
|
"schemaVersion": "Schema 版本",
|
|
1373
1407
|
"updatedAt": "更新时间",
|
|
1374
|
-
"loadFailed": "无法加载 Display
|
|
1408
|
+
"loadFailed": "无法加载 TV Display 数据。",
|
|
1375
1409
|
"saveFailed": "无法保存显示设置。",
|
|
1376
1410
|
"deleteFailed": "无法删除显示设置。",
|
|
1377
1411
|
"configSaved": "显示配置已保存。",
|
|
@@ -1412,7 +1446,7 @@
|
|
|
1412
1446
|
"calledSlots": "显示已叫号数量", "showWaitingCount": "显示等待数量", "queueBranding": "Queue 品牌图片", "queueHeaderImage": "顶部图片", "queueHeaderImageHint": "建议使用横向长方形图片,展示时不会裁剪。", "layoutSettings": "布局设置", "backgroundImage": "背景图片",
|
|
1413
1447
|
"sidePanelImage": "侧边图片", "boardWidth": "看板宽度", "boardAlign": "看板对齐", "alignStart": "起始位置", "alignCenter": "居中",
|
|
1414
1448
|
"alignEnd": "末端位置", "chooseImage": "选择图片", "upload": "上传", "uploading": "上传中…", "uploadFailed": "图片上传失败。", "disable": "停用", "disabled": "已停用",
|
|
1415
|
-
"livePreview": "实时预览", "previewDescription": "
|
|
1449
|
+
"livePreview": "实时预览", "previewDescription": "使用与 TV Display 屏幕相同的渲染器实时呈现。", "previewLoading": "正在加载 TV Display 预览…", "previewUnavailable": "无法加载 TV Display 预览。", "previewRetry": "重试"
|
|
1416
1450
|
}
|
|
1417
1451
|
},
|
|
1418
1452
|
"discountRule": {
|
|
@@ -2,7 +2,7 @@ import { DISPLAY_BLOCK_DEFINITIONS } from '@entity'
|
|
|
2
2
|
import { reactive } from 'vue'
|
|
3
3
|
import { describe, expect, it } from 'vitest'
|
|
4
4
|
|
|
5
|
-
import { addArea, addAreaBeside, applyDividerRatio, setLayoutDirection, clearBlock, crossDirection, defaultBlock, defaultDisplayTemplateDraft, displayTemplatePayload, removeArea, setBlock, setDineInCallMode, splitArea, swapBlocks, templateCapabilities, type DisplaySplitDraft,
|
|
5
|
+
import { addArea, addAreaBeside, applyDividerRatio, setLayoutDirection, clearBlock, crossDirection, defaultBlock, defaultDisplayTemplateDraft, displayTemplatePayload, removeArea, setBlock, setDineInCallMode, splitArea, swapBlocks, templateCapabilities, type DisplaySplitDraft, walkZones, zoneFitsMinimum, zoneParent } from './interface'
|
|
6
6
|
|
|
7
7
|
describe('display template drafts', () => {
|
|
8
8
|
it('serializes a reactive editor draft into an API payload', () => {
|
|
@@ -238,34 +238,3 @@ describe('dine-in call mode', () => {
|
|
|
238
238
|
expect(walkZones(draft.root).map((zone) => zone.block?.props.dineInCallMode)).toEqual(['EVERY_ITEM', 'EVERY_ITEM'])
|
|
239
239
|
})
|
|
240
240
|
})
|
|
241
|
-
|
|
242
|
-
describe('unlicensedScreenIds', () => {
|
|
243
|
-
const screen = (id: string, createdAt: string, status = 'ACTIVE') =>
|
|
244
|
-
({ _id: id, createdAt, status }) as never
|
|
245
|
-
|
|
246
|
-
// Mirrors rebuildSnapshotsLocked: oldest first, everything past the limit
|
|
247
|
-
// loses its licence.
|
|
248
|
-
it('takes the licence from the newest screens', () => {
|
|
249
|
-
const screens = [
|
|
250
|
-
screen('new', '2026-08-26T07:11:30.064Z'),
|
|
251
|
-
screen('old', '2026-08-24T14:08:46.632Z')
|
|
252
|
-
]
|
|
253
|
-
expect([...unlicensedScreenIds(screens, 1)]).toEqual(['new'])
|
|
254
|
-
expect([...unlicensedScreenIds(screens, 2)]).toEqual([])
|
|
255
|
-
expect([...unlicensedScreenIds(screens, 0)].sort()).toEqual(['new', 'old'])
|
|
256
|
-
})
|
|
257
|
-
|
|
258
|
-
// A paused screen frees its slot, so it must not consume one here either.
|
|
259
|
-
it('ignores disabled screens', () => {
|
|
260
|
-
const screens = [
|
|
261
|
-
screen('paused', '2026-08-20T00:00:00.000Z', 'DISABLED'),
|
|
262
|
-
screen('live', '2026-08-24T00:00:00.000Z')
|
|
263
|
-
]
|
|
264
|
-
expect([...unlicensedScreenIds(screens, 1)]).toEqual([])
|
|
265
|
-
})
|
|
266
|
-
|
|
267
|
-
it('breaks a createdAt tie by id, the way the host does', () => {
|
|
268
|
-
const screens = [screen('b', 'same'), screen('a', 'same')]
|
|
269
|
-
expect([...unlicensedScreenIds(screens, 1)]).toEqual(['b'])
|
|
270
|
-
})
|
|
271
|
-
})
|
|
@@ -12,6 +12,8 @@ import type {
|
|
|
12
12
|
|
|
13
13
|
export type DisplayTemplate = FdoDisplayTemplate
|
|
14
14
|
export type DisplayScreen = FdoDisplayScreen
|
|
15
|
+
/** GET projection; mutation responses contain only the stored screen fields. */
|
|
16
|
+
export type DisplayScreenWithLicense = DisplayScreen & { licensed: boolean }
|
|
15
17
|
export type CreateDisplayTemplate = FdtoCreateDisplayTemplate
|
|
16
18
|
export type UpdateDisplayTemplate = FdtoUpdateDisplayTemplate
|
|
17
19
|
export type CreateDisplayScreen = FdtoCreateDisplayScreen
|
|
@@ -22,6 +24,11 @@ export type DisplayCapability = DisplayEntitlement['capabilities'][number]
|
|
|
22
24
|
export interface DisplayScreenCapabilities {
|
|
23
25
|
posVersion: string | null
|
|
24
26
|
posV8: boolean
|
|
27
|
+
/** Server-authoritative: can this outlet's POS host Display System at all?
|
|
28
|
+
* Absent on responses from a backend that predates the v7 host gate. */
|
|
29
|
+
posSupported?: boolean
|
|
30
|
+
/** v7 settings rollout; null/absent = unknown. v8 does not require this flag. */
|
|
31
|
+
tvDisplaySettingsEnabled?: boolean | null
|
|
25
32
|
screenLimit: number
|
|
26
33
|
screenUsed: number
|
|
27
34
|
capabilities: DisplayCapability[]
|
|
@@ -74,30 +81,6 @@ function cloneJsonValue<T>(value: T): T {
|
|
|
74
81
|
return JSON.parse(JSON.stringify(value)) as T
|
|
75
82
|
}
|
|
76
83
|
|
|
77
|
-
/**
|
|
78
|
-
* Screens the POS will watermark as unlicensed.
|
|
79
|
-
*
|
|
80
|
-
* Mirrors `rebuildSnapshotsLocked` in
|
|
81
|
-
* `go/packages/display_host/runtime/source.go` — that is the authority, because
|
|
82
|
-
* the POS decides this offline from its own cached entitlement. Kept as one
|
|
83
|
-
* function so the duplicate is in a single place: DISABLED screens do not
|
|
84
|
-
* count, the rest are ordered oldest first, and everything past the limit
|
|
85
|
-
* loses its licence.
|
|
86
|
-
*/
|
|
87
|
-
export function unlicensedScreenIds(
|
|
88
|
-
screens: Pick<DisplayScreen, '_id' | 'status' | 'createdAt'>[],
|
|
89
|
-
screenLimit: number
|
|
90
|
-
): Set<string> {
|
|
91
|
-
const ordered = screens
|
|
92
|
-
.filter((screen) => screen.status !== 'DISABLED')
|
|
93
|
-
.sort((left, right) =>
|
|
94
|
-
left.createdAt === right.createdAt
|
|
95
|
-
? left._id.localeCompare(right._id)
|
|
96
|
-
: (left.createdAt ?? '').localeCompare(right.createdAt ?? '')
|
|
97
|
-
)
|
|
98
|
-
return new Set(ordered.slice(Math.max(0, screenLimit)).map((screen) => screen._id))
|
|
99
|
-
}
|
|
100
|
-
|
|
101
84
|
/** Where a media pick lands, and which kind the picker should offer. Absent
|
|
102
85
|
* mediaKind means image: a zone background and every carousel item render as
|
|
103
86
|
* one. */
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
|
+
import { FdtoCreateDisplayTemplate } from '@entity'
|
|
3
|
+
import { displayTemplatePayload, walkZones } from '../interface'
|
|
4
|
+
import { convertLegacyOds } from './convert'
|
|
5
|
+
import type { OdsConfigEntry } from './interface'
|
|
6
|
+
|
|
7
|
+
const status: OdsConfigEntry = {
|
|
8
|
+
label: 'Side board', isDefault: true,
|
|
9
|
+
layout: { background: null, sidePanel: { url: '/images/feedme-side.png', position: 'left', widthPercent: 33 } },
|
|
10
|
+
display: { groupBy: 'status', statusLayout: 'horizontal', statusSlidingPeriod: 10000, statusColumnCount: 1,
|
|
11
|
+
showProgressBar: false, showDeliveryIcons: true, showOrderTypeTabs: false, showOrderCount: true,
|
|
12
|
+
showEstimatedTime: true, currentOrder: { enabled: false } }
|
|
13
|
+
}
|
|
14
|
+
function valid(draft: Awaited<ReturnType<typeof convertLegacyOds>>['draft']) {
|
|
15
|
+
const result = FdtoCreateDisplayTemplate.safeParse(displayTemplatePayload(draft))
|
|
16
|
+
expect(result.success, JSON.stringify(result)).toBe(true)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
describe('legacy ODS conversion', () => {
|
|
20
|
+
it('converts defaults without mutating the source', async () => {
|
|
21
|
+
const entry: OdsConfigEntry = { isDefault: true, brandkitOverride: { colors: { primary: '#123456' } } }
|
|
22
|
+
const original = JSON.stringify(entry)
|
|
23
|
+
const converted = await convertLegacyOds(entry, 'Default')
|
|
24
|
+
valid(converted.draft)
|
|
25
|
+
expect(walkZones(converted.draft.root)[0].block).toMatchObject({ type: 'pickup.categoryBoard', props: { showCurrentOrder: true, rotateMs: 10000 } })
|
|
26
|
+
expect(converted.draft.theme?.brandkitOverride).toEqual(entry.brandkitOverride)
|
|
27
|
+
expect(JSON.stringify(entry)).toBe(original)
|
|
28
|
+
expect(converted.notices).toContain('binding')
|
|
29
|
+
})
|
|
30
|
+
it('retains side, proportions and status settings with a bundled image', async () => {
|
|
31
|
+
const converted = await convertLegacyOds(status, 'Side')
|
|
32
|
+
valid(converted.draft)
|
|
33
|
+
expect(converted.draft.root).toMatchObject({ kind: 'SPLIT', direction: 'ROW', children: [{ weight: 33 }, { weight: 67 }] })
|
|
34
|
+
const zones = walkZones(converted.draft.root)
|
|
35
|
+
expect(zones[0].block?.props.url).toBe('images/feedme-side.png')
|
|
36
|
+
expect(zones[1].block).toMatchObject({ type: 'pickup.statusBoard', props: { columns: 1, showOrderCount: true, showEstimatedTime: true, showCurrentOrder: false } })
|
|
37
|
+
})
|
|
38
|
+
it('keeps a stable source marker, independent of translated name and property order', async () => {
|
|
39
|
+
const a = await convertLegacyOds(status, 'English name')
|
|
40
|
+
const b = await convertLegacyOds({ display: status.display, layout: status.layout, isDefault: true, label: status.label }, '中文名字')
|
|
41
|
+
expect(a.sourceZoneId).toBe(b.sourceZoneId)
|
|
42
|
+
expect((await convertLegacyOds({ ...status, label: 'Changed' }, 'Changed')).sourceZoneId).not.toBe(a.sourceZoneId)
|
|
43
|
+
expect(a.sourceZoneId).toMatch(/^[a-z0-9][a-z0-9_-]{0,31}$/)
|
|
44
|
+
})
|
|
45
|
+
it('warns about approximations and omits unsafe media', async () => {
|
|
46
|
+
const converted = await convertLegacyOds({ ...status,
|
|
47
|
+
layout: { sidePanel: { url: 'javascript:alert(1)', widthPercent: 99, position: 'right' }, background: null, footerMode: 'settingsIcon', boardWidthPercent: 50 },
|
|
48
|
+
display: { ...status.display!, statusTemplate: 'centered-pill', statusColumnCount: 99, statusSlidingPeriod: -1, showOrderTypeTabs: true }
|
|
49
|
+
}, 'Approximation')
|
|
50
|
+
valid(converted.draft)
|
|
51
|
+
expect(converted.notices).toEqual(expect.arrayContaining(['style','typeTabs','footer','boardWidth','missingImage','sizeAdjusted','completedOrders']))
|
|
52
|
+
expect(walkZones(converted.draft.root)).toHaveLength(1)
|
|
53
|
+
expect(walkZones(converted.draft.root)[0].block?.props).toMatchObject({ columns: 5, rotateMs: 2000 })
|
|
54
|
+
})
|
|
55
|
+
it('keeps a right panel and custom background', async () => {
|
|
56
|
+
const converted = await convertLegacyOds({ ...status, layout: {
|
|
57
|
+
background: { url: 'https://image.feedme.cc/bg.png', size: 'contain', position: 'top' },
|
|
58
|
+
sidePanel: { url: 'https://image.feedme.cc/side.png', widthPercent: 20, position: 'right', objectFit: 'contain' }
|
|
59
|
+
} }, 'Right')
|
|
60
|
+
valid(converted.draft)
|
|
61
|
+
const zones = walkZones(converted.draft.root)
|
|
62
|
+
expect(zones[0].background).toEqual({ url: 'https://image.feedme.cc/bg.png', size: 'contain', position: 'top' })
|
|
63
|
+
expect(zones[1].block?.props).toMatchObject({ url: 'https://image.feedme.cc/side.png', objectFit: 'CONTAIN' })
|
|
64
|
+
})
|
|
65
|
+
})
|