@steedos/webapp 3.0.13-beta.3 → 3.0.13-beta.32
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-CjbrZ8g0.js";
|
|
2
2
|
function _mergeNamespaces(n, m) {
|
|
3
3
|
for (var i = 0; i < m.length; i++) {
|
|
4
4
|
const e = m[i];
|
|
@@ -1050,6 +1050,10 @@ video {
|
|
|
1050
1050
|
margin-left: 0px !important;
|
|
1051
1051
|
margin-right: 0px !important;
|
|
1052
1052
|
}
|
|
1053
|
+
.-mx-2 {
|
|
1054
|
+
margin-left: -0.5rem;
|
|
1055
|
+
margin-right: -0.5rem;
|
|
1056
|
+
}
|
|
1053
1057
|
.mx-0 {
|
|
1054
1058
|
margin-left: 0px;
|
|
1055
1059
|
margin-right: 0px;
|
|
@@ -1158,6 +1162,9 @@ video {
|
|
|
1158
1162
|
.mt-1 {
|
|
1159
1163
|
margin-top: 0.25rem;
|
|
1160
1164
|
}
|
|
1165
|
+
.mt-1\.5 {
|
|
1166
|
+
margin-top: 0.375rem;
|
|
1167
|
+
}
|
|
1161
1168
|
.mt-2 {
|
|
1162
1169
|
margin-top: 0.5rem;
|
|
1163
1170
|
}
|
|
@@ -1170,6 +1177,9 @@ video {
|
|
|
1170
1177
|
.mt-6 {
|
|
1171
1178
|
margin-top: 1.5rem;
|
|
1172
1179
|
}
|
|
1180
|
+
.mt-8 {
|
|
1181
|
+
margin-top: 2rem;
|
|
1182
|
+
}
|
|
1173
1183
|
.mt-\[64px\] {
|
|
1174
1184
|
margin-top: 64px;
|
|
1175
1185
|
}
|
|
@@ -1242,6 +1252,9 @@ video {
|
|
|
1242
1252
|
.h-20 {
|
|
1243
1253
|
height: 5rem;
|
|
1244
1254
|
}
|
|
1255
|
+
.h-3 {
|
|
1256
|
+
height: 0.75rem;
|
|
1257
|
+
}
|
|
1245
1258
|
.h-3\.5 {
|
|
1246
1259
|
height: 0.875rem;
|
|
1247
1260
|
}
|
|
@@ -1290,6 +1303,9 @@ video {
|
|
|
1290
1303
|
.max-h-96 {
|
|
1291
1304
|
max-height: 24rem;
|
|
1292
1305
|
}
|
|
1306
|
+
.max-h-full {
|
|
1307
|
+
max-height: 100%;
|
|
1308
|
+
}
|
|
1293
1309
|
.min-h-8 {
|
|
1294
1310
|
min-height: 2rem;
|
|
1295
1311
|
}
|
|
@@ -1314,9 +1330,15 @@ video {
|
|
|
1314
1330
|
.w-14 {
|
|
1315
1331
|
width: 3.5rem;
|
|
1316
1332
|
}
|
|
1333
|
+
.w-16 {
|
|
1334
|
+
width: 4rem;
|
|
1335
|
+
}
|
|
1317
1336
|
.w-20 {
|
|
1318
1337
|
width: 5rem;
|
|
1319
1338
|
}
|
|
1339
|
+
.w-3 {
|
|
1340
|
+
width: 0.75rem;
|
|
1341
|
+
}
|
|
1320
1342
|
.w-3\.5 {
|
|
1321
1343
|
width: 0.875rem;
|
|
1322
1344
|
}
|
|
@@ -1422,6 +1444,9 @@ video {
|
|
|
1422
1444
|
.flex-shrink-0 {
|
|
1423
1445
|
flex-shrink: 0;
|
|
1424
1446
|
}
|
|
1447
|
+
.shrink {
|
|
1448
|
+
flex-shrink: 1;
|
|
1449
|
+
}
|
|
1425
1450
|
.shrink-0 {
|
|
1426
1451
|
flex-shrink: 0;
|
|
1427
1452
|
}
|
|
@@ -1431,6 +1456,9 @@ video {
|
|
|
1431
1456
|
.grow {
|
|
1432
1457
|
flex-grow: 1;
|
|
1433
1458
|
}
|
|
1459
|
+
.border-collapse {
|
|
1460
|
+
border-collapse: collapse;
|
|
1461
|
+
}
|
|
1434
1462
|
.origin-top-right {
|
|
1435
1463
|
transform-origin: top right;
|
|
1436
1464
|
}
|
|
@@ -1461,6 +1489,9 @@ video {
|
|
|
1461
1489
|
-moz-user-select: none;
|
|
1462
1490
|
user-select: none;
|
|
1463
1491
|
}
|
|
1492
|
+
.resize {
|
|
1493
|
+
resize: both;
|
|
1494
|
+
}
|
|
1464
1495
|
.appearance-none {
|
|
1465
1496
|
-webkit-appearance: none;
|
|
1466
1497
|
-moz-appearance: none;
|
|
@@ -1626,6 +1657,10 @@ video {
|
|
|
1626
1657
|
.rounded-xl {
|
|
1627
1658
|
border-radius: 0.75rem;
|
|
1628
1659
|
}
|
|
1660
|
+
.rounded-b {
|
|
1661
|
+
border-bottom-right-radius: 0.25rem;
|
|
1662
|
+
border-bottom-left-radius: 0.25rem;
|
|
1663
|
+
}
|
|
1629
1664
|
.rounded-b-md {
|
|
1630
1665
|
border-bottom-right-radius: 0.375rem;
|
|
1631
1666
|
border-bottom-left-radius: 0.375rem;
|
|
@@ -1689,6 +1724,14 @@ video {
|
|
|
1689
1724
|
.border-none {
|
|
1690
1725
|
border-style: none;
|
|
1691
1726
|
}
|
|
1727
|
+
.border-black {
|
|
1728
|
+
--tw-border-opacity: 1;
|
|
1729
|
+
border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));
|
|
1730
|
+
}
|
|
1731
|
+
.border-blue-200 {
|
|
1732
|
+
--tw-border-opacity: 1;
|
|
1733
|
+
border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
|
|
1734
|
+
}
|
|
1692
1735
|
.border-blue-400 {
|
|
1693
1736
|
--tw-border-opacity: 1;
|
|
1694
1737
|
border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
|
|
@@ -1721,6 +1764,18 @@ video {
|
|
|
1721
1764
|
--tw-border-opacity: 1;
|
|
1722
1765
|
border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
|
|
1723
1766
|
}
|
|
1767
|
+
.border-green-200 {
|
|
1768
|
+
--tw-border-opacity: 1;
|
|
1769
|
+
border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
|
|
1770
|
+
}
|
|
1771
|
+
.border-red-200 {
|
|
1772
|
+
--tw-border-opacity: 1;
|
|
1773
|
+
border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
|
|
1774
|
+
}
|
|
1775
|
+
.border-red-500 {
|
|
1776
|
+
--tw-border-opacity: 1;
|
|
1777
|
+
border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
|
|
1778
|
+
}
|
|
1724
1779
|
.border-slate-200 {
|
|
1725
1780
|
--tw-border-opacity: 1;
|
|
1726
1781
|
border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
|
|
@@ -1786,6 +1841,10 @@ video {
|
|
|
1786
1841
|
--tw-bg-opacity: 1;
|
|
1787
1842
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
|
|
1788
1843
|
}
|
|
1844
|
+
.bg-green-100 {
|
|
1845
|
+
--tw-bg-opacity: 1;
|
|
1846
|
+
background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
|
|
1847
|
+
}
|
|
1789
1848
|
.bg-green-500 {
|
|
1790
1849
|
--tw-bg-opacity: 1;
|
|
1791
1850
|
background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
|
|
@@ -1812,6 +1871,14 @@ video {
|
|
|
1812
1871
|
--tw-bg-opacity: 1;
|
|
1813
1872
|
background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
|
|
1814
1873
|
}
|
|
1874
|
+
.bg-red-100 {
|
|
1875
|
+
--tw-bg-opacity: 1;
|
|
1876
|
+
background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
|
|
1877
|
+
}
|
|
1878
|
+
.bg-red-50 {
|
|
1879
|
+
--tw-bg-opacity: 1;
|
|
1880
|
+
background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
|
|
1881
|
+
}
|
|
1815
1882
|
.bg-red-600 {
|
|
1816
1883
|
--tw-bg-opacity: 1;
|
|
1817
1884
|
background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
|
|
@@ -2097,6 +2164,9 @@ video {
|
|
|
2097
2164
|
.pb-20 {
|
|
2098
2165
|
padding-bottom: 5rem;
|
|
2099
2166
|
}
|
|
2167
|
+
.pb-4 {
|
|
2168
|
+
padding-bottom: 1rem;
|
|
2169
|
+
}
|
|
2100
2170
|
.pb-5 {
|
|
2101
2171
|
padding-bottom: 1.25rem;
|
|
2102
2172
|
}
|
|
@@ -2118,6 +2188,9 @@ video {
|
|
|
2118
2188
|
.pl-9 {
|
|
2119
2189
|
padding-left: 2.25rem;
|
|
2120
2190
|
}
|
|
2191
|
+
.pr-2 {
|
|
2192
|
+
padding-right: 0.5rem;
|
|
2193
|
+
}
|
|
2121
2194
|
.pr-3 {
|
|
2122
2195
|
padding-right: 0.75rem;
|
|
2123
2196
|
}
|
|
@@ -2154,6 +2227,9 @@ video {
|
|
|
2154
2227
|
.align-middle {
|
|
2155
2228
|
vertical-align: middle;
|
|
2156
2229
|
}
|
|
2230
|
+
.font-\[SimSun\] {
|
|
2231
|
+
font-family: SimSun;
|
|
2232
|
+
}
|
|
2157
2233
|
.font-mono {
|
|
2158
2234
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
2159
2235
|
}
|
|
@@ -2175,6 +2251,9 @@ video {
|
|
|
2175
2251
|
.text-\[11px\] {
|
|
2176
2252
|
font-size: 11px;
|
|
2177
2253
|
}
|
|
2254
|
+
.text-\[15px\] {
|
|
2255
|
+
font-size: 15px;
|
|
2256
|
+
}
|
|
2178
2257
|
.text-base {
|
|
2179
2258
|
font-size: 1rem;
|
|
2180
2259
|
line-height: 1.5rem;
|
|
@@ -2260,14 +2339,6 @@ video {
|
|
|
2260
2339
|
--tw-text-opacity: 1 !important;
|
|
2261
2340
|
color: rgb(75 85 99 / var(--tw-text-opacity, 1)) !important;
|
|
2262
2341
|
}
|
|
2263
|
-
.text-\[blue\] {
|
|
2264
|
-
--tw-text-opacity: 1;
|
|
2265
|
-
color: rgb(0 0 255 / var(--tw-text-opacity, 1));
|
|
2266
|
-
}
|
|
2267
|
-
.text-\[red\] {
|
|
2268
|
-
--tw-text-opacity: 1;
|
|
2269
|
-
color: rgb(255 0 0 / var(--tw-text-opacity, 1));
|
|
2270
|
-
}
|
|
2271
2342
|
.text-black {
|
|
2272
2343
|
--tw-text-opacity: 1;
|
|
2273
2344
|
color: rgb(0 0 0 / var(--tw-text-opacity, 1));
|
|
@@ -2316,10 +2387,22 @@ video {
|
|
|
2316
2387
|
--tw-text-opacity: 1;
|
|
2317
2388
|
color: rgb(22 163 74 / var(--tw-text-opacity, 1));
|
|
2318
2389
|
}
|
|
2390
|
+
.text-green-700 {
|
|
2391
|
+
--tw-text-opacity: 1;
|
|
2392
|
+
color: rgb(21 128 61 / var(--tw-text-opacity, 1));
|
|
2393
|
+
}
|
|
2319
2394
|
.text-red-500 {
|
|
2320
2395
|
--tw-text-opacity: 1;
|
|
2321
2396
|
color: rgb(239 68 68 / var(--tw-text-opacity, 1));
|
|
2322
2397
|
}
|
|
2398
|
+
.text-red-600 {
|
|
2399
|
+
--tw-text-opacity: 1;
|
|
2400
|
+
color: rgb(220 38 38 / var(--tw-text-opacity, 1));
|
|
2401
|
+
}
|
|
2402
|
+
.text-red-700 {
|
|
2403
|
+
--tw-text-opacity: 1;
|
|
2404
|
+
color: rgb(185 28 28 / var(--tw-text-opacity, 1));
|
|
2405
|
+
}
|
|
2323
2406
|
.text-sky-500 {
|
|
2324
2407
|
--tw-text-opacity: 1;
|
|
2325
2408
|
color: rgb(14 165 233 / var(--tw-text-opacity, 1));
|
|
@@ -2358,6 +2441,10 @@ video {
|
|
|
2358
2441
|
.no-underline {
|
|
2359
2442
|
text-decoration-line: none;
|
|
2360
2443
|
}
|
|
2444
|
+
.antialiased {
|
|
2445
|
+
-webkit-font-smoothing: antialiased;
|
|
2446
|
+
-moz-osx-font-smoothing: grayscale;
|
|
2447
|
+
}
|
|
2361
2448
|
.placeholder-gray-500::-moz-placeholder {
|
|
2362
2449
|
--tw-placeholder-opacity: 1;
|
|
2363
2450
|
color: rgb(107 114 128 / var(--tw-placeholder-opacity, 1));
|
|
@@ -2400,6 +2487,11 @@ video {
|
|
|
2400
2487
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
2401
2488
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2402
2489
|
}
|
|
2490
|
+
.shadow-2xl {
|
|
2491
|
+
--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
2492
|
+
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
|
|
2493
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2494
|
+
}
|
|
2403
2495
|
.shadow-lg {
|
|
2404
2496
|
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
2405
2497
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
@@ -2488,6 +2580,10 @@ video {
|
|
|
2488
2580
|
--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
|
|
2489
2581
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2490
2582
|
}
|
|
2583
|
+
.grayscale {
|
|
2584
|
+
--tw-grayscale: grayscale(100%);
|
|
2585
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2586
|
+
}
|
|
2491
2587
|
.filter {
|
|
2492
2588
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2493
2589
|
}
|
|
@@ -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";
|
|
@@ -51571,6 +51573,7 @@ const normalizeLink = (to, location2 = window.location) => {
|
|
|
51571
51573
|
};
|
|
51572
51574
|
const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
51573
51575
|
const navigate = useNavigate();
|
|
51576
|
+
const location2 = useLocation();
|
|
51574
51577
|
if (!window.goBack) {
|
|
51575
51578
|
window.goBack = () => {
|
|
51576
51579
|
navigate(-1);
|
|
@@ -51592,10 +51595,70 @@ const AmisRender = function({ schema = {}, data: data2 = {}, env: env2 = {} }) {
|
|
|
51592
51595
|
user: Builder$1.settings.context.user,
|
|
51593
51596
|
now: /* @__PURE__ */ new Date()
|
|
51594
51597
|
},
|
|
51598
|
+
_pathname: location2.pathname,
|
|
51595
51599
|
...data2
|
|
51596
51600
|
};
|
|
51597
51601
|
const mergedEnv = {
|
|
51598
51602
|
...env2,
|
|
51603
|
+
isCurrentUrl: (to, ctx) => {
|
|
51604
|
+
if (!to) {
|
|
51605
|
+
return false;
|
|
51606
|
+
}
|
|
51607
|
+
const link2 = normalizeLink(to);
|
|
51608
|
+
const pathname = window.location.pathname;
|
|
51609
|
+
const idx = link2.indexOf("?");
|
|
51610
|
+
let linkPathname = link2;
|
|
51611
|
+
let linkSearch = "";
|
|
51612
|
+
if (~idx) {
|
|
51613
|
+
linkPathname = link2.substring(0, idx);
|
|
51614
|
+
linkSearch = link2.substring(idx);
|
|
51615
|
+
}
|
|
51616
|
+
if (linkSearch) {
|
|
51617
|
+
if (linkPathname !== pathname) {
|
|
51618
|
+
return false;
|
|
51619
|
+
}
|
|
51620
|
+
const currentSearch = window.location.search;
|
|
51621
|
+
if (!currentSearch) {
|
|
51622
|
+
return false;
|
|
51623
|
+
}
|
|
51624
|
+
const linkParams = new URLSearchParams(linkSearch);
|
|
51625
|
+
const currentParams = new URLSearchParams(currentSearch);
|
|
51626
|
+
let allMatch = true;
|
|
51627
|
+
linkParams.forEach((value2, key2) => {
|
|
51628
|
+
if (currentParams.get(key2) !== value2) {
|
|
51629
|
+
allMatch = false;
|
|
51630
|
+
}
|
|
51631
|
+
});
|
|
51632
|
+
return allMatch;
|
|
51633
|
+
}
|
|
51634
|
+
const decodedPathname = decodeURI(pathname);
|
|
51635
|
+
const decodedLink = decodeURI(linkPathname);
|
|
51636
|
+
if (decodedPathname === decodedLink) {
|
|
51637
|
+
return true;
|
|
51638
|
+
}
|
|
51639
|
+
const linkSegments = decodedLink.replace(/^\//, "").split("/");
|
|
51640
|
+
if (linkSegments.length <= 3 && decodedPathname.startsWith(decodedLink + "/")) {
|
|
51641
|
+
const navPaths = window._steedosNavPaths;
|
|
51642
|
+
if (navPaths && navPaths.some((p) => {
|
|
51643
|
+
let pp = p;
|
|
51644
|
+
const qi = pp.indexOf("?");
|
|
51645
|
+
if (qi > -1) pp = pp.substring(0, qi);
|
|
51646
|
+
const hi = pp.indexOf("#");
|
|
51647
|
+
if (hi > -1) pp = pp.substring(0, hi);
|
|
51648
|
+
if (decodeURI(pp) === decodedLink) return false;
|
|
51649
|
+
const tmplIdx = pp.indexOf("${");
|
|
51650
|
+
if (tmplIdx > -1) {
|
|
51651
|
+
pp = pp.substring(0, tmplIdx);
|
|
51652
|
+
}
|
|
51653
|
+
const decodedNavPath = decodeURI(pp);
|
|
51654
|
+
return decodedNavPath.startsWith(decodedLink + "/") && decodedPathname.startsWith(decodedNavPath);
|
|
51655
|
+
})) {
|
|
51656
|
+
return false;
|
|
51657
|
+
}
|
|
51658
|
+
return true;
|
|
51659
|
+
}
|
|
51660
|
+
return false;
|
|
51661
|
+
},
|
|
51599
51662
|
jumpTo: (to, action, ctx) => {
|
|
51600
51663
|
if (to === "goBack") {
|
|
51601
51664
|
return window.history.back();
|
|
@@ -51672,13 +51735,39 @@ const on_click_script = `
|
|
|
51672
51735
|
}
|
|
51673
51736
|
`;
|
|
51674
51737
|
const pcInitJumtoFirstAppFirstTabScript = (payload, response, api2, context) => {
|
|
51738
|
+
const resolvePathTemplate = (path2, data2) => {
|
|
51739
|
+
if (!path2 || path2.indexOf("${") < 0) {
|
|
51740
|
+
return path2;
|
|
51741
|
+
}
|
|
51742
|
+
try {
|
|
51743
|
+
var currentAmis = window.amisRequire && window.amisRequire("amis");
|
|
51744
|
+
var createObject = window.BuilderAmisObject && window.BuilderAmisObject.AmisLib && window.BuilderAmisObject.AmisLib.createObject;
|
|
51745
|
+
if (currentAmis && createObject) {
|
|
51746
|
+
const resolved = currentAmis.evaluate(path2, createObject(context, data2 || {}));
|
|
51747
|
+
if (typeof resolved === "string" && resolved) {
|
|
51748
|
+
return resolved;
|
|
51749
|
+
}
|
|
51750
|
+
}
|
|
51751
|
+
} catch (ex) {
|
|
51752
|
+
console.warn("resolvePathTemplate failed:", ex);
|
|
51753
|
+
}
|
|
51754
|
+
return path2;
|
|
51755
|
+
};
|
|
51675
51756
|
let app_items = payload;
|
|
51676
51757
|
if (app_items && app_items.length > 0) {
|
|
51677
51758
|
let firstApp = app_items[0];
|
|
51759
|
+
if (firstApp && firstApp.default_tab) {
|
|
51760
|
+
if (typeof firstApp.default_tab === "object" && firstApp.default_tab.path) {
|
|
51761
|
+
window.location.href = resolvePathTemplate(firstApp.default_tab.path, firstApp.default_tab);
|
|
51762
|
+
} else {
|
|
51763
|
+
window.location.href = `/app/${firstApp.id}/${firstApp.default_tab}`;
|
|
51764
|
+
}
|
|
51765
|
+
return payload;
|
|
51766
|
+
}
|
|
51678
51767
|
if (firstApp && firstApp.children && firstApp.children.length > 0) {
|
|
51679
51768
|
let firstTab = firstApp.children[0];
|
|
51680
51769
|
if (firstTab) {
|
|
51681
|
-
window.location.href = firstTab.path;
|
|
51770
|
+
window.location.href = resolvePathTemplate(firstTab.path, firstTab);
|
|
51682
51771
|
}
|
|
51683
51772
|
}
|
|
51684
51773
|
}
|
|
@@ -54445,6 +54534,33 @@ const {
|
|
|
54445
54534
|
const AppView = () => {
|
|
54446
54535
|
const { appId } = useParams();
|
|
54447
54536
|
const navigate = useNavigate();
|
|
54537
|
+
const resolvePathTemplate = (path2, data2) => {
|
|
54538
|
+
if (!path2 || path2.indexOf("${") < 0) {
|
|
54539
|
+
return path2 || "";
|
|
54540
|
+
}
|
|
54541
|
+
try {
|
|
54542
|
+
const currentAmis = window.amisRequire?.("amis");
|
|
54543
|
+
const createObject = window.BuilderAmisObject?.AmisLib?.createObject;
|
|
54544
|
+
if (currentAmis && createObject) {
|
|
54545
|
+
const settings2 = window.Builder?.settings || {};
|
|
54546
|
+
const scope = {
|
|
54547
|
+
context: settings2.context,
|
|
54548
|
+
global: {
|
|
54549
|
+
userId: settings2.context?.userId,
|
|
54550
|
+
spaceId: settings2.context?.tenantId,
|
|
54551
|
+
user: settings2.context?.user
|
|
54552
|
+
}
|
|
54553
|
+
};
|
|
54554
|
+
const resolved = currentAmis.evaluate(path2, createObject(scope, data2 || {}));
|
|
54555
|
+
if (typeof resolved === "string" && resolved) {
|
|
54556
|
+
return resolved;
|
|
54557
|
+
}
|
|
54558
|
+
}
|
|
54559
|
+
} catch (error) {
|
|
54560
|
+
console.warn("resolvePathTemplate failed:", error);
|
|
54561
|
+
}
|
|
54562
|
+
return path2;
|
|
54563
|
+
};
|
|
54448
54564
|
reactExports.useEffect(() => {
|
|
54449
54565
|
const fetchData = async () => {
|
|
54450
54566
|
try {
|
|
@@ -54454,9 +54570,19 @@ const AppView = () => {
|
|
|
54454
54570
|
// Include credentials if needed
|
|
54455
54571
|
);
|
|
54456
54572
|
const data2 = response.data;
|
|
54573
|
+
if (data2?.default_tab) {
|
|
54574
|
+
if (typeof data2.default_tab === "object" && data2.default_tab !== null && data2.default_tab.path) {
|
|
54575
|
+
navigate(resolvePathTemplate(data2.default_tab.path, data2.default_tab));
|
|
54576
|
+
return;
|
|
54577
|
+
}
|
|
54578
|
+
if (typeof data2.default_tab === "string") {
|
|
54579
|
+
navigate(`/app/${appId}/${data2.default_tab}`);
|
|
54580
|
+
return;
|
|
54581
|
+
}
|
|
54582
|
+
}
|
|
54457
54583
|
if (data2?.children.length > 0 && data2.children[0].path) {
|
|
54458
|
-
const children = _.sortBy(data2.children, ["index"]);
|
|
54459
|
-
navigate(children[0].path);
|
|
54584
|
+
const children = _$1.sortBy(data2.children, ["index"]);
|
|
54585
|
+
navigate(resolvePathTemplate(children[0].path, children[0]));
|
|
54460
54586
|
}
|
|
54461
54587
|
} catch (error) {
|
|
54462
54588
|
console.error("Error fetching data:", error);
|
|
@@ -54715,7 +54841,7 @@ const AppHeader = () => {
|
|
|
54715
54841
|
if (searchParams.get("embed") == "1") {
|
|
54716
54842
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
54717
54843
|
}
|
|
54718
|
-
let logoSrc = "";
|
|
54844
|
+
let logoSrc = "/images/logo.svg";
|
|
54719
54845
|
if (Builder$1.settings?.context?.user?.space?.avatar) {
|
|
54720
54846
|
logoSrc = "/api/v6/files/cfs.avatars.filerecord/" + Builder$1.settings.context.user.space.avatar;
|
|
54721
54847
|
}
|
|
@@ -54876,7 +55002,7 @@ const ObjectListView = () => {
|
|
|
54876
55002
|
}
|
|
54877
55003
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(AmisRender, { schema: {
|
|
54878
55004
|
type: "page",
|
|
54879
|
-
bodyClassName: "p-0",
|
|
55005
|
+
bodyClassName: "p-0 h-full",
|
|
54880
55006
|
body: {
|
|
54881
55007
|
"type": "steedos-page-object-control",
|
|
54882
55008
|
"name": "steedosPageObjectControl",
|
|
@@ -81223,7 +81349,7 @@ if (typeof ActiveXObject === "function") {
|
|
|
81223
81349
|
if (typeof fetchApi !== "function") fetchApi = void 0;
|
|
81224
81350
|
if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) {
|
|
81225
81351
|
try {
|
|
81226
|
-
__vitePreload(() => import("./browser-ponyfill-
|
|
81352
|
+
__vitePreload(() => import("./browser-ponyfill-CRL-qrLc.js").then((n) => n.b), true ? [] : void 0).then(function(mod) {
|
|
81227
81353
|
fetchApi = mod.default;
|
|
81228
81354
|
}).catch(function() {
|
|
81229
81355
|
});
|
package/dist/index.html
CHANGED
|
@@ -65,8 +65,8 @@
|
|
|
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-
|
|
69
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
68
|
+
<script type="module" crossorigin src="/assets/index-CjbrZ8g0.js"></script>
|
|
69
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BDszpOfe.css">
|
|
70
70
|
</head>
|
|
71
71
|
<body class="skin-blue-light fixed steedos sidebar-mini three-columns" >
|
|
72
72
|
<div id="root" class="steedos skin-blue-light creator h-full flex flex-col relative overflow-hidden bg-slate-50"></div>
|
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.32",
|
|
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": "a5e6973ccd624211f6a35dfe9f0013db260b7a0b",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@steedos-widgets/amis-object": "^6.10.
|
|
80
|
+
"@steedos-widgets/amis-object": "^6.10.52-beta.20",
|
|
81
81
|
"autoprefixer": "^10.4.23"
|
|
82
82
|
}
|
|
83
83
|
}
|