@nocobase/client 0.14.0-alpha.2 → 0.14.0-alpha.3
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/es/index.mjs +5 -1
- package/lib/index.js +5 -1
- package/package.json +5 -5
package/es/index.mjs
CHANGED
|
@@ -28274,6 +28274,10 @@ const getWebSocketURL = () => {
|
|
|
28274
28274
|
const subApp = getSubAppName();
|
|
28275
28275
|
const queryString = subApp ? `?__appName=${subApp}` : "";
|
|
28276
28276
|
if (process.env.WEBSOCKET_URL) {
|
|
28277
|
+
const url2 = new URL(process.env.WEBSOCKET_URL);
|
|
28278
|
+
if (url2.hostname === "localhost") {
|
|
28279
|
+
return `${location.protocol === "https:" ? "wss" : "ws"}://${location.hostname}:${url2.port}/ws${queryString}`;
|
|
28280
|
+
}
|
|
28277
28281
|
return `${process.env.WEBSOCKET_URL}${queryString}`;
|
|
28278
28282
|
}
|
|
28279
28283
|
try {
|
|
@@ -56712,7 +56716,7 @@ const TabTitle = observer(
|
|
|
56712
56716
|
const TabBar = ({ item }) => {
|
|
56713
56717
|
const { t } = useTranslation();
|
|
56714
56718
|
const compile2 = useCompile();
|
|
56715
|
-
return /* @__PURE__ */ jsxs(
|
|
56719
|
+
return /* @__PURE__ */ jsxs(Space$1, { children: [
|
|
56716
56720
|
/* @__PURE__ */ jsx(Badge, { color: item.color }),
|
|
56717
56721
|
t(compile2(item.name))
|
|
56718
56722
|
] });
|
package/lib/index.js
CHANGED
|
@@ -28296,6 +28296,10 @@ const getWebSocketURL = () => {
|
|
|
28296
28296
|
const subApp = sdk.getSubAppName();
|
|
28297
28297
|
const queryString = subApp ? `?__appName=${subApp}` : "";
|
|
28298
28298
|
if (process.env.WEBSOCKET_URL) {
|
|
28299
|
+
const url2 = new URL(process.env.WEBSOCKET_URL);
|
|
28300
|
+
if (url2.hostname === "localhost") {
|
|
28301
|
+
return `${location.protocol === "https:" ? "wss" : "ws"}://${location.hostname}:${url2.port}/ws${queryString}`;
|
|
28302
|
+
}
|
|
28299
28303
|
return `${process.env.WEBSOCKET_URL}${queryString}`;
|
|
28300
28304
|
}
|
|
28301
28305
|
try {
|
|
@@ -56734,7 +56738,7 @@ const TabTitle = formilyReact.observer(
|
|
|
56734
56738
|
const TabBar = ({ item }) => {
|
|
56735
56739
|
const { t } = reactI18next.useTranslation();
|
|
56736
56740
|
const compile2 = useCompile();
|
|
56737
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56741
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(antd.Space, { children: [
|
|
56738
56742
|
/* @__PURE__ */ jsxRuntime.jsx(antd.Badge, { color: item.color }),
|
|
56739
56743
|
t(compile2(item.name))
|
|
56740
56744
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/client",
|
|
3
|
-
"version": "0.14.0-alpha.
|
|
3
|
+
"version": "0.14.0-alpha.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@formily/reactive-react": "^2.2.27",
|
|
26
26
|
"@formily/shared": "^2.2.27",
|
|
27
27
|
"@formily/validator": "^2.2.27",
|
|
28
|
-
"@nocobase/evaluators": "0.14.0-alpha.
|
|
29
|
-
"@nocobase/sdk": "0.14.0-alpha.
|
|
30
|
-
"@nocobase/utils": "0.14.0-alpha.
|
|
28
|
+
"@nocobase/evaluators": "0.14.0-alpha.3",
|
|
29
|
+
"@nocobase/sdk": "0.14.0-alpha.3",
|
|
30
|
+
"@nocobase/utils": "0.14.0-alpha.3",
|
|
31
31
|
"@types/requirejs": "^2.1.34",
|
|
32
32
|
"ahooks": "^3.7.2",
|
|
33
33
|
"antd": "5.8.6",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"dumi": "^2.2.0",
|
|
77
77
|
"dumi-theme-nocobase": "^0.2.14"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "535a8c83d37e488a52bd1ad3c75726101081177c"
|
|
80
80
|
}
|