@blocklet/launcher-workflow 1.9.0 → 1.9.2
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/lib/locales/en.js +2 -1
- package/lib/locales/zh.js +1 -0
- package/lib/purchase.js +2 -2
- package/lib/router-content.js +1 -0
- package/lib/start.js +1 -0
- package/package.json +11 -11
package/lib/locales/en.js
CHANGED
|
@@ -16,7 +16,8 @@ module.exports = {
|
|
|
16
16
|
cancel: 'Cancel',
|
|
17
17
|
confirm: 'Confirm',
|
|
18
18
|
launching: 'Launching',
|
|
19
|
-
loadFailed: 'Failed to load the resource, please refresh the page and try again.'
|
|
19
|
+
loadFailed: 'Failed to load the resource, please refresh the page and try again.',
|
|
20
|
+
payFailed: 'Payment failed'
|
|
20
21
|
},
|
|
21
22
|
plan: {
|
|
22
23
|
title: 'Select Blocklet Server Plan',
|
package/lib/locales/zh.js
CHANGED
package/lib/purchase.js
CHANGED
|
@@ -87,7 +87,7 @@ function PurchasePage(_ref) {
|
|
|
87
87
|
const userDid = query.get('userDid') || (0, _lodash.default)(session, 'user.did');
|
|
88
88
|
const isEmbed = !!query.get('blocklet_meta_url');
|
|
89
89
|
(0, _react.useEffect)(() => {
|
|
90
|
-
if (!session.loading && paymentMethod
|
|
90
|
+
if (!session.loading && (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.type) === 'fiat' && !userDid) {
|
|
91
91
|
session.login();
|
|
92
92
|
} // eslint-disable-next-line
|
|
93
93
|
|
|
@@ -126,7 +126,7 @@ function PurchasePage(_ref) {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
const handlePay = async payment => {
|
|
129
|
-
if (payment ===
|
|
129
|
+
if (payment.type === 'fiat' && !userDid) {
|
|
130
130
|
session.login();
|
|
131
131
|
return;
|
|
132
132
|
}
|
package/lib/router-content.js
CHANGED
|
@@ -32,6 +32,7 @@ function IndexContent(_ref) {
|
|
|
32
32
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_locale.LocaleProvider, {
|
|
33
33
|
translations: _locales.translations,
|
|
34
34
|
locale: locale,
|
|
35
|
+
fallbackLocale: "en",
|
|
35
36
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_request.RequestProvider, {
|
|
36
37
|
baseURL: baseURL,
|
|
37
38
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_content.default, {
|
package/lib/start.js
CHANGED
|
@@ -27,6 +27,7 @@ function StartPage(_ref) {
|
|
|
27
27
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_locale.LocaleProvider, {
|
|
28
28
|
translations: _locales.translations,
|
|
29
29
|
locale: locale,
|
|
30
|
+
fallbackLocale: "en",
|
|
30
31
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_instanceOperation.default, {
|
|
31
32
|
type: "start"
|
|
32
33
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"react": ">=18.1.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@arcblock/did-connect": "^2.4.
|
|
40
|
-
"@arcblock/icons": "^2.4.
|
|
41
|
-
"@arcblock/license": "^2.4.
|
|
42
|
-
"@arcblock/ux": "^2.4.
|
|
43
|
-
"@blocklet/launcher-layout": "1.9.
|
|
44
|
-
"@blocklet/launcher-util": "1.9.
|
|
45
|
-
"@blocklet/launcher-ux": "1.9.
|
|
46
|
-
"@did-pay/react": "^1.9.
|
|
39
|
+
"@arcblock/did-connect": "^2.4.35",
|
|
40
|
+
"@arcblock/icons": "^2.4.35",
|
|
41
|
+
"@arcblock/license": "^2.4.35",
|
|
42
|
+
"@arcblock/ux": "^2.4.35",
|
|
43
|
+
"@blocklet/launcher-layout": "1.9.2",
|
|
44
|
+
"@blocklet/launcher-util": "1.9.2",
|
|
45
|
+
"@blocklet/launcher-ux": "1.9.2",
|
|
46
|
+
"@did-pay/react": "^1.9.3",
|
|
47
47
|
"@emotion/react": "^11.10.4",
|
|
48
48
|
"@emotion/styled": "^11.10.4",
|
|
49
49
|
"@mui/icons-material": "^5.10.6",
|
|
50
50
|
"@mui/lab": "^5.0.0-alpha.101",
|
|
51
51
|
"@mui/material": "^5.10.7",
|
|
52
|
-
"@ocap/util": "^1.17.
|
|
52
|
+
"@ocap/util": "^1.17.20",
|
|
53
53
|
"@stripe/react-stripe-js": "^1.12.0",
|
|
54
54
|
"@stripe/stripe-js": "^1.38.1",
|
|
55
55
|
"axios": "^0.26.1",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"@babel/preset-react": "^7.18.6",
|
|
71
71
|
"babel-plugin-inline-react-svg": "^2.0.1"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "015bf7a244d44cca6658b003b8ecd4c5dbff2c94"
|
|
74
74
|
}
|