@freelog/tools-lib 0.1.183 → 0.1.185
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/service-API/policies.d.ts +9 -0
- package/dist/service-API/resources.d.ts +1 -1
- package/dist/tools-lib.cjs.development.js +502 -696
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +502 -696
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +8 -1
- package/package.json +1 -1
- package/src/i18n/I18nNext.ts +156 -156
- package/src/service-API/contracts.ts +157 -157
- package/src/service-API/policies.ts +93 -75
- package/src/service-API/presentables.ts +605 -605
- package/src/service-API/resources.ts +1379 -1379
- package/src/service-API/storages.ts +418 -418
- package/src/service-API/user.ts +324 -324
- package/src/utils/linkTo.ts +683 -666
package/dist/tools-lib.esm.js
CHANGED
|
@@ -212,311 +212,118 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
212
212
|
if (null == r) return {};
|
|
213
213
|
var t = {};
|
|
214
214
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
215
|
-
if (e.
|
|
215
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
216
216
|
t[n] = r[n];
|
|
217
217
|
}
|
|
218
218
|
return t;
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
return o(a, "_invoke", {
|
|
255
|
-
value: makeInvokeMethod(t, r, c)
|
|
256
|
-
}), a;
|
|
257
|
-
}
|
|
258
|
-
function tryCatch(t, e, r) {
|
|
259
|
-
try {
|
|
260
|
-
return {
|
|
261
|
-
type: "normal",
|
|
262
|
-
arg: t.call(e, r)
|
|
263
|
-
};
|
|
264
|
-
} catch (t) {
|
|
265
|
-
return {
|
|
266
|
-
type: "throw",
|
|
267
|
-
arg: t
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
e.wrap = wrap;
|
|
272
|
-
var h = "suspendedStart",
|
|
273
|
-
l = "suspendedYield",
|
|
274
|
-
f = "executing",
|
|
275
|
-
s = "completed",
|
|
276
|
-
y = {};
|
|
277
|
-
function Generator() {}
|
|
278
|
-
function GeneratorFunction() {}
|
|
279
|
-
function GeneratorFunctionPrototype() {}
|
|
280
|
-
var p = {};
|
|
281
|
-
define(p, a, function () {
|
|
282
|
-
return this;
|
|
283
|
-
});
|
|
284
|
-
var d = Object.getPrototypeOf,
|
|
285
|
-
v = d && d(d(values([])));
|
|
286
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
287
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
288
|
-
function defineIteratorMethods(t) {
|
|
289
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
290
|
-
define(t, e, function (t) {
|
|
291
|
-
return this._invoke(e, t);
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
function AsyncIterator(t, e) {
|
|
296
|
-
function invoke(r, o, i, a) {
|
|
297
|
-
var c = tryCatch(t[r], t, o);
|
|
298
|
-
if ("throw" !== c.type) {
|
|
299
|
-
var u = c.arg,
|
|
300
|
-
h = u.value;
|
|
301
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
302
|
-
invoke("next", t, i, a);
|
|
303
|
-
}, function (t) {
|
|
304
|
-
invoke("throw", t, i, a);
|
|
305
|
-
}) : e.resolve(h).then(function (t) {
|
|
306
|
-
u.value = t, i(u);
|
|
307
|
-
}, function (t) {
|
|
308
|
-
return invoke("throw", t, i, a);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
a(c.arg);
|
|
312
|
-
}
|
|
313
|
-
var r;
|
|
314
|
-
o(this, "_invoke", {
|
|
315
|
-
value: function (t, n) {
|
|
316
|
-
function callInvokeWithMethodAndArg() {
|
|
317
|
-
return new e(function (e, r) {
|
|
318
|
-
invoke(t, n, e, r);
|
|
319
|
-
});
|
|
220
|
+
function _regenerator() {
|
|
221
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
222
|
+
var e,
|
|
223
|
+
t,
|
|
224
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
225
|
+
n = r.iterator || "@@iterator",
|
|
226
|
+
o = r.toStringTag || "@@toStringTag";
|
|
227
|
+
function i(r, n, o, i) {
|
|
228
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
229
|
+
u = Object.create(c.prototype);
|
|
230
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
231
|
+
var i,
|
|
232
|
+
c,
|
|
233
|
+
u,
|
|
234
|
+
f = 0,
|
|
235
|
+
p = o || [],
|
|
236
|
+
y = !1,
|
|
237
|
+
G = {
|
|
238
|
+
p: 0,
|
|
239
|
+
n: 0,
|
|
240
|
+
v: e,
|
|
241
|
+
a: d,
|
|
242
|
+
f: d.bind(e, 4),
|
|
243
|
+
d: function (t, r) {
|
|
244
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
function d(r, n) {
|
|
248
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
249
|
+
var o,
|
|
250
|
+
i = p[t],
|
|
251
|
+
d = G.p,
|
|
252
|
+
l = i[2];
|
|
253
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
320
254
|
}
|
|
321
|
-
|
|
255
|
+
if (o || r > 1) return a;
|
|
256
|
+
throw y = !0, n;
|
|
322
257
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
258
|
+
return function (o, p, l) {
|
|
259
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
260
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
261
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
262
|
+
try {
|
|
263
|
+
if (f = 2, i) {
|
|
264
|
+
if (c || (o = "next"), t = i[o]) {
|
|
265
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
266
|
+
if (!t.done) return t;
|
|
267
|
+
u = t.value, c < 2 && (c = 0);
|
|
268
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
269
|
+
i = e;
|
|
270
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
271
|
+
} catch (t) {
|
|
272
|
+
i = e, c = 1, u = t;
|
|
273
|
+
} finally {
|
|
274
|
+
f = 1;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
331
277
|
return {
|
|
332
278
|
value: t,
|
|
333
|
-
done:
|
|
279
|
+
done: y
|
|
334
280
|
};
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
var c = n.delegate;
|
|
338
|
-
if (c) {
|
|
339
|
-
var u = maybeInvokeDelegate(c, n);
|
|
340
|
-
if (u) {
|
|
341
|
-
if (u === y) continue;
|
|
342
|
-
return u;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
346
|
-
if (o === h) throw o = s, n.arg;
|
|
347
|
-
n.dispatchException(n.arg);
|
|
348
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
349
|
-
o = f;
|
|
350
|
-
var p = tryCatch(e, r, n);
|
|
351
|
-
if ("normal" === p.type) {
|
|
352
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
353
|
-
return {
|
|
354
|
-
value: p.arg,
|
|
355
|
-
done: n.done
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
function maybeInvokeDelegate(e, r) {
|
|
363
|
-
var n = r.method,
|
|
364
|
-
o = e.iterator[n];
|
|
365
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
366
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
367
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
368
|
-
var a = i.arg;
|
|
369
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
370
|
-
}
|
|
371
|
-
function pushTryEntry(t) {
|
|
372
|
-
var e = {
|
|
373
|
-
tryLoc: t[0]
|
|
374
|
-
};
|
|
375
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
376
|
-
}
|
|
377
|
-
function resetTryEntry(t) {
|
|
378
|
-
var e = t.completion || {};
|
|
379
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
380
|
-
}
|
|
381
|
-
function Context(t) {
|
|
382
|
-
this.tryEntries = [{
|
|
383
|
-
tryLoc: "root"
|
|
384
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
281
|
+
};
|
|
282
|
+
}(r, o, i), !0), u;
|
|
385
283
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
return i.next = i;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
284
|
+
var a = {};
|
|
285
|
+
function Generator() {}
|
|
286
|
+
function GeneratorFunction() {}
|
|
287
|
+
function GeneratorFunctionPrototype() {}
|
|
288
|
+
t = Object.getPrototypeOf;
|
|
289
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
290
|
+
return this;
|
|
291
|
+
}), t),
|
|
292
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
293
|
+
function f(e) {
|
|
294
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
401
295
|
}
|
|
402
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
403
|
-
value: GeneratorFunctionPrototype,
|
|
404
|
-
configurable: !0
|
|
405
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
406
|
-
value: GeneratorFunction,
|
|
407
|
-
configurable: !0
|
|
408
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
409
|
-
var e = "function" == typeof t && t.constructor;
|
|
410
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
411
|
-
}, e.mark = function (t) {
|
|
412
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
413
|
-
}, e.awrap = function (t) {
|
|
414
|
-
return {
|
|
415
|
-
__await: t
|
|
416
|
-
};
|
|
417
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
296
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
418
297
|
return this;
|
|
419
|
-
}),
|
|
420
|
-
void 0 === i && (i = Promise);
|
|
421
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
422
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
423
|
-
return t.done ? t.value : a.next();
|
|
424
|
-
});
|
|
425
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
426
|
-
return this;
|
|
427
|
-
}), define(g, "toString", function () {
|
|
298
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
428
299
|
return "[object Generator]";
|
|
429
|
-
}),
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
return r.reverse(), function next() {
|
|
434
|
-
for (; r.length;) {
|
|
435
|
-
var t = r.pop();
|
|
436
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
437
|
-
}
|
|
438
|
-
return next.done = !0, next;
|
|
300
|
+
}), (_regenerator = function () {
|
|
301
|
+
return {
|
|
302
|
+
w: i,
|
|
303
|
+
m: f
|
|
439
304
|
};
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
function handle(n, o) {
|
|
455
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
456
|
-
}
|
|
457
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
458
|
-
var i = this.tryEntries[o],
|
|
459
|
-
a = i.completion;
|
|
460
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
461
|
-
if (i.tryLoc <= this.prev) {
|
|
462
|
-
var c = n.call(i, "catchLoc"),
|
|
463
|
-
u = n.call(i, "finallyLoc");
|
|
464
|
-
if (c && u) {
|
|
465
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
466
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
467
|
-
} else if (c) {
|
|
468
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
469
|
-
} else {
|
|
470
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
471
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
},
|
|
476
|
-
abrupt: function (t, e) {
|
|
477
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
478
|
-
var o = this.tryEntries[r];
|
|
479
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
480
|
-
var i = o;
|
|
481
|
-
break;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
485
|
-
var a = i ? i.completion : {};
|
|
486
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
487
|
-
},
|
|
488
|
-
complete: function (t, e) {
|
|
489
|
-
if ("throw" === t.type) throw t.arg;
|
|
490
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
491
|
-
},
|
|
492
|
-
finish: function (t) {
|
|
493
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
494
|
-
var r = this.tryEntries[e];
|
|
495
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
catch: function (t) {
|
|
499
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
500
|
-
var r = this.tryEntries[e];
|
|
501
|
-
if (r.tryLoc === t) {
|
|
502
|
-
var n = r.completion;
|
|
503
|
-
if ("throw" === n.type) {
|
|
504
|
-
var o = n.arg;
|
|
505
|
-
resetTryEntry(r);
|
|
506
|
-
}
|
|
507
|
-
return o;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
throw Error("illegal catch attempt");
|
|
511
|
-
},
|
|
512
|
-
delegateYield: function (e, r, n) {
|
|
513
|
-
return this.delegate = {
|
|
514
|
-
iterator: values(e),
|
|
515
|
-
resultName: r,
|
|
516
|
-
nextLoc: n
|
|
517
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
305
|
+
})();
|
|
306
|
+
}
|
|
307
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
308
|
+
var i = Object.defineProperty;
|
|
309
|
+
try {
|
|
310
|
+
i({}, "", {});
|
|
311
|
+
} catch (e) {
|
|
312
|
+
i = 0;
|
|
313
|
+
}
|
|
314
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
315
|
+
function o(r, n) {
|
|
316
|
+
_regeneratorDefine(e, r, function (e) {
|
|
317
|
+
return this._invoke(r, n, e);
|
|
318
|
+
});
|
|
518
319
|
}
|
|
519
|
-
|
|
320
|
+
r ? i ? i(e, r, {
|
|
321
|
+
value: n,
|
|
322
|
+
enumerable: !t,
|
|
323
|
+
configurable: !t,
|
|
324
|
+
writable: !t
|
|
325
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
326
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
520
327
|
}
|
|
521
328
|
|
|
522
329
|
var _excluded = ["resourceID"],
|
|
@@ -538,26 +345,33 @@ function activity(_ref3) {
|
|
|
538
345
|
var activityID = _ref3.activityID;
|
|
539
346
|
return "/activity/" + activityID;
|
|
540
347
|
}
|
|
348
|
+
function wxShare(_ref4) {
|
|
349
|
+
var link = _ref4.link,
|
|
350
|
+
title = _ref4.title,
|
|
351
|
+
desc = _ref4.desc,
|
|
352
|
+
imgUrl = _ref4.imgUrl;
|
|
353
|
+
return "/wx-share/index.html#title=" + title + "&desc=" + desc + "&link=" + link + "&imgUrl=" + imgUrl;
|
|
354
|
+
}
|
|
541
355
|
function dashboard(_temp3) {
|
|
542
356
|
_objectDestructuringEmpty(_temp3 === void 0 ? {} : _temp3);
|
|
543
357
|
return "/dashboard";
|
|
544
358
|
}
|
|
545
359
|
function market(_temp4) {
|
|
546
|
-
var
|
|
547
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
360
|
+
var _ref6 = _temp4 === void 0 ? {} : _temp4,
|
|
361
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref6), _ref6));
|
|
548
362
|
return "/market" + handleQuery(params);
|
|
549
363
|
}
|
|
550
364
|
function exampleNodes(_temp5) {
|
|
551
365
|
_objectDestructuringEmpty(_temp5 === void 0 ? {} : _temp5);
|
|
552
366
|
return "/examples";
|
|
553
367
|
}
|
|
554
|
-
function resourceDetails(
|
|
555
|
-
var resourceID =
|
|
556
|
-
params = _objectWithoutPropertiesLoose(
|
|
368
|
+
function resourceDetails(_ref8) {
|
|
369
|
+
var resourceID = _ref8.resourceID,
|
|
370
|
+
params = _objectWithoutPropertiesLoose(_ref8, _excluded);
|
|
557
371
|
return "/resource/details/" + resourceID + handleQuery(params);
|
|
558
372
|
}
|
|
559
|
-
function collectionDetails(
|
|
560
|
-
var collectionID =
|
|
373
|
+
function collectionDetails(_ref9) {
|
|
374
|
+
var collectionID = _ref9.collectionID;
|
|
561
375
|
return "/resource/collectionDetails/" + collectionID;
|
|
562
376
|
}
|
|
563
377
|
function resourceCreatorEntry(_temp6) {
|
|
@@ -576,159 +390,159 @@ function collectionCreator(_temp9) {
|
|
|
576
390
|
_objectDestructuringEmpty(_temp9 === void 0 ? {} : _temp9);
|
|
577
391
|
return "/resource/collectionCreator";
|
|
578
392
|
}
|
|
579
|
-
function myResources(
|
|
580
|
-
_objectDestructuringEmpty(
|
|
393
|
+
function myResources(_temp0) {
|
|
394
|
+
_objectDestructuringEmpty(_temp0 === void 0 ? {} : _temp0);
|
|
581
395
|
return "/resource/list";
|
|
582
396
|
}
|
|
583
|
-
function myCollections(
|
|
584
|
-
_objectDestructuringEmpty(
|
|
397
|
+
function myCollections(_temp1) {
|
|
398
|
+
_objectDestructuringEmpty(_temp1 === void 0 ? {} : _temp1);
|
|
585
399
|
return "/resource/collection";
|
|
586
400
|
}
|
|
587
|
-
function myCollects(
|
|
588
|
-
_objectDestructuringEmpty(
|
|
401
|
+
function myCollects(_temp10) {
|
|
402
|
+
_objectDestructuringEmpty(_temp10 === void 0 ? {} : _temp10);
|
|
589
403
|
return "/resource/collect";
|
|
590
404
|
}
|
|
591
|
-
function resourceVersionInfo(
|
|
592
|
-
var resourceID =
|
|
593
|
-
|
|
594
|
-
version =
|
|
405
|
+
function resourceVersionInfo(_ref15) {
|
|
406
|
+
var resourceID = _ref15.resourceID,
|
|
407
|
+
_ref15$version = _ref15.version,
|
|
408
|
+
version = _ref15$version === void 0 ? '' : _ref15$version;
|
|
595
409
|
return "/resource/sidebar/versionInfo/" + resourceID + handleQuery({
|
|
596
410
|
version: version
|
|
597
411
|
});
|
|
598
412
|
}
|
|
599
|
-
function resourceInfo(
|
|
600
|
-
var resourceID =
|
|
413
|
+
function resourceInfo(_ref16) {
|
|
414
|
+
var resourceID = _ref16.resourceID;
|
|
601
415
|
return "/resource/sidebar/info/" + resourceID;
|
|
602
416
|
}
|
|
603
|
-
function resourcePolicy(
|
|
604
|
-
var resourceID =
|
|
417
|
+
function resourcePolicy(_ref17) {
|
|
418
|
+
var resourceID = _ref17.resourceID;
|
|
605
419
|
return "/resource/sidebar/policy/" + resourceID;
|
|
606
420
|
}
|
|
607
|
-
function resourceContract(
|
|
608
|
-
var resourceID =
|
|
421
|
+
function resourceContract(_ref18) {
|
|
422
|
+
var resourceID = _ref18.resourceID;
|
|
609
423
|
return "/resource/sidebar/contract/" + resourceID;
|
|
610
424
|
}
|
|
611
|
-
function resourceDependency(
|
|
612
|
-
var resourceID =
|
|
425
|
+
function resourceDependency(_ref19) {
|
|
426
|
+
var resourceID = _ref19.resourceID;
|
|
613
427
|
return "/resource/sidebar/dependency/" + resourceID;
|
|
614
428
|
}
|
|
615
|
-
function resourceVersionCreator(
|
|
616
|
-
var resourceID =
|
|
429
|
+
function resourceVersionCreator(_ref20) {
|
|
430
|
+
var resourceID = _ref20.resourceID;
|
|
617
431
|
return "/resource/versionCreator/" + resourceID;
|
|
618
432
|
}
|
|
619
|
-
function collectionVersionInfo(
|
|
620
|
-
var collectionID =
|
|
433
|
+
function collectionVersionInfo(_ref21) {
|
|
434
|
+
var collectionID = _ref21.collectionID;
|
|
621
435
|
return "/resource/collectionSidebar/versionInfo/" + collectionID;
|
|
622
436
|
}
|
|
623
|
-
function collectionInfo(
|
|
624
|
-
var collectionID =
|
|
437
|
+
function collectionInfo(_ref22) {
|
|
438
|
+
var collectionID = _ref22.collectionID;
|
|
625
439
|
return "/resource/collectionSidebar/info/" + collectionID;
|
|
626
440
|
}
|
|
627
|
-
function collectionPolicy(
|
|
628
|
-
var collectionID =
|
|
441
|
+
function collectionPolicy(_ref23) {
|
|
442
|
+
var collectionID = _ref23.collectionID;
|
|
629
443
|
return "/resource/collectionSidebar/policy/" + collectionID;
|
|
630
444
|
}
|
|
631
|
-
function collectionContract(
|
|
632
|
-
var collectionID =
|
|
445
|
+
function collectionContract(_ref24) {
|
|
446
|
+
var collectionID = _ref24.collectionID;
|
|
633
447
|
return "/resource/collectionSidebar/contract/" + collectionID;
|
|
634
448
|
}
|
|
635
|
-
function collectionDependency(
|
|
636
|
-
var collectionID =
|
|
449
|
+
function collectionDependency(_ref25) {
|
|
450
|
+
var collectionID = _ref25.collectionID;
|
|
637
451
|
return "/resource/collectionSidebar/dependency/" + collectionID;
|
|
638
452
|
}
|
|
639
|
-
function nodeCreator(
|
|
640
|
-
_objectDestructuringEmpty(
|
|
453
|
+
function nodeCreator(_temp11) {
|
|
454
|
+
_objectDestructuringEmpty(_temp11 === void 0 ? {} : _temp11);
|
|
641
455
|
return "/node/creator";
|
|
642
456
|
}
|
|
643
|
-
function nodeManagement(
|
|
644
|
-
var nodeID =
|
|
645
|
-
|
|
646
|
-
showPage =
|
|
647
|
-
params = _objectWithoutPropertiesLoose(
|
|
457
|
+
function nodeManagement(_ref27) {
|
|
458
|
+
var nodeID = _ref27.nodeID,
|
|
459
|
+
_ref27$showPage = _ref27.showPage,
|
|
460
|
+
showPage = _ref27$showPage === void 0 ? 'exhibit' : _ref27$showPage,
|
|
461
|
+
params = _objectWithoutPropertiesLoose(_ref27, _excluded2);
|
|
648
462
|
return "/node/formal/" + nodeID + handleQuery(_extends({
|
|
649
463
|
showPage: showPage
|
|
650
464
|
}, params));
|
|
651
465
|
}
|
|
652
|
-
function exhibitManagement(
|
|
653
|
-
var exhibitID =
|
|
654
|
-
params = _objectWithoutPropertiesLoose(
|
|
466
|
+
function exhibitManagement(_ref28) {
|
|
467
|
+
var exhibitID = _ref28.exhibitID,
|
|
468
|
+
params = _objectWithoutPropertiesLoose(_ref28, _excluded3);
|
|
655
469
|
return "/node/exhibit/formal/" + exhibitID + handleQuery(_extends({}, params));
|
|
656
470
|
}
|
|
657
|
-
function collectionExhibitManagement(
|
|
658
|
-
var exhibitID =
|
|
659
|
-
openAuthDrawer =
|
|
471
|
+
function collectionExhibitManagement(_ref29) {
|
|
472
|
+
var exhibitID = _ref29.exhibitID,
|
|
473
|
+
openAuthDrawer = _ref29.openAuthDrawer;
|
|
660
474
|
return "/node/collectionExhibit/formal/" + exhibitID + handleQuery({
|
|
661
475
|
openAuthDrawer: openAuthDrawer
|
|
662
476
|
});
|
|
663
477
|
}
|
|
664
|
-
function collectionExhibitCreator(
|
|
665
|
-
var nodeID =
|
|
478
|
+
function collectionExhibitCreator(_ref30) {
|
|
479
|
+
var nodeID = _ref30.nodeID;
|
|
666
480
|
return "/node/collectionExhibitCreator/" + nodeID;
|
|
667
481
|
}
|
|
668
|
-
function createdCollectionExhibitManagement(
|
|
669
|
-
var exhibitID =
|
|
482
|
+
function createdCollectionExhibitManagement(_ref31) {
|
|
483
|
+
var exhibitID = _ref31.exhibitID;
|
|
670
484
|
return "/node/createdCollectionExhibit/formal/" + exhibitID;
|
|
671
485
|
}
|
|
672
|
-
function informNodeManagement(
|
|
673
|
-
var nodeID =
|
|
674
|
-
|
|
675
|
-
showPage =
|
|
676
|
-
params = _objectWithoutPropertiesLoose(
|
|
486
|
+
function informNodeManagement(_ref32) {
|
|
487
|
+
var nodeID = _ref32.nodeID,
|
|
488
|
+
_ref32$showPage = _ref32.showPage,
|
|
489
|
+
showPage = _ref32$showPage === void 0 ? 'exhibit' : _ref32$showPage,
|
|
490
|
+
params = _objectWithoutPropertiesLoose(_ref32, _excluded4);
|
|
677
491
|
return "/node/informal/" + nodeID + handleQuery(_extends({
|
|
678
492
|
showPage: showPage
|
|
679
493
|
}, params));
|
|
680
494
|
}
|
|
681
|
-
function informExhibitManagement(
|
|
682
|
-
var exhibitID =
|
|
683
|
-
|
|
684
|
-
openAuthDrawer =
|
|
495
|
+
function informExhibitManagement(_ref33) {
|
|
496
|
+
var exhibitID = _ref33.exhibitID,
|
|
497
|
+
_ref33$openAuthDrawer = _ref33.openAuthDrawer,
|
|
498
|
+
openAuthDrawer = _ref33$openAuthDrawer === void 0 ? undefined : _ref33$openAuthDrawer;
|
|
685
499
|
return "/node/exhibit/informal/" + exhibitID + handleQuery({
|
|
686
500
|
openAuthDrawer: openAuthDrawer
|
|
687
501
|
});
|
|
688
502
|
}
|
|
689
|
-
function storageSpace(
|
|
690
|
-
var
|
|
691
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
503
|
+
function storageSpace(_temp12) {
|
|
504
|
+
var _ref34 = _temp12 === void 0 ? {} : _temp12,
|
|
505
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref34), _ref34));
|
|
692
506
|
return "/storage" + handleQuery(params);
|
|
693
507
|
}
|
|
694
|
-
function objectDetails(
|
|
695
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
508
|
+
function objectDetails(_ref35) {
|
|
509
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref35), _ref35));
|
|
696
510
|
return "/storage" + handleQuery(params);
|
|
697
511
|
}
|
|
698
|
-
function collectionCreateSuccess(
|
|
699
|
-
var collectionID =
|
|
512
|
+
function collectionCreateSuccess(_ref36) {
|
|
513
|
+
var collectionID = _ref36.collectionID;
|
|
700
514
|
return "/result/collection/create/success/" + collectionID;
|
|
701
515
|
}
|
|
702
|
-
function resourceCreateSuccess(
|
|
703
|
-
var resourceID =
|
|
516
|
+
function resourceCreateSuccess(_ref37) {
|
|
517
|
+
var resourceID = _ref37.resourceID;
|
|
704
518
|
return "/result/resource/create/success/" + resourceID;
|
|
705
519
|
}
|
|
706
|
-
function resourceVersionCreateSuccess(
|
|
707
|
-
var resourceID =
|
|
708
|
-
version =
|
|
520
|
+
function resourceVersionCreateSuccess(_ref38) {
|
|
521
|
+
var resourceID = _ref38.resourceID,
|
|
522
|
+
version = _ref38.version;
|
|
709
523
|
return "/result/resource/version/create/success/" + resourceID + "/" + version;
|
|
710
524
|
}
|
|
711
|
-
function resourceVersionCreateRelease(
|
|
712
|
-
var resourceID =
|
|
713
|
-
version =
|
|
525
|
+
function resourceVersionCreateRelease(_ref39) {
|
|
526
|
+
var resourceID = _ref39.resourceID,
|
|
527
|
+
version = _ref39.version;
|
|
714
528
|
return "/result/resource/version/create/release/" + resourceID + "/" + version;
|
|
715
529
|
}
|
|
716
|
-
function nodeCreateSuccess(
|
|
717
|
-
var nodeID =
|
|
530
|
+
function nodeCreateSuccess(_ref40) {
|
|
531
|
+
var nodeID = _ref40.nodeID;
|
|
718
532
|
return "/result/node/create/success/" + nodeID;
|
|
719
533
|
}
|
|
720
|
-
function invitation(
|
|
721
|
-
var
|
|
722
|
-
goTo =
|
|
723
|
-
params = _objectWithoutPropertiesLoose(
|
|
534
|
+
function invitation(_temp13) {
|
|
535
|
+
var _ref41 = _temp13 === void 0 ? {} : _temp13,
|
|
536
|
+
goTo = _ref41.goTo,
|
|
537
|
+
params = _objectWithoutPropertiesLoose(_ref41, _excluded5);
|
|
724
538
|
// console.log(params.goTo, 'goTo9iowjefklsdj;flksdjflk')
|
|
725
539
|
return "/invitation" + handleQuery(_extends({}, params, {
|
|
726
540
|
returnUrl: goTo ? encodeURIComponent(goTo) : undefined
|
|
727
541
|
}));
|
|
728
542
|
}
|
|
729
|
-
function exception403(
|
|
730
|
-
var
|
|
731
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
543
|
+
function exception403(_temp14) {
|
|
544
|
+
var _ref42 = _temp14 === void 0 ? {} : _temp14,
|
|
545
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref42), _ref42));
|
|
732
546
|
var fromUrl = params.from || '';
|
|
733
547
|
if (!fromUrl) {
|
|
734
548
|
var _window$location = window.location,
|
|
@@ -740,9 +554,9 @@ function exception403(_temp16) {
|
|
|
740
554
|
from: fromUrl
|
|
741
555
|
});
|
|
742
556
|
}
|
|
743
|
-
function exceptionUnableToAccess(
|
|
744
|
-
var
|
|
745
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
557
|
+
function exceptionUnableToAccess(_temp15) {
|
|
558
|
+
var _ref43 = _temp15 === void 0 ? {} : _temp15,
|
|
559
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref43), _ref43));
|
|
746
560
|
var fromUrl = params.from || '';
|
|
747
561
|
if (!fromUrl) {
|
|
748
562
|
var _window$location2 = window.location,
|
|
@@ -754,88 +568,88 @@ function exceptionUnableToAccess(_temp17) {
|
|
|
754
568
|
from: fromUrl
|
|
755
569
|
});
|
|
756
570
|
}
|
|
757
|
-
function exceptionCommon(
|
|
758
|
-
var
|
|
759
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
571
|
+
function exceptionCommon(_temp16) {
|
|
572
|
+
var _ref44 = _temp16 === void 0 ? {} : _temp16,
|
|
573
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref44), _ref44));
|
|
760
574
|
return "/exception/common" + handleQuery(_extends({}, params));
|
|
761
575
|
}
|
|
762
|
-
function nodeFreeze(
|
|
763
|
-
var nodeID =
|
|
576
|
+
function nodeFreeze(_ref45) {
|
|
577
|
+
var nodeID = _ref45.nodeID;
|
|
764
578
|
return "/result/node/freeze/" + nodeID;
|
|
765
579
|
}
|
|
766
|
-
function resourceFreeze(
|
|
767
|
-
var resourceID =
|
|
580
|
+
function resourceFreeze(_ref46) {
|
|
581
|
+
var resourceID = _ref46.resourceID;
|
|
768
582
|
return "/result/resource/freeze/" + resourceID;
|
|
769
583
|
}
|
|
770
|
-
function globalSearch(
|
|
771
|
-
var search =
|
|
584
|
+
function globalSearch(_ref47) {
|
|
585
|
+
var search = _ref47.search;
|
|
772
586
|
return "/search" + handleQuery({
|
|
773
587
|
search: search
|
|
774
588
|
});
|
|
775
589
|
}
|
|
776
|
-
function login(
|
|
777
|
-
var
|
|
778
|
-
goTo =
|
|
590
|
+
function login(_temp17) {
|
|
591
|
+
var _ref48 = _temp17 === void 0 ? {} : _temp17,
|
|
592
|
+
goTo = _ref48.goTo;
|
|
779
593
|
return "/login" + handleQuery({
|
|
780
594
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
781
595
|
});
|
|
782
596
|
}
|
|
783
|
-
function logon(
|
|
784
|
-
var
|
|
785
|
-
goTo =
|
|
786
|
-
params = _objectWithoutPropertiesLoose(
|
|
597
|
+
function logon(_temp18) {
|
|
598
|
+
var _ref49 = _temp18 === void 0 ? {} : _temp18,
|
|
599
|
+
goTo = _ref49.goTo,
|
|
600
|
+
params = _objectWithoutPropertiesLoose(_ref49, _excluded6);
|
|
787
601
|
return "/logon" + handleQuery(_extends({
|
|
788
602
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
789
603
|
}, params));
|
|
790
604
|
}
|
|
791
|
-
function bind(
|
|
792
|
-
var
|
|
793
|
-
goTo =
|
|
794
|
-
returnUrl =
|
|
795
|
-
params = _objectWithoutPropertiesLoose(
|
|
605
|
+
function bind(_temp19) {
|
|
606
|
+
var _ref50 = _temp19 === void 0 ? {} : _temp19,
|
|
607
|
+
goTo = _ref50.goTo,
|
|
608
|
+
returnUrl = _ref50.returnUrl,
|
|
609
|
+
params = _objectWithoutPropertiesLoose(_ref50, _excluded7);
|
|
796
610
|
return "/bind" + handleQuery(_extends({
|
|
797
611
|
goTo: goTo ? encodeURIComponent(goTo) : undefined,
|
|
798
612
|
returnUrl: returnUrl ? encodeURIComponent(returnUrl) : undefined
|
|
799
613
|
}, params));
|
|
800
614
|
}
|
|
801
|
-
function retrieveUserPassword(
|
|
802
|
-
var
|
|
803
|
-
goTo =
|
|
615
|
+
function retrieveUserPassword(_temp20) {
|
|
616
|
+
var _ref51 = _temp20 === void 0 ? {} : _temp20,
|
|
617
|
+
goTo = _ref51.goTo;
|
|
804
618
|
return "/retrieve" + handleQuery({
|
|
805
619
|
goTo: goTo ? encodeURIComponent(goTo) : undefined
|
|
806
620
|
});
|
|
807
621
|
}
|
|
808
|
-
function retrievePayPassword(
|
|
809
|
-
_objectDestructuringEmpty(
|
|
622
|
+
function retrievePayPassword(_temp21) {
|
|
623
|
+
_objectDestructuringEmpty(_temp21 === void 0 ? {} : _temp21);
|
|
810
624
|
return "/retrievePayPassword";
|
|
811
625
|
}
|
|
812
|
-
function userFreeze(
|
|
813
|
-
_objectDestructuringEmpty(
|
|
626
|
+
function userFreeze(_temp22) {
|
|
627
|
+
_objectDestructuringEmpty(_temp22 === void 0 ? {} : _temp22);
|
|
814
628
|
return "/freeze";
|
|
815
629
|
}
|
|
816
|
-
function wallet(
|
|
817
|
-
_objectDestructuringEmpty(
|
|
630
|
+
function wallet(_temp23) {
|
|
631
|
+
_objectDestructuringEmpty(_temp23 === void 0 ? {} : _temp23);
|
|
818
632
|
return "/logged/wallet";
|
|
819
633
|
}
|
|
820
|
-
function reward(
|
|
821
|
-
_objectDestructuringEmpty(
|
|
634
|
+
function reward(_temp24) {
|
|
635
|
+
_objectDestructuringEmpty(_temp24 === void 0 ? {} : _temp24);
|
|
822
636
|
return "/logged/reward";
|
|
823
637
|
}
|
|
824
|
-
function contract(
|
|
825
|
-
var
|
|
826
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
638
|
+
function contract(_temp25) {
|
|
639
|
+
var _ref56 = _temp25 === void 0 ? {} : _temp25,
|
|
640
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref56), _ref56));
|
|
827
641
|
return "/logged/contract" + handleQuery(_extends({}, params));
|
|
828
642
|
}
|
|
829
|
-
function setting(
|
|
830
|
-
_objectDestructuringEmpty(
|
|
643
|
+
function setting(_temp26) {
|
|
644
|
+
_objectDestructuringEmpty(_temp26 === void 0 ? {} : _temp26);
|
|
831
645
|
return "/logged/setting";
|
|
832
646
|
}
|
|
833
|
-
function binding(
|
|
834
|
-
_objectDestructuringEmpty(
|
|
647
|
+
function binding(_temp27) {
|
|
648
|
+
_objectDestructuringEmpty(_temp27 === void 0 ? {} : _temp27);
|
|
835
649
|
return "/logged/binding";
|
|
836
650
|
}
|
|
837
|
-
function resultBindingSuccess(
|
|
838
|
-
_objectDestructuringEmpty(
|
|
651
|
+
function resultBindingSuccess(_temp28) {
|
|
652
|
+
_objectDestructuringEmpty(_temp28 === void 0 ? {} : _temp28);
|
|
839
653
|
return "/result/binding";
|
|
840
654
|
}
|
|
841
655
|
/************** user End ******************************************************/
|
|
@@ -858,6 +672,7 @@ var LinkTo = {
|
|
|
858
672
|
home: home,
|
|
859
673
|
activities: activities,
|
|
860
674
|
activity: activity,
|
|
675
|
+
wxShare: wxShare,
|
|
861
676
|
dashboard: dashboard,
|
|
862
677
|
market: market,
|
|
863
678
|
exampleNodes: exampleNodes,
|
|
@@ -1035,16 +850,16 @@ var _excluded$1 = ["presentableId"],
|
|
|
1035
850
|
_excluded7$1 = ["presentableId"],
|
|
1036
851
|
_excluded8 = ["presentableId"],
|
|
1037
852
|
_excluded9 = ["nodeId"],
|
|
1038
|
-
|
|
853
|
+
_excluded0 = ["nodeId"],
|
|
854
|
+
_excluded1 = ["presentableId"],
|
|
855
|
+
_excluded10 = ["presentableId"],
|
|
1039
856
|
_excluded11 = ["presentableId"],
|
|
1040
857
|
_excluded12 = ["presentableId"],
|
|
1041
858
|
_excluded13 = ["presentableId"],
|
|
1042
859
|
_excluded14 = ["presentableId"],
|
|
1043
860
|
_excluded15 = ["presentableId"],
|
|
1044
861
|
_excluded16 = ["presentableId"],
|
|
1045
|
-
_excluded17 = ["presentableId"]
|
|
1046
|
-
_excluded18 = ["presentableId"],
|
|
1047
|
-
_excluded19 = ["presentableId"];
|
|
862
|
+
_excluded17 = ["presentableId"];
|
|
1048
863
|
function createPresentable(params) {
|
|
1049
864
|
return FUtil.Request({
|
|
1050
865
|
method: 'POST',
|
|
@@ -1156,7 +971,7 @@ function batchAuth(_ref8) {
|
|
|
1156
971
|
}
|
|
1157
972
|
function contractAppliedPresentable(_ref9) {
|
|
1158
973
|
var nodeId = _ref9.nodeId,
|
|
1159
|
-
params = _objectWithoutPropertiesLoose(_ref9,
|
|
974
|
+
params = _objectWithoutPropertiesLoose(_ref9, _excluded0);
|
|
1160
975
|
return FUtil.Request({
|
|
1161
976
|
method: 'GET',
|
|
1162
977
|
url: "/v2/presentables/" + nodeId + "/contractAppliedPresentable",
|
|
@@ -1170,120 +985,120 @@ function batchCreatePresentable(params) {
|
|
|
1170
985
|
data: params
|
|
1171
986
|
});
|
|
1172
987
|
}
|
|
1173
|
-
function batchUpdatePresentable(
|
|
1174
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
988
|
+
function batchUpdatePresentable(_ref0) {
|
|
989
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref0), _ref0));
|
|
1175
990
|
return FUtil.Request({
|
|
1176
991
|
method: 'PUT',
|
|
1177
992
|
url: "/v2/presentables/updatePresentableBatch",
|
|
1178
993
|
data: params
|
|
1179
994
|
});
|
|
1180
995
|
}
|
|
1181
|
-
function batchUpdatePresentableStatus(
|
|
1182
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
996
|
+
function batchUpdatePresentableStatus(_ref1) {
|
|
997
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref1), _ref1));
|
|
1183
998
|
return FUtil.Request({
|
|
1184
999
|
method: 'PUT',
|
|
1185
1000
|
url: "/v2/presentables/updatePresentableOnlineStatusBatch",
|
|
1186
1001
|
data: params
|
|
1187
1002
|
});
|
|
1188
1003
|
}
|
|
1189
|
-
function ignorePresentableVersionUpdateTip(
|
|
1190
|
-
var presentableId =
|
|
1191
|
-
params = _objectWithoutPropertiesLoose(
|
|
1004
|
+
function ignorePresentableVersionUpdateTip(_ref10) {
|
|
1005
|
+
var presentableId = _ref10.presentableId,
|
|
1006
|
+
params = _objectWithoutPropertiesLoose(_ref10, _excluded1);
|
|
1192
1007
|
return FUtil.Request({
|
|
1193
1008
|
method: 'POST',
|
|
1194
1009
|
url: "/v2/presentables/" + presentableId + "/ignorePresentableVersionUpdateTip",
|
|
1195
1010
|
data: params
|
|
1196
1011
|
});
|
|
1197
1012
|
}
|
|
1198
|
-
function createPresentableCollection(
|
|
1199
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1013
|
+
function createPresentableCollection(_ref11) {
|
|
1014
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref11), _ref11));
|
|
1200
1015
|
return FUtil.Request({
|
|
1201
1016
|
method: 'POST',
|
|
1202
1017
|
url: "/v2/presentables/catalogues",
|
|
1203
1018
|
data: params
|
|
1204
1019
|
});
|
|
1205
1020
|
}
|
|
1206
|
-
function updatePresentableCollection(
|
|
1207
|
-
var presentableId =
|
|
1208
|
-
params = _objectWithoutPropertiesLoose(
|
|
1021
|
+
function updatePresentableCollection(_ref12) {
|
|
1022
|
+
var presentableId = _ref12.presentableId,
|
|
1023
|
+
params = _objectWithoutPropertiesLoose(_ref12, _excluded10);
|
|
1209
1024
|
return FUtil.Request({
|
|
1210
1025
|
method: 'PUT',
|
|
1211
1026
|
url: "/v2/presentables/catalogues/" + presentableId,
|
|
1212
1027
|
data: params
|
|
1213
1028
|
});
|
|
1214
1029
|
}
|
|
1215
|
-
function addItemsToPresentableCollection(
|
|
1216
|
-
var presentableId =
|
|
1217
|
-
params = _objectWithoutPropertiesLoose(
|
|
1030
|
+
function addItemsToPresentableCollection(_ref13) {
|
|
1031
|
+
var presentableId = _ref13.presentableId,
|
|
1032
|
+
params = _objectWithoutPropertiesLoose(_ref13, _excluded11);
|
|
1218
1033
|
return FUtil.Request({
|
|
1219
1034
|
method: 'POST',
|
|
1220
1035
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1221
1036
|
data: params
|
|
1222
1037
|
});
|
|
1223
1038
|
}
|
|
1224
|
-
function removeItemsFromPresentableCollection(
|
|
1225
|
-
var presentableId =
|
|
1226
|
-
params = _objectWithoutPropertiesLoose(
|
|
1039
|
+
function removeItemsFromPresentableCollection(_ref14) {
|
|
1040
|
+
var presentableId = _ref14.presentableId,
|
|
1041
|
+
params = _objectWithoutPropertiesLoose(_ref14, _excluded12);
|
|
1227
1042
|
return FUtil.Request({
|
|
1228
1043
|
method: 'DELETE',
|
|
1229
1044
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1230
1045
|
params: params
|
|
1231
1046
|
});
|
|
1232
1047
|
}
|
|
1233
|
-
function getItemsFromPresentableCollection(
|
|
1234
|
-
var presentableId =
|
|
1235
|
-
params = _objectWithoutPropertiesLoose(
|
|
1048
|
+
function getItemsFromPresentableCollection(_ref15) {
|
|
1049
|
+
var presentableId = _ref15.presentableId,
|
|
1050
|
+
params = _objectWithoutPropertiesLoose(_ref15, _excluded13);
|
|
1236
1051
|
return FUtil.Request({
|
|
1237
1052
|
method: 'GET',
|
|
1238
1053
|
url: "/v2/presentables/catalogues/" + presentableId + "/items",
|
|
1239
1054
|
params: params
|
|
1240
1055
|
});
|
|
1241
1056
|
}
|
|
1242
|
-
function getItemsFromPresentableCollectionIsExist(
|
|
1243
|
-
var presentableId =
|
|
1244
|
-
params = _objectWithoutPropertiesLoose(
|
|
1057
|
+
function getItemsFromPresentableCollectionIsExist(_ref16) {
|
|
1058
|
+
var presentableId = _ref16.presentableId,
|
|
1059
|
+
params = _objectWithoutPropertiesLoose(_ref16, _excluded14);
|
|
1245
1060
|
return FUtil.Request({
|
|
1246
1061
|
method: 'GET',
|
|
1247
1062
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/checkExists",
|
|
1248
1063
|
params: params
|
|
1249
1064
|
});
|
|
1250
1065
|
}
|
|
1251
|
-
function setItemsSortFromPresentableCollectionManual(
|
|
1252
|
-
var presentableId =
|
|
1253
|
-
params = _objectWithoutPropertiesLoose(
|
|
1066
|
+
function setItemsSortFromPresentableCollectionManual(_ref17) {
|
|
1067
|
+
var presentableId = _ref17.presentableId,
|
|
1068
|
+
params = _objectWithoutPropertiesLoose(_ref17, _excluded15);
|
|
1254
1069
|
return FUtil.Request({
|
|
1255
1070
|
method: 'PUT',
|
|
1256
1071
|
url: "/v2/presentables/catalogues/" + presentableId + "/manualSort",
|
|
1257
1072
|
data: params
|
|
1258
1073
|
});
|
|
1259
1074
|
}
|
|
1260
|
-
function setItemsSortFromPresentableCollectionQuick(
|
|
1261
|
-
var presentableId =
|
|
1262
|
-
params = _objectWithoutPropertiesLoose(
|
|
1075
|
+
function setItemsSortFromPresentableCollectionQuick(_ref18) {
|
|
1076
|
+
var presentableId = _ref18.presentableId,
|
|
1077
|
+
params = _objectWithoutPropertiesLoose(_ref18, _excluded16);
|
|
1263
1078
|
return FUtil.Request({
|
|
1264
1079
|
method: 'PUT',
|
|
1265
1080
|
url: "/v2/presentables/catalogues/" + presentableId + "/reorder",
|
|
1266
1081
|
data: params
|
|
1267
1082
|
});
|
|
1268
1083
|
}
|
|
1269
|
-
function getItemsAutoCollectRule(
|
|
1270
|
-
var presentableId =
|
|
1084
|
+
function getItemsAutoCollectRule(_ref19) {
|
|
1085
|
+
var presentableId = _ref19.presentableId;
|
|
1271
1086
|
return FUtil.Request({
|
|
1272
1087
|
method: 'GET',
|
|
1273
1088
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules"
|
|
1274
1089
|
});
|
|
1275
1090
|
}
|
|
1276
|
-
function setItemsAutoCollectRule(
|
|
1277
|
-
var presentableId =
|
|
1278
|
-
params = _objectWithoutPropertiesLoose(
|
|
1091
|
+
function setItemsAutoCollectRule(_ref20) {
|
|
1092
|
+
var presentableId = _ref20.presentableId,
|
|
1093
|
+
params = _objectWithoutPropertiesLoose(_ref20, _excluded17);
|
|
1279
1094
|
return FUtil.Request({
|
|
1280
1095
|
method: 'POST',
|
|
1281
1096
|
url: "/v2/presentables/catalogues/" + presentableId + "/items/collectRules",
|
|
1282
1097
|
data: params
|
|
1283
1098
|
});
|
|
1284
1099
|
}
|
|
1285
|
-
function getItemsFromPresentableCollections(
|
|
1286
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1100
|
+
function getItemsFromPresentableCollections(_ref21) {
|
|
1101
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref21), _ref21));
|
|
1287
1102
|
return FUtil.Request({
|
|
1288
1103
|
method: 'GET',
|
|
1289
1104
|
// url: `/v2/presentables/catalogues/items/batch/list?presentableIds=685cf423e1502e002fe3053b&limit=1&sortType=-1&sortField=createDate`,
|
|
@@ -1545,16 +1360,16 @@ function clearUserNodeData(_ref9) {
|
|
|
1545
1360
|
data: params
|
|
1546
1361
|
});
|
|
1547
1362
|
}
|
|
1548
|
-
function filesListInfo(
|
|
1549
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1363
|
+
function filesListInfo(_ref0) {
|
|
1364
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref0), _ref0));
|
|
1550
1365
|
return FUtil.Request({
|
|
1551
1366
|
method: 'GET',
|
|
1552
1367
|
url: "/v2/storages/files/list/info",
|
|
1553
1368
|
params: params
|
|
1554
1369
|
});
|
|
1555
1370
|
}
|
|
1556
|
-
function filesInfo(
|
|
1557
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1371
|
+
function filesInfo(_ref1) {
|
|
1372
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref1), _ref1));
|
|
1558
1373
|
return FUtil.Request({
|
|
1559
1374
|
method: 'GET',
|
|
1560
1375
|
url: "/v2/storages/files/info",
|
|
@@ -1651,6 +1466,8 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1651
1466
|
_excluded7$2 = ["fileSha1"],
|
|
1652
1467
|
_excluded8$1 = ["fileSha1"],
|
|
1653
1468
|
_excluded9$1 = ["resourceId"],
|
|
1469
|
+
_excluded0$1 = ["resourceId"],
|
|
1470
|
+
_excluded1$1 = ["resourceId"],
|
|
1654
1471
|
_excluded10$1 = ["resourceId"],
|
|
1655
1472
|
_excluded11$1 = ["resourceId"],
|
|
1656
1473
|
_excluded12$1 = ["resourceId"],
|
|
@@ -1659,16 +1476,14 @@ var _excluded$3 = ["resourceIdOrName"],
|
|
|
1659
1476
|
_excluded15$1 = ["resourceId"],
|
|
1660
1477
|
_excluded16$1 = ["resourceId"],
|
|
1661
1478
|
_excluded17$1 = ["resourceId"],
|
|
1662
|
-
_excluded18
|
|
1663
|
-
_excluded19
|
|
1479
|
+
_excluded18 = ["resourceId"],
|
|
1480
|
+
_excluded19 = ["resourceId"],
|
|
1664
1481
|
_excluded20 = ["resourceId"],
|
|
1665
1482
|
_excluded21 = ["resourceId"],
|
|
1666
1483
|
_excluded22 = ["resourceId"],
|
|
1667
|
-
_excluded23 = ["resourceId"],
|
|
1484
|
+
_excluded23 = ["resourceId", "itemId"],
|
|
1668
1485
|
_excluded24 = ["resourceId"],
|
|
1669
|
-
_excluded25 = ["resourceId"
|
|
1670
|
-
_excluded26 = ["resourceId"],
|
|
1671
|
-
_excluded27 = ["resourceId"];
|
|
1486
|
+
_excluded25 = ["resourceId"];
|
|
1672
1487
|
function create$1(params) {
|
|
1673
1488
|
return FUtil.Request({
|
|
1674
1489
|
method: 'POST',
|
|
@@ -1838,8 +1653,8 @@ function lookDraft(params) {
|
|
|
1838
1653
|
params: params
|
|
1839
1654
|
});
|
|
1840
1655
|
}
|
|
1841
|
-
function deleteResourceDraft(
|
|
1842
|
-
var resourceId =
|
|
1656
|
+
function deleteResourceDraft(_ref0) {
|
|
1657
|
+
var resourceId = _ref0.resourceId;
|
|
1843
1658
|
// return FUtil.Axios.post(`/v2/resources/${params.resourceId}/versions/drafts`, params);
|
|
1844
1659
|
return FUtil.Request({
|
|
1845
1660
|
method: 'DELETE',
|
|
@@ -1862,9 +1677,9 @@ function resourcesDownload(params) {
|
|
|
1862
1677
|
// responseType: 'arraybuffer',
|
|
1863
1678
|
// });
|
|
1864
1679
|
}
|
|
1865
|
-
function batchGetCoverageVersions(
|
|
1866
|
-
var resourceId =
|
|
1867
|
-
params = _objectWithoutPropertiesLoose(
|
|
1680
|
+
function batchGetCoverageVersions(_ref1) {
|
|
1681
|
+
var resourceId = _ref1.resourceId,
|
|
1682
|
+
params = _objectWithoutPropertiesLoose(_ref1, _excluded9$1);
|
|
1868
1683
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/contracts/coverageVersions`, {
|
|
1869
1684
|
// params,
|
|
1870
1685
|
// });
|
|
@@ -1881,9 +1696,9 @@ function resolveResources(params) {
|
|
|
1881
1696
|
url: "/v2/resources/" + params.resourceId + "/resolveResources"
|
|
1882
1697
|
});
|
|
1883
1698
|
}
|
|
1884
|
-
function batchSetContracts(
|
|
1885
|
-
var resourceId =
|
|
1886
|
-
params = _objectWithoutPropertiesLoose(
|
|
1699
|
+
function batchSetContracts(_ref10) {
|
|
1700
|
+
var resourceId = _ref10.resourceId,
|
|
1701
|
+
params = _objectWithoutPropertiesLoose(_ref10, _excluded0$1);
|
|
1887
1702
|
// return FUtil.Axios.put(`/v2/resources/${resourceId}/versions/batchSetContracts`, params);
|
|
1888
1703
|
return FUtil.Request({
|
|
1889
1704
|
method: 'PUT',
|
|
@@ -1891,9 +1706,9 @@ function batchSetContracts(_ref12) {
|
|
|
1891
1706
|
data: params
|
|
1892
1707
|
});
|
|
1893
1708
|
}
|
|
1894
|
-
function cycleDependencyCheck$1(
|
|
1895
|
-
var resourceId =
|
|
1896
|
-
params = _objectWithoutPropertiesLoose(
|
|
1709
|
+
function cycleDependencyCheck$1(_ref11) {
|
|
1710
|
+
var resourceId = _ref11.resourceId,
|
|
1711
|
+
params = _objectWithoutPropertiesLoose(_ref11, _excluded1$1);
|
|
1897
1712
|
// return FUtil.Axios.post(`/v2/resources/${resourceId}/versions/cycleDependencyCheck`, params);
|
|
1898
1713
|
return FUtil.Request({
|
|
1899
1714
|
method: 'POST',
|
|
@@ -1901,9 +1716,9 @@ function cycleDependencyCheck$1(_ref13) {
|
|
|
1901
1716
|
data: params
|
|
1902
1717
|
});
|
|
1903
1718
|
}
|
|
1904
|
-
function relationTree$1(
|
|
1905
|
-
var resourceId =
|
|
1906
|
-
params = _objectWithoutPropertiesLoose(
|
|
1719
|
+
function relationTree$1(_ref12) {
|
|
1720
|
+
var resourceId = _ref12.resourceId,
|
|
1721
|
+
params = _objectWithoutPropertiesLoose(_ref12, _excluded10$1);
|
|
1907
1722
|
// return FUtil.Axios.get(`/v2/resources/${resourceId}/relationTree`, {
|
|
1908
1723
|
// params,
|
|
1909
1724
|
// });
|
|
@@ -1913,41 +1728,41 @@ function relationTree$1(_ref14) {
|
|
|
1913
1728
|
params: params
|
|
1914
1729
|
});
|
|
1915
1730
|
}
|
|
1916
|
-
function relationTreeAuth(
|
|
1917
|
-
var resourceId =
|
|
1918
|
-
params = _objectWithoutPropertiesLoose(
|
|
1731
|
+
function relationTreeAuth(_ref13) {
|
|
1732
|
+
var resourceId = _ref13.resourceId,
|
|
1733
|
+
params = _objectWithoutPropertiesLoose(_ref13, _excluded11$1);
|
|
1919
1734
|
return FUtil.Request({
|
|
1920
1735
|
method: 'GET',
|
|
1921
1736
|
url: "/v2/auths/resources/" + resourceId + "/relationTreeAuth",
|
|
1922
1737
|
params: params
|
|
1923
1738
|
});
|
|
1924
1739
|
}
|
|
1925
|
-
function resourcesCount(
|
|
1926
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1740
|
+
function resourcesCount(_ref14) {
|
|
1741
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref14), _ref14));
|
|
1927
1742
|
return FUtil.Request({
|
|
1928
1743
|
method: 'GET',
|
|
1929
1744
|
url: "/v2/resources/count",
|
|
1930
1745
|
params: params
|
|
1931
1746
|
});
|
|
1932
1747
|
}
|
|
1933
|
-
function batchAuth$1(
|
|
1934
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1748
|
+
function batchAuth$1(_ref15) {
|
|
1749
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref15), _ref15));
|
|
1935
1750
|
return FUtil.Request({
|
|
1936
1751
|
method: 'GET',
|
|
1937
1752
|
url: "/v2/auths/resources/batchAuth/results",
|
|
1938
1753
|
params: params
|
|
1939
1754
|
});
|
|
1940
1755
|
}
|
|
1941
|
-
function resourcesRecommend(
|
|
1942
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1756
|
+
function resourcesRecommend(_ref16) {
|
|
1757
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref16), _ref16));
|
|
1943
1758
|
return FUtil.Request({
|
|
1944
1759
|
method: 'GET',
|
|
1945
1760
|
url: "/v2/resources/recommend",
|
|
1946
1761
|
params: params
|
|
1947
1762
|
});
|
|
1948
1763
|
}
|
|
1949
|
-
function availableTags(
|
|
1950
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1764
|
+
function availableTags(_ref17) {
|
|
1765
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref17), _ref17));
|
|
1951
1766
|
return FUtil.Request({
|
|
1952
1767
|
method: 'GET',
|
|
1953
1768
|
url: "/v2/resources/tags/availableTags",
|
|
@@ -1955,32 +1770,32 @@ function availableTags(_ref19) {
|
|
|
1955
1770
|
});
|
|
1956
1771
|
}
|
|
1957
1772
|
function resourceTypes$1(_temp) {
|
|
1958
|
-
var
|
|
1959
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
1773
|
+
var _ref18 = _temp === void 0 ? {} : _temp,
|
|
1774
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref18), _ref18));
|
|
1960
1775
|
return FUtil.Request({
|
|
1961
1776
|
method: 'GET',
|
|
1962
1777
|
url: "/v2/resources/types/listSimpleByGroup",
|
|
1963
1778
|
params: params
|
|
1964
1779
|
});
|
|
1965
1780
|
}
|
|
1966
|
-
function ListSimpleByParentCode(
|
|
1967
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1781
|
+
function ListSimpleByParentCode(_ref19) {
|
|
1782
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref19), _ref19));
|
|
1968
1783
|
return FUtil.Request({
|
|
1969
1784
|
method: 'GET',
|
|
1970
1785
|
url: "/v2/resources/types/listSimpleByParentCode",
|
|
1971
1786
|
params: params
|
|
1972
1787
|
});
|
|
1973
1788
|
}
|
|
1974
|
-
function getResourceTypeInfoByCode(
|
|
1975
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1789
|
+
function getResourceTypeInfoByCode(_ref20) {
|
|
1790
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref20), _ref20));
|
|
1976
1791
|
return FUtil.Request({
|
|
1977
1792
|
method: 'GET',
|
|
1978
1793
|
url: "/v2/resources/types/getInfoByCode",
|
|
1979
1794
|
params: params
|
|
1980
1795
|
});
|
|
1981
1796
|
}
|
|
1982
|
-
function getResourceAttrListSimple(
|
|
1983
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1797
|
+
function getResourceAttrListSimple(_ref21) {
|
|
1798
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref21), _ref21));
|
|
1984
1799
|
return FUtil.Request({
|
|
1985
1800
|
method: 'GET',
|
|
1986
1801
|
url: "/v2/resources/attrs/listSimple",
|
|
@@ -1988,24 +1803,24 @@ function getResourceAttrListSimple(_ref23) {
|
|
|
1988
1803
|
});
|
|
1989
1804
|
}
|
|
1990
1805
|
function listSimple4Recently(_temp2) {
|
|
1991
|
-
var
|
|
1992
|
-
params = _extends({}, (_objectDestructuringEmpty(
|
|
1806
|
+
var _ref22 = _temp2 === void 0 ? {} : _temp2,
|
|
1807
|
+
params = _extends({}, (_objectDestructuringEmpty(_ref22), _ref22));
|
|
1993
1808
|
return FUtil.Request({
|
|
1994
1809
|
method: 'GET',
|
|
1995
1810
|
url: "/v2/resources/types/listSimple4Recently",
|
|
1996
1811
|
params: params
|
|
1997
1812
|
});
|
|
1998
1813
|
}
|
|
1999
|
-
function getAttrsInfoByKey(
|
|
2000
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1814
|
+
function getAttrsInfoByKey(_ref23) {
|
|
1815
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref23), _ref23));
|
|
2001
1816
|
return FUtil.Request({
|
|
2002
1817
|
method: 'GET',
|
|
2003
1818
|
url: "/v2/resources/attrs/getInfoByKey",
|
|
2004
1819
|
params: params
|
|
2005
1820
|
});
|
|
2006
1821
|
}
|
|
2007
|
-
function generateResourceNames(
|
|
2008
|
-
var resourceNames =
|
|
1822
|
+
function generateResourceNames(_ref24) {
|
|
1823
|
+
var resourceNames = _ref24.resourceNames;
|
|
2009
1824
|
return FUtil.Request({
|
|
2010
1825
|
method: 'POST',
|
|
2011
1826
|
url: "/v2/resources/generateResourceNames",
|
|
@@ -2014,165 +1829,165 @@ function generateResourceNames(_ref26) {
|
|
|
2014
1829
|
}
|
|
2015
1830
|
});
|
|
2016
1831
|
}
|
|
2017
|
-
function updateCollection(
|
|
2018
|
-
var resourceId =
|
|
2019
|
-
params = _objectWithoutPropertiesLoose(
|
|
1832
|
+
function updateCollection(_ref25) {
|
|
1833
|
+
var resourceId = _ref25.resourceId,
|
|
1834
|
+
params = _objectWithoutPropertiesLoose(_ref25, _excluded12$1);
|
|
2020
1835
|
return FUtil.Request({
|
|
2021
1836
|
method: 'PUT',
|
|
2022
1837
|
url: "/v2/resources/catalogue/" + resourceId,
|
|
2023
1838
|
data: params
|
|
2024
1839
|
});
|
|
2025
1840
|
}
|
|
2026
|
-
function deleteCollectionUnitResource(
|
|
2027
|
-
var resourceId =
|
|
2028
|
-
removeCollectionItemIds =
|
|
1841
|
+
function deleteCollectionUnitResource(_ref26) {
|
|
1842
|
+
var resourceId = _ref26.resourceId,
|
|
1843
|
+
removeCollectionItemIds = _ref26.removeCollectionItemIds;
|
|
2029
1844
|
return FUtil.Request({
|
|
2030
1845
|
method: 'DELETE',
|
|
2031
1846
|
url: "/v2/resources/catalogue/" + resourceId + "?removeCollectionItemIds=" + removeCollectionItemIds.join(',')
|
|
2032
1847
|
});
|
|
2033
1848
|
}
|
|
2034
|
-
function getCollectionItems(
|
|
2035
|
-
var resourceId =
|
|
2036
|
-
params = _objectWithoutPropertiesLoose(
|
|
1849
|
+
function getCollectionItems(_ref27) {
|
|
1850
|
+
var resourceId = _ref27.resourceId,
|
|
1851
|
+
params = _objectWithoutPropertiesLoose(_ref27, _excluded13$1);
|
|
2037
1852
|
return FUtil.Request({
|
|
2038
1853
|
method: 'GET',
|
|
2039
1854
|
url: "/v2/resources/catalogue/" + resourceId + "/items",
|
|
2040
1855
|
params: params
|
|
2041
1856
|
});
|
|
2042
1857
|
}
|
|
2043
|
-
function getCollectionItems_Draft(
|
|
2044
|
-
var resourceId =
|
|
2045
|
-
params = _objectWithoutPropertiesLoose(
|
|
1858
|
+
function getCollectionItems_Draft(_ref28) {
|
|
1859
|
+
var resourceId = _ref28.resourceId,
|
|
1860
|
+
params = _objectWithoutPropertiesLoose(_ref28, _excluded14$1);
|
|
2046
1861
|
return FUtil.Request({
|
|
2047
1862
|
method: 'GET',
|
|
2048
1863
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items",
|
|
2049
1864
|
params: params
|
|
2050
1865
|
});
|
|
2051
1866
|
}
|
|
2052
|
-
function setCollectionItemSort(
|
|
2053
|
-
var resourceId =
|
|
2054
|
-
params = _objectWithoutPropertiesLoose(
|
|
1867
|
+
function setCollectionItemSort(_ref29) {
|
|
1868
|
+
var resourceId = _ref29.resourceId,
|
|
1869
|
+
params = _objectWithoutPropertiesLoose(_ref29, _excluded15$1);
|
|
2055
1870
|
return FUtil.Request({
|
|
2056
1871
|
method: 'PUT',
|
|
2057
1872
|
url: "/v2/resources/catalogue/" + resourceId + "/manualSort",
|
|
2058
1873
|
data: params
|
|
2059
1874
|
});
|
|
2060
1875
|
}
|
|
2061
|
-
function reorderCollectionItemsSort(
|
|
2062
|
-
var resourceId =
|
|
2063
|
-
params = _objectWithoutPropertiesLoose(
|
|
1876
|
+
function reorderCollectionItemsSort(_ref30) {
|
|
1877
|
+
var resourceId = _ref30.resourceId,
|
|
1878
|
+
params = _objectWithoutPropertiesLoose(_ref30, _excluded16$1);
|
|
2064
1879
|
return FUtil.Request({
|
|
2065
1880
|
method: 'PUT',
|
|
2066
1881
|
url: "/v2/resources/catalogue/" + resourceId + "/reorder",
|
|
2067
1882
|
data: params
|
|
2068
1883
|
});
|
|
2069
1884
|
}
|
|
2070
|
-
function checkExistCollectionItems(
|
|
2071
|
-
var resourceId =
|
|
2072
|
-
params = _objectWithoutPropertiesLoose(
|
|
1885
|
+
function checkExistCollectionItems(_ref31) {
|
|
1886
|
+
var resourceId = _ref31.resourceId,
|
|
1887
|
+
params = _objectWithoutPropertiesLoose(_ref31, _excluded17$1);
|
|
2073
1888
|
return FUtil.Request({
|
|
2074
1889
|
method: 'GET',
|
|
2075
1890
|
url: "/v2/resources/catalogue/" + resourceId + "/items/checkExists",
|
|
2076
1891
|
params: params
|
|
2077
1892
|
});
|
|
2078
1893
|
}
|
|
2079
|
-
function getCollectionItemsAuth(
|
|
2080
|
-
var resourceId =
|
|
2081
|
-
params = _objectWithoutPropertiesLoose(
|
|
1894
|
+
function getCollectionItemsAuth(_ref32) {
|
|
1895
|
+
var resourceId = _ref32.resourceId,
|
|
1896
|
+
params = _objectWithoutPropertiesLoose(_ref32, _excluded18);
|
|
2082
1897
|
return FUtil.Request({
|
|
2083
1898
|
method: 'GET',
|
|
2084
1899
|
url: "/v2/auths/resources/" + resourceId + "/items/batchAuth",
|
|
2085
1900
|
params: params
|
|
2086
1901
|
});
|
|
2087
1902
|
}
|
|
2088
|
-
function batchResourceItems(
|
|
2089
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1903
|
+
function batchResourceItems(_ref33) {
|
|
1904
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref33), _ref33));
|
|
2090
1905
|
return FUtil.Request({
|
|
2091
1906
|
method: 'GET',
|
|
2092
1907
|
url: "/v2/resources/catalogue/items/batch/list",
|
|
2093
1908
|
params: params
|
|
2094
1909
|
});
|
|
2095
1910
|
}
|
|
2096
|
-
function batchResourceItems_Draft(
|
|
2097
|
-
var params = _extends({}, (_objectDestructuringEmpty(
|
|
1911
|
+
function batchResourceItems_Draft(_ref34) {
|
|
1912
|
+
var params = _extends({}, (_objectDestructuringEmpty(_ref34), _ref34));
|
|
2098
1913
|
return FUtil.Request({
|
|
2099
1914
|
method: 'GET',
|
|
2100
1915
|
url: "/v2/resources/catalogues/drafts/items/batch/list",
|
|
2101
1916
|
params: params
|
|
2102
1917
|
});
|
|
2103
1918
|
}
|
|
2104
|
-
function getCollectionUpdateLogs(
|
|
2105
|
-
var resourceId =
|
|
2106
|
-
params = _objectWithoutPropertiesLoose(
|
|
1919
|
+
function getCollectionUpdateLogs(_ref35) {
|
|
1920
|
+
var resourceId = _ref35.resourceId,
|
|
1921
|
+
params = _objectWithoutPropertiesLoose(_ref35, _excluded19);
|
|
2107
1922
|
return FUtil.Request({
|
|
2108
1923
|
method: 'GET',
|
|
2109
1924
|
url: "/v2/resources/catalogue/" + resourceId + "/updateLogs",
|
|
2110
1925
|
params: params
|
|
2111
1926
|
});
|
|
2112
1927
|
}
|
|
2113
|
-
function getCollectionCollectRules(
|
|
2114
|
-
var resourceId =
|
|
1928
|
+
function getCollectionCollectRules(_ref36) {
|
|
1929
|
+
var resourceId = _ref36.resourceId;
|
|
2115
1930
|
return FUtil.Request({
|
|
2116
1931
|
method: 'GET',
|
|
2117
1932
|
url: "/v2/resources/catalogue/" + resourceId + "/items/collectRules"
|
|
2118
1933
|
});
|
|
2119
1934
|
}
|
|
2120
|
-
function setCollectRules(
|
|
2121
|
-
var resourceId =
|
|
2122
|
-
params = _objectWithoutPropertiesLoose(
|
|
1935
|
+
function setCollectRules(_ref37) {
|
|
1936
|
+
var resourceId = _ref37.resourceId,
|
|
1937
|
+
params = _objectWithoutPropertiesLoose(_ref37, _excluded20);
|
|
2123
1938
|
return FUtil.Request({
|
|
2124
1939
|
method: 'POST',
|
|
2125
1940
|
url: "/v2/resources/catalogue/" + resourceId + "/items/collectRules",
|
|
2126
1941
|
data: params
|
|
2127
1942
|
});
|
|
2128
1943
|
}
|
|
2129
|
-
function setItemsTitle(
|
|
2130
|
-
var resourceId =
|
|
2131
|
-
data =
|
|
1944
|
+
function setItemsTitle(_ref38) {
|
|
1945
|
+
var resourceId = _ref38.resourceId,
|
|
1946
|
+
data = _ref38.data;
|
|
2132
1947
|
return FUtil.Request({
|
|
2133
1948
|
method: 'PUT',
|
|
2134
1949
|
url: "/v2/resources/catalogue/" + resourceId + "/items",
|
|
2135
1950
|
data: data
|
|
2136
1951
|
});
|
|
2137
1952
|
}
|
|
2138
|
-
function deleteCollectionItems_Draft(
|
|
2139
|
-
var resourceId =
|
|
2140
|
-
removeCollectionItemIds =
|
|
1953
|
+
function deleteCollectionItems_Draft(_ref39) {
|
|
1954
|
+
var resourceId = _ref39.resourceId,
|
|
1955
|
+
removeCollectionItemIds = _ref39.removeCollectionItemIds;
|
|
2141
1956
|
return FUtil.Request({
|
|
2142
1957
|
method: 'DELETE',
|
|
2143
1958
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items?removeCollectionItemIds=" + removeCollectionItemIds.join(',')
|
|
2144
1959
|
});
|
|
2145
1960
|
}
|
|
2146
|
-
function setCollectionItemsSortID_Draft(
|
|
2147
|
-
var resourceId =
|
|
2148
|
-
data =
|
|
1961
|
+
function setCollectionItemsSortID_Draft(_ref40) {
|
|
1962
|
+
var resourceId = _ref40.resourceId,
|
|
1963
|
+
data = _ref40.data;
|
|
2149
1964
|
return FUtil.Request({
|
|
2150
1965
|
method: 'PUT',
|
|
2151
1966
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/manualSort",
|
|
2152
1967
|
data: data
|
|
2153
1968
|
});
|
|
2154
1969
|
}
|
|
2155
|
-
function reorderCollectionItems_Draft(
|
|
2156
|
-
var resourceId =
|
|
2157
|
-
params = _objectWithoutPropertiesLoose(
|
|
1970
|
+
function reorderCollectionItems_Draft(_ref41) {
|
|
1971
|
+
var resourceId = _ref41.resourceId,
|
|
1972
|
+
params = _objectWithoutPropertiesLoose(_ref41, _excluded21);
|
|
2158
1973
|
return FUtil.Request({
|
|
2159
1974
|
method: 'PUT',
|
|
2160
1975
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/reorder",
|
|
2161
1976
|
data: params
|
|
2162
1977
|
});
|
|
2163
1978
|
}
|
|
2164
|
-
function resourceIsExistInItems_Draft(
|
|
2165
|
-
var resourceId =
|
|
2166
|
-
params = _objectWithoutPropertiesLoose(
|
|
1979
|
+
function resourceIsExistInItems_Draft(_ref42) {
|
|
1980
|
+
var resourceId = _ref42.resourceId,
|
|
1981
|
+
params = _objectWithoutPropertiesLoose(_ref42, _excluded22);
|
|
2167
1982
|
return FUtil.Request({
|
|
2168
1983
|
method: 'GET',
|
|
2169
1984
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items/checkExists",
|
|
2170
1985
|
params: params
|
|
2171
1986
|
});
|
|
2172
1987
|
}
|
|
2173
|
-
function updateCollectionItemsInfo_Draft(
|
|
2174
|
-
var resourceId =
|
|
2175
|
-
data =
|
|
1988
|
+
function updateCollectionItemsInfo_Draft(_ref43) {
|
|
1989
|
+
var resourceId = _ref43.resourceId,
|
|
1990
|
+
data = _ref43.data;
|
|
2176
1991
|
return FUtil.Request({
|
|
2177
1992
|
method: 'PUT',
|
|
2178
1993
|
// url: `/v2/resources/catalogue/${resourceId}/items`,
|
|
@@ -2180,10 +1995,10 @@ function updateCollectionItemsInfo_Draft(_ref45) {
|
|
|
2180
1995
|
data: data
|
|
2181
1996
|
});
|
|
2182
1997
|
}
|
|
2183
|
-
function updateCollectionItemAuthorization_Draft(
|
|
2184
|
-
var resourceId =
|
|
2185
|
-
itemId =
|
|
2186
|
-
data = _objectWithoutPropertiesLoose(
|
|
1998
|
+
function updateCollectionItemAuthorization_Draft(_ref44) {
|
|
1999
|
+
var resourceId = _ref44.resourceId,
|
|
2000
|
+
itemId = _ref44.itemId,
|
|
2001
|
+
data = _objectWithoutPropertiesLoose(_ref44, _excluded23);
|
|
2187
2002
|
return FUtil.Request({
|
|
2188
2003
|
method: 'PUT',
|
|
2189
2004
|
// url: `/v2/resources/catalogues/${resourceId}/items/${itemId}`,
|
|
@@ -2191,18 +2006,18 @@ function updateCollectionItemAuthorization_Draft(_ref46) {
|
|
|
2191
2006
|
data: data
|
|
2192
2007
|
});
|
|
2193
2008
|
}
|
|
2194
|
-
function addResourceItems_Draft(
|
|
2195
|
-
var resourceId =
|
|
2196
|
-
params = _objectWithoutPropertiesLoose(
|
|
2009
|
+
function addResourceItems_Draft(_ref45) {
|
|
2010
|
+
var resourceId = _ref45.resourceId,
|
|
2011
|
+
params = _objectWithoutPropertiesLoose(_ref45, _excluded24);
|
|
2197
2012
|
return FUtil.Request({
|
|
2198
2013
|
method: 'POST',
|
|
2199
2014
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items",
|
|
2200
2015
|
data: params
|
|
2201
2016
|
});
|
|
2202
2017
|
}
|
|
2203
|
-
function getCollectionItemsAuth_Draft(
|
|
2204
|
-
var resourceId =
|
|
2205
|
-
params = _objectWithoutPropertiesLoose(
|
|
2018
|
+
function getCollectionItemsAuth_Draft(_ref46) {
|
|
2019
|
+
var resourceId = _ref46.resourceId,
|
|
2020
|
+
params = _objectWithoutPropertiesLoose(_ref46, _excluded25);
|
|
2206
2021
|
return FUtil.Request({
|
|
2207
2022
|
method: 'GET',
|
|
2208
2023
|
url: "/v2/resources/catalogues/drafts/" + resourceId + "/items/batchAuth",
|
|
@@ -2498,8 +2313,8 @@ var _excluded$5 = ["nodeId"],
|
|
|
2498
2313
|
_excluded7$3 = ["testResourceId"],
|
|
2499
2314
|
_excluded8$2 = ["nodeId"],
|
|
2500
2315
|
_excluded9$2 = ["nodeId"],
|
|
2501
|
-
|
|
2502
|
-
|
|
2316
|
+
_excluded0$2 = ["nodeId"],
|
|
2317
|
+
_excluded1$2 = ["nodeId"];
|
|
2503
2318
|
function testResources(_ref) {
|
|
2504
2319
|
var nodeId = _ref.nodeId,
|
|
2505
2320
|
params = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
@@ -2581,25 +2396,25 @@ function testResourcesDependencyTree(_ref9) {
|
|
|
2581
2396
|
url: "/v2/testNodes/testResources/" + testResourceId + "/dependencyTree"
|
|
2582
2397
|
});
|
|
2583
2398
|
}
|
|
2584
|
-
function testResourcesAuthTree(
|
|
2585
|
-
var testResourceId =
|
|
2399
|
+
function testResourcesAuthTree(_ref0) {
|
|
2400
|
+
var testResourceId = _ref0.testResourceId;
|
|
2586
2401
|
// return FUtil.Axios.get(`/v2/testNodes/testResources/${testResourceId}`);
|
|
2587
2402
|
return FUtil.Request({
|
|
2588
2403
|
method: 'GET',
|
|
2589
2404
|
url: "/v2/testNodes/testResources/" + testResourceId + "/authTree"
|
|
2590
2405
|
});
|
|
2591
2406
|
}
|
|
2592
|
-
function testResourceDetails(
|
|
2593
|
-
var testResourceId =
|
|
2407
|
+
function testResourceDetails(_ref1) {
|
|
2408
|
+
var testResourceId = _ref1.testResourceId;
|
|
2594
2409
|
// return FUtil.Axios.get(`/v2/testNodes/testResources/${testResourceId}`);
|
|
2595
2410
|
return FUtil.Request({
|
|
2596
2411
|
method: 'GET',
|
|
2597
2412
|
url: "/v2/testNodes/testResources/" + testResourceId
|
|
2598
2413
|
});
|
|
2599
2414
|
}
|
|
2600
|
-
function searchTestResourcesByDependency(
|
|
2601
|
-
var nodeId =
|
|
2602
|
-
params = _objectWithoutPropertiesLoose(
|
|
2415
|
+
function searchTestResourcesByDependency(_ref10) {
|
|
2416
|
+
var nodeId = _ref10.nodeId,
|
|
2417
|
+
params = _objectWithoutPropertiesLoose(_ref10, _excluded8$2);
|
|
2603
2418
|
// return FUtil.Axios.get(`/v2/testNodes/${nodeId}/testResources/searchByDependency`, {
|
|
2604
2419
|
// params,
|
|
2605
2420
|
// });
|
|
@@ -2609,27 +2424,27 @@ function searchTestResourcesByDependency(_ref12) {
|
|
|
2609
2424
|
params: params
|
|
2610
2425
|
});
|
|
2611
2426
|
}
|
|
2612
|
-
function rulesRematch(
|
|
2613
|
-
var nodeId =
|
|
2614
|
-
params = _objectWithoutPropertiesLoose(
|
|
2427
|
+
function rulesRematch(_ref11) {
|
|
2428
|
+
var nodeId = _ref11.nodeId,
|
|
2429
|
+
params = _objectWithoutPropertiesLoose(_ref11, _excluded9$2);
|
|
2615
2430
|
return FUtil.Request({
|
|
2616
2431
|
method: 'POST',
|
|
2617
2432
|
url: "/v2/testNodes/" + nodeId + "/rules/rematch",
|
|
2618
2433
|
data: params
|
|
2619
2434
|
});
|
|
2620
2435
|
}
|
|
2621
|
-
function rulesPreExecution(
|
|
2622
|
-
var nodeId =
|
|
2623
|
-
params = _objectWithoutPropertiesLoose(
|
|
2436
|
+
function rulesPreExecution(_ref12) {
|
|
2437
|
+
var nodeId = _ref12.nodeId,
|
|
2438
|
+
params = _objectWithoutPropertiesLoose(_ref12, _excluded0$2);
|
|
2624
2439
|
return FUtil.Request({
|
|
2625
2440
|
method: 'POST',
|
|
2626
2441
|
url: "/v2/testNodes/" + nodeId + "/rules/preExecution",
|
|
2627
2442
|
data: params
|
|
2628
2443
|
});
|
|
2629
2444
|
}
|
|
2630
|
-
function batchGetAuths(
|
|
2631
|
-
var nodeId =
|
|
2632
|
-
params = _objectWithoutPropertiesLoose(
|
|
2445
|
+
function batchGetAuths(_ref13) {
|
|
2446
|
+
var nodeId = _ref13.nodeId,
|
|
2447
|
+
params = _objectWithoutPropertiesLoose(_ref13, _excluded1$2);
|
|
2633
2448
|
return FUtil.Request({
|
|
2634
2449
|
method: 'GET',
|
|
2635
2450
|
url: "/v2/auths/exhibits/" + nodeId + "/test/batchAuth/results",
|
|
@@ -3194,6 +3009,13 @@ function policyTemplates(params) {
|
|
|
3194
3009
|
params: params
|
|
3195
3010
|
});
|
|
3196
3011
|
}
|
|
3012
|
+
function policyReCompile(data) {
|
|
3013
|
+
return FUtil.Request({
|
|
3014
|
+
method: 'POST',
|
|
3015
|
+
url: "/v2/translate/reCompile",
|
|
3016
|
+
data: data
|
|
3017
|
+
});
|
|
3018
|
+
}
|
|
3197
3019
|
function policyTranslation(_ref) {
|
|
3198
3020
|
var contract = _ref.contract;
|
|
3199
3021
|
return FUtil.Request({
|
|
@@ -3217,6 +3039,7 @@ var Policy = {
|
|
|
3217
3039
|
policies: policies,
|
|
3218
3040
|
policiesList: policiesList,
|
|
3219
3041
|
policyTemplates: policyTemplates,
|
|
3042
|
+
policyReCompile: policyReCompile,
|
|
3220
3043
|
policyTranslation: policyTranslation,
|
|
3221
3044
|
policyTransferTranslation: policyTransferTranslation
|
|
3222
3045
|
};
|
|
@@ -3231,38 +3054,35 @@ function getSHA1Hash(file) {
|
|
|
3231
3054
|
return new Promise(function (resolve) {
|
|
3232
3055
|
var reader = new FileReader();
|
|
3233
3056
|
reader.readAsArrayBuffer(file);
|
|
3234
|
-
reader.onload = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3057
|
+
reader.onload = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3235
3058
|
var sha1;
|
|
3236
|
-
return
|
|
3237
|
-
while (1) switch (_context.
|
|
3059
|
+
return _regenerator().w(function (_context) {
|
|
3060
|
+
while (1) switch (_context.n) {
|
|
3238
3061
|
case 0:
|
|
3239
3062
|
if (reader.result) {
|
|
3240
|
-
_context.
|
|
3063
|
+
_context.n = 1;
|
|
3241
3064
|
break;
|
|
3242
3065
|
}
|
|
3243
3066
|
resolve('');
|
|
3244
|
-
return _context.
|
|
3245
|
-
case
|
|
3067
|
+
return _context.a(2, '');
|
|
3068
|
+
case 1:
|
|
3246
3069
|
if (!(typeof reader.result === 'string')) {
|
|
3247
|
-
_context.
|
|
3070
|
+
_context.n = 2;
|
|
3248
3071
|
break;
|
|
3249
3072
|
}
|
|
3250
3073
|
resolve('');
|
|
3251
|
-
return _context.
|
|
3252
|
-
case
|
|
3253
|
-
_context.
|
|
3074
|
+
return _context.a(2, '');
|
|
3075
|
+
case 2:
|
|
3076
|
+
_context.n = 3;
|
|
3254
3077
|
return self.crypto.subtle.digest('SHA-1', reader.result).then(function (a) {
|
|
3255
3078
|
return Array.from(new Uint8Array(a)).map(function (a) {
|
|
3256
3079
|
return a.toString(16).padStart(2, '0');
|
|
3257
3080
|
}).join('');
|
|
3258
3081
|
});
|
|
3259
|
-
case
|
|
3260
|
-
sha1 = _context.
|
|
3082
|
+
case 3:
|
|
3083
|
+
sha1 = _context.v;
|
|
3261
3084
|
resolve(sha1);
|
|
3262
|
-
return _context.
|
|
3263
|
-
case 11:
|
|
3264
|
-
case "end":
|
|
3265
|
-
return _context.stop();
|
|
3085
|
+
return _context.a(2, '');
|
|
3266
3086
|
}
|
|
3267
3087
|
}, _callee);
|
|
3268
3088
|
}));
|
|
@@ -3353,10 +3173,10 @@ function getFilesSha1Info(_x, _x2) {
|
|
|
3353
3173
|
return _getFilesSha1Info.apply(this, arguments);
|
|
3354
3174
|
}
|
|
3355
3175
|
function _getFilesSha1Info() {
|
|
3356
|
-
_getFilesSha1Info = _asyncToGenerator(/*#__PURE__*/
|
|
3176
|
+
_getFilesSha1Info = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref, cdPartially) {
|
|
3357
3177
|
var sha1, resourceTypeCode, delay, needHandleSha1, allData, _yield$Storage$filesL, ret, errCode, data, msg, finishedInfo;
|
|
3358
|
-
return
|
|
3359
|
-
while (1) switch (_context.
|
|
3178
|
+
return _regenerator().w(function (_context) {
|
|
3179
|
+
while (1) switch (_context.n) {
|
|
3360
3180
|
case 0:
|
|
3361
3181
|
sha1 = _ref.sha1, resourceTypeCode = _ref.resourceTypeCode;
|
|
3362
3182
|
if (cdPartially === void 0) {
|
|
@@ -3365,31 +3185,31 @@ function _getFilesSha1Info() {
|
|
|
3365
3185
|
};
|
|
3366
3186
|
}
|
|
3367
3187
|
if (!(sha1.length === 0)) {
|
|
3368
|
-
_context.
|
|
3188
|
+
_context.n = 1;
|
|
3369
3189
|
break;
|
|
3370
3190
|
}
|
|
3371
|
-
return _context.
|
|
3191
|
+
return _context.a(2, {
|
|
3372
3192
|
error: '',
|
|
3373
3193
|
result: []
|
|
3374
3194
|
});
|
|
3375
|
-
case
|
|
3195
|
+
case 1:
|
|
3376
3196
|
delay = 500;
|
|
3377
3197
|
needHandleSha1 = [].concat(sha1);
|
|
3378
3198
|
allData = [];
|
|
3379
|
-
case
|
|
3380
|
-
_context.
|
|
3199
|
+
case 2:
|
|
3200
|
+
_context.n = 3;
|
|
3381
3201
|
return filesListInfo({
|
|
3382
3202
|
sha1: needHandleSha1.join(','),
|
|
3383
3203
|
resourceTypeCode: resourceTypeCode
|
|
3384
3204
|
});
|
|
3385
|
-
case
|
|
3386
|
-
_yield$Storage$filesL = _context.
|
|
3205
|
+
case 3:
|
|
3206
|
+
_yield$Storage$filesL = _context.v;
|
|
3387
3207
|
ret = _yield$Storage$filesL.ret;
|
|
3388
3208
|
errCode = _yield$Storage$filesL.errCode;
|
|
3389
3209
|
data = _yield$Storage$filesL.data;
|
|
3390
3210
|
msg = _yield$Storage$filesL.msg;
|
|
3391
3211
|
if (!(ret !== 0 || errCode !== 0)) {
|
|
3392
|
-
_context.
|
|
3212
|
+
_context.n = 4;
|
|
3393
3213
|
break;
|
|
3394
3214
|
}
|
|
3395
3215
|
console.log({
|
|
@@ -3398,11 +3218,11 @@ function _getFilesSha1Info() {
|
|
|
3398
3218
|
data: data,
|
|
3399
3219
|
msg: msg
|
|
3400
3220
|
}, '09iowksdjaklfjs;oalijflskdjflsdkjflkj');
|
|
3401
|
-
return _context.
|
|
3221
|
+
return _context.a(2, {
|
|
3402
3222
|
error: msg,
|
|
3403
3223
|
result: allData
|
|
3404
3224
|
});
|
|
3405
|
-
case
|
|
3225
|
+
case 4:
|
|
3406
3226
|
needHandleSha1 = data.filter(function (d) {
|
|
3407
3227
|
return d.metaAnalyzeStatus === 0 || d.metaAnalyzeStatus === 1;
|
|
3408
3228
|
}).map(function (d) {
|
|
@@ -3429,24 +3249,21 @@ function _getFilesSha1Info() {
|
|
|
3429
3249
|
cdPartially && cdPartially(finishedInfo);
|
|
3430
3250
|
allData = [].concat(allData, finishedInfo);
|
|
3431
3251
|
if (!(needHandleSha1.length === 0)) {
|
|
3432
|
-
_context.
|
|
3252
|
+
_context.n = 5;
|
|
3433
3253
|
break;
|
|
3434
3254
|
}
|
|
3435
|
-
return _context.
|
|
3436
|
-
case
|
|
3437
|
-
_context.
|
|
3255
|
+
return _context.a(3, 7);
|
|
3256
|
+
case 5:
|
|
3257
|
+
_context.n = 6;
|
|
3438
3258
|
return promiseSleep(delay);
|
|
3439
|
-
case
|
|
3440
|
-
_context.
|
|
3259
|
+
case 6:
|
|
3260
|
+
_context.n = 2;
|
|
3441
3261
|
break;
|
|
3442
|
-
case
|
|
3443
|
-
return _context.
|
|
3262
|
+
case 7:
|
|
3263
|
+
return _context.a(2, {
|
|
3444
3264
|
error: '',
|
|
3445
3265
|
result: allData
|
|
3446
3266
|
});
|
|
3447
|
-
case 29:
|
|
3448
|
-
case "end":
|
|
3449
|
-
return _context.stop();
|
|
3450
3267
|
}
|
|
3451
3268
|
}, _callee);
|
|
3452
3269
|
}));
|
|
@@ -3636,39 +3453,36 @@ function request(_x, _x2) {
|
|
|
3636
3453
|
return _request.apply(this, arguments);
|
|
3637
3454
|
}
|
|
3638
3455
|
function _request() {
|
|
3639
|
-
_request = _asyncToGenerator(/*#__PURE__*/
|
|
3456
|
+
_request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(config, _temp) {
|
|
3640
3457
|
var _ref, _ref$noRedirect, noRedirect, _ref$noErrorAlert, noErrorAlert, result;
|
|
3641
|
-
return
|
|
3642
|
-
while (1) switch (_context.
|
|
3458
|
+
return _regenerator().w(function (_context) {
|
|
3459
|
+
while (1) switch (_context.n) {
|
|
3643
3460
|
case 0:
|
|
3644
3461
|
_ref = _temp === void 0 ? {} : _temp, _ref$noRedirect = _ref.noRedirect, noRedirect = _ref$noRedirect === void 0 ? false : _ref$noRedirect, _ref$noErrorAlert = _ref.noErrorAlert, noErrorAlert = _ref$noErrorAlert === void 0 ? false : _ref$noErrorAlert;
|
|
3645
|
-
_context.
|
|
3462
|
+
_context.n = 1;
|
|
3646
3463
|
return axios.request(config);
|
|
3647
|
-
case
|
|
3648
|
-
result = _context.
|
|
3464
|
+
case 1:
|
|
3465
|
+
result = _context.v;
|
|
3649
3466
|
if (!(result.errCode === 30 && !noRedirect)) {
|
|
3650
|
-
_context.
|
|
3467
|
+
_context.n = 3;
|
|
3651
3468
|
break;
|
|
3652
3469
|
}
|
|
3653
|
-
_context.
|
|
3470
|
+
_context.n = 2;
|
|
3654
3471
|
return FServiceAPI.User.logout();
|
|
3655
|
-
case
|
|
3472
|
+
case 2:
|
|
3656
3473
|
window.location.replace("" + completeUrlByDomain('user') + login({
|
|
3657
3474
|
goTo: window.location.href
|
|
3658
3475
|
}));
|
|
3659
|
-
_context.
|
|
3476
|
+
_context.n = 4;
|
|
3660
3477
|
break;
|
|
3661
|
-
case
|
|
3478
|
+
case 3:
|
|
3662
3479
|
if (result.ret === 4 && result.errCode === 10 && !noRedirect) {
|
|
3663
3480
|
window.location.replace("" + completeUrlByDomain('user') + userFreeze({
|
|
3664
3481
|
goTo: window.location.href
|
|
3665
3482
|
}));
|
|
3666
3483
|
}
|
|
3667
|
-
case
|
|
3668
|
-
return _context.
|
|
3669
|
-
case 12:
|
|
3670
|
-
case "end":
|
|
3671
|
-
return _context.stop();
|
|
3484
|
+
case 4:
|
|
3485
|
+
return _context.a(2, result);
|
|
3672
3486
|
}
|
|
3673
3487
|
}, _callee);
|
|
3674
3488
|
}));
|
|
@@ -3733,11 +3547,11 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3733
3547
|
}
|
|
3734
3548
|
var _proto = I18nNext.prototype;
|
|
3735
3549
|
_proto.ready = /*#__PURE__*/function () {
|
|
3736
|
-
var _ready = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3550
|
+
var _ready = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
3737
3551
|
var _this = this;
|
|
3738
3552
|
var exc, handleTasks, promise;
|
|
3739
|
-
return
|
|
3740
|
-
while (1) switch (_context2.
|
|
3553
|
+
return _regenerator().w(function (_context2) {
|
|
3554
|
+
while (1) switch (_context2.n) {
|
|
3741
3555
|
case 0:
|
|
3742
3556
|
exc = function exc() {
|
|
3743
3557
|
while (_this._taskQueue.length > 0) {
|
|
@@ -3746,33 +3560,32 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3746
3560
|
}
|
|
3747
3561
|
};
|
|
3748
3562
|
handleTasks = /*#__PURE__*/function () {
|
|
3749
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
3750
|
-
return
|
|
3751
|
-
while (1) switch (_context.
|
|
3563
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3564
|
+
return _regenerator().w(function (_context) {
|
|
3565
|
+
while (1) switch (_context.n) {
|
|
3752
3566
|
case 0:
|
|
3753
3567
|
if (!(_this._loadingData === 'End')) {
|
|
3754
|
-
_context.
|
|
3568
|
+
_context.n = 1;
|
|
3755
3569
|
break;
|
|
3756
3570
|
}
|
|
3757
3571
|
exc();
|
|
3758
|
-
return _context.
|
|
3759
|
-
case
|
|
3572
|
+
return _context.a(2);
|
|
3573
|
+
case 1:
|
|
3760
3574
|
if (!(_this._loadingData === 'Start')) {
|
|
3761
|
-
_context.
|
|
3575
|
+
_context.n = 2;
|
|
3762
3576
|
break;
|
|
3763
3577
|
}
|
|
3764
|
-
return _context.
|
|
3765
|
-
case
|
|
3578
|
+
return _context.a(2);
|
|
3579
|
+
case 2:
|
|
3766
3580
|
// NO_START
|
|
3767
3581
|
_this._loadingData = 'Start';
|
|
3768
|
-
_context.
|
|
3582
|
+
_context.n = 3;
|
|
3769
3583
|
return _this._handleData();
|
|
3770
|
-
case
|
|
3584
|
+
case 3:
|
|
3771
3585
|
// console.log('######');
|
|
3772
3586
|
exc();
|
|
3773
|
-
case
|
|
3774
|
-
|
|
3775
|
-
return _context.stop();
|
|
3587
|
+
case 4:
|
|
3588
|
+
return _context.a(2);
|
|
3776
3589
|
}
|
|
3777
3590
|
}, _callee);
|
|
3778
3591
|
}));
|
|
@@ -3784,10 +3597,7 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3784
3597
|
_this._taskQueue.push(resolve);
|
|
3785
3598
|
});
|
|
3786
3599
|
handleTasks();
|
|
3787
|
-
return _context2.
|
|
3788
|
-
case 5:
|
|
3789
|
-
case "end":
|
|
3790
|
-
return _context2.stop();
|
|
3600
|
+
return _context2.a(2, promise);
|
|
3791
3601
|
}
|
|
3792
3602
|
}, _callee2);
|
|
3793
3603
|
}));
|
|
@@ -3817,28 +3627,28 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3817
3627
|
return this._currentLanguage;
|
|
3818
3628
|
};
|
|
3819
3629
|
_proto._handleData = /*#__PURE__*/function () {
|
|
3820
|
-
var _handleData2 = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3630
|
+
var _handleData2 = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
3821
3631
|
var lng, resource, i18nextResources;
|
|
3822
|
-
return
|
|
3823
|
-
while (1) switch (_context3.
|
|
3632
|
+
return _regenerator().w(function (_context3) {
|
|
3633
|
+
while (1) switch (_context3.n) {
|
|
3824
3634
|
case 0:
|
|
3825
3635
|
lng = this._currentLanguage;
|
|
3826
3636
|
resource = window.localStorage.getItem(localStorage_i18nextResources_key); // const resource: string | undefined = Cookies.get(decodeURIComponent(localStorage_i18nextResources_key));
|
|
3827
3637
|
i18nextResources = resource ? JSON.parse(resource) : null;
|
|
3828
3638
|
if (i18nextResources) {
|
|
3829
|
-
_context3.
|
|
3639
|
+
_context3.n = 2;
|
|
3830
3640
|
break;
|
|
3831
3641
|
}
|
|
3832
|
-
_context3.
|
|
3642
|
+
_context3.n = 1;
|
|
3833
3643
|
return this._fetchData();
|
|
3834
|
-
case
|
|
3835
|
-
i18nextResources = _context3.
|
|
3836
|
-
_context3.
|
|
3644
|
+
case 1:
|
|
3645
|
+
i18nextResources = _context3.v;
|
|
3646
|
+
_context3.n = 3;
|
|
3837
3647
|
break;
|
|
3838
|
-
case
|
|
3648
|
+
case 2:
|
|
3839
3649
|
this._fetchData();
|
|
3840
|
-
case
|
|
3841
|
-
_context3.
|
|
3650
|
+
case 3:
|
|
3651
|
+
_context3.n = 4;
|
|
3842
3652
|
return i18next.init({
|
|
3843
3653
|
// the translations
|
|
3844
3654
|
// (tip move them in a JSON file and import them,
|
|
@@ -3852,11 +3662,10 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3852
3662
|
suffix: '}'
|
|
3853
3663
|
}
|
|
3854
3664
|
});
|
|
3855
|
-
case
|
|
3665
|
+
case 4:
|
|
3856
3666
|
this._loadingData = 'End';
|
|
3857
|
-
case
|
|
3858
|
-
|
|
3859
|
-
return _context3.stop();
|
|
3667
|
+
case 5:
|
|
3668
|
+
return _context3.a(2);
|
|
3860
3669
|
}
|
|
3861
3670
|
}, _callee3, this);
|
|
3862
3671
|
}));
|
|
@@ -3866,18 +3675,18 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3866
3675
|
return _handleData;
|
|
3867
3676
|
}();
|
|
3868
3677
|
_proto._fetchData = /*#__PURE__*/function () {
|
|
3869
|
-
var _fetchData2 = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
3678
|
+
var _fetchData2 = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
3870
3679
|
var url, res, en_US, zh_CN, _i, _Object$entries, _Object$entries$_i, key, value, result;
|
|
3871
|
-
return
|
|
3872
|
-
while (1) switch (_context4.
|
|
3680
|
+
return _regenerator().w(function (_context4) {
|
|
3681
|
+
while (1) switch (_context4.n) {
|
|
3873
3682
|
case 0:
|
|
3874
3683
|
url = window.location.origin.includes('.freelog.com') ? ossJsonUrl : ossJsonUrl_Test;
|
|
3875
|
-
_context4.
|
|
3684
|
+
_context4.n = 1;
|
|
3876
3685
|
return axios.get(url + '?timestamp=' + Date.now(), {
|
|
3877
3686
|
withCredentials: false
|
|
3878
3687
|
});
|
|
3879
|
-
case
|
|
3880
|
-
res = _context4.
|
|
3688
|
+
case 1:
|
|
3689
|
+
res = _context4.v;
|
|
3881
3690
|
// console.log(res, 'data09oiw3qjelsfkdfjlsdkfjl');
|
|
3882
3691
|
en_US = {};
|
|
3883
3692
|
zh_CN = {};
|
|
@@ -3896,10 +3705,7 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3896
3705
|
}
|
|
3897
3706
|
};
|
|
3898
3707
|
window.localStorage.setItem(localStorage_i18nextResources_key, JSON.stringify(result));
|
|
3899
|
-
return _context4.
|
|
3900
|
-
case 10:
|
|
3901
|
-
case "end":
|
|
3902
|
-
return _context4.stop();
|
|
3708
|
+
return _context4.a(2, result);
|
|
3903
3709
|
}
|
|
3904
3710
|
}, _callee4);
|
|
3905
3711
|
}));
|