@plutonhq/core-frontend 0.1.17 → 0.1.19

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/dist-lib/utils.js CHANGED
@@ -1,10 +1,9 @@
1
1
  import { API_URL as r, APP_NAME as o, DEFAULT_PLAN_SETTINGS as a, DEV_MODE as s } from "./utils/constants.js";
2
- import { calculateDirectorySizes as g, clipPath as n, compareVersions as m, formatBytes as l, formatDateTime as p, formatDuration as c, formatNumberToK as P, formatPermissions as f, formatSeconds as A, getAvailableCliApps as M, getLogLevelName as d, getOSIcon as D, getProcessorIcon as E, getUpdateDocLink as S, isMobile as v, isServerEdition as x, isValidEmail as I, secondsToMinutes as N, shouldDisplayStorageField as u, sortFileItems as h, timeAgo as L } from "./utils/helpers.js";
2
+ import { calculateDirectorySizes as g, clipPath as n, compareVersions as m, formatBytes as l, formatDateTime as c, formatDuration as p, formatNumberToK as P, formatPermissions as f, formatSeconds as A, getAvailableCliApps as M, getLogLevelName as D, getOSIcon as E, getProcessorIcon as S, getUpdateDocLink as d, isMobile as I, isServerEdition as N, isValidEmail as u, secondsToMinutes as v, shouldDisplayStorageField as x, sortFileItems as h, timeAgo as L } from "./utils/helpers.js";
3
3
  import { isPlanSettingsValid as F, planIntervalAgeName as _, planIntervalName as R } from "./utils/plans.js";
4
4
  import { extractResticData as b, generateBackupProgressMessage as k, generateMirrorProgressMessage as y, generateRestoreProgressMessage as B, getBackupEventActionMessage as U, getRestoreEventActionMessage as z } from "./utils/progressHelpers.js";
5
5
  import { getParentPath as C, getPathSeparator as G, normalizePath as K, splitPath as j } from "./utils/restore.js";
6
- import { storageProviders as w } from "./utils/storageProviders.js";
7
- import { getIconNameForFile as J } from "./utils/getIconNameforFile.js";
6
+ import { getIconNameForFile as w } from "./utils/getIconNameforFile.js";
8
7
  export {
9
8
  r as API_URL,
10
9
  o as APP_NAME,
@@ -15,8 +14,8 @@ export {
15
14
  m as compareVersions,
16
15
  b as extractResticData,
17
16
  l as formatBytes,
18
- p as formatDateTime,
19
- c as formatDuration,
17
+ c as formatDateTime,
18
+ p as formatDuration,
20
19
  P as formatNumberToK,
21
20
  f as formatPermissions,
22
21
  A as formatSeconds,
@@ -25,26 +24,25 @@ export {
25
24
  B as generateRestoreProgressMessage,
26
25
  M as getAvailableCliApps,
27
26
  U as getBackupEventActionMessage,
28
- J as getIconNameForFile,
29
- d as getLogLevelName,
30
- D as getOSIcon,
27
+ w as getIconNameForFile,
28
+ D as getLogLevelName,
29
+ E as getOSIcon,
31
30
  C as getParentPath,
32
31
  G as getPathSeparator,
33
- E as getProcessorIcon,
32
+ S as getProcessorIcon,
34
33
  z as getRestoreEventActionMessage,
35
- S as getUpdateDocLink,
36
- v as isMobile,
34
+ d as getUpdateDocLink,
35
+ I as isMobile,
37
36
  F as isPlanSettingsValid,
38
- x as isServerEdition,
39
- I as isValidEmail,
37
+ N as isServerEdition,
38
+ u as isValidEmail,
40
39
  K as normalizePath,
41
40
  _ as planIntervalAgeName,
42
41
  R as planIntervalName,
43
- N as secondsToMinutes,
44
- u as shouldDisplayStorageField,
42
+ v as secondsToMinutes,
43
+ x as shouldDisplayStorageField,
45
44
  h as sortFileItems,
46
45
  j as splitPath,
47
- w as storageProviders,
48
46
  L as timeAgo
49
47
  };
50
48
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plutonhq/core-frontend",
3
3
  "description": "Pluton Core Frontend Library",
4
- "version": "0.1.17",
4
+ "version": "0.1.19",
5
5
  "author": "Plutonhq",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {
@@ -221,6 +221,7 @@ const AddStorage = ({ close }: AddStorageProps) => {
221
221
  fieldValue={storageType}
222
222
  full={true}
223
223
  onUpdate={(val: string) => {
224
+ setCurrentAuthType('');
224
225
  setStorageCredentials({});
225
226
  setStorageSettings({});
226
227
  setStorageType(val);
@@ -108,6 +108,9 @@ const StorageAuthSettings = ({
108
108
  <p>
109
109
  <strong>Step 4:</strong> Paste the copied content in the <strong>OAuth Access Token</strong> field above.
110
110
  </p>
111
+ <p>
112
+ <strong>Step 5:</strong> If you no longer need Rclone, you can safely remove it from your system.
113
+ </p>
111
114
  </>
112
115
  )}
113
116
  </div>
@@ -56,7 +56,7 @@ const StorageSettings = ({ fields, onUpdate, settings, errors = {} }: StorageSet
56
56
  </div>
57
57
  );
58
58
  }
59
- if (field.authFieldType && ['input', 'string'].includes(field.fieldType)) {
59
+ if (field.fieldType === 'password') {
60
60
  return (
61
61
  <div key={field.value} className={classes.field}>
62
62
  <PasswordField
@@ -7,6 +7,5 @@ export * from './helpers';
7
7
  export * from './plans';
8
8
  export * from './progressHelpers';
9
9
  export * from './restore';
10
- export * from './storageProviders';
11
10
  export * from './getIconNameforFile';
12
11
  // Note: dummy.ts is excluded as it's likely for testing/development only
@@ -1,416 +0,0 @@
1
- export declare const storageProviders: {
2
- '1fichier': {
3
- id: string;
4
- name: string;
5
- fields: {
6
- label: string;
7
- value: string;
8
- }[];
9
- };
10
- netstorage: {
11
- id: string;
12
- name: string;
13
- fields: {
14
- label: string;
15
- value: string;
16
- }[];
17
- };
18
- amazonS3: {
19
- id: string;
20
- name: string;
21
- fields: {
22
- label: string;
23
- value: string;
24
- }[];
25
- };
26
- backblaze: {
27
- id: string;
28
- name: string;
29
- fields: {
30
- label: string;
31
- value: string;
32
- }[];
33
- };
34
- box: {
35
- id: string;
36
- name: string;
37
- fields: {
38
- label: string;
39
- value: string;
40
- }[];
41
- };
42
- sharefile: {
43
- id: string;
44
- name: string;
45
- fields: {
46
- label: string;
47
- value: string;
48
- }[];
49
- };
50
- dropbox: {
51
- id: string;
52
- name: string;
53
- fields: {
54
- label: string;
55
- value: string;
56
- }[];
57
- };
58
- filesCom: {
59
- id: string;
60
- name: string;
61
- fields: {
62
- label: string;
63
- value: string;
64
- }[];
65
- };
66
- gofile: {
67
- id: string;
68
- name: string;
69
- fields: {
70
- label: string;
71
- value: string;
72
- }[];
73
- };
74
- gcs: {
75
- id: string;
76
- name: string;
77
- fields: {
78
- label: string;
79
- value: string;
80
- }[];
81
- };
82
- gdrive: {
83
- id: string;
84
- name: string;
85
- fields: {
86
- label: string;
87
- value: string;
88
- }[];
89
- };
90
- gphotos: {
91
- id: string;
92
- name: string;
93
- fields: {
94
- label: string;
95
- value: string;
96
- }[];
97
- };
98
- hdfs: {
99
- id: string;
100
- name: string;
101
- fields: {
102
- label: string;
103
- value: string;
104
- }[];
105
- };
106
- hidrive: {
107
- id: string;
108
- name: string;
109
- fields: {
110
- label: string;
111
- value: string;
112
- }[];
113
- };
114
- archive: {
115
- id: string;
116
- name: string;
117
- fields: {
118
- label: string;
119
- value: string;
120
- }[];
121
- };
122
- jotta: {
123
- id: string;
124
- name: string;
125
- fields: {
126
- label: string;
127
- value: string;
128
- }[];
129
- };
130
- koofr: {
131
- id: string;
132
- name: string;
133
- fields: {
134
- label: string;
135
- value: string;
136
- }[];
137
- };
138
- linkbox: {
139
- id: string;
140
- name: string;
141
- fields: {
142
- label: string;
143
- value: string;
144
- }[];
145
- };
146
- mailru: {
147
- id: string;
148
- name: string;
149
- fields: {
150
- label: string;
151
- value: string;
152
- }[];
153
- };
154
- mega: {
155
- id: string;
156
- name: string;
157
- fields: {
158
- label: string;
159
- value: string;
160
- }[];
161
- };
162
- azureBlob: {
163
- id: string;
164
- name: string;
165
- fields: {
166
- label: string;
167
- value: string;
168
- }[];
169
- };
170
- azureFiles: {
171
- id: string;
172
- name: string;
173
- fields: {
174
- label: string;
175
- value: string;
176
- }[];
177
- };
178
- onedrive: {
179
- id: string;
180
- name: string;
181
- fields: {
182
- label: string;
183
- value: string;
184
- }[];
185
- };
186
- opendrive: {
187
- id: string;
188
- name: string;
189
- fields: {
190
- label: string;
191
- value: string;
192
- }[];
193
- };
194
- swift: {
195
- id: string;
196
- name: string;
197
- fields: {
198
- label: string;
199
- value: string;
200
- }[];
201
- };
202
- oracle: {
203
- id: string;
204
- name: string;
205
- fields: {
206
- label: string;
207
- value: string;
208
- }[];
209
- };
210
- pcloud: {
211
- id: string;
212
- name: string;
213
- fields: {
214
- label: string;
215
- value: string;
216
- }[];
217
- };
218
- pikpak: {
219
- id: string;
220
- name: string;
221
- fields: {
222
- label: string;
223
- value: string;
224
- }[];
225
- };
226
- pixeldrain: {
227
- id: string;
228
- name: string;
229
- fields: {
230
- label: string;
231
- value: string;
232
- }[];
233
- };
234
- premiumize: {
235
- id: string;
236
- name: string;
237
- fields: {
238
- label: string;
239
- value: string;
240
- }[];
241
- };
242
- putio: {
243
- id: string;
244
- name: string;
245
- fields: {
246
- label: string;
247
- value: string;
248
- }[];
249
- };
250
- proton: {
251
- id: string;
252
- name: string;
253
- fields: {
254
- label: string;
255
- value: string;
256
- }[];
257
- };
258
- qingstor: {
259
- id: string;
260
- name: string;
261
- fields: {
262
- label: string;
263
- value: string;
264
- }[];
265
- };
266
- quatrix: {
267
- id: string;
268
- name: string;
269
- fields: {
270
- label: string;
271
- value: string;
272
- }[];
273
- };
274
- seafile: {
275
- id: string;
276
- name: string;
277
- fields: {
278
- label: string;
279
- value: string;
280
- }[];
281
- };
282
- sia: {
283
- id: string;
284
- name: string;
285
- fields: {
286
- label: string;
287
- value: string;
288
- }[];
289
- };
290
- sugarsync: {
291
- id: string;
292
- name: string;
293
- fields: {
294
- label: string;
295
- value: string;
296
- }[];
297
- };
298
- storj: {
299
- id: string;
300
- name: string;
301
- fields: {
302
- label: string;
303
- value: string;
304
- }[];
305
- };
306
- ulozto: {
307
- id: string;
308
- name: string;
309
- fields: {
310
- label: string;
311
- value: string;
312
- }[];
313
- };
314
- yandex: {
315
- id: string;
316
- name: string;
317
- fields: {
318
- label: string;
319
- value: string;
320
- }[];
321
- };
322
- zoho: {
323
- id: string;
324
- name: string;
325
- fields: {
326
- label: string;
327
- value: string;
328
- }[];
329
- };
330
- ftp: {
331
- id: string;
332
- name: string;
333
- fields: {
334
- label: string;
335
- value: string;
336
- }[];
337
- };
338
- http: {
339
- id: string;
340
- name: string;
341
- fields: {
342
- label: string;
343
- value: string;
344
- }[];
345
- };
346
- sftp: {
347
- id: string;
348
- name: string;
349
- fields: {
350
- label: string;
351
- value: string;
352
- }[];
353
- };
354
- smb: {
355
- id: string;
356
- name: string;
357
- fields: {
358
- label: string;
359
- value: string;
360
- }[];
361
- };
362
- webdav: {
363
- id: string;
364
- name: string;
365
- fields: {
366
- label: string;
367
- value: string;
368
- }[];
369
- };
370
- local: {
371
- id: string;
372
- name: string;
373
- fields: never[];
374
- };
375
- drime: {
376
- id: string;
377
- name: string;
378
- fields: {
379
- label: string;
380
- value: string;
381
- }[];
382
- };
383
- filelu: {
384
- id: string;
385
- name: string;
386
- fields: {
387
- label: string;
388
- value: string;
389
- }[];
390
- };
391
- filen: {
392
- id: string;
393
- name: string;
394
- fields: {
395
- label: string;
396
- value: string;
397
- }[];
398
- };
399
- internxt: {
400
- id: string;
401
- name: string;
402
- fields: {
403
- label: string;
404
- value: string;
405
- }[];
406
- };
407
- shade: {
408
- id: string;
409
- name: string;
410
- fields: {
411
- label: string;
412
- value: string;
413
- }[];
414
- };
415
- };
416
- //# sourceMappingURL=storageProviders.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storageProviders.d.ts","sourceRoot":"","sources":["../../src/utils/storageProviders.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwZ5B,CAAC"}