@blocklet/launcher-workflow 2.0.4 → 2.0.5

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.
@@ -262,7 +262,7 @@ function Plan(_ref2) {
262
262
  }));
263
263
  }
264
264
  const Outer = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n\n .recommend-icon {\n display: none;\n }\n\n &.card-recommend {\n margin-right: 8px;\n\n .recommend-icon {\n display: block;\n position: absolute;\n top: -8px;\n right: -8px;\n }\n"])));
265
- const Container = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-direction: column;\n border-radius: 12px;\n overflow: hidden;\n min-height: 400px;\n margin-top: 8px;\n white-space: nowrap;\n padding: 16px;\n\n .toc__title {\n font-weight: bolder;\n align-items: flex-start;\n }\n\n &:not(.toc) {\n color: #000;\n background-color: ", ";\n cursor: pointer;\n }\n\n &:not(.toc, .checked):hover {\n color: #000;\n background-color: #ddf6f8;\n cursor: pointer;\n }\n\n &.checked {\n color: #fff;\n background-color: ", ";\n cursor: pointer;\n }\n\n .basic {\n width: 100%;\n height: 8em;\n\n .header {\n text-align: center;\n .header__title {\n color: ", ";\n }\n\n .header__name {\n font-weight: bolder;\n }\n }\n\n .price-info {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 6.5em;\n\n .price {\n font-size: 1.5em;\n font-weight: bolder;\n }\n\n .period {\n color: ", ";\n }\n }\n }\n\n .features {\n display: flex;\n flex-direction: column;\n width: 100%;\n margin-top: auto;\n\n .feature {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 48px;\n\n @media (min-width: ", "px) {\n margin-left: 28px;\n }\n\n @media (max-width: ", "px) {\n justify-content: flex-start;\n }\n\n &:not(:last-child) {\n border-bottom: 1px solid;\n border-bottom-color: ", ";\n }\n }\n }\n"])), props => props.theme.palette.secondary.main, props => props.theme.palette.primary.main, props => props.checked ? '#ffffff' : '#9397a1', props => props.checked ? '#ffffff' : '#9397a1', props => props.theme.breakpoints.values.md, props => props.theme.breakpoints.values.md, props => props.checked || props.hovered ? 'rgba(255, 255, 255, 0.2)' : '#f6f6f6');
265
+ const Container = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-direction: column;\n border-radius: 12px;\n overflow: hidden;\n min-height: 400px;\n margin-top: 8px;\n white-space: nowrap;\n padding: 16px;\n\n .toc__title {\n font-weight: bolder;\n align-items: flex-start;\n }\n\n &:not(.toc) {\n color: #000;\n background-color: ", ";\n cursor: pointer;\n }\n\n &:not(.toc, .checked):hover {\n color: #000;\n background-color: #ddf6f8;\n cursor: pointer;\n }\n\n &.checked {\n color: #fff;\n background-color: ", ";\n cursor: pointer;\n }\n\n .basic {\n width: 100%;\n height: 8em;\n\n .header {\n text-align: center;\n .header__title {\n color: ", ";\n }\n\n .header__name {\n font-weight: bolder;\n }\n }\n\n .price-info {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 6.5em;\n\n .price {\n font-size: 1.5em;\n font-weight: bolder;\n }\n\n .period {\n color: ", ";\n }\n }\n }\n\n .features {\n display: flex;\n flex-direction: column;\n width: 100%;\n margin-top: auto;\n\n .feature {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 48px;\n\n @media (max-width: 768px) {\n margin-left: 28px;\n justify-content: flex-start;\n }\n\n &:not(:last-child) {\n border-bottom: 1px solid;\n border-bottom-color: ", ";\n }\n }\n }\n"])), props => props.theme.palette.secondary.main, props => props.theme.palette.primary.main, props => props.checked ? '#ffffff' : '#9397a1', props => props.checked ? '#ffffff' : '#9397a1', props => props.checked || props.hovered ? 'rgba(255, 255, 255, 0.2)' : '#f6f6f6');
266
266
  Plan.propTypes = {
267
267
  plan: _propTypes.default.object,
268
268
  productFeatures: _propTypes.default.array,
package/lib/locales/en.js CHANGED
@@ -39,7 +39,7 @@ module.exports = {
39
39
  }
40
40
  },
41
41
  launch: {
42
- pageTitle: 'Launch',
42
+ pageTitle: 'Prepare Space',
43
43
  invalidFftId: 'Invalid Purchase NFT ID',
44
44
  launchApp: 'Launch Application',
45
45
  launching: 'Your Blocklet Server is being baked, please be patient, it usually takes about 5 minutes',
@@ -95,7 +95,7 @@ module.exports = {
95
95
  }
96
96
  },
97
97
  purchase: {
98
- pageTitle: 'Purchase',
98
+ pageTitle: 'Purchase Space',
99
99
  selectSpaceHint: 'Already have dedicated space? Click here to select >',
100
100
  dialog: {
101
101
  title: 'Purchase Blocklet Server NFT',
package/lib/locales/zh.js CHANGED
@@ -39,7 +39,7 @@ module.exports = {
39
39
  }
40
40
  },
41
41
  launch: {
42
- pageTitle: '启动',
42
+ pageTitle: '准备空间',
43
43
  invalidFftId: '无效的购买凭证',
44
44
  launchApp: '启动应用',
45
45
  launching: '节点正在启动中, 大约需要 5 分钟',
@@ -95,7 +95,7 @@ module.exports = {
95
95
  }
96
96
  },
97
97
  purchase: {
98
- pageTitle: '选购',
98
+ pageTitle: '选购空间',
99
99
  selectSpaceHint: '已有专用空间?点击这里选择 >',
100
100
  dialog: {
101
101
  title: '购买 Blocklet Server NFT',
package/lib/purchase.js CHANGED
@@ -170,13 +170,13 @@ function PurchasePage(_ref) {
170
170
  children: [embed && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
171
171
  className: "select-space",
172
172
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Link, {
173
- to: (0, _urlJoin.default)(routerPrefix, "/select".concat(window.location.search)),
173
+ to: (0, _urlJoin.default)(routerPrefix, "/purchase/select".concat(window.location.search)),
174
174
  children: t('purchase.selectSpaceHint')
175
175
  })
176
176
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
177
177
  component: _reactRouterDom.Link,
178
178
  disabled: planState.loading || !selectedPlanId,
179
- to: (0, _urlJoin.default)(routerPrefix, "/checkout?".concat(params.toString())),
179
+ to: (0, _urlJoin.default)(routerPrefix, "/purchase/checkout?".concat(params.toString())),
180
180
  className: "button-next",
181
181
  variant: "contained",
182
182
  children: t('common.next')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-workflow",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Purchase components for Launcher UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -40,9 +40,9 @@
40
40
  "@arcblock/icons": "^2.5.10",
41
41
  "@arcblock/license": "^2.5.10",
42
42
  "@arcblock/ux": "^2.5.10",
43
- "@blocklet/launcher-layout": "2.0.4",
44
- "@blocklet/launcher-util": "2.0.4",
45
- "@blocklet/launcher-ux": "2.0.4",
43
+ "@blocklet/launcher-layout": "2.0.5",
44
+ "@blocklet/launcher-util": "2.0.5",
45
+ "@blocklet/launcher-ux": "2.0.5",
46
46
  "@did-pay/react": "^1.9.41",
47
47
  "@emotion/react": "^11.10.6",
48
48
  "@emotion/styled": "^11.10.6",
@@ -72,5 +72,5 @@
72
72
  "@babel/preset-react": "^7.18.6",
73
73
  "babel-plugin-inline-react-svg": "^2.0.2"
74
74
  },
75
- "gitHead": "201f0d84547fb0c09c3cc2484d72bb0f84b5842b"
75
+ "gitHead": "e8dfa1e5aa7384efbd60c38a73fdec4e5bdbdc25"
76
76
  }