@nocobase/plugin-client 2.3.0-beta.3 → 3.0.0-alpha.11

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.
@@ -10,13 +10,13 @@
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
12
  "react-i18next": "11.18.6",
13
- "@nocobase/client": "2.3.0-beta.3",
13
+ "@nocobase/client": "3.0.0-alpha.11",
14
14
  "antd": "5.24.2",
15
15
  "@ant-design/icons": "5.6.1",
16
16
  "@formily/react": "2.3.7",
17
- "@nocobase/utils": "2.3.0-beta.3",
17
+ "@nocobase/utils": "3.0.0-alpha.11",
18
18
  "lodash": "4.18.1",
19
- "@nocobase/database": "2.3.0-beta.3",
20
- "@nocobase/client-v2": "2.3.0-beta.3",
21
- "@nocobase/server": "2.3.0-beta.3"
19
+ "@nocobase/database": "3.0.0-alpha.11",
20
+ "@nocobase/client-v2": "3.0.0-alpha.11",
21
+ "@nocobase/server": "3.0.0-alpha.11"
22
22
  };
@@ -72,6 +72,8 @@
72
72
  "Advanced type": "Advanced",
73
73
  "No available title fields": "No available title fields",
74
74
  "Please choose a different title field before syncing": "Please choose a different title field before syncing",
75
+ "Other settings": "Other settings",
76
+ "Settings center": "Settings",
75
77
  "Sync selected title field to collection": "Sync selected title field to collection",
76
78
  "Sync title field": "Sync title field",
77
79
  "This will update the collection title field globally. Continue?": "This will update the collection title field globally. Continue?",
@@ -1631,12 +1633,14 @@
1631
1633
  "{{count}} filter items": "{{count}} filter items",
1632
1634
  "{{count}} more items": "{{count}} more items",
1633
1635
  "Compatible": "Compatible",
1634
- "Current settings page is unavailable": "Current settings page is unavailable",
1635
1636
  "Failed to load plugins": "Failed to load plugins",
1636
1637
  "Failed to load system settings": "Failed to load system settings",
1637
1638
  "No settings pages are currently available in Client V2. Settings registered by migrated plugins will appear here automatically.": "No settings pages are currently available in Client V2. Settings registered by migrated plugins will appear here automatically.",
1638
1639
  "No settings pages available": "No settings pages available",
1639
- "The requested settings page does not exist or you do not have permission to access it.": "The requested settings page does not exist or you do not have permission to access it.",
1640
+ "Settings page not found": "Settings page not found",
1641
+ "Switch to a role with access, or contact an administrator to request access.": "Switch to a role with access, or contact an administrator to request access.",
1642
+ "The settings page you requested does not exist or has been removed.": "The settings page you requested does not exist or has been removed.",
1643
+ "Your current role cannot access Settings": "Your current role cannot access Settings",
1640
1644
  "You have not granted permission to use the camera": "You have not granted permission to use the camera",
1641
1645
  "≠": "≠",
1642
1646
  "≤": "≤",
@@ -72,6 +72,8 @@
72
72
  "Advanced type": "高级类型",
73
73
  "No available title fields": "无可用标题字段",
74
74
  "Please choose a different title field before syncing": "请先选择不同的标题字段再同步",
75
+ "Other settings": "其他设置",
76
+ "Settings center": "设置中心",
75
77
  "Sync selected title field to collection": "将所选标题字段同步到数据表",
76
78
  "Sync title field": "同步标题字段",
77
79
  "This will update the collection title field globally. Continue?": "这将全局更新数据表的标题字段。是否继续?",
@@ -797,7 +799,7 @@
797
799
  "Left fixed": "左固定",
798
800
  "Length": "长度",
799
801
  "Less than": "小于",
800
- "License": "许可证",
802
+ "License": "许可协议",
801
803
  "Lime": "青柠",
802
804
  "Limit": "限制",
803
805
  "Line break": "换行",
@@ -1659,24 +1661,30 @@
1659
1661
  "Popup select": "弹窗选择",
1660
1662
  "File picker": "文件选择",
1661
1663
  "Cascader": "级联选择",
1662
- "Subform":"子表单",
1663
- "Edit popup (Add new)":"编辑弹窗(添加)",
1664
- "Are you sure you want to remove it?":"你确定要移除吗?",
1665
- "Create record":"创建记录",
1666
- "Duplicate record":"复制记录",
1667
- "Are you sure you want to duplicate it?":"你确定要复制吗?",
1664
+ "Subform": "子表单",
1665
+ "Edit popup (Add new)": "编辑弹窗(添加)",
1666
+ "Are you sure you want to remove it?": "你确定要移除吗?",
1667
+ "Create record": "创建记录",
1668
+ "Duplicate record": "复制记录",
1669
+ "Are you sure you want to duplicate it?": "你确定要复制吗?",
1668
1670
  "Edit page": "编辑页面",
1669
1671
  "Page title": "页面标题",
1670
1672
  "Document title": "文档标题",
1671
- "Edit popup (Select record)":"编辑弹窗(选择纪录)",
1672
- "Remove record":"移除记录",
1673
- "Block height":"区块高度",
1673
+ "Edit popup (Select record)": "编辑弹窗(选择纪录)",
1674
+ "Remove record": "移除记录",
1675
+ "Block height": "区块高度",
1674
1676
  "Height": "高度",
1675
1677
  "Compatible": "兼容",
1676
- "Current settings page is unavailable": "当前设置页不可用",
1677
1678
  "Failed to load plugins": "加载插件失败",
1678
1679
  "Failed to load system settings": "加载系统设置失败",
1679
1680
  "No settings pages are currently available in Client V2. Settings registered by migrated plugins will appear here automatically.": "当前 Client V2 中还没有可用的设置页。已迁移插件注册的设置页会自动出现在这里。",
1680
1681
  "No settings pages available": "暂无可用设置页",
1681
- "The requested settings page does not exist or you do not have permission to access it.": "请求的设置页不存在,或者你没有访问权限。"
1682
+ "Settings page not found": "设置页面不存在",
1683
+ "Switch to a role with access, or contact an administrator to request access.": "请切换至有权限的角色,或联系管理员获取访问权限。",
1684
+ "The settings page you requested does not exist or has been removed.": "你访问的设置页面不存在或已被移除。",
1685
+ "Your current role cannot access Settings": "当前角色无权访问设置中心",
1686
+ "Applications": "应用",
1687
+ "Search settings": "搜索设置",
1688
+ "Recently visited": "最近访问",
1689
+ "No matching settings": "没有匹配的设置项"
1682
1690
  }
@@ -1 +1 @@
1
- {"name":"cronstrue","title":"cRonstrue","version":"2.47.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"2026-08-22T03:10:38.685Z"}
1
+ {"name":"cronstrue","title":"cRonstrue","version":"2.47.0","description":"Convert cron expressions into human readable descriptions","author":"Brady Holt","license":"MIT","bugs":{"url":"https://github.com/bradymholt/cronstrue/issues"},"homepage":"https://github.com/bradymholt/cronstrue","keywords":["cron","cronjob","crontab","schedule","parser","cron expression","cron description","pretty cron","cron for humans","cron translated","cron english","cron schedule","cron english","cron schedule"],"main":"dist/cronstrue.js","bin":{"cronstrue":"bin/cli.js"},"typings":"dist/cronstrue.d.ts","files":["dist/","locales/","i18n.js","i18n.d.ts"],"repository":{"type":"git","url":"git+https://github.com/bradymholt/cronstrue.git"},"publishConfig":{"access":"public"},"prettier":{"printWidth":120},"devDependencies":{"@types/chai":"^4.2.11","@types/mocha":"^8.0.0","chai":"^4.2.0","handlebars":"^4.7.6","marked":"^4.0.10","mocha":"^10.1.0","pixl-xml":"^1.0.13","prettier":"^2.1.1","terser-webpack-plugin":"^5.3.1","ts-loader":"^9.2.6","ts-node":"^10.5.0","typescript":"^4.6.2","webpack":"^5.69.1","webpack-cli":"^4.9.2","xml2js":"^0.5.0"},"scripts":{"start":"npm run build","build":"npx tsc -p ./src --emitDeclarationOnly","test":"npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"","prepublishOnly":"rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"},"dependencies":{},"_lastModified":"2026-08-23T06:22:52.620Z"}
@@ -22,11 +22,11 @@ export type AppPortalItem = {
22
22
  appName: string;
23
23
  title?: string | null;
24
24
  icon?: string | null;
25
+ portalType?: string | null;
25
26
  routePath: string;
26
27
  layout?: string | null;
27
- defaultPortal?: boolean;
28
28
  };
29
- export type StoredAppPortalItem = Omit<AppPortalItem, 'appName' | 'defaultPortal'>;
29
+ export type StoredAppPortalItem = Omit<AppPortalItem, 'appName'>;
30
30
  export declare function listAppPortals(currentAppName?: string | null): Promise<{
31
31
  apps: AppPortalAppItem[];
32
32
  portals: AppPortalItem[];
@@ -32,24 +32,6 @@ module.exports = __toCommonJS(appPortals_exports);
32
32
  var import_server = require("@nocobase/server");
33
33
  const MAIN_APP_NAME = "main";
34
34
  const MULTI_PORTAL_MANIFEST_NAMESPACE = "multi-portal";
35
- const DEFAULT_PORTALS = [
36
- {
37
- uid: "__default_admin__",
38
- title: "Admin",
39
- icon: "DesktopOutlined",
40
- routePath: "/admin",
41
- layout: "desktop",
42
- defaultPortal: true
43
- },
44
- {
45
- uid: "__default_mobile__",
46
- title: "Mobile",
47
- icon: "MobileOutlined",
48
- routePath: "/mobile",
49
- layout: "mobile",
50
- defaultPortal: true
51
- }
52
- ];
53
35
  function getCname(cname) {
54
36
  const trimmed = cname == null ? void 0 : cname.trim();
55
37
  return trimmed || null;
@@ -91,16 +73,6 @@ function addPortal(portals, item) {
91
73
  }
92
74
  portals.set(getPortalKey(item), item);
93
75
  }
94
- function addDefaultPortals(portals, appNames) {
95
- for (const appName of appNames) {
96
- for (const portal of DEFAULT_PORTALS) {
97
- addPortal(portals, {
98
- ...portal,
99
- appName
100
- });
101
- }
102
- }
103
- }
104
76
  function addStoredPortals(portals, appName, storedPortals) {
105
77
  if (!Array.isArray(storedPortals)) {
106
78
  return;
@@ -114,6 +86,7 @@ function addStoredPortals(portals, appName, storedPortals) {
114
86
  appName,
115
87
  title: typeof portal.title === "string" ? portal.title : null,
116
88
  icon: typeof portal.icon === "string" ? portal.icon : null,
89
+ portalType: typeof portal.portalType === "string" ? portal.portalType : null,
117
90
  routePath: portal.routePath,
118
91
  layout: typeof portal.layout === "string" ? portal.layout : null
119
92
  });
@@ -153,7 +126,6 @@ async function listAppPortals(currentAppName) {
153
126
  Array.from(appNames)
154
127
  );
155
128
  const portals = /* @__PURE__ */ new Map();
156
- addDefaultPortals(portals, appNames);
157
129
  for (const appName of appNames) {
158
130
  addStoredPortals(portals, appName, manifests[appName]);
159
131
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Provides a client interface for the NocoBase server",
7
7
  "description.ru-RU": "Предоставляет клиентский интерфейс для сервера NocoBase",
8
8
  "description.zh-CN": "为 NocoBase 服务端提供客户端界面",
9
- "version": "2.3.0-beta.3",
9
+ "version": "3.0.0-alpha.11",
10
10
  "main": "./dist/server/index.js",
11
11
  "license": "Apache-2.0",
12
12
  "devDependencies": {
@@ -23,5 +23,5 @@
23
23
  "@nocobase/test": "2.x",
24
24
  "@nocobase/utils": "2.x"
25
25
  },
26
- "gitHead": "f8cb6ec699b9aaffcf500fe68a55f1271b8a331c"
26
+ "gitHead": "03574f3a2d10b1ed8469dc7405aa0c4696d6d1d1"
27
27
  }