@piveau/dpi 0.1.0-beta.87 → 0.1.0-beta.89
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.
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import I from "axios";
|
|
2
2
|
import u from "jquery";
|
|
3
3
|
import "lodash-es";
|
|
4
|
-
import { mapActions as
|
|
5
|
-
import
|
|
6
|
-
import { useWindowScroll as
|
|
7
|
-
import { resolveComponent as
|
|
4
|
+
import { mapActions as $, mapGetters as k } from "vuex";
|
|
5
|
+
import w from "./components/Dropup.vue.js";
|
|
6
|
+
import { useWindowScroll as A } from "@vueuse/core";
|
|
7
|
+
import { resolveComponent as y, createElementBlock as c, openBlock as d, createCommentVNode as b, createElementVNode as n, toDisplayString as m, createVNode as D, withCtx as h, createTextVNode as g, Fragment as C, renderList as P, createBlock as v, resolveDynamicComponent as T, normalizeClass as U, renderSlot as q } from "vue";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import O from "../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const L = {
|
|
11
11
|
name: "DPI-menu",
|
|
12
12
|
components: {
|
|
13
|
-
Dropup:
|
|
13
|
+
Dropup: w
|
|
14
14
|
},
|
|
15
15
|
props: {},
|
|
16
16
|
data() {
|
|
@@ -29,20 +29,20 @@ const z = {
|
|
|
29
29
|
setup() {
|
|
30
30
|
return {
|
|
31
31
|
scrollToTop: () => {
|
|
32
|
-
let { x: t, y:
|
|
33
|
-
|
|
32
|
+
let { x: t, y: r } = A({ behavior: "smooth" });
|
|
33
|
+
r.value = 0;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
},
|
|
37
37
|
computed: {
|
|
38
|
-
...
|
|
38
|
+
...k("datasetDetails", [
|
|
39
39
|
"getCatalog",
|
|
40
40
|
"getID",
|
|
41
41
|
"getLoading",
|
|
42
42
|
"getTitle",
|
|
43
43
|
"getDescription"
|
|
44
44
|
]),
|
|
45
|
-
...
|
|
45
|
+
...k("auth", ["getUserData"]),
|
|
46
46
|
menuGroups() {
|
|
47
47
|
return [
|
|
48
48
|
{
|
|
@@ -219,8 +219,8 @@ const z = {
|
|
|
219
219
|
if (this.getLoading) return !1;
|
|
220
220
|
const e = this.$route.name === "DatasetDetailsDataset";
|
|
221
221
|
if (!e) return !1;
|
|
222
|
-
const t = e && this.$route.params.ds_id,
|
|
223
|
-
return
|
|
222
|
+
const t = e && this.$route.params.ds_id, r = this.getUserData && this.getUserData.permissions, s = this.getCatalog && this.getCatalog.id;
|
|
223
|
+
return r.find(
|
|
224
224
|
(i) => i.rsname === s
|
|
225
225
|
) && e && t === this.getID;
|
|
226
226
|
},
|
|
@@ -231,8 +231,8 @@ const z = {
|
|
|
231
231
|
}
|
|
232
232
|
},
|
|
233
233
|
methods: {
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
...$("auth", ["updateUserData"]),
|
|
235
|
+
...$("snackbar", ["showSnackbar"]),
|
|
236
236
|
setupKeycloakWatcher() {
|
|
237
237
|
this.$keycloak && this.$keycloak.authenticated && (this.$watch(
|
|
238
238
|
"$keycloak.token",
|
|
@@ -240,8 +240,8 @@ const z = {
|
|
|
240
240
|
if (!e) return;
|
|
241
241
|
let t = this.$keycloak.rtpToken;
|
|
242
242
|
if (!t) {
|
|
243
|
-
const
|
|
244
|
-
|
|
243
|
+
const r = this.$keycloak.getRtpToken;
|
|
244
|
+
r && (t = await r());
|
|
245
245
|
}
|
|
246
246
|
this.updateUserData({
|
|
247
247
|
authToken: e,
|
|
@@ -251,18 +251,18 @@ const z = {
|
|
|
251
251
|
},
|
|
252
252
|
{ immediate: !0 }
|
|
253
253
|
), this.$watch("$keycloak.rtpToken", (e) => {
|
|
254
|
-
e && this.updateUserData({
|
|
254
|
+
e && (!e || e === oldRtpToken || this.updateUserData({
|
|
255
255
|
authToken: this.$keycloak.token,
|
|
256
256
|
rtpToken: e,
|
|
257
257
|
hubUrl: this.$env.api.hubUrl
|
|
258
|
-
});
|
|
258
|
+
}));
|
|
259
259
|
}));
|
|
260
260
|
},
|
|
261
|
-
async handleConfirm(e, t, { successMessage:
|
|
261
|
+
async handleConfirm(e, t, { successMessage: r, errorMessage: s }) {
|
|
262
262
|
this.modal.loading = !0;
|
|
263
263
|
try {
|
|
264
264
|
this.$Progress.start(), await new Promise((a) => setTimeout(a, 250)), this.$Progress.set(25), await this.$store.dispatch(e, t), this.showSnackbar({
|
|
265
|
-
message:
|
|
265
|
+
message: r,
|
|
266
266
|
variant: "success"
|
|
267
267
|
}), await new Promise((a) => setTimeout(a, 250)), this.$Progress.finish();
|
|
268
268
|
} catch (a) {
|
|
@@ -275,21 +275,21 @@ const z = {
|
|
|
275
275
|
confirm: "Okay",
|
|
276
276
|
confirmHandler: () => u("#modal").modal("hide")
|
|
277
277
|
}, console.log(a.response.data);
|
|
278
|
-
let
|
|
279
|
-
|
|
280
|
-
const
|
|
278
|
+
let o = typeof s == "string" && s;
|
|
279
|
+
o = typeof s == "function" && s(a), o = typeof s == "object" && s.prefix + " - " + a.response.data, console.log(s);
|
|
280
|
+
const p = o || i || a.message || "An error occurred";
|
|
281
281
|
this.showSnackbar({
|
|
282
|
-
message:
|
|
282
|
+
message: p,
|
|
283
283
|
variant: "error"
|
|
284
284
|
});
|
|
285
285
|
} finally {
|
|
286
286
|
this.modal.loading = !1, u("#modal").modal("hide");
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
|
-
async handleRegisterDoi({ id: e, catalog: t, type:
|
|
289
|
+
async handleRegisterDoi({ id: e, catalog: t, type: r = "eu-ra-doi" }) {
|
|
290
290
|
await this.handleConfirm(
|
|
291
291
|
"auth/createPersistentIdentifier",
|
|
292
|
-
{ id: e, catalog: t, type:
|
|
292
|
+
{ id: e, catalog: t, type: r },
|
|
293
293
|
{
|
|
294
294
|
successMessage: this.$te("message.snackbar.doiRegistration.success") ? this.$t("message.snackbar.doiRegistration.success") : "Successfully registered DOI",
|
|
295
295
|
errorMessage: {
|
|
@@ -298,13 +298,13 @@ const z = {
|
|
|
298
298
|
}
|
|
299
299
|
);
|
|
300
300
|
},
|
|
301
|
-
async handleMarkAsDraft({ id: e, catalog: t, title:
|
|
301
|
+
async handleMarkAsDraft({ id: e, catalog: t, title: r, description: s }) {
|
|
302
302
|
await this.handleConfirm(
|
|
303
303
|
"auth/putDatasetToDraft",
|
|
304
304
|
{
|
|
305
305
|
id: e,
|
|
306
306
|
catalog: t,
|
|
307
|
-
title:
|
|
307
|
+
title: r,
|
|
308
308
|
description: s
|
|
309
309
|
},
|
|
310
310
|
{
|
|
@@ -319,20 +319,20 @@ const z = {
|
|
|
319
319
|
}).catch(() => {
|
|
320
320
|
});
|
|
321
321
|
},
|
|
322
|
-
async handleDelete({ id: e, property: t, catalog:
|
|
322
|
+
async handleDelete({ id: e, property: t, catalog: r }) {
|
|
323
323
|
var s, a;
|
|
324
324
|
this.modal.loading = !0, this.$Progress.start();
|
|
325
325
|
try {
|
|
326
326
|
let i;
|
|
327
|
-
t === "datasets" ? i = `${this.$env.api.hubUrl}datasets/${e}?useNormalizedId=true&catalogue=${
|
|
327
|
+
t === "datasets" ? i = `${this.$env.api.hubUrl}datasets/${e}?useNormalizedId=true&catalogue=${r}` : t === "catalogues" && (i = `${this.$env.api.hubUrl}catalogues/${e}`), await I.delete(i, {
|
|
328
328
|
headers: {
|
|
329
329
|
"Content-Type": "text/turtle",
|
|
330
330
|
Authorization: `Bearer ${this.getUserData.rtpToken}`
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
|
-
let
|
|
334
|
-
t === "datasets" ?
|
|
335
|
-
message:
|
|
333
|
+
let o;
|
|
334
|
+
t === "datasets" ? o = this.$te("message.snackbar.deleteDataset.success") ? this.$t("message.snackbar.deleteDataset.success") : "Dataset successfully deleted" : t === "catalogues" && (o = this.$te("message.snackbar.deleteCatalog.success") ? this.$t("message.snackbar.deleteCatalog.success") : "Catalog successfully deleted"), this.showSnackbar({
|
|
335
|
+
message: o,
|
|
336
336
|
variant: "success"
|
|
337
337
|
}), this.$Progress.finish(), this.$router.push({
|
|
338
338
|
name: "Datasets",
|
|
@@ -341,9 +341,9 @@ const z = {
|
|
|
341
341
|
});
|
|
342
342
|
} catch (i) {
|
|
343
343
|
this.$Progress.fail();
|
|
344
|
-
let
|
|
345
|
-
t === "datasets" ?
|
|
346
|
-
message: `${
|
|
344
|
+
let o;
|
|
345
|
+
t === "datasets" ? o = this.$te("message.snackbar.deleteDataset.error") ? this.$t("message.snackbar.deleteDataset.error") : "Failed to delete dataset" : t === "catalogues" && (o = this.$te("message.snackbar.deleteCatalog.error") ? this.$t("message.snackbar.deleteCatalog.error") : "Failed to delete catalog"), this.showSnackbar({
|
|
346
|
+
message: `${o}${(s = i.response) != null && s.data ? ` — ${(a = i.response) == null ? void 0 : a.data}` : i.message}`,
|
|
347
347
|
variant: "error"
|
|
348
348
|
});
|
|
349
349
|
} finally {
|
|
@@ -354,25 +354,25 @@ const z = {
|
|
|
354
354
|
created() {
|
|
355
355
|
this.setupKeycloakWatcher();
|
|
356
356
|
}
|
|
357
|
-
},
|
|
357
|
+
}, z = {
|
|
358
358
|
id: "navWrapper",
|
|
359
359
|
"data-cy": "dpi-menu"
|
|
360
|
-
},
|
|
360
|
+
}, S = { key: 0 }, H = { class: "text-white" }, N = { class: "btn btn-default" }, E = { class: "btn btn-default" }, M = { style: { "margin-top": "1%" } }, x = { class: "btn-group dropup" }, F = {
|
|
361
361
|
key: 0,
|
|
362
362
|
class: "logoutWrap"
|
|
363
|
-
},
|
|
363
|
+
}, R = { class: "text-white" }, W = {
|
|
364
364
|
type: "button",
|
|
365
365
|
class: "btn btn-default logout"
|
|
366
366
|
};
|
|
367
|
-
function
|
|
368
|
-
const
|
|
369
|
-
return d(),
|
|
370
|
-
a.visible ? (d(),
|
|
371
|
-
|
|
372
|
-
|
|
367
|
+
function B(e, t, r, s, a, i) {
|
|
368
|
+
const o = y("router-link"), p = y("dropup");
|
|
369
|
+
return d(), c("div", z, [
|
|
370
|
+
a.visible ? (d(), c("nav", S, [
|
|
371
|
+
n("div", null, [
|
|
372
|
+
n("h4", H, m(e.$t("message.dataupload.menu.dpi")), 1)
|
|
373
373
|
]),
|
|
374
|
-
|
|
375
|
-
|
|
374
|
+
n("button", N, [
|
|
375
|
+
D(o, { to: { name: "DPI-Home-HappyFlow" } }, {
|
|
376
376
|
default: h(() => t[1] || (t[1] = [
|
|
377
377
|
g("DPI Home", -1)
|
|
378
378
|
])),
|
|
@@ -380,8 +380,8 @@ function G(e, t, o, s, a, i) {
|
|
|
380
380
|
__: [1]
|
|
381
381
|
})
|
|
382
382
|
]),
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
n("button", E, [
|
|
384
|
+
D(o, { to: { name: "DPI-Comp-Lib" } }, {
|
|
385
385
|
default: h(() => t[2] || (t[2] = [
|
|
386
386
|
g("Component Library", -1)
|
|
387
387
|
])),
|
|
@@ -389,32 +389,32 @@ function G(e, t, o, s, a, i) {
|
|
|
389
389
|
__: [2]
|
|
390
390
|
})
|
|
391
391
|
]),
|
|
392
|
-
|
|
393
|
-
(d(!0),
|
|
394
|
-
key: `Group${
|
|
395
|
-
groupName:
|
|
396
|
-
groupItems:
|
|
397
|
-
show: e.$env.content.dataProviderInterface.buttons[
|
|
392
|
+
n("div", M, [
|
|
393
|
+
(d(!0), c(C, null, P(i.menuGroups, (l, f) => (d(), v(p, {
|
|
394
|
+
key: `Group${f}`,
|
|
395
|
+
groupName: l.group,
|
|
396
|
+
groupItems: l.items,
|
|
397
|
+
show: e.$env.content.dataProviderInterface.buttons[l.group],
|
|
398
398
|
isOperator: e.getUserData.roles.includes("operator"),
|
|
399
|
-
isCatalog:
|
|
399
|
+
isCatalog: l.group === "Catalogue"
|
|
400
400
|
}, null, 8, ["groupName", "groupItems", "show", "isOperator", "isCatalog"]))), 128)),
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
(d(!0),
|
|
404
|
-
key: `Menu${
|
|
401
|
+
n("ul", null, [
|
|
402
|
+
n("div", x, [
|
|
403
|
+
(d(!0), c(C, null, P(i.menuItems, (l, f) => (d(), c("li", {
|
|
404
|
+
key: `Menu${f}`
|
|
405
405
|
}, [
|
|
406
|
-
|
|
406
|
+
n("button", {
|
|
407
407
|
type: "button",
|
|
408
408
|
class: "btn btn-link",
|
|
409
|
-
onClick: t[0] || (t[0] = (
|
|
409
|
+
onClick: t[0] || (t[0] = (_) => s.scrollToTop())
|
|
410
410
|
}, [
|
|
411
|
-
(d(), v(
|
|
412
|
-
class:
|
|
413
|
-
to:
|
|
414
|
-
onClick: (
|
|
411
|
+
(d(), v(T(l.handler ? "button" : "router-link"), {
|
|
412
|
+
class: U({ disabled: l.disabled }),
|
|
413
|
+
to: l.to,
|
|
414
|
+
onClick: (_) => l.handler ? l.handler() : null
|
|
415
415
|
}, {
|
|
416
416
|
default: h(() => [
|
|
417
|
-
g(
|
|
417
|
+
g(m(l.handler) + " " + m(l.name), 1)
|
|
418
418
|
]),
|
|
419
419
|
_: 2
|
|
420
420
|
}, 1032, ["class", "to", "onClick"]))
|
|
@@ -423,35 +423,24 @@ function G(e, t, o, s, a, i) {
|
|
|
423
423
|
])
|
|
424
424
|
])
|
|
425
425
|
]),
|
|
426
|
-
e.getUserData.userName ? (d(),
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
t[3] || (t[3] =
|
|
430
|
-
|
|
431
|
-
|
|
426
|
+
e.getUserData.userName ? (d(), c("div", F, [
|
|
427
|
+
q(e.$slots, "right", { getUserData: e.getUserData }, () => [
|
|
428
|
+
n("small", R, m(e.$t("message.dataupload.menu.loggedInAs")) + " " + m(e.getUserData.userName), 1),
|
|
429
|
+
t[3] || (t[3] = n("br", null, null, -1)),
|
|
430
|
+
n("button", W, [
|
|
431
|
+
D(o, { to: { name: "Logout" } }, {
|
|
432
432
|
default: h(() => [
|
|
433
|
-
g(
|
|
433
|
+
g(m(e.$t("message.dataupload.menu.logout")), 1)
|
|
434
434
|
]),
|
|
435
435
|
_: 1
|
|
436
436
|
})
|
|
437
437
|
])
|
|
438
438
|
], !0)
|
|
439
439
|
])) : b("", !0)
|
|
440
|
-
])) : b("", !0)
|
|
441
|
-
p(_, {
|
|
442
|
-
id: "DPIMenuModal",
|
|
443
|
-
loading: a.modal.loading,
|
|
444
|
-
confirm: a.modal.confirm,
|
|
445
|
-
onConfirm: a.modal.confirmHandler
|
|
446
|
-
}, {
|
|
447
|
-
default: h(() => [
|
|
448
|
-
g(c(a.modal.message), 1)
|
|
449
|
-
]),
|
|
450
|
-
_: 1
|
|
451
|
-
}, 8, ["loading", "confirm", "onConfirm"])
|
|
440
|
+
])) : b("", !0)
|
|
452
441
|
]);
|
|
453
442
|
}
|
|
454
|
-
const
|
|
443
|
+
const ee = /* @__PURE__ */ O(L, [["render", B], ["__scopeId", "data-v-dbc97d41"]]);
|
|
455
444
|
export {
|
|
456
|
-
|
|
445
|
+
ee as default
|
|
457
446
|
};
|
|
@@ -1,111 +1,100 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { useAsyncState as
|
|
3
|
-
import
|
|
1
|
+
import { computed as n, ref as V, watch as x, createElementBlock as r, openBlock as i, createElementVNode as l, createCommentVNode as I, unref as m, createTextVNode as S, createVNode as w, withCtx as A, createStaticVNode as E, Fragment as B, renderList as H, createBlock as T } from "vue";
|
|
2
|
+
import { useAsyncState as W, useDebounce as $ } from "@vueuse/core";
|
|
3
|
+
import q from "axios";
|
|
4
4
|
import "jquery";
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { useStore as
|
|
7
|
-
import { useRuntimeEnv as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
5
|
+
import { useRouter as F } from "vue-router";
|
|
6
|
+
import { useStore as K } from "vuex";
|
|
7
|
+
import { useRuntimeEnv as M } from "../../composables/useRuntimeEnv.js";
|
|
8
|
+
import j from "../../widgets/AppLink.vue.js";
|
|
9
|
+
import G from "./ui/ButtonV3.vue.js";
|
|
10
|
+
import C from "./ui/TableRowV3.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import
|
|
13
|
-
const
|
|
12
|
+
import J from "../../_virtual/_plugin-vue_export-helper.js";
|
|
13
|
+
const O = { class: "dpiV3_dpiHome V3-typography" }, Q = { class: "dpiV3_homeHeadWrap" }, X = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "copy-large-semi-bold landingText"
|
|
16
|
-
},
|
|
16
|
+
}, Y = { class: "interactionButtonsDPIHome" }, Z = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "dpiV3_table"
|
|
19
|
-
},
|
|
19
|
+
}, ee = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "loading-screen"
|
|
22
|
-
},
|
|
22
|
+
}, te = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "dpiV3_innerTable"
|
|
25
|
-
},
|
|
25
|
+
}, ae = {
|
|
26
26
|
__name: "HomeTable",
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const _ = r(() => {
|
|
27
|
+
setup(se) {
|
|
28
|
+
const b = M(), d = K();
|
|
29
|
+
F(), n(() => {
|
|
31
30
|
var t;
|
|
32
|
-
return ((t =
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
D({
|
|
31
|
+
return ((t = b.languages) == null ? void 0 : t.locale) || "de";
|
|
32
|
+
}), localStorage.getItem("dpi_duplicate"), V("");
|
|
33
|
+
let p = n(() => d.getters["auth/getUserCatalogIds"]);
|
|
34
|
+
V({
|
|
37
35
|
loading: !1,
|
|
38
36
|
message: "",
|
|
39
37
|
confirm: () => null
|
|
40
38
|
});
|
|
41
|
-
const
|
|
42
|
-
() =>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
const C = (t) => n.dispatch("snackbar/showSnackbar", t);
|
|
54
|
-
async function P(t) {
|
|
55
|
-
const a = t.map((o) => W.get(
|
|
56
|
-
`${v.api.baseUrl}search?facets={%22catalog%22:[%22${o}%22]}&filters=dataset&includes=title,modified,id,description,catalog&limit=1000`
|
|
39
|
+
const f = n(
|
|
40
|
+
() => d.getters["auth/getUserDrafts"].sort((t, a) => {
|
|
41
|
+
var s, o, c, u;
|
|
42
|
+
const e = ((s = t.title) == null ? void 0 : s.de) ?? ((o = t.title) == null ? void 0 : o.en) ?? "", _ = ((c = a.title) == null ? void 0 : c.de) ?? ((u = a.title) == null ? void 0 : u.en) ?? "";
|
|
43
|
+
return e.localeCompare(_, "de", { sensitivity: "base" });
|
|
44
|
+
})
|
|
45
|
+
), P = n(() => d.getters["auth/getUserData"]);
|
|
46
|
+
n(() => P.value.rtpToken);
|
|
47
|
+
const L = (t) => d.dispatch("snackbar/showSnackbar", t);
|
|
48
|
+
async function N(t) {
|
|
49
|
+
const a = t.map((s) => q.get(
|
|
50
|
+
`${b.api.baseUrl}search?facets={%22catalog%22:[%22${s}%22]}&filters=dataset&includes=title,modified,id,description,catalog&limit=1000`
|
|
57
51
|
));
|
|
58
|
-
return (await Promise.all(a)).flatMap((
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
_.value,
|
|
64
|
-
{ sensitivity: "base", numeric: !0 }
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
);
|
|
52
|
+
return (await Promise.all(a)).flatMap((s) => s.data.result.results).sort((s, o) => {
|
|
53
|
+
var h, D, y, k;
|
|
54
|
+
const c = ((h = s.title) == null ? void 0 : h.de) ?? ((D = s.title) == null ? void 0 : D.en) ?? "", u = ((y = o.title) == null ? void 0 : y.de) ?? ((k = o.title) == null ? void 0 : k.en) ?? "";
|
|
55
|
+
return c.localeCompare(u, "de", { sensitivity: "base" });
|
|
56
|
+
});
|
|
68
57
|
}
|
|
69
58
|
const {
|
|
70
|
-
state:
|
|
71
|
-
execute:
|
|
72
|
-
isLoading:
|
|
73
|
-
error:
|
|
74
|
-
} =
|
|
75
|
-
async () =>
|
|
59
|
+
state: g,
|
|
60
|
+
execute: U,
|
|
61
|
+
isLoading: z,
|
|
62
|
+
error: v
|
|
63
|
+
} = W(
|
|
64
|
+
async () => N(p.value),
|
|
76
65
|
[],
|
|
77
66
|
{ immediate: !1 }
|
|
78
67
|
);
|
|
79
|
-
|
|
80
|
-
|
|
68
|
+
x(
|
|
69
|
+
p,
|
|
81
70
|
() => {
|
|
82
71
|
var t;
|
|
83
|
-
((t =
|
|
72
|
+
((t = p.value) == null ? void 0 : t.length) > 0 && U();
|
|
84
73
|
},
|
|
85
74
|
{ immediate: !0 }
|
|
86
|
-
),
|
|
87
|
-
console.error(
|
|
88
|
-
message:
|
|
75
|
+
), x(v, () => {
|
|
76
|
+
console.error(v), L({
|
|
77
|
+
message: v.message,
|
|
89
78
|
color: "error"
|
|
90
79
|
});
|
|
91
80
|
});
|
|
92
|
-
const
|
|
93
|
-
return (t, a) => (
|
|
94
|
-
l("div",
|
|
81
|
+
const R = $(z, 500);
|
|
82
|
+
return (t, a) => (i(), r("div", O, [
|
|
83
|
+
l("div", Q, [
|
|
95
84
|
a[1] || (a[1] = l("h2", { class: "dpiV3_tableHeader" }, "Ihre Datensätze", -1)),
|
|
96
|
-
|
|
97
|
-
|
|
85
|
+
m(g).length === 0 && f.value.length === 0 ? (i(), r("p", X, a[0] || (a[0] = [
|
|
86
|
+
S(" Willkommen im Data Provider Interface ✨ ", -1),
|
|
98
87
|
l("br", null, null, -1),
|
|
99
|
-
|
|
100
|
-
]))) :
|
|
101
|
-
l("div",
|
|
102
|
-
|
|
88
|
+
S("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
|
|
89
|
+
]))) : I("", !0),
|
|
90
|
+
l("div", Y, [
|
|
91
|
+
w(j, { to: {
|
|
103
92
|
name: "DataProviderInterface-Input",
|
|
104
93
|
query: { locale: "de", edit: !1 },
|
|
105
94
|
params: { property: "datasets" }
|
|
106
95
|
} }, {
|
|
107
|
-
default:
|
|
108
|
-
|
|
96
|
+
default: A(() => [
|
|
97
|
+
w(G, {
|
|
109
98
|
"button-text": "Neuen Datensatz erstellen",
|
|
110
99
|
size: "large"
|
|
111
100
|
})
|
|
@@ -114,13 +103,13 @@ const j = { class: "dpiV3_dpiHome V3-typography" }, G = { class: "dpiV3_homeHead
|
|
|
114
103
|
})
|
|
115
104
|
])
|
|
116
105
|
]),
|
|
117
|
-
|
|
118
|
-
|
|
106
|
+
m(g).length > 0 || f.value.length > 0 ? (i(), r("div", Z, [
|
|
107
|
+
m(R) ? (i(), r("div", ee, a[2] || (a[2] = [
|
|
119
108
|
l("p", null, "Lädt Daten...", -1)
|
|
120
|
-
]))) : (
|
|
121
|
-
a[3] || (a[3] =
|
|
109
|
+
]))) : (i(), r("div", te, [
|
|
110
|
+
a[3] || (a[3] = E('<div class="dpiV3_tableHeadWrap" data-v-df4b37ff><div class="dpiV3_thWrap" data-v-df4b37ff><div scope="col" data-v-df4b37ff><span data-v-df4b37ff>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-df4b37ff><span data-v-df4b37ff>Status</span></div></div><div class="dpiV3_blankCell" data-v-df4b37ff></div></div>', 1)),
|
|
122
111
|
l("div", null, [
|
|
123
|
-
(
|
|
112
|
+
(i(!0), r(B, null, H(f.value, (e) => (i(), T(C, {
|
|
124
113
|
id: e.id,
|
|
125
114
|
key: e.id,
|
|
126
115
|
"data-cy": e,
|
|
@@ -130,21 +119,21 @@ const j = { class: "dpiV3_dpiHome V3-typography" }, G = { class: "dpiV3_homeHead
|
|
|
130
119
|
draft: "true",
|
|
131
120
|
dataset: e
|
|
132
121
|
}, null, 8, ["id", "data-cy", "catalogue", "text", "date", "dataset"]))), 128)),
|
|
133
|
-
(
|
|
134
|
-
var
|
|
135
|
-
return
|
|
122
|
+
(i(!0), r(B, null, H(m(g), (e, _) => {
|
|
123
|
+
var s, o;
|
|
124
|
+
return i(), T(C, {
|
|
136
125
|
key: e.id,
|
|
137
|
-
text: ((
|
|
126
|
+
text: ((s = e.title) == null ? void 0 : s.de) || ((o = e.title) == null ? void 0 : o.en) || "Kein Titel in englisch oder deutsch vohanden",
|
|
138
127
|
date: e.modified ? new Date(e.modified).toDateString() : "-",
|
|
139
128
|
dataset: e
|
|
140
129
|
}, null, 8, ["text", "date", "dataset"]);
|
|
141
130
|
}), 128))
|
|
142
131
|
])
|
|
143
132
|
]))
|
|
144
|
-
])) :
|
|
133
|
+
])) : I("", !0)
|
|
145
134
|
]));
|
|
146
135
|
}
|
|
147
|
-
},
|
|
136
|
+
}, ve = /* @__PURE__ */ J(ae, [["__scopeId", "data-v-df4b37ff"]]);
|
|
148
137
|
export {
|
|
149
|
-
|
|
138
|
+
ve as default
|
|
150
139
|
};
|