@abtnode/ux 1.16.10-beta-cceee857 → 1.16.10-beta-b707d07a

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.
@@ -71,13 +71,15 @@ function useBackupProgress(_ref) {
71
71
  function useBackups(_ref2) {
72
72
  let {
73
73
  blocklet,
74
- loading
74
+ loading,
75
+ progress
75
76
  } = _ref2;
76
77
  const [backups, setBackups] = (0, _react.useState)([]);
77
78
  const {
78
79
  api
79
80
  } = (0, _node.useNodeContext)();
80
- (0, _ahooks.useAsyncEffect)(async () => {
81
+ // eslint-disable-next-line react-hooks/exhaustive-deps
82
+ const fetchBackups = (0, _react.useCallback)((0, _lodash.throttle)(async () => {
81
83
  var _blocklet$meta;
82
84
  const {
83
85
  backups: data
@@ -87,7 +89,10 @@ function useBackups(_ref2) {
87
89
  }
88
90
  });
89
91
  setBackups(data !== null && data !== void 0 ? data : []);
90
- }, [blocklet, loading]);
92
+ }, 2000), []);
93
+ (0, _ahooks.useAsyncEffect)(async () => {
94
+ fetchBackups();
95
+ }, [blocklet, progress, loading]);
91
96
  return {
92
97
  backups
93
98
  };
@@ -141,6 +146,7 @@ function Storage() {
141
146
  backups
142
147
  } = useBackups({
143
148
  blocklet,
149
+ progress,
144
150
  loading
145
151
  });
146
152
  const {
@@ -250,7 +256,7 @@ function Storage() {
250
256
  }
251
257
  const node = !status ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tag.default, {
252
258
  type: "success",
253
- children: t('common.success')
259
+ children: t('common.succeeded')
254
260
  }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
255
261
  display: "inline-flex",
256
262
  alignItems: "center",
package/lib/locales/en.js CHANGED
@@ -119,6 +119,7 @@ module.exports = {
119
119
  confirm: 'Confirm',
120
120
  connect: 'Connect',
121
121
  console: 'Console',
122
+ continue: 'Continue',
122
123
  continueWith: 'Continue With',
123
124
  copiedTip: 'Copied',
124
125
  copyTip: 'Click To Copy',
@@ -263,7 +264,7 @@ module.exports = {
263
264
  storage: 'Storage',
264
265
  backup: 'Backup',
265
266
  store: 'Store',
266
- success: 'success',
267
+ succeeded: 'succeeded',
267
268
  support: 'Support',
268
269
  team: 'Team',
269
270
  the: 'The',
@@ -301,7 +302,7 @@ module.exports = {
301
302
  strategy: 'Strategy',
302
303
  auto: 'Auto',
303
304
  manual: 'Manual',
304
- progress: 'Progress',
305
+ progress: 'In progress',
305
306
  startTime: 'Start time',
306
307
  endTime: 'End time'
307
308
  },
@@ -1219,6 +1220,8 @@ module.exports = {
1219
1220
  extractingComponent: 'Extracting: {name}',
1220
1221
  extracting: 'Extracting blocklet bundle',
1221
1222
  installing: 'Installing blocklet and setup components',
1223
+ installed: 'Installed',
1224
+ starting: 'Starting...',
1222
1225
  done: 'Installation Complete'
1223
1226
  },
1224
1227
  error: {
package/lib/locales/zh.js CHANGED
@@ -122,6 +122,7 @@ module.exports = {
122
122
  confirm: '确认',
123
123
  connect: '连接',
124
124
  console: '控制台',
125
+ continue: '继续',
125
126
  continueWith: '确认继续',
126
127
  copiedTip: '已复制',
127
128
  copyTip: '点击复制',
@@ -268,7 +269,7 @@ module.exports = {
268
269
  storage: '存储',
269
270
  backup: '备份',
270
271
  store: '商店',
271
- success: '成功',
272
+ succeeded: '成功',
272
273
  support: '服务支持',
273
274
  team: '团队',
274
275
  the: '此',
@@ -1224,6 +1225,8 @@ module.exports = {
1224
1225
  downloadingComponent: '下载中: {name}',
1225
1226
  extractingComponent: '提取中: {name}',
1226
1227
  installing: '安装应用和设置组件',
1228
+ installed: '已安装',
1229
+ starting: '正在启动...',
1227
1230
  done: '安装完成'
1228
1231
  },
1229
1232
  error: {
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
8
+ var _launchResultMessage = _interopRequireDefault(require("@blocklet/launcher-layout/lib/launch-result-message"));
9
+ var _templateObject;
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
+ const StyledResultMessage = (0, _styled.default)(_launchResultMessage.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n && .result-footer {\n height: 120px;\n > div {\n flex-wrap: wrap;\n }\n }\n"])));
13
+ var _default = StyledResultMessage;
14
+ exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.10-beta-cceee857",
3
+ "version": "1.16.10-beta-b707d07a",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,9 +23,9 @@
23
23
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@abtnode/auth": "1.16.10-beta-cceee857",
27
- "@abtnode/constant": "1.16.10-beta-cceee857",
28
- "@abtnode/util": "1.16.10-beta-cceee857",
26
+ "@abtnode/auth": "1.16.10-beta-b707d07a",
27
+ "@abtnode/constant": "1.16.10-beta-b707d07a",
28
+ "@abtnode/util": "1.16.10-beta-b707d07a",
29
29
  "@ahooksjs/use-url-state": "^3.5.1",
30
30
  "@arcblock/did": "^1.18.80",
31
31
  "@arcblock/did-connect": "^2.5.42",
@@ -34,10 +34,10 @@
34
34
  "@arcblock/react-hooks": "^2.5.42",
35
35
  "@arcblock/terminal": "^2.5.42",
36
36
  "@arcblock/ux": "^2.5.42",
37
- "@blocklet/constant": "1.16.10-beta-cceee857",
37
+ "@blocklet/constant": "1.16.10-beta-b707d07a",
38
38
  "@blocklet/launcher-layout": "2.0.40",
39
39
  "@blocklet/list": "^0.11.26",
40
- "@blocklet/meta": "1.16.10-beta-cceee857",
40
+ "@blocklet/meta": "1.16.10-beta-b707d07a",
41
41
  "@blocklet/ui-react": "^2.5.42",
42
42
  "@emotion/react": "^11.10.4",
43
43
  "@emotion/styled": "^11.10.4",
@@ -94,5 +94,5 @@
94
94
  "@babel/preset-react": "^7.18.6",
95
95
  "babel-plugin-inline-react-svg": "^1.1.2"
96
96
  },
97
- "gitHead": "821e24df918ee50a05c64e0da6757926d42a948d"
97
+ "gitHead": "5f5f4d2251c0556c262833536892d0542f85968d"
98
98
  }