@spree/dashboard-core 6.0.0 → 6.0.2
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/package.json +11 -6
- package/src/api-client.ts +4 -0
- package/src/components/app-shell.tsx +4 -0
- package/src/components/app-sidebar.tsx +7 -1
- package/src/components/invitation-acceptance.tsx +411 -0
- package/src/components/record-metadata.tsx +118 -0
- package/src/components/table-toolbar.tsx +384 -122
- package/src/hooks/use-global-search.ts +1 -1
- package/src/index.ts +2 -0
- package/src/lib/search-registry.ts +1 -1
- package/src/locales/ar.json +31 -1
- package/src/locales/de.json +31 -1
- package/src/locales/en.json +31 -1
- package/src/locales/es.json +31 -1
- package/src/locales/fr.json +31 -1
- package/src/locales/ja.json +2122 -0
- package/src/locales/pl.json +31 -1
- package/src/locales/vi.json +2122 -0
- package/src/locales/zh-CN.json +31 -1
- package/src/pages/package-types.tsx +2 -0
- package/src/pages/stock-locations.tsx +2 -0
package/src/locales/zh-CN.json
CHANGED
|
@@ -366,9 +366,12 @@
|
|
|
366
366
|
"video_title": "视频预览"
|
|
367
367
|
},
|
|
368
368
|
"metadata_card": {
|
|
369
|
+
"copy_reference": "复制 {{system}} 键",
|
|
369
370
|
"empty_description": "应用和集成会自动填充此内容。",
|
|
370
371
|
"empty_title": "暂无元数据",
|
|
371
|
-
"
|
|
372
|
+
"external_references": "外部引用",
|
|
373
|
+
"title": "元数据",
|
|
374
|
+
"view": "查看元数据"
|
|
372
375
|
},
|
|
373
376
|
"page_header": {
|
|
374
377
|
"copy_id": "复制 ID",
|
|
@@ -421,6 +424,7 @@
|
|
|
421
424
|
},
|
|
422
425
|
"table_toolbar": {
|
|
423
426
|
"add_filter": "添加筛选条件",
|
|
427
|
+
"any_field": "任意{{field}}",
|
|
424
428
|
"ascending": "升序",
|
|
425
429
|
"clear_all": "全部清除",
|
|
426
430
|
"columns_tooltip": "列",
|
|
@@ -441,6 +445,8 @@
|
|
|
441
445
|
"filter_select_placeholder": "选择…",
|
|
442
446
|
"filter_text_placeholder": "筛选…",
|
|
443
447
|
"filter_to_placeholder": "筛选至…",
|
|
448
|
+
"n_selected": "已选 {{count}} 项",
|
|
449
|
+
"only": "仅此项",
|
|
444
450
|
"operators": {
|
|
445
451
|
"after": "晚于",
|
|
446
452
|
"before": "早于",
|
|
@@ -466,6 +472,7 @@
|
|
|
466
472
|
"remove_filter": "移除筛选",
|
|
467
473
|
"reset_to_default": "重置为默认值",
|
|
468
474
|
"search_placeholder": "搜索…",
|
|
475
|
+
"select_all": "全选",
|
|
469
476
|
"sort_by": "排序方式",
|
|
470
477
|
"sort_tooltip": "排序",
|
|
471
478
|
"visible_columns": "可见列"
|
|
@@ -1036,6 +1043,29 @@
|
|
|
1036
1043
|
},
|
|
1037
1044
|
"wizard_title": "导入"
|
|
1038
1045
|
},
|
|
1046
|
+
"invitation": {
|
|
1047
|
+
"accept": "接受邀请",
|
|
1048
|
+
"accepting": "正在接受…",
|
|
1049
|
+
"could_not_accept": "无法接受邀请",
|
|
1050
|
+
"create_and_accept": "创建账户并接受",
|
|
1051
|
+
"create_to_accept": "。创建账户以接受。",
|
|
1052
|
+
"generic_error_message": "出现了一些问题。请重试。",
|
|
1053
|
+
"generic_error_title": "无法加载邀请",
|
|
1054
|
+
"invited_as_role": ",担任 {{role}}",
|
|
1055
|
+
"invited_by": "{{email}} 邀请了你",
|
|
1056
|
+
"invited_generic": "你已被邀请",
|
|
1057
|
+
"join_store": "加入 {{store}}",
|
|
1058
|
+
"loading": "正在加载邀请…",
|
|
1059
|
+
"missing_token_message": "此链接似乎不完整。请让邀请你的人重新发送一次。",
|
|
1060
|
+
"missing_token_title": "缺少邀请令牌",
|
|
1061
|
+
"not_found_message": "此邀请已过期、被撤销或已被接受。请让邀请人发送一个新的邀请。",
|
|
1062
|
+
"not_found_title": "未找到邀请",
|
|
1063
|
+
"password_confirmation": "确认密码",
|
|
1064
|
+
"sign_in_and_accept": "登录并接受",
|
|
1065
|
+
"sign_in_to_accept": "。登录以接受。",
|
|
1066
|
+
"signed_in_as_another_account": "你当前以 {{email}} 登录,但此邀请发送给 {{invitee}}。请退出登录后再接受。",
|
|
1067
|
+
"signed_in_as_invitee": "。你当前以 {{email}} 登录。"
|
|
1068
|
+
},
|
|
1039
1069
|
"media_picker": {
|
|
1040
1070
|
"confirm": "添加所选",
|
|
1041
1071
|
"description": "从媒体库中选择文件,或上传新文件。",
|
|
@@ -32,6 +32,7 @@ import { useTranslation } from 'react-i18next'
|
|
|
32
32
|
import { z } from 'zod/v4'
|
|
33
33
|
import type { PanelPackageType } from '../api-client'
|
|
34
34
|
import { Can } from '../components/can'
|
|
35
|
+
import { RecordMetadataSection } from '../components/record-metadata'
|
|
35
36
|
import { ResourceTable, resourceSearchSchema } from '../components/resource-table'
|
|
36
37
|
import { HostFormSlot } from '../components/slot'
|
|
37
38
|
import {
|
|
@@ -338,6 +339,7 @@ function EditPackageTypeSheet({
|
|
|
338
339
|
name={`${formKey}.form_fields`}
|
|
339
340
|
context={{ packageType, mode: 'edit' }}
|
|
340
341
|
/>
|
|
342
|
+
<RecordMetadataSection metadata={packageType?.metadata} />
|
|
341
343
|
</div>
|
|
342
344
|
<SheetFooter>
|
|
343
345
|
<Button type="submit" disabled={updateMutation.isPending}>
|
|
@@ -33,6 +33,7 @@ import type { PanelStockLocation } from '../api-client'
|
|
|
33
33
|
import { Can } from '../components/can'
|
|
34
34
|
import { CountryCombobox } from '../components/country-combobox'
|
|
35
35
|
import { StateCombobox, useCountryStates } from '../components/country-state-fields'
|
|
36
|
+
import { RecordMetadataSection } from '../components/record-metadata'
|
|
36
37
|
import { ResourceTable, resourceSearchSchema } from '../components/resource-table'
|
|
37
38
|
import { HostFormSlot } from '../components/slot'
|
|
38
39
|
import {
|
|
@@ -341,6 +342,7 @@ function EditStockLocationSheet({
|
|
|
341
342
|
/>
|
|
342
343
|
{StockLevelsPanel && <StockLevelsPanel stockLocationId={id} />}
|
|
343
344
|
{ActivityPanel && <ActivityPanel stockLocationId={id} />}
|
|
345
|
+
<RecordMetadataSection externalReferences={stockLocation?.external_references} />
|
|
344
346
|
</div>
|
|
345
347
|
<SheetFooter>
|
|
346
348
|
<Button
|