@blocklet/launcher-workflow 1.5.35 → 1.5.38
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 -2
- package/lib/locales/zh.js +1 -1
- package/lib/purchase.js +20 -2
- package/package.json +7 -5
package/lib/locales/en.js
CHANGED
package/lib/locales/zh.js
CHANGED
package/lib/purchase.js
CHANGED
|
@@ -33,6 +33,10 @@ var _Empty = _interopRequireDefault(require("@arcblock/ux/lib/Empty"));
|
|
|
33
33
|
|
|
34
34
|
var _Tabs = _interopRequireDefault(require("@arcblock/ux/lib/Tabs"));
|
|
35
35
|
|
|
36
|
+
var _CreditCard = _interopRequireDefault(require("@material-ui/icons/CreditCard"));
|
|
37
|
+
|
|
38
|
+
var _Coins = require("@styled-icons/remix-fill/Coins");
|
|
39
|
+
|
|
36
40
|
var _plan = _interopRequireDefault(require("./components/plan"));
|
|
37
41
|
|
|
38
42
|
var _pageHeader = _interopRequireDefault(require("./components/page-header"));
|
|
@@ -89,10 +93,14 @@ function PurchasePage() {
|
|
|
89
93
|
|
|
90
94
|
}, [paymentType, userDid]);
|
|
91
95
|
const paymentTypes = [{
|
|
92
|
-
label:
|
|
96
|
+
label: /*#__PURE__*/_react.default.createElement(PaymentLabel, null, /*#__PURE__*/_react.default.createElement(CryptoIcon, {
|
|
97
|
+
className: "payment-icon"
|
|
98
|
+
}), t('plan.useCrypto')),
|
|
93
99
|
value: 'crypto'
|
|
94
100
|
}, {
|
|
95
|
-
label:
|
|
101
|
+
label: /*#__PURE__*/_react.default.createElement(PaymentLabel, null, /*#__PURE__*/_react.default.createElement(_CreditCard.default, {
|
|
102
|
+
className: "payment-icon"
|
|
103
|
+
}), t('plan.useFiat')),
|
|
96
104
|
value: 'fiat'
|
|
97
105
|
}];
|
|
98
106
|
const plansState = (0, _reactUse.useAsync)(async () => {
|
|
@@ -302,6 +310,16 @@ const Container = _styledComponents.default.div.withConfig({
|
|
|
302
310
|
componentId: "sc-1knmtel-1"
|
|
303
311
|
})(["display:flex;flex-direction:column;width:100%;height:100%;.select-payment{display:flex;justify-content:center;align-items:center;padding-top:30px;}.select-plan{margin:48px auto;", "{margin:30px auto;}&.small-select-plan-2{max-width:780px;}&.small-select-plan-0,&.small-select-plan-1{max-width:460px;}}.page-body{position:relative;flex:1;padding:0 24px;margin-top:0;}.page-body-article{position:absolute;left:24px;top:0;width:calc(100% - 48px);height:100%;overflow-y:auto;}.selector-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;margin-top:18px;}.button-container{display:flex;justify-content:center;align-items:center;padding-bottom:16px;> button{width:200px;}}.select-body-item{cursor:pointer;transition:background-color ease 0.2s,border ease 0.2s;}@media screen and (max-width:600px){.page-body{padding:0 24px;}}.selected{border-color:", ";cursor:default;}"], props => props.theme.breakpoints.down('sm'), props => props.theme.palette.primary.main);
|
|
304
312
|
|
|
313
|
+
const PaymentLabel = _styledComponents.default.div.withConfig({
|
|
314
|
+
displayName: "purchase__PaymentLabel",
|
|
315
|
+
componentId: "sc-1knmtel-2"
|
|
316
|
+
})(["display:flex;justify-content:center;align-items:center;.payment-icon{margin-right:4px;}"]);
|
|
317
|
+
|
|
318
|
+
const CryptoIcon = (0, _styledComponents.default)(_Coins.Coins).withConfig({
|
|
319
|
+
displayName: "purchase__CryptoIcon",
|
|
320
|
+
componentId: "sc-1knmtel-3"
|
|
321
|
+
})(["font-size:14px;height:22px;"]);
|
|
322
|
+
|
|
305
323
|
var _default = (0, _reactRouterDom.withRouter)(PurchasePage);
|
|
306
324
|
|
|
307
325
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/launcher-workflow",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.38",
|
|
4
4
|
"description": "Purchase components for Launcher UI",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,15 +37,17 @@
|
|
|
37
37
|
"react": ">=16.12.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@arcblock/did-connect": "^1.16.
|
|
41
|
-
"@arcblock/
|
|
42
|
-
"@
|
|
40
|
+
"@arcblock/did-connect": "^1.16.36",
|
|
41
|
+
"@arcblock/icons": "^1.16.36",
|
|
42
|
+
"@arcblock/ux": "^1.16.36",
|
|
43
|
+
"@blocklet/launcher-layout": "1.5.38",
|
|
43
44
|
"@material-ui/core": "^4.12.3",
|
|
44
45
|
"@material-ui/icons": "^4.11.2",
|
|
45
46
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
46
47
|
"@ocap/util": "^1.14.19",
|
|
47
48
|
"@stripe/react-stripe-js": "^1.7.0",
|
|
48
49
|
"@stripe/stripe-js": "^1.22.0",
|
|
50
|
+
"@styled-icons/remix-fill": "^10.18.0",
|
|
49
51
|
"axios": "^0.26.0",
|
|
50
52
|
"flat": "^5.0.2",
|
|
51
53
|
"lodash.get": "^4.4.2",
|
|
@@ -64,5 +66,5 @@
|
|
|
64
66
|
"babel-plugin-inline-react-svg": "^2.0.1",
|
|
65
67
|
"babel-plugin-styled-components": "^1.10.7"
|
|
66
68
|
},
|
|
67
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "50babb77afadc0032c8738573de8578018a958bd"
|
|
68
70
|
}
|