@blocklet/launcher-workflow 1.5.36 → 1.5.37

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 CHANGED
@@ -26,8 +26,8 @@ module.exports = {
26
26
  expired: 'Order has expired'
27
27
  }
28
28
  },
29
- useCrypto: 'Use ABT',
30
- useFiat: 'Use Credit Card',
29
+ useCrypto: 'Crypto',
30
+ useFiat: 'Credit Card',
31
31
  noPlan: 'No blocklet server available for purchase'
32
32
  },
33
33
  prepare: {
package/lib/locales/zh.js CHANGED
@@ -26,7 +26,7 @@ module.exports = {
26
26
  expired: '订单已过期'
27
27
  }
28
28
  },
29
- useCrypto: 'ABT 支付',
29
+ useCrypto: '数字货币支付',
30
30
  useFiat: '信用卡支付',
31
31
  noPlan: '没有可购买的节点类型'
32
32
  },
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 _Bitcoin = require("@styled-icons/boxicons-logos/Bitcoin");
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: t('plan.useCrypto'),
96
+ label: /*#__PURE__*/_react.default.createElement(PaymentLabel, null, /*#__PURE__*/_react.default.createElement(RedBit, {
97
+ className: "payment-icon"
98
+ }), t('plan.useCrypto')),
93
99
  value: 'crypto'
94
100
  }, {
95
- label: t('plan.useFiat'),
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 RedBit = (0, _styledComponents.default)(_Bitcoin.Bitcoin).withConfig({
319
+ displayName: "purchase__RedBit",
320
+ componentId: "sc-1knmtel-3"
321
+ })(["font-size:15px;height:24px;"]);
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.36",
3
+ "version": "1.5.37",
4
4
  "description": "Purchase components for Launcher UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -38,14 +38,16 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@arcblock/did-connect": "^1.16.36",
41
+ "@arcblock/icons": "^1.16.36",
41
42
  "@arcblock/ux": "^1.16.36",
42
- "@blocklet/launcher-layout": "1.5.36",
43
+ "@blocklet/launcher-layout": "1.5.37",
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/boxicons-logos": "^10.38.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": "fa8bd3205de2c275d1301de493c912778f3a05bb"
69
+ "gitHead": "4a634ce3a2f0349141ada3a3b7fb3f654bdcbf22"
68
70
  }