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