@blocklet/launcher-workflow 2.5.9 → 2.5.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.
|
@@ -398,13 +398,20 @@ export default function AppSuccessDisplay({
|
|
|
398
398
|
minWidth: 220
|
|
399
399
|
},
|
|
400
400
|
color: "primary",
|
|
401
|
-
onClick: () =>
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
401
|
+
onClick: () => {
|
|
402
|
+
const prefix = blockletInfo.prefix.replace(/\//g, '');
|
|
403
|
+
const splitUrl = appUrl.split('/');
|
|
404
|
+
if (splitUrl[splitUrl.length - 1] === prefix) {
|
|
405
|
+
splitUrl.pop();
|
|
406
|
+
}
|
|
407
|
+
window.open(withQuery(joinURL(getBaseURL(), `/api/launches/${sessionId}/redirect/dashboard`), {
|
|
408
|
+
appUrl: splitUrl.join('/'),
|
|
409
|
+
appDid: blockletInfo.appPid,
|
|
410
|
+
ownerDid: blockletInfo.ownerDid,
|
|
411
|
+
locale,
|
|
412
|
+
theme: theme.palette.mode
|
|
413
|
+
}), '_blank');
|
|
414
|
+
},
|
|
408
415
|
startIcon: /*#__PURE__*/_jsx(DashboardIcon, {
|
|
409
416
|
sx: {
|
|
410
417
|
fontSize: 24,
|
|
@@ -409,13 +409,20 @@ function AppSuccessDisplay(_ref) {
|
|
|
409
409
|
minWidth: 220
|
|
410
410
|
},
|
|
411
411
|
color: "primary",
|
|
412
|
-
onClick: () =>
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
412
|
+
onClick: () => {
|
|
413
|
+
const prefix = blockletInfo.prefix.replace(/\//g, '');
|
|
414
|
+
const splitUrl = appUrl.split('/');
|
|
415
|
+
if (splitUrl[splitUrl.length - 1] === prefix) {
|
|
416
|
+
splitUrl.pop();
|
|
417
|
+
}
|
|
418
|
+
window.open((0, _ufo.withQuery)((0, _ufo.joinURL)((0, _util.getBaseURL)(), "/api/launches/".concat(sessionId, "/redirect/dashboard")), {
|
|
419
|
+
appUrl: splitUrl.join('/'),
|
|
420
|
+
appDid: blockletInfo.appPid,
|
|
421
|
+
ownerDid: blockletInfo.ownerDid,
|
|
422
|
+
locale,
|
|
423
|
+
theme: theme.palette.mode
|
|
424
|
+
}), '_blank');
|
|
425
|
+
},
|
|
419
426
|
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Dashboard.default, {
|
|
420
427
|
sx: {
|
|
421
428
|
fontSize: 24,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.10",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"@arcblock/react-hooks": "^3.1.15",
|
|
50
50
|
"@arcblock/ux": "^3.1.15",
|
|
51
51
|
"@blocklet/launcher-layout": "^3.1.15",
|
|
52
|
-
"@blocklet/launcher-util": "2.5.
|
|
53
|
-
"@blocklet/launcher-ux": "2.5.
|
|
52
|
+
"@blocklet/launcher-util": "2.5.10",
|
|
53
|
+
"@blocklet/launcher-ux": "2.5.10",
|
|
54
54
|
"@blocklet/payment": "^1.14.8",
|
|
55
55
|
"@blocklet/payment-react": "^1.19.17",
|
|
56
56
|
"@emotion/react": "^11.14.0",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"require": "./lib/locales/index.js"
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "557ea82bd226819512b888e179e458a765d8779e"
|
|
113
113
|
}
|