@steedos/webapp 3.0.12 → 3.0.13-beta.10
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-CvIcQick.js";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -41648,6 +41648,7 @@ const HEADER_USER_AGENT = "User-Agent";
|
|
|
41648
41648
|
const HEADER_X_CLUSTER_ID = "X-Cluster-Id";
|
|
41649
41649
|
const HEADER_X_CSRF_TOKEN = "X-CSRF-Token";
|
|
41650
41650
|
const HEADER_X_VERSION_ID = "X-Version-Id";
|
|
41651
|
+
window.sha256 = sha256;
|
|
41651
41652
|
let Client4$1 = class Client42 {
|
|
41652
41653
|
LOGIN_TOKEN_KEY = "Meteor.loginToken";
|
|
41653
41654
|
LOGIN_TOKEN_EXPIRES_KEY = "Meteor.loginTokenExpires";
|
|
@@ -42153,6 +42154,7 @@ function requireLodash() {
|
|
|
42153
42154
|
return lodash$1;
|
|
42154
42155
|
}
|
|
42155
42156
|
var lodashExports = requireLodash();
|
|
42157
|
+
const _$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports);
|
|
42156
42158
|
var Action;
|
|
42157
42159
|
(function(Action2) {
|
|
42158
42160
|
Action2["Pop"] = "POP";
|
|
@@ -50072,7 +50074,7 @@ const Home = () => {
|
|
|
50072
50074
|
goResetPassword(navigate);
|
|
50073
50075
|
} else {
|
|
50074
50076
|
let redirect_uri = new URLSearchParams(location ? location.search : "").get("redirect_uri");
|
|
50075
|
-
if (redirect_uri) {
|
|
50077
|
+
if (redirect_uri && redirect_uri != "/update-password") {
|
|
50076
50078
|
window.location.href = redirect_uri;
|
|
50077
50079
|
} else {
|
|
50078
50080
|
window.location.href = "/app";
|
|
@@ -51675,6 +51677,14 @@ const pcInitJumtoFirstAppFirstTabScript = (payload, response, api2, context) =>
|
|
|
51675
51677
|
let app_items = payload;
|
|
51676
51678
|
if (app_items && app_items.length > 0) {
|
|
51677
51679
|
let firstApp = app_items[0];
|
|
51680
|
+
if (firstApp && firstApp.default_tab) {
|
|
51681
|
+
if (typeof firstApp.default_tab === "object" && firstApp.default_tab.path) {
|
|
51682
|
+
window.location.href = firstApp.default_tab.path;
|
|
51683
|
+
} else {
|
|
51684
|
+
window.location.href = `/app/${firstApp.id}/${firstApp.default_tab}`;
|
|
51685
|
+
}
|
|
51686
|
+
return payload;
|
|
51687
|
+
}
|
|
51678
51688
|
if (firstApp && firstApp.children && firstApp.children.length > 0) {
|
|
51679
51689
|
let firstTab = firstApp.children[0];
|
|
51680
51690
|
if (firstTab) {
|
|
@@ -54454,8 +54464,18 @@ const AppView = () => {
|
|
|
54454
54464
|
// Include credentials if needed
|
|
54455
54465
|
);
|
|
54456
54466
|
const data2 = response.data;
|
|
54467
|
+
if (data2?.default_tab) {
|
|
54468
|
+
if (typeof data2.default_tab === "object" && data2.default_tab !== null && data2.default_tab.path) {
|
|
54469
|
+
navigate(data2.default_tab.path);
|
|
54470
|
+
return;
|
|
54471
|
+
}
|
|
54472
|
+
if (typeof data2.default_tab === "string") {
|
|
54473
|
+
navigate(`/app/${appId}/${data2.default_tab}`);
|
|
54474
|
+
return;
|
|
54475
|
+
}
|
|
54476
|
+
}
|
|
54457
54477
|
if (data2?.children.length > 0 && data2.children[0].path) {
|
|
54458
|
-
const children = _.sortBy(data2.children, ["index"]);
|
|
54478
|
+
const children = _$1.sortBy(data2.children, ["index"]);
|
|
54459
54479
|
navigate(children[0].path);
|
|
54460
54480
|
}
|
|
54461
54481
|
} catch (error) {
|
|
@@ -54715,7 +54735,7 @@ const AppHeader = () => {
|
|
|
54715
54735
|
if (searchParams.get("embed") == "1") {
|
|
54716
54736
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
54717
54737
|
}
|
|
54718
|
-
let logoSrc = "";
|
|
54738
|
+
let logoSrc = "/images/logo.svg";
|
|
54719
54739
|
if (Builder$1.settings?.context?.user?.space?.avatar) {
|
|
54720
54740
|
logoSrc = "/api/v6/files/cfs.avatars.filerecord/" + Builder$1.settings.context.user.space.avatar;
|
|
54721
54741
|
}
|
|
@@ -54876,7 +54896,7 @@ const ObjectListView = () => {
|
|
|
54876
54896
|
}
|
|
54877
54897
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(AmisRender, { schema: {
|
|
54878
54898
|
type: "page",
|
|
54879
|
-
bodyClassName: "p-0",
|
|
54899
|
+
bodyClassName: "p-0 h-full",
|
|
54880
54900
|
body: {
|
|
54881
54901
|
"type": "steedos-page-object-control",
|
|
54882
54902
|
"name": "steedosPageObjectControl",
|
|
@@ -81223,7 +81243,7 @@ if (typeof ActiveXObject === "function") {
|
|
|
81223
81243
|
if (typeof fetchApi !== "function") fetchApi = void 0;
|
|
81224
81244
|
if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
|
|
81225
81245
|
try {
|
|
81226
|
-
__vitePreload(() => import("./browser-ponyfill-
|
|
81246
|
+
__vitePreload(() => import("./browser-ponyfill-D7PrWfUr.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
|
|
81227
81247
|
fetchApi = mod.default;
|
|
81228
81248
|
}).catch(function() {
|
|
81229
81249
|
});
|
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-CvIcQick.js"></script>
|
|
69
69
|
<link rel="stylesheet" crossorigin href="/assets/index-Cd9-p_c2.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.
|
|
3
|
+
"version": "3.0.13-beta.10",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
77
|
"repository": "https://github.com/steedos/app-builder/tree/master/apps/accounts",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "b6f8a743ef0d070a7218413e301c427479e64284",
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@steedos-widgets/amis-object": "^6.10.51",
|
|
81
81
|
"autoprefixer": "^10.4.23"
|