@steedos/webapp 3.0.13-beta.52 → 3.0.13-beta.53
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-
|
|
1
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index-DhRjHscv.js";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -51576,7 +51576,17 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51576
51576
|
const location2 = useLocation();
|
|
51577
51577
|
if (!window.goBack) {
|
|
51578
51578
|
window.goBack = () => {
|
|
51579
|
-
|
|
51579
|
+
if (window.history.length <= 2) {
|
|
51580
|
+
const pathname = window.location.pathname;
|
|
51581
|
+
const match2 = pathname.match(/^(\/app\/[^/]+\/[^/]+)(\/view\/.*)?$/);
|
|
51582
|
+
if (match2 && match2[2]) {
|
|
51583
|
+
navigate(match2[1]);
|
|
51584
|
+
} else {
|
|
51585
|
+
navigate(-1);
|
|
51586
|
+
}
|
|
51587
|
+
} else {
|
|
51588
|
+
navigate(-1);
|
|
51589
|
+
}
|
|
51580
51590
|
};
|
|
51581
51591
|
}
|
|
51582
51592
|
if (!window.navigate) {
|
|
@@ -54842,12 +54852,12 @@ const AppHeader = () => {
|
|
|
54842
54852
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
54843
54853
|
}
|
|
54844
54854
|
let logoSrc = "/images/logo.svg";
|
|
54845
|
-
if (Builder$1.settings?.context?.user?.space?.avatar) {
|
|
54855
|
+
if (Builder$1.settings?.platform?.is_oem && Builder$1.settings?.context?.user?.space?.avatar) {
|
|
54846
54856
|
logoSrc = "/api/v6/files/cfs.avatars.filerecord/" + Builder$1.settings.context.user.space.avatar;
|
|
54847
54857
|
}
|
|
54848
54858
|
const faviconLink = document.querySelector('link[rel*="icon"], link[rel*="shortcut"]');
|
|
54849
54859
|
let favicon = "/images/logo.svg";
|
|
54850
|
-
if (Builder$1.settings?.context?.user?.space?.favicon) {
|
|
54860
|
+
if (Builder$1.settings?.platform?.is_oem && Builder$1.settings?.context?.user?.space?.favicon) {
|
|
54851
54861
|
favicon = "/api/v6/files/cfs.avatars.filerecord/" + Builder$1.settings.context.user.space.favicon;
|
|
54852
54862
|
}
|
|
54853
54863
|
if (faviconLink) {
|
|
@@ -80646,12 +80656,6 @@ const Root = (props) => {
|
|
|
80646
80656
|
const loadMeAndConfig = async () => {
|
|
80647
80657
|
try {
|
|
80648
80658
|
await props.actions.loadSettings();
|
|
80649
|
-
if (props.tenant && props.tenant.favicon_url) {
|
|
80650
|
-
const faviconLink = document.querySelector('link[rel="shortcut icon"]');
|
|
80651
|
-
if (faviconLink) {
|
|
80652
|
-
faviconLink.href = props.tenant.favicon_url;
|
|
80653
|
-
}
|
|
80654
|
-
}
|
|
80655
80659
|
await props.actions.loadMe();
|
|
80656
80660
|
setConfigLoaded(true);
|
|
80657
80661
|
} catch (error) {
|
|
@@ -80660,6 +80664,14 @@ const Root = (props) => {
|
|
|
80660
80664
|
};
|
|
80661
80665
|
loadMeAndConfig();
|
|
80662
80666
|
}, []);
|
|
80667
|
+
reactExports.useEffect(() => {
|
|
80668
|
+
if (props.tenant && props.tenant.favicon_url) {
|
|
80669
|
+
const faviconLink = document.querySelector('link[rel="shortcut icon"]');
|
|
80670
|
+
if (faviconLink) {
|
|
80671
|
+
faviconLink.href = props.tenant.favicon_url;
|
|
80672
|
+
}
|
|
80673
|
+
}
|
|
80674
|
+
}, [props.tenant]);
|
|
80663
80675
|
if (!configLoaded) {
|
|
80664
80676
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {});
|
|
80665
80677
|
}
|
|
@@ -81349,7 +81361,7 @@ if (typeof ActiveXObject === "function") {
|
|
|
81349
81361
|
if (typeof fetchApi !== "function") fetchApi = void 0;
|
|
81350
81362
|
if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
|
|
81351
81363
|
try {
|
|
81352
|
-
__vitePreload(() => import("./browser-ponyfill-
|
|
81364
|
+
__vitePreload(() => import("./browser-ponyfill-Ca3uEOEj.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
|
|
81353
81365
|
fetchApi = mod.default;
|
|
81354
81366
|
}).catch(function() {
|
|
81355
81367
|
});
|
package/dist/index.html
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/themes/antd.css">
|
|
66
66
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/lib/helper.css">
|
|
67
67
|
<link rel="stylesheet" href="https://unpkg.com/@steedos-widgets/amis@6.3.0-patch.8/sdk/iconfont.css">
|
|
68
|
-
<script type="module" crossorigin src="/assets/index-
|
|
68
|
+
<script type="module" crossorigin src="/assets/index-DhRjHscv.js"></script>
|
|
69
69
|
<link rel="stylesheet" crossorigin href="/assets/index-Np5NzHbA.css">
|
|
70
70
|
</head>
|
|
71
71
|
<body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/webapp",
|
|
3
|
-
"version": "3.0.13-beta.
|
|
3
|
+
"version": "3.0.13-beta.53",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "844dd277937846614fb95677b71092e7ade35556",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@steedos-widgets/amis-object": "^6.10.52-beta.
|
|
80
|
+
"@steedos-widgets/amis-object": "^6.10.52-beta.37",
|
|
81
81
|
"autoprefixer": "^10.4.23"
|
|
82
82
|
}
|
|
83
83
|
}
|