agentworkshop 0.7.1 → 0.7.3
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{Dgp2wK2U.js → BkKYf8xY.js} +2 -2
- package/.output/public/_nuxt/BuKI8z-5.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/c6c01cdd-762e-4fb8-86e7-753c5185b856.json +1 -0
- package/.output/public/_nuxt/daq.BXsnevQv.css +1 -0
- package/.output/server/chunks/_/nitro.mjs +726 -688
- package/.output/server/chunks/build/{daq-D_W59QOe.mjs → daq-CmeM4u5u.mjs} +106 -101
- package/.output/server/chunks/build/daq-CmeM4u5u.mjs.map +1 -0
- package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +8 -2
- package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/virtual/entry.mjs +1 -1
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/app/pages/daq/index.vue +2 -0
- package/config.yml +1 -1
- package/package.json +1 -1
- package/scripts/_dbg-plc-agent-loop.ts +102 -0
- package/scripts/_dbg-plc-e2e.mjs +171 -0
- package/scripts/_lib-plc-sim-child.mjs +28 -0
- package/scripts/dev-plc-simulator.mjs +139 -0
- package/server/api/plugins/[name]/[...path].ts +10 -1
- package/server/data/daqs.json +137 -17
- package/server/data/dcw-lines.json +28 -0
- package/server/data/dcw-products.json +28 -0
- package/server/data/dcw-recipes.json +112 -0
- package/server/data/dcw-rollback.json +100 -1
- package/server/data/dcw-runs.json +108 -72
- package/server/data/dcw-writes.json +216 -0
- package/server/data/dcws.json +125 -98
- package/server/data/line-runs.json +40 -0
- package/server/services/workshop/daq/daq-node.ts +5 -0
- package/server/services/workshop/daq/daq-runtime.ts +6 -2
- package/server/services/workshop/daq/drivers.ts +41 -4
- package/server/services/workshop/dcw/dcw-runtime.ts +5 -0
- package/server/services/workshop/dcw/drivers.ts +10 -10
- package/shared/daq-protocol.ts +2 -0
- package/.output/public/_nuxt/DjqcbFBE.js +0 -1
- package/.output/public/_nuxt/builds/meta/0f65fbec-c4c0-45de-9c50-bb41ada375e5.json +0 -1
- package/.output/public/_nuxt/daq.m1dxZaD-.css +0 -1
- package/.output/server/chunks/build/daq-D_W59QOe.mjs.map +0 -1
|
@@ -306,6 +306,11 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
306
306
|
function statePillOf(n) {
|
|
307
307
|
const s = rowStateOf(n);
|
|
308
308
|
if (s === "offline") {
|
|
309
|
+
if (n.lastError) return {
|
|
310
|
+
key: s,
|
|
311
|
+
label: rowLabel.offline,
|
|
312
|
+
tip: n.lastError
|
|
313
|
+
};
|
|
309
314
|
const tip = !daq.controller.running ? tt("daq.k1gateoff140") : tt("daq.k1staled129", { p0: Math.round(Math.max((n.intervalMs ?? daq.controller.defaultIntervalMs) * 4, 12e3) / 1e3) });
|
|
310
315
|
return {
|
|
311
316
|
key: s,
|
|
@@ -457,10 +462,10 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
457
462
|
return (_ctx, _push, _parent, _attrs) => {
|
|
458
463
|
const _component_NuxtLink = NuxtLink;
|
|
459
464
|
const _component_a_spin = spin_default;
|
|
460
|
-
_push(`<div${ssrRenderAttrs(mergeProps({ class: "page" }, _attrs))} data-v-
|
|
465
|
+
_push(`<div${ssrRenderAttrs(mergeProps({ class: "page" }, _attrs))} data-v-147f945f><div class="aw-page-head" data-v-147f945f><div data-v-147f945f><p class="aw-kicker" data-v-147f945f> AGENTWORKSHOP / DAQ CONSOLE </p><h1 data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1emg364011"))}</h1><p class="sub" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1wmg2bz012"))}</p></div><div class="badges mono" data-v-147f945f><span class="badge"${ssrRenderAttr("title", _ctx.$t("daq.k1tsdbtip133"))} data-v-147f945f>TSDB · ${ssrInterpolate(unref(daq).meta.tsdb)}</span><span class="badge"${ssrRenderAttr("title", _ctx.$t("daq.k1queuet134"))} data-v-147f945f>QUEUE · ${ssrInterpolate(unref(daq).meta.queue)}</span></div></div>`);
|
|
461
466
|
if (unref(daq).loaded && filteredLine.value && filteredLineState.value) {
|
|
462
|
-
_push(`<div class="${ssrRenderClass([{ good: filteredLineState.value.active }, "infra-banner"])}" data-v-
|
|
463
|
-
if (filteredLineState.value.active) _push(`<!--[-->${ssrInterpolate(_ctx.$t("daq.k3ktxbr085"))}${ssrInterpolate(filteredLine.value.name)}」${ssrInterpolate(_ctx.$t("daq.k15lvw0o105"))}<b data-v-
|
|
467
|
+
_push(`<div class="${ssrRenderClass([{ good: filteredLineState.value.active }, "infra-banner"])}" data-v-147f945f><span class="${ssrRenderClass(filteredLineState.value.active ? "i-tabler-circle-check" : "i-tabler-info-circle")}" data-v-147f945f></span><span class="txt" data-v-147f945f>`);
|
|
468
|
+
if (filteredLineState.value.active) _push(`<!--[-->${ssrInterpolate(_ctx.$t("daq.k3ktxbr085"))}${ssrInterpolate(filteredLine.value.name)}」${ssrInterpolate(_ctx.$t("daq.k15lvw0o105"))}<b data-v-147f945f>${ssrInterpolate(filteredLineState.value.productName)}</b> · Recipe:<b data-v-147f945f>${ssrInterpolate(filteredLineState.value.recipeName)}</b><small class="mono" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k400lb086"))} ${ssrInterpolate(filteredLineState.value.runId?.slice(0, 8))} · ${ssrInterpolate(_ctx.$t("daq.k3zkt2106"))} ${ssrInterpolate(filteredLineState.value.startedAt?.slice(11, 19))} ${ssrInterpolate(_ctx.$t("daq.k69vag8108"))} ${ssrInterpolate(filteredLineState.value.taggedSamples)} ${ssrInterpolate(_ctx.$t("daq.k4118o092"))}</small><!--]-->`);
|
|
464
469
|
else _push(`<!--[-->${ssrInterpolate(_ctx.$t("daq.k3ktxbr085"))}${ssrInterpolate(filteredLine.value.name)}」${ssrInterpolate(_ctx.$t("daq.k12uge2o107"))}<!--]-->`);
|
|
465
470
|
_push(`</span>`);
|
|
466
471
|
_push(ssrRenderComponent(_component_NuxtLink, {
|
|
@@ -475,7 +480,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
475
480
|
}, _parent));
|
|
476
481
|
_push(`</div>`);
|
|
477
482
|
} else if (unref(daq).loaded && !anyLineActive.value) {
|
|
478
|
-
_push(`<div class="infra-banner" data-v-
|
|
483
|
+
_push(`<div class="infra-banner" data-v-147f945f><span class="i-tabler-info-circle" data-v-147f945f></span><span class="txt" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k19onw5w013"))}`);
|
|
479
484
|
_push(ssrRenderComponent(_component_NuxtLink, { to: "/dcw" }, {
|
|
480
485
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
481
486
|
if (_push) _push(`${ssrInterpolate(_ctx.$t("daq.k1b2tk5c014"))}`);
|
|
@@ -485,19 +490,19 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
485
490
|
}, _parent));
|
|
486
491
|
_push(`${ssrInterpolate(_ctx.$t("daq.k1u9wnlg015"))}</span></div>`);
|
|
487
492
|
} else _push(`<!---->`);
|
|
488
|
-
if (unref(daq).meta.infra?.degraded) _push(`<div class="infra-banner" data-v-
|
|
493
|
+
if (unref(daq).meta.infra?.degraded) _push(`<div class="infra-banner" data-v-147f945f><span class="i-tabler-alert-triangle" data-v-147f945f></span><span class="txt" data-v-147f945f>${ssrInterpolate(unref(daq).meta.infra.warning)}</span><button class="pill-btn"${ssrIncludeBooleanAttr(reconnecting.value) ? " disabled" : ""} data-v-147f945f>${ssrInterpolate(reconnecting.value ? _ctx.$t("daq.k1ld43ur094") : _ctx.$t("daq.kzg9805110"))}</button></div>`);
|
|
489
494
|
else _push(`<!---->`);
|
|
490
495
|
if (unref(daq).alarms.length) {
|
|
491
|
-
_push(`<div class="alarm-bar" data-v-
|
|
496
|
+
_push(`<div class="alarm-bar" data-v-147f945f><span class="bar-label" data-v-147f945f><span class="i-tabler-bell-ringing bell" data-v-147f945f></span> ${ssrInterpolate(_ctx.$t("daq.k1alarm141"))} <b class="mono" data-v-147f945f>${ssrInterpolate(unref(daq).alarms.length)}</b></span><div class="alarm-scroll" data-v-147f945f><!--[-->`);
|
|
492
497
|
ssrRenderList(unref(daq).alarms, (a) => {
|
|
493
|
-
_push(`<span class="alarm-item"${ssrRenderAttr("title", _ctx.$t("daq.k1esc143", { p0: a.escalation }))} data-v-
|
|
494
|
-
if (a.escalation > 0) _push(`<small class="esc mono" data-v-
|
|
498
|
+
_push(`<span class="alarm-item"${ssrRenderAttr("title", _ctx.$t("daq.k1esc143", { p0: a.escalation }))} data-v-147f945f><b data-v-147f945f>${ssrInterpolate(a.nodeName)}</b><span class="mono dim" data-v-147f945f>${ssrInterpolate(a.metric)}</span><span class="mono" data-v-147f945f>${ssrInterpolate(a.value)} ${ssrInterpolate(a.rule === "lt-min" ? "<" : ">")} ${ssrInterpolate(a.threshold)}</span>`);
|
|
499
|
+
if (a.escalation > 0) _push(`<small class="esc mono" data-v-147f945f>+${ssrInterpolate(a.escalation)}</small>`);
|
|
495
500
|
else _push(`<!---->`);
|
|
496
|
-
_push(`<button class="mini-btn ack" data-v-
|
|
501
|
+
_push(`<button class="mini-btn ack" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1ack142"))}</button></span>`);
|
|
497
502
|
});
|
|
498
503
|
_push(`<!--]--></div></div>`);
|
|
499
504
|
} else _push(`<!---->`);
|
|
500
|
-
_push(`<section class="aw-tile ctrl-card" data-v-
|
|
505
|
+
_push(`<section class="aw-tile ctrl-card" data-v-147f945f><div class="ctrl-row" data-v-147f945f><div class="ctrl-left" data-v-147f945f><button class="${ssrRenderClass([{ running: unref(daq).controller.running }, "aw-pill"])}"${ssrRenderAttr("title", _ctx.$t("daq.k1snap145"))} data-v-147f945f><span class="${ssrRenderClass(unref(daq).controller.running ? "i-tabler-player-pause" : "i-tabler-player-play")}" data-v-147f945f></span> ${ssrInterpolate(unref(daq).controller.running ? _ctx.$t("daq.kpui00095") : _ctx.$t("daq.knxpdpt111"))}</button><label class="cycle mono" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1ifahxj016"))} <input${ssrRenderAttr("value", unref(daq).controller.defaultIntervalMs)} type="number" min="200" max="60000" step="100" data-v-147f945f>ms </label><label class="cycle mono"${ssrRenderAttr("title", _ctx.$t("daq.k1e8lcoo001"))} data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1if98n0017"))} <input${ssrRenderAttr("value", unref(daq).controller.defaultPublishIntervalMs)} type="number" min="0" max="60000" step="100" data-v-147f945f>ms </label></div><div class="ctrl-right" data-v-147f945f><span class="ctrl-metrics mono" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k45uio067"))} ${ssrInterpolate(unref(daq).controller.nodesOnline)}/${ssrInterpolate(unref(daq).controller.nodesTotal)}</span><span class="sep" data-v-147f945f>·</span><span${ssrRenderAttr("title", _ctx.$t("daq.k1yztsu4002"))} data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k3xagp087"))} ${ssrInterpolate(unref(daq).meta.produced)}</span><span class="sep" data-v-147f945f>·</span><span${ssrRenderAttr("title", _ctx.$t("daq.ko09iha003"))} data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k427eu088"))} ${ssrInterpolate(unref(daq).meta.consumed)}</span><span class="sep" data-v-147f945f>·</span><span class="${ssrRenderClass({ warn: (unref(daq).meta.dropped ?? 0) > 0 })}"${ssrRenderAttr("title", _ctx.$t("daq.k1droptip135"))} data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k3w8go089"))} ${ssrInterpolate(unref(daq).meta.dropped)}</span><span class="sep" data-v-147f945f>·</span><span${ssrRenderAttr("title", _ctx.$t("daq.kj1jbmw004"))} data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k3wusd090"))} ${ssrInterpolate(unref(daq).meta.samplesStored)}</span></span><button class="aw-pill outline add-btn" data-v-147f945f><span class="i-tabler-adjustments-horizontal" data-v-147f945f></span> ${ssrInterpolate(_ctx.$t("daq.k1f5cv0s018"))}</button><button class="aw-pill add-btn" data-v-147f945f><span class="i-tabler-plus" data-v-147f945f></span> ${ssrInterpolate(_ctx.$t("daq.k1fn0ukb019"))}</button></div></div><div class="line-strip" data-v-147f945f><span class="strip-label" data-v-147f945f><span class="i-tabler-route" data-v-147f945f></span> ${ssrInterpolate(_ctx.$t("daq.k1b2o3b6020"))}<small class="mono" data-v-147f945f>${ssrInterpolate(unref(dcw).lines.length)}</small></span><div class="strip-scroll" data-v-147f945f><!--[-->`);
|
|
501
506
|
ssrRenderList(unref(dcw).lines, (l) => {
|
|
502
507
|
_push(ssrRenderComponent(_component_NuxtLink, {
|
|
503
508
|
key: l.id,
|
|
@@ -512,9 +517,9 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
512
517
|
}, {
|
|
513
518
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
514
519
|
if (_push) {
|
|
515
|
-
_push(`<span class="lp-dot" data-v-
|
|
516
|
-
if (unref(dcw).lineStateOf(l.id).active) _push(`<small class="lp-run" data-v-
|
|
517
|
-
else _push(`<small class="lp-idle" data-v-
|
|
520
|
+
_push(`<span class="lp-dot" data-v-147f945f${_scopeId}></span><b data-v-147f945f${_scopeId}>${ssrInterpolate(l.name)}</b>`);
|
|
521
|
+
if (unref(dcw).lineStateOf(l.id).active) _push(`<small class="lp-run" data-v-147f945f${_scopeId}>${ssrInterpolate(unref(dcw).lineStateOf(l.id).recipeName ?? _ctx.$t("daq.k3vp67i096"))}</small>`);
|
|
522
|
+
else _push(`<small class="lp-idle" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3zgkk021"))}</small>`);
|
|
518
523
|
} else return [
|
|
519
524
|
createVNode("span", { class: "lp-dot" }),
|
|
520
525
|
createVNode("b", null, toDisplayString(l.name), 1),
|
|
@@ -536,7 +541,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
536
541
|
to: "/dcw"
|
|
537
542
|
}, {
|
|
538
543
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
539
|
-
if (_push) _push(`<span class="lp-dot" data-v-
|
|
544
|
+
if (_push) _push(`<span class="lp-dot" data-v-147f945f${_scopeId}></span><b data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1el12b1022"))}</b><small class="lp-idle" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k8jxxe8023"))}</small>`);
|
|
540
545
|
else return [
|
|
541
546
|
createVNode("span", { class: "lp-dot" }),
|
|
542
547
|
createVNode("b", null, toDisplayString(_ctx.$t("daq.k1el12b1022")), 1),
|
|
@@ -548,101 +553,101 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
548
553
|
else _push(`<!---->`);
|
|
549
554
|
_push(`</div></div></section>`);
|
|
550
555
|
if (addOpen.value) {
|
|
551
|
-
_push(`<div class="modal-mask" data-v-
|
|
556
|
+
_push(`<div class="modal-mask" data-v-147f945f><div class="modal" data-v-147f945f><h3 class="m-title" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k19rioqa024"))}</h3><div class="seg-row" data-v-147f945f><button class="${ssrRenderClass([{ on: addScenario.value === "mock" }, "seg"])}" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1p5c1un025"))}</button><button class="${ssrRenderClass([{ on: addScenario.value === "real" }, "seg"])}" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1cbcp3o026"))}</button></div><div class="f-grid" data-v-147f945f><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1fsgerc027"))}</span><select class="inp" data-v-147f945f><!--[-->`);
|
|
552
557
|
ssrRenderList(unref(daq).templates, (t) => {
|
|
553
|
-
_push(`<option${ssrRenderAttr("value", t.key)} data-v-
|
|
558
|
+
_push(`<option${ssrRenderAttr("value", t.key)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(addTemplate.value) ? ssrLooseContain(addTemplate.value, t.key) : ssrLooseEqual(addTemplate.value, t.key)) ? " selected" : ""}>${ssrInterpolate(t.name)} · ${ssrInterpolate(t.ch)}(${ssrInterpolate(t.min)}~${ssrInterpolate(t.max)} ${ssrInterpolate(t.unit)})${ssrInterpolate(t.builtin ? "" : _ctx.$t("daq.kr45rk9097"))}</option>`);
|
|
554
559
|
});
|
|
555
|
-
_push(`<!--]--></select></label><label class="f" data-v-
|
|
556
|
-
if (addScenario.value === "real") _push(`<label class="f" data-v-
|
|
560
|
+
_push(`<!--]--></select></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1ce2k1y028"))}</span><input${ssrRenderAttr("value", addName.value)} class="inp"${ssrRenderAttr("placeholder", _ctx.$t("daq.kgpxzy3005"))} data-v-147f945f></label>`);
|
|
561
|
+
if (addScenario.value === "real") _push(`<label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k13mfsfc029"))}</span><input${ssrRenderAttr("value", addInterval.value)} type="number" min="200" max="60000" step="100" class="inp"${ssrRenderAttr("placeholder", _ctx.$t("daq.k1eg1000a136"))} data-v-147f945f></label>`);
|
|
557
562
|
else _push(`<!---->`);
|
|
558
563
|
_push(`</div>`);
|
|
559
564
|
if (addScenario.value === "real") {
|
|
560
|
-
_push(`<!--[--><div class="f-grid" data-v-
|
|
565
|
+
_push(`<!--[--><div class="f-grid" data-v-147f945f><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1kt87rx030"))}</span><select class="inp" data-v-147f945f><!--[-->`);
|
|
561
566
|
ssrRenderList(unref(DAQ_DRIVERS).filter((x) => x.status !== "planned"), (d) => {
|
|
562
|
-
_push(`<option${ssrRenderAttr("value", d.kind)} data-v-
|
|
567
|
+
_push(`<option${ssrRenderAttr("value", d.kind)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(addDriver.value) ? ssrLooseContain(addDriver.value, d.kind) : ssrLooseEqual(addDriver.value, d.kind)) ? " selected" : ""}>${ssrInterpolate(d.label)}${ssrInterpolate(driverReady(d.kind) ? "" : _ctx.$t("daq.kjbqphp098"))}</option>`);
|
|
563
568
|
});
|
|
564
569
|
_push(`<!--]--></select></label></div>`);
|
|
565
570
|
if (addFields.value.length) {
|
|
566
|
-
_push(`<div class="f-grid driver-form" data-v-
|
|
571
|
+
_push(`<div class="f-grid driver-form" data-v-147f945f><!--[-->`);
|
|
567
572
|
ssrRenderList(addFields.value, (f) => {
|
|
568
|
-
_push(`<label class="f" data-v-
|
|
569
|
-
if (f.required) _push(`<em data-v-
|
|
573
|
+
_push(`<label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(f.label)}`);
|
|
574
|
+
if (f.required) _push(`<em data-v-147f945f>*</em>`);
|
|
570
575
|
else _push(`<!---->`);
|
|
571
576
|
_push(`</span>`);
|
|
572
577
|
if (f.type === "select") {
|
|
573
|
-
_push(`<select class="inp" data-v-
|
|
578
|
+
_push(`<select class="inp" data-v-147f945f><!--[-->`);
|
|
574
579
|
ssrRenderList(f.options, (o) => {
|
|
575
|
-
_push(`<option${ssrRenderAttr("value", o.value)} data-v-
|
|
580
|
+
_push(`<option${ssrRenderAttr("value", o.value)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(addCfg.value[f.key]) ? ssrLooseContain(addCfg.value[f.key], o.value) : ssrLooseEqual(addCfg.value[f.key], o.value)) ? " selected" : ""}>${ssrInterpolate(o.label)}</option>`);
|
|
576
581
|
});
|
|
577
582
|
_push(`<!--]--></select>`);
|
|
578
|
-
} else _push(`<input${ssrRenderDynamicModel(f.type === "number" ? "number" : "text", addCfg.value[f.key], null)}${ssrRenderAttr("type", f.type === "number" ? "number" : "text")}${ssrRenderAttr("placeholder", f.placeholder)} class="inp" data-v-
|
|
579
|
-
if (f.hint) _push(`<small class="hint" data-v-
|
|
583
|
+
} else _push(`<input${ssrRenderDynamicModel(f.type === "number" ? "number" : "text", addCfg.value[f.key], null)}${ssrRenderAttr("type", f.type === "number" ? "number" : "text")}${ssrRenderAttr("placeholder", f.placeholder)} class="inp" data-v-147f945f>`);
|
|
584
|
+
if (f.hint) _push(`<small class="hint" data-v-147f945f>${ssrInterpolate(f.hint)}</small>`);
|
|
580
585
|
else _push(`<!---->`);
|
|
581
586
|
_push(`</label>`);
|
|
582
587
|
});
|
|
583
588
|
_push(`<!--]--></div>`);
|
|
584
589
|
} else _push(`<!---->`);
|
|
585
|
-
_push(`<div class="test-row" data-v-
|
|
590
|
+
_push(`<div class="test-row" data-v-147f945f><button class="pill-btn"${ssrIncludeBooleanAttr(addTesting.value) ? " disabled" : ""} data-v-147f945f>${ssrInterpolate(addTesting.value ? _ctx.$t("daq.k1fsh720099") : _ctx.$t("daq.k1fstglk112"))}</button>`);
|
|
586
591
|
if (addTest.value) {
|
|
587
|
-
_push(`<span class="${ssrRenderClass([addTest.value.ok ? "ok" : "bad", "test-result"])}" data-v-
|
|
592
|
+
_push(`<span class="${ssrRenderClass([addTest.value.ok ? "ok" : "bad", "test-result"])}" data-v-147f945f>${ssrInterpolate(addTest.value.ok ? "✓" : "✗")} ${ssrInterpolate(addTest.value.message)}`);
|
|
588
593
|
if (addTest.value.latencyMs != null) _push(`<!--[-->(${ssrInterpolate(addTest.value.latencyMs)}ms)<!--]-->`);
|
|
589
594
|
else _push(`<!---->`);
|
|
590
595
|
_push(`</span>`);
|
|
591
596
|
} else _push(`<!---->`);
|
|
592
597
|
_push(`</div><!--]-->`);
|
|
593
598
|
} else _push(`<!---->`);
|
|
594
|
-
if (addError.value) _push(`<p class="m-err" data-v-
|
|
599
|
+
if (addError.value) _push(`<p class="m-err" data-v-147f945f>${ssrInterpolate(addError.value)}</p>`);
|
|
595
600
|
else _push(`<!---->`);
|
|
596
|
-
_push(`<div class="m-actions" data-v-
|
|
601
|
+
_push(`<div class="m-actions" data-v-147f945f><button class="aw-pill outline" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k3xdnn031"))}</button><button class="aw-pill"${ssrIncludeBooleanAttr(addSaving.value || addScenario.value === "real" && addTest.value != null && !addTest.value.ok) ? " disabled" : ""}${ssrRenderAttr("title", addScenario.value === "real" && !(addTest.value && addTest.value.ok) ? _ctx.$t("daq.k1needtst137") : "")} data-v-147f945f>${ssrInterpolate(addSaving.value ? _ctx.$t("daq.k1bg4759100") : addScenario.value === "real" ? _ctx.$t("daq.k7pxjxo113") : _ctx.$t("daq.k1bge46t118"))}</button></div></div></div>`);
|
|
597
602
|
} else _push(`<!---->`);
|
|
598
603
|
if (tplOpen.value) {
|
|
599
|
-
_push(`<div class="modal-mask" data-v-
|
|
604
|
+
_push(`<div class="modal-mask" data-v-147f945f><div class="modal" data-v-147f945f><h3 class="m-title" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k11mv96s032"))}</h3><p class="sec-label" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.ktji4ky033"))}</p><table class="tpl-table" data-v-147f945f><tbody data-v-147f945f><!--[-->`);
|
|
600
605
|
ssrRenderList(customTpls.value, (t) => {
|
|
601
|
-
_push(`<tr data-v-
|
|
606
|
+
_push(`<tr data-v-147f945f><td data-v-147f945f><b data-v-147f945f>${ssrInterpolate(t.name)}</b><small class="mono dim" data-v-147f945f>${ssrInterpolate(t.code)}</small></td><td class="mono range" data-v-147f945f>${ssrInterpolate(t.min)}~${ssrInterpolate(t.max)} ${ssrInterpolate(t.unit)} · ${ssrInterpolate(t.decimals)} ${ssrInterpolate(_ctx.$t("daq.k48oi091"))}</td><td class="right actions" data-v-147f945f><button class="mini-btn" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k45eb0034"))}</button><button class="mini-btn danger" data-v-147f945f>${ssrInterpolate(confirmingDel.value === t.key ? _ctx.$t("daq.k1hhheu3101") : _ctx.$t("daq.k3xakp114"))}</button></td></tr>`);
|
|
602
607
|
});
|
|
603
608
|
_push(`<!--]-->`);
|
|
604
|
-
if (!customTpls.value.length) _push(`<tr data-v-
|
|
609
|
+
if (!customTpls.value.length) _push(`<tr data-v-147f945f><td colspan="3" class="empty" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.kztvzbo035"))}</td></tr>`);
|
|
605
610
|
else _push(`<!---->`);
|
|
606
|
-
_push(`</tbody></table><p class="sec-label" data-v-
|
|
611
|
+
_push(`</tbody></table><p class="sec-label" data-v-147f945f>${ssrInterpolate(tplEditing.value ? _ctx.$t("daq.k1iiph0s102") : _ctx.$t("daq.k1efixrj115"))}</p><div class="f-grid" data-v-147f945f><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k3xhia036"))}<em data-v-147f945f>*</em></span><input${ssrRenderAttr("value", unref(tplForm).name)} class="inp"${ssrRenderAttr("placeholder", _ctx.$t("daq.k5opd2t006"))} data-v-147f945f></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k3x4ef037"))}<em data-v-147f945f>*</em></span><input${ssrRenderAttr("value", unref(tplForm).unit)} class="inp" placeholder="如 %RH" data-v-147f945f></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1l477m0038"))}</span><input${ssrRenderAttr("value", unref(tplForm).ch)} class="inp"${ssrRenderAttr("placeholder", _ctx.$t("daq.kk8o4tl007"))} data-v-147f945f></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1ayxrqb039"))}</span><input${ssrRenderAttr("value", unref(tplForm).code)} class="inp"${ssrRenderAttr("placeholder", _ctx.$t("daq.kzn3l7l008"))} data-v-147f945f></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1l9jv5m040"))}<em data-v-147f945f>*</em></span><input${ssrRenderAttr("value", unref(tplForm).min)} type="number" class="inp" data-v-147f945f></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1l9jv4p041"))}<em data-v-147f945f>*</em></span><input${ssrRenderAttr("value", unref(tplForm).max)} type="number" class="inp" data-v-147f945f></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k3mxmcx042"))}</span><input${ssrRenderAttr("value", unref(tplForm).decimals)} type="number" min="0" max="4" class="inp" data-v-147f945f></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k3xx56043"))}</span><select class="inp" data-v-147f945f><!--[-->`);
|
|
607
612
|
ssrRenderList(unref(DAQ_TEMPLATE_ICONS), (ic) => {
|
|
608
|
-
_push(`<option${ssrRenderAttr("value", ic)} data-v-
|
|
613
|
+
_push(`<option${ssrRenderAttr("value", ic)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(tplForm).icon) ? ssrLooseContain(unref(tplForm).icon, ic) : ssrLooseEqual(unref(tplForm).icon, ic)) ? " selected" : ""}>${ssrInterpolate(ICON_LABEL[ic])}</option>`);
|
|
609
614
|
});
|
|
610
|
-
_push(`<!--]--></select></label><label class="f" data-v-
|
|
611
|
-
if (tplError.value) _push(`<p class="m-err" data-v-
|
|
615
|
+
_push(`<!--]--></select></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1f4eknv044"))}</span><input${ssrRenderAttr("value", unref(tplForm).base)} type="number" class="inp" data-v-147f945f><small class="hint" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.kytd15s045"))}</small></label><label class="f" data-v-147f945f><span data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1f4ifpo046"))}</span><input${ssrRenderAttr("value", unref(tplForm).amp)} type="number" class="inp" data-v-147f945f><small class="hint" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.ksp2aji047"))}</small></label></div>`);
|
|
616
|
+
if (tplError.value) _push(`<p class="m-err" data-v-147f945f>${ssrInterpolate(tplError.value)}</p>`);
|
|
612
617
|
else _push(`<!---->`);
|
|
613
|
-
_push(`<div class="m-actions" data-v-
|
|
618
|
+
_push(`<div class="m-actions" data-v-147f945f><button class="aw-pill outline" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k48p40048"))}</button><button class="pill-btn"${ssrIncludeBooleanAttr(tplSaving.value) ? " disabled" : ""} data-v-147f945f>${ssrInterpolate(tplSaving.value ? _ctx.$t("daq.k1b38d59103") : tplEditing.value ? _ctx.$t("daq.k1b39281116") : _ctx.$t("daq.k1b3dtga119"))}</button></div><p class="sec-label" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1w8s84s049"))}</p><table class="tpl-table" data-v-147f945f><tbody data-v-147f945f><!--[-->`);
|
|
614
619
|
ssrRenderList(builtinTpls.value, (t) => {
|
|
615
|
-
_push(`<tr data-v-
|
|
620
|
+
_push(`<tr data-v-147f945f><td data-v-147f945f><b data-v-147f945f>${ssrInterpolate(t.name)}</b><small class="mono dim" data-v-147f945f>${ssrInterpolate(t.code)}</small></td><td class="mono range" data-v-147f945f>${ssrInterpolate(t.min)}~${ssrInterpolate(t.max)} ${ssrInterpolate(t.unit)} · ${ssrInterpolate(t.decimals)} ${ssrInterpolate(_ctx.$t("daq.k48oi091"))}</td><td class="right actions" data-v-147f945f><button class="mini-btn" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k3y694050"))}</button></td></tr>`);
|
|
616
621
|
});
|
|
617
622
|
_push(`<!--]--></tbody></table></div></div>`);
|
|
618
623
|
} else _push(`<!---->`);
|
|
619
|
-
_push(`<section class="aw-tile opt-card" data-v-
|
|
624
|
+
_push(`<section class="aw-tile opt-card" data-v-147f945f><button class="opt-head" data-v-147f945f><span class="i-tabler-flask" data-v-147f945f></span><b data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1optt001"))}</b><span class="opt-count mono" data-v-147f945f>${ssrInterpolate(unref(dcw).optimizations.length)}</span><span class="${ssrRenderClass([{ open: optOpen.value }, "opt-chevron"])}" data-v-147f945f></span></button><div class="${ssrRenderClass([{ open: optOpen.value }, "opt-body"])}" data-v-147f945f>`);
|
|
620
625
|
if (optMounted.value) {
|
|
621
|
-
_push(`<!--[--><div class="opt-filters" data-v-
|
|
626
|
+
_push(`<!--[--><div class="opt-filters" data-v-147f945f><select class="inp-sel" data-v-147f945f><option value="" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(optFilterLine.value) ? ssrLooseContain(optFilterLine.value, "") : ssrLooseEqual(optFilterLine.value, "")) ? " selected" : ""}>${ssrInterpolate(_ctx.$t("daq.k1optf001"))}</option><!--[-->`);
|
|
622
627
|
ssrRenderList(unref(dcw).lines, (l) => {
|
|
623
|
-
_push(`<option${ssrRenderAttr("value", l.id)} data-v-
|
|
628
|
+
_push(`<option${ssrRenderAttr("value", l.id)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(optFilterLine.value) ? ssrLooseContain(optFilterLine.value, l.id) : ssrLooseEqual(optFilterLine.value, l.id)) ? " selected" : ""}>${ssrInterpolate(l.name)}</option>`);
|
|
624
629
|
});
|
|
625
|
-
_push(`<!--]--></select><select class="inp-sel" data-v-
|
|
630
|
+
_push(`<!--]--></select><select class="inp-sel" data-v-147f945f><option value="" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(optFilterRecipe.value) ? ssrLooseContain(optFilterRecipe.value, "") : ssrLooseEqual(optFilterRecipe.value, "")) ? " selected" : ""}>${ssrInterpolate(_ctx.$t("daq.k1optf004"))}</option><!--[-->`);
|
|
626
631
|
ssrRenderList(optRecipeOptions.value, (r) => {
|
|
627
|
-
_push(`<option${ssrRenderAttr("value", r.id)} data-v-
|
|
632
|
+
_push(`<option${ssrRenderAttr("value", r.id)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(optFilterRecipe.value) ? ssrLooseContain(optFilterRecipe.value, r.id) : ssrLooseEqual(optFilterRecipe.value, r.id)) ? " selected" : ""}>${ssrInterpolate(r.name)}</option>`);
|
|
628
633
|
});
|
|
629
|
-
_push(`<!--]--></select><button class="mini-act" data-v-
|
|
630
|
-
if (unref(dcw).optimizations.length === 0) _push(`<p class="opt-empty" data-v-
|
|
634
|
+
_push(`<!--]--></select><button class="mini-act" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1optf002"))}</button></div>`);
|
|
635
|
+
if (unref(dcw).optimizations.length === 0) _push(`<p class="opt-empty" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1opte001"))}</p>`);
|
|
631
636
|
else _push(`<!---->`);
|
|
632
|
-
_push(`<ul class="opt-list" data-v-
|
|
637
|
+
_push(`<ul class="opt-list" data-v-147f945f><!--[-->`);
|
|
633
638
|
ssrRenderList(unref(dcw).optimizations.slice(0, 30), (r) => {
|
|
634
|
-
_push(`<li class="${ssrRenderClass([r.status, "opt-row"])}" data-v-
|
|
635
|
-
if (!optSeriesOf.value[r.id]) _push(`<button class="mini-act"${ssrIncludeBooleanAttr(optSeriesLoading.value === r.id) ? " disabled" : ""} data-v-
|
|
639
|
+
_push(`<li class="${ssrRenderClass([r.status, "opt-row"])}" data-v-147f945f><div class="opt-line1" data-v-147f945f><span class="${ssrRenderClass([r.status, "opt-status"])}" data-v-147f945f>${ssrInterpolate(_ctx.$t(optStatusKey(r.status)))}</span><b class="opt-node" data-v-147f945f>${ssrInterpolate(r.nodeName)}</b><span class="mono opt-params" data-v-147f945f>${ssrInterpolate(r.params[0]?.from ?? "?")} → ${ssrInterpolate(r.params[0]?.to)}</span><span class="mono opt-time" data-v-147f945f>${ssrInterpolate(r.setAt.slice(5, 16).replace("T", " "))}</span>`);
|
|
640
|
+
if (!optSeriesOf.value[r.id]) _push(`<button class="mini-act"${ssrIncludeBooleanAttr(optSeriesLoading.value === r.id) ? " disabled" : ""} data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1opta001"))}</button>`);
|
|
636
641
|
else _push(`<!---->`);
|
|
637
|
-
if (r.status === "open") _push(`<button class="mini-act danger" data-v-
|
|
642
|
+
if (r.status === "open") _push(`<button class="mini-act danger" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1opta002"))}</button>`);
|
|
638
643
|
else _push(`<!---->`);
|
|
639
|
-
_push(`</div><div class="opt-line2 mono" data-v-
|
|
640
|
-
if (r.judge) _push(`<span class="${ssrRenderClass([r.judge.verdict, "opt-judge"])}" data-v-
|
|
641
|
-
else if (r.status === "open") _push(`<span class="opt-open-hint" data-v-
|
|
644
|
+
_push(`</div><div class="opt-line2 mono" data-v-147f945f>`);
|
|
645
|
+
if (r.judge) _push(`<span class="${ssrRenderClass([r.judge.verdict, "opt-judge"])}" data-v-147f945f>${ssrInterpolate(r.judge.verdict)}(${ssrInterpolate(r.judge.by)}): ${ssrInterpolate(r.judge.reason.slice(0, 70))}</span>`);
|
|
646
|
+
else if (r.status === "open") _push(`<span class="opt-open-hint" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1opto001"))}</span>`);
|
|
642
647
|
else _push(`<!---->`);
|
|
643
|
-
if (r.aggPending) _push(`<span class="opt-agg" data-v-
|
|
648
|
+
if (r.aggPending) _push(`<span class="opt-agg" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1optw001"))}</span>`);
|
|
644
649
|
else if (r.windowAgg && r.windowAgg.channels.length) {
|
|
645
|
-
_push(`<span class="opt-agg" data-v-
|
|
650
|
+
_push(`<span class="opt-agg" data-v-147f945f><!--[-->`);
|
|
646
651
|
ssrRenderList(r.windowAgg.channels, (c) => {
|
|
647
652
|
_push(`<!--[-->${ssrInterpolate(c.ch)} ${ssrInterpolate(fmtPoint(c.min))}~${ssrInterpolate(fmtPoint(c.max))}(${ssrInterpolate(_ctx.$t("daq.k1optw002"))}${ssrInterpolate(c.breaches < 0 ? "-" : c.breaches)}) <!--]-->`);
|
|
648
653
|
});
|
|
@@ -650,12 +655,12 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
650
655
|
} else _push(`<!---->`);
|
|
651
656
|
_push(`</div>`);
|
|
652
657
|
if (optSeriesOf.value[r.id]) {
|
|
653
|
-
_push(`<div class="opt-series" data-v-
|
|
658
|
+
_push(`<div class="opt-series" data-v-147f945f><!--[-->`);
|
|
654
659
|
ssrRenderList(optSeriesOf.value[r.id].channels, (ch) => {
|
|
655
|
-
_push(`<div class="opt-ch" data-v-
|
|
660
|
+
_push(`<div class="opt-ch" data-v-147f945f><svg class="opt-spark" viewBox="0 0 240 36" preserveAspectRatio="none" data-v-147f945f><polyline${ssrRenderAttr("points", seriesPath(ch.points))} data-v-147f945f></polyline></svg><span class="mono" data-v-147f945f>${ssrInterpolate(ch.ch)} ${ssrInterpolate(fmtPoint(ch.points.at(-1)?.value ?? ch.points.at(-1)?.avg))}${ssrInterpolate(ch.unit)}</span></div>`);
|
|
656
661
|
});
|
|
657
662
|
_push(`<!--]-->`);
|
|
658
|
-
if (optSeriesOf.value[r.id].channels.length === 0) _push(`<p class="opt-empty" data-v-
|
|
663
|
+
if (optSeriesOf.value[r.id].channels.length === 0) _push(`<p class="opt-empty" data-v-147f945f>${ssrInterpolate(_ctx.$t("daq.k1opte002"))}</p>`);
|
|
659
664
|
else _push(`<!---->`);
|
|
660
665
|
_push(`</div>`);
|
|
661
666
|
} else _push(`<!---->`);
|
|
@@ -667,88 +672,88 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
667
672
|
_push(ssrRenderComponent(_component_a_spin, { spinning: !unref(daq).loaded && !unref(daq).error }, {
|
|
668
673
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
669
674
|
if (_push) {
|
|
670
|
-
_push(`<section class="aw-tile table-card" data-v-
|
|
675
|
+
_push(`<section class="aw-tile table-card" data-v-147f945f${_scopeId}><div class="tbl-toolbar" data-v-147f945f${_scopeId}><div class="filters" data-v-147f945f${_scopeId}><label class="flt" data-v-147f945f${_scopeId}><span data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3wj9n051"))}</span><select class="inp-sel" data-v-147f945f${_scopeId}><option value="" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).lineId) ? ssrLooseContain(unref(filters).lineId, "") : ssrLooseEqual(unref(filters).lineId, "")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1bkl9uj052"))}</option><!--[-->`);
|
|
671
676
|
ssrRenderList(unref(dcw).lines, (l) => {
|
|
672
|
-
_push(`<option${ssrRenderAttr("value", l.id)} data-v-
|
|
677
|
+
_push(`<option${ssrRenderAttr("value", l.id)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).lineId) ? ssrLooseContain(unref(filters).lineId, l.id) : ssrLooseEqual(unref(filters).lineId, l.id)) ? " selected" : ""}${_scopeId}>${ssrInterpolate(l.name)}</option>`);
|
|
673
678
|
});
|
|
674
|
-
_push(`<!--]--><option value="none" data-v-
|
|
679
|
+
_push(`<!--]--><option value="none" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).lineId) ? ssrLooseContain(unref(filters).lineId, "none") : ssrLooseEqual(unref(filters).lineId, "none")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3ootr6053"))}</option></select></label><label class="flt" data-v-147f945f${_scopeId}><span data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1i8rtqt054"))}</span><select class="inp-sel" data-v-147f945f${_scopeId}><option value="" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).deviceId) ? ssrLooseContain(unref(filters).deviceId, "") : ssrLooseEqual(unref(filters).deviceId, "")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1bkw4m2055"))}</option><!--[-->`);
|
|
675
680
|
ssrRenderList(boundDevices.value, (d) => {
|
|
676
|
-
_push(`<option${ssrRenderAttr("value", d.id)} data-v-
|
|
681
|
+
_push(`<option${ssrRenderAttr("value", d.id)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).deviceId) ? ssrLooseContain(unref(filters).deviceId, d.id) : ssrLooseEqual(unref(filters).deviceId, d.id)) ? " selected" : ""}${_scopeId}>${ssrInterpolate(d.name)}(${ssrInterpolate(d.count)}) </option>`);
|
|
677
682
|
});
|
|
678
|
-
_push(`<!--]--><option value="none" data-v-
|
|
683
|
+
_push(`<!--]--><option value="none" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).deviceId) ? ssrLooseContain(unref(filters).deviceId, "none") : ssrLooseEqual(unref(filters).deviceId, "none")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3own4q056"))}</option></select></label><label class="flt"${ssrRenderAttr("title", _ctx.$t("daq.khb8mru009"))} data-v-147f945f${_scopeId}><span data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1b2tkyv057"))}</span><select class="inp-sel" data-v-147f945f${_scopeId}><option value="" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).lineRun) ? ssrLooseContain(unref(filters).lineRun, "") : ssrLooseEqual(unref(filters).lineRun, "")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3x4t1058"))}</option><option value="on" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).lineRun) ? ssrLooseContain(unref(filters).lineRun, "on") : ssrLooseEqual(unref(filters).lineRun, "on")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1nxm3p7059"))}</option><option value="off" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).lineRun) ? ssrLooseContain(unref(filters).lineRun, "off") : ssrLooseEqual(unref(filters).lineRun, "off")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1ulx34e060"))}</option></select></label><label class="flt" data-v-147f945f${_scopeId}><span data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1iwdfef061"))}</span><select class="inp-sel" data-v-147f945f${_scopeId}><option value="" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).state) ? ssrLooseContain(unref(filters).state, "") : ssrLooseEqual(unref(filters).state, "")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3x4t1058"))}</option><option value="ok" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).state) ? ssrLooseContain(unref(filters).state, "ok") : ssrLooseEqual(unref(filters).state, "ok")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k41k5c062"))}</option><option value="warn" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).state) ? ssrLooseContain(unref(filters).state, "warn") : ssrLooseEqual(unref(filters).state, "warn")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k49z8v063"))}</option><option value="alarm" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).state) ? ssrLooseContain(unref(filters).state, "alarm") : ssrLooseEqual(unref(filters).state, "alarm")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3xmid064"))}</option><option value="offline" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).state) ? ssrLooseContain(unref(filters).state, "offline") : ssrLooseEqual(unref(filters).state, "offline")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k44c2n065"))}</option></select></label><label class="flt" data-v-147f945f${_scopeId}><span data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1flttpl010"))}</span><select class="inp-sel" data-v-147f945f${_scopeId}><option value="" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).template) ? ssrLooseContain(unref(filters).template, "") : ssrLooseEqual(unref(filters).template, "")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1flttpl011"))}</option><!--[-->`);
|
|
679
684
|
ssrRenderList(templateOptions.value, (t) => {
|
|
680
|
-
_push(`<option${ssrRenderAttr("value", t.ref)} data-v-
|
|
685
|
+
_push(`<option${ssrRenderAttr("value", t.ref)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).template) ? ssrLooseContain(unref(filters).template, t.ref) : ssrLooseEqual(unref(filters).template, t.ref)) ? " selected" : ""}${_scopeId}>${ssrInterpolate(t.label)}(${ssrInterpolate(t.count)}) </option>`);
|
|
681
686
|
});
|
|
682
|
-
_push(`<!--]--></select></label><label class="flt" data-v-
|
|
687
|
+
_push(`<!--]--></select></label><label class="flt" data-v-147f945f${_scopeId}><span data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1fltdrv012"))}</span><select class="inp-sel" data-v-147f945f${_scopeId}><option value="" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).driver) ? ssrLooseContain(unref(filters).driver, "") : ssrLooseEqual(unref(filters).driver, "")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1fltdrv013"))}</option><!--[-->`);
|
|
683
688
|
ssrRenderList(driverOptions.value, (d) => {
|
|
684
|
-
_push(`<option${ssrRenderAttr("value", d.kind)} data-v-
|
|
689
|
+
_push(`<option${ssrRenderAttr("value", d.kind)} data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).driver) ? ssrLooseContain(unref(filters).driver, d.kind) : ssrLooseEqual(unref(filters).driver, d.kind)) ? " selected" : ""}${_scopeId}>${ssrInterpolate(d.label)}(${ssrInterpolate(d.count)}) </option>`);
|
|
685
690
|
});
|
|
686
|
-
_push(`<!--]--></select></label><label class="flt"${ssrRenderAttr("title", _ctx.$t("daq.k1flttim014"))} data-v-
|
|
687
|
-
if (hasFilters.value) _push(`<button class="mini-btn clear-btn" data-v-
|
|
691
|
+
_push(`<!--]--></select></label><label class="flt"${ssrRenderAttr("title", _ctx.$t("daq.k1flttim014"))} data-v-147f945f${_scopeId}><span data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1flttim015"))}</span><select class="inp-sel" data-v-147f945f${_scopeId}><option value="" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).time) ? ssrLooseContain(unref(filters).time, "") : ssrLooseEqual(unref(filters).time, "")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1flttim016"))}</option><option value="live" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).time) ? ssrLooseContain(unref(filters).time, "live") : ssrLooseEqual(unref(filters).time, "live")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1timlv017"))}</option><option value="hour" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).time) ? ssrLooseContain(unref(filters).time, "hour") : ssrLooseEqual(unref(filters).time, "hour")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1timhr018"))}</option><option value="day" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).time) ? ssrLooseContain(unref(filters).time, "day") : ssrLooseEqual(unref(filters).time, "day")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1timdy019"))}</option><option value="old" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).time) ? ssrLooseContain(unref(filters).time, "old") : ssrLooseEqual(unref(filters).time, "old")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1timld020"))}</option><option value="never" data-v-147f945f${ssrIncludeBooleanAttr(Array.isArray(unref(filters).time) ? ssrLooseContain(unref(filters).time, "never") : ssrLooseEqual(unref(filters).time, "never")) ? " selected" : ""}${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1timnv021"))}</option></select></label><label class="flt" data-v-147f945f${_scopeId}><span data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1fltsrc022"))}</span><input${ssrRenderAttr("value", unref(filters).search)} class="inp-sel flt-search" type="search"${ssrRenderAttr("placeholder", _ctx.$t("daq.k1fltsph023"))} data-v-147f945f${_scopeId}></label>`);
|
|
692
|
+
if (hasFilters.value) _push(`<button class="mini-btn clear-btn" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1fygck2066"))}</button>`);
|
|
688
693
|
else _push(`<!---->`);
|
|
689
|
-
_push(`</div><span class="count mono" data-v-
|
|
690
|
-
if (unref(daq).alarms.length === 0) _push(`<p class="panel-empty" data-v-
|
|
694
|
+
_push(`</div><span class="count mono" data-v-147f945f${_scopeId}>${ssrInterpolate(filteredNodes.value.length)} / ${ssrInterpolate(unref(daq).nodes.length)} ${ssrInterpolate(_ctx.$t("daq.k45uio067"))}</span></div><div class="ops-panels" data-v-147f945f${_scopeId}><div class="${ssrRenderClass([{ live: unref(daq).alarms.length > 0 }, "ops-panel alarm-panel"])}" data-v-147f945f${_scopeId}><div class="panel-head" data-v-147f945f${_scopeId}><span class="i-tabler-bell-ringing bell" data-v-147f945f${_scopeId}></span><b data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1alarm141"))}</b><span class="${ssrRenderClass([{ hot: unref(daq).alarms.length > 0 }, "mono cnt"])}" data-v-147f945f${_scopeId}>${ssrInterpolate(unref(daq).alarms.length)}</span></div><div class="panel-body" data-v-147f945f${_scopeId}>`);
|
|
695
|
+
if (unref(daq).alarms.length === 0) _push(`<p class="panel-empty" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1evt001"))}</p>`);
|
|
691
696
|
else {
|
|
692
697
|
_push(`<!--[-->`);
|
|
693
698
|
ssrRenderList(unref(daq).alarms, (a) => {
|
|
694
|
-
_push(`<div class="alarm-row" data-v-
|
|
695
|
-
if (a.escalation > 0) _push(`<small class="esc mono" data-v-
|
|
699
|
+
_push(`<div class="alarm-row" data-v-147f945f${_scopeId}><span class="i-tabler-alert-triangle tri" data-v-147f945f${_scopeId}></span><b data-v-147f945f${_scopeId}>${ssrInterpolate(a.nodeName)}</b><span class="mono dim" data-v-147f945f${_scopeId}>${ssrInterpolate(a.metric)}</span><span class="mono" data-v-147f945f${_scopeId}>${ssrInterpolate(a.value)} ${ssrInterpolate(a.rule === "lt-min" ? "<" : ">")} ${ssrInterpolate(a.threshold)}</span>`);
|
|
700
|
+
if (a.escalation > 0) _push(`<small class="esc mono" data-v-147f945f${_scopeId}>+${ssrInterpolate(a.escalation)}</small>`);
|
|
696
701
|
else _push(`<!---->`);
|
|
697
|
-
_push(`<button class="mini-btn ack" data-v-
|
|
702
|
+
_push(`<button class="mini-btn ack" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1ack142"))}</button></div>`);
|
|
698
703
|
});
|
|
699
704
|
_push(`<!--]-->`);
|
|
700
705
|
}
|
|
701
|
-
_push(`</div></div><div class="ops-panel event-panel" data-v-
|
|
706
|
+
_push(`</div></div><div class="ops-panel event-panel" data-v-147f945f${_scopeId}><div class="panel-head" data-v-147f945f${_scopeId}><span class="i-tabler-activity" data-v-147f945f${_scopeId}></span><b data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1evt002"))}</b>`);
|
|
702
707
|
_push(ssrRenderComponent(_component_NuxtLink, {
|
|
703
708
|
class: "panel-link",
|
|
704
709
|
to: "/logs"
|
|
705
710
|
}, {
|
|
706
711
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
707
|
-
if (_push) _push(`${ssrInterpolate(_ctx.$t("daq.k1evt003"))}<span class="i-tabler-arrow-right" data-v-
|
|
712
|
+
if (_push) _push(`${ssrInterpolate(_ctx.$t("daq.k1evt003"))}<span class="i-tabler-arrow-right" data-v-147f945f${_scopeId}></span>`);
|
|
708
713
|
else return [createTextVNode(toDisplayString(_ctx.$t("daq.k1evt003")), 1), createVNode("span", { class: "i-tabler-arrow-right" })];
|
|
709
714
|
}),
|
|
710
715
|
_: 1
|
|
711
716
|
}, _parent, _scopeId));
|
|
712
|
-
_push(`</div><div class="panel-body" data-v-
|
|
713
|
-
if (unref(opsLog).recent.length === 0) _push(`<p class="panel-empty" data-v-
|
|
717
|
+
_push(`</div><div class="panel-body" data-v-147f945f${_scopeId}>`);
|
|
718
|
+
if (unref(opsLog).recent.length === 0) _push(`<p class="panel-empty" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1evt004"))}</p>`);
|
|
714
719
|
else {
|
|
715
720
|
_push(`<!--[-->`);
|
|
716
721
|
ssrRenderList(unref(opsLog).recent, (r, i) => {
|
|
717
|
-
_push(`<div class="evt-row" data-v-
|
|
722
|
+
_push(`<div class="evt-row" data-v-147f945f${_scopeId}><span class="mono dim t" data-v-147f945f${_scopeId}>${ssrInterpolate(opsTime(r.at))}</span><span class="${ssrRenderClass([r.actorKind, "src-badge"])}" data-v-147f945f${_scopeId}>${ssrInterpolate(r.actorKind === "agent" ? "Agent" : r.actorKind === "user" ? _ctx.$t("logs.src.user") : _ctx.$t("logs.src.system"))}</span><span class="${ssrRenderClass([r.kind, "kind-chip"])}" data-v-147f945f${_scopeId}>${ssrInterpolate(opsKindLabel(r.kind))}</span><span class="txt"${ssrRenderAttr("title", r.summary)} data-v-147f945f${_scopeId}>${ssrInterpolate(r.summary)}</span></div>`);
|
|
718
723
|
});
|
|
719
724
|
_push(`<!--]-->`);
|
|
720
725
|
}
|
|
721
|
-
_push(`</div></div></div><table class="nodes-table" data-v-
|
|
726
|
+
_push(`</div></div></div><table class="nodes-table" data-v-147f945f${_scopeId}><thead data-v-147f945f${_scopeId}><tr data-v-147f945f${_scopeId}><th data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k45uio067"))}</th><th data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k42w8s068"))}</th><th data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3mv305069"))}</th><th data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1trnd001"))}</th><th data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1l6g2ga070"))}</th><th data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3zi0nf071"))}</th><th data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k4a0la072"))}</th><th data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3wj9n051"))}</th><th${ssrRenderAttr("title", _ctx.$t("daq.k1runtipc131"))} data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1b2tkyv057"))}</th><th${ssrRenderAttr("title", _ctx.$t("daq.k1prdrtip132"))} data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1prodrc128"))}</th><th data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1i8rtqt054"))}</th><th class="right" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k40aa6073"))}</th></tr></thead><tbody data-v-147f945f${_scopeId}><!--[-->`);
|
|
722
727
|
ssrRenderList(filteredRows.value, ({ n, c }) => {
|
|
723
|
-
_push(`<tr class="${ssrRenderClass({ "row-recipe-alarm": c.alarm })}" data-v-
|
|
728
|
+
_push(`<tr class="${ssrRenderClass({ "row-recipe-alarm": c.alarm })}" data-v-147f945f${_scopeId}><td data-v-147f945f${_scopeId}><span class="mono dim" data-v-147f945f${_scopeId}>${ssrInterpolate(n.id.slice(0, 8))}</span><b data-v-147f945f${_scopeId}>${ssrInterpolate(n.name)}</b><small class="mono ch" data-v-147f945f${_scopeId}>${ssrInterpolate(c.tpl)}</small></td><td data-v-147f945f${_scopeId}><span class="${ssrRenderClass([[c.pill.key], "st-pill"])}"${ssrRenderAttr("title", c.pill.tip)} data-v-147f945f${_scopeId}>${ssrInterpolate(c.pill.label)}</span></td><td class="${ssrRenderClass([{
|
|
724
729
|
"stale": !c.live,
|
|
725
730
|
"val-alarm": n.state === "alarm" || c.alarm
|
|
726
|
-
}, "mono val"])}"${ssrRenderAttr("title", c.live ? void 0 : c.pill.tip)} data-v-
|
|
727
|
-
if (limitY(n.hist, limitOf(n).min) != null) _push(`<line class="lim" x1="0"${ssrRenderAttr("y1", limitY(n.hist, limitOf(n).min))} x2="120"${ssrRenderAttr("y2", limitY(n.hist, limitOf(n).min))} data-v-
|
|
731
|
+
}, "mono val"])}"${ssrRenderAttr("title", c.live ? void 0 : c.pill.tip)} data-v-147f945f${_scopeId}>${ssrInterpolate(n.value != null ? n.value.toFixed(n.decimals) : "--")} <small data-v-147f945f${_scopeId}>${ssrInterpolate(n.unit)}</small></td><td class="trend-cell" data-v-147f945f${_scopeId}><svg class="trend" viewBox="0 0 120 26" preserveAspectRatio="none"${ssrRenderAttr("title", _ctx.$t("daq.k1trnd002"))} data-v-147f945f${_scopeId}>`);
|
|
732
|
+
if (limitY(n.hist, limitOf(n).min) != null) _push(`<line class="lim" x1="0"${ssrRenderAttr("y1", limitY(n.hist, limitOf(n).min))} x2="120"${ssrRenderAttr("y2", limitY(n.hist, limitOf(n).min))} data-v-147f945f${_scopeId}></line>`);
|
|
728
733
|
else _push(`<!---->`);
|
|
729
|
-
if (limitY(n.hist, limitOf(n).max) != null) _push(`<line class="lim max" x1="0"${ssrRenderAttr("y1", limitY(n.hist, limitOf(n).max))} x2="120"${ssrRenderAttr("y2", limitY(n.hist, limitOf(n).max))} data-v-
|
|
734
|
+
if (limitY(n.hist, limitOf(n).max) != null) _push(`<line class="lim max" x1="0"${ssrRenderAttr("y1", limitY(n.hist, limitOf(n).max))} x2="120"${ssrRenderAttr("y2", limitY(n.hist, limitOf(n).max))} data-v-147f945f${_scopeId}></line>`);
|
|
730
735
|
else _push(`<!---->`);
|
|
731
|
-
_push(`<polyline class="${ssrRenderClass([{ alarm: n.state === "alarm" || c.alarm }, "trace"])}"${ssrRenderAttr("points", trendPath(n.hist))} data-v-
|
|
736
|
+
_push(`<polyline class="${ssrRenderClass([{ alarm: n.state === "alarm" || c.alarm }, "trace"])}"${ssrRenderAttr("points", trendPath(n.hist))} data-v-147f945f${_scopeId}></polyline></svg></td><td class="mono" data-v-147f945f${_scopeId}>${ssrInterpolate(intervalOf(n.intervalMs))}</td><td class="mono" data-v-147f945f${_scopeId}>${ssrInterpolate(publishOf(n.publishIntervalMs))}</td><td data-v-147f945f${_scopeId}><span class="${ssrRenderClass([{ planned: driverPlanned(n.driver) }, "drv-tag"])}"${ssrRenderAttr("title", driverPlanned(n.driver) ? _ctx.$t("daq.k1plndrv138") : "")} data-v-147f945f${_scopeId}>${ssrInterpolate(n.driver)}</span></td><td data-v-147f945f${_scopeId}><select class="line-sel"${ssrRenderAttr("value", n.lineId)}${ssrRenderAttr("title", _ctx.$t("daq.k3q23v3010"))} data-v-147f945f${_scopeId}><option value="" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3ootr6053"))}</option><!--[-->`);
|
|
732
737
|
ssrRenderList(unref(dcw).lines, (l) => {
|
|
733
|
-
_push(`<option${ssrRenderAttr("value", l.id)} data-v-
|
|
738
|
+
_push(`<option${ssrRenderAttr("value", l.id)} data-v-147f945f${_scopeId}>${ssrInterpolate(l.name)}</option>`);
|
|
734
739
|
});
|
|
735
|
-
_push(`<!--]--></select></td><td data-v-
|
|
736
|
-
if (n.lineId) _push(`<span class="${ssrRenderClass([{ on: unref(dcw).lineStateOf(n.lineId).active }, "run-pill"])}"${ssrRenderAttr("title", _ctx.$t("daq.k1runtipc131"))} data-v-
|
|
737
|
-
else _push(`<span class="run-pill na" data-v-
|
|
738
|
-
_push(`</td><td class="prod-cell" data-v-
|
|
739
|
-
if (n.lineId && unref(dcw).lineStateOf(n.lineId).active) _push(`<!--[--><b${ssrRenderAttr("title", _ctx.$t("daq.k1prdrtip132"))} data-v-
|
|
740
|
-
else _push(`<span class="dim" data-v-
|
|
741
|
-
_push(`</td><td data-v-
|
|
740
|
+
_push(`<!--]--></select></td><td data-v-147f945f${_scopeId}>`);
|
|
741
|
+
if (n.lineId) _push(`<span class="${ssrRenderClass([{ on: unref(dcw).lineStateOf(n.lineId).active }, "run-pill"])}"${ssrRenderAttr("title", _ctx.$t("daq.k1runtipc131"))} data-v-147f945f${_scopeId}><span class="rp-dot" data-v-147f945f${_scopeId}></span> ${ssrInterpolate(unref(dcw).lineStateOf(n.lineId).active ? _ctx.$t("daq.k3vp67i096") : _ctx.$t("daq.k3ozyqz117"))}</span>`);
|
|
742
|
+
else _push(`<span class="run-pill na" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3ootr6053"))}</span>`);
|
|
743
|
+
_push(`</td><td class="prod-cell" data-v-147f945f${_scopeId}>`);
|
|
744
|
+
if (n.lineId && unref(dcw).lineStateOf(n.lineId).active) _push(`<!--[--><b${ssrRenderAttr("title", _ctx.$t("daq.k1prdrtip132"))} data-v-147f945f${_scopeId}>${ssrInterpolate(unref(dcw).lineStateOf(n.lineId).productName || "--")}</b><small class="mono"${ssrRenderAttr("title", _ctx.$t("daq.k1prdrtip132"))} data-v-147f945f${_scopeId}>${ssrInterpolate(unref(dcw).lineStateOf(n.lineId).recipeName || "--")}</small><!--]-->`);
|
|
745
|
+
else _push(`<span class="dim" data-v-147f945f${_scopeId}>--</span>`);
|
|
746
|
+
_push(`</td><td data-v-147f945f${_scopeId}><select class="line-sel"${ssrRenderAttr("value", n.deviceBindingId ?? "")}${ssrRenderAttr("title", _ctx.$t("daq.k2bindtip137"))} data-v-147f945f${_scopeId}><option value="" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k3own4q056"))}</option><!--[-->`);
|
|
742
747
|
ssrRenderList(bindableDeviceTwins.value, (d) => {
|
|
743
|
-
_push(`<option${ssrRenderAttr("value", d.id)} data-v-
|
|
748
|
+
_push(`<option${ssrRenderAttr("value", d.id)} data-v-147f945f${_scopeId}>${ssrInterpolate(unref(nodeDevices).get(d.id) ?? d.name)}</option>`);
|
|
744
749
|
});
|
|
745
|
-
_push(`<!--]--></select></td><td class="right" data-v-
|
|
750
|
+
_push(`<!--]--></select></td><td class="right" data-v-147f945f${_scopeId}><button class="${ssrRenderClass([{ off: !n.enabled }, "node-toggle"])}"${ssrRenderAttr("title", n.enabled ? _ctx.$t("daq.k1nodestop146") : _ctx.$t("daq.k1nodestart147"))} data-v-147f945f${_scopeId}><span class="${ssrRenderClass(n.enabled ? "i-tabler-player-pause" : "i-tabler-player-play")}" data-v-147f945f${_scopeId}></span> ${ssrInterpolate(n.enabled ? _ctx.$t("daq.k1nodestop146") : _ctx.$t("daq.k1nodestart147"))}</button>`);
|
|
746
751
|
_push(ssrRenderComponent(_component_NuxtLink, {
|
|
747
752
|
class: "console-link",
|
|
748
753
|
to: `/daq/${n.id}`
|
|
749
754
|
}, {
|
|
750
755
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
751
|
-
if (_push) _push(`<span class="i-tabler-dashboard" data-v-
|
|
756
|
+
if (_push) _push(`<span class="i-tabler-dashboard" data-v-147f945f${_scopeId}></span> ${ssrInterpolate(_ctx.$t("daq.k3o3jg2074"))}`);
|
|
752
757
|
else return [createVNode("span", { class: "i-tabler-dashboard" }), createTextVNode(" " + toDisplayString(_ctx.$t("daq.k3o3jg2074")), 1)];
|
|
753
758
|
}),
|
|
754
759
|
_: 2
|
|
@@ -756,8 +761,8 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
756
761
|
_push(`</td></tr>`);
|
|
757
762
|
});
|
|
758
763
|
_push(`<!--]-->`);
|
|
759
|
-
if (unref(daq).loaded && unref(daq).nodes.length === 0) _push(`<tr data-v-
|
|
760
|
-
else if (unref(daq).loaded && filteredNodes.value.length === 0) _push(`<tr data-v-
|
|
764
|
+
if (unref(daq).loaded && unref(daq).nodes.length === 0) _push(`<tr data-v-147f945f${_scopeId}><td colspan="11" data-v-147f945f${_scopeId}><div class="pane-empty" style="${ssrRenderStyle({ "min-height": "120px" })}" data-v-147f945f${_scopeId}><p class="pe-sub" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.kvhjyc3075"))}</p></div></td></tr>`);
|
|
765
|
+
else if (unref(daq).loaded && filteredNodes.value.length === 0) _push(`<tr data-v-147f945f${_scopeId}><td colspan="11" data-v-147f945f${_scopeId}><div class="pane-empty" style="${ssrRenderStyle({ "min-height": "90px" })}" data-v-147f945f${_scopeId}><p class="pe-sub" data-v-147f945f${_scopeId}>${ssrInterpolate(_ctx.$t("daq.k1w20qew076"))}</p></div></td></tr>`);
|
|
761
766
|
else _push(`<!---->`);
|
|
762
767
|
_push(`</tbody></table></section>`);
|
|
763
768
|
} else return [createVNode("section", { class: "aw-tile table-card" }, [
|
|
@@ -1041,7 +1046,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
1041
1046
|
_: 1
|
|
1042
1047
|
}, _parent));
|
|
1043
1048
|
if (unref(daq).error) {
|
|
1044
|
-
_push(`<p class="err" data-v-
|
|
1049
|
+
_push(`<p class="err" data-v-147f945f>${ssrInterpolate(unref(daq).error)}(`);
|
|
1045
1050
|
_push(ssrRenderComponent(_component_NuxtLink, { to: "/workshop" }, {
|
|
1046
1051
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
1047
1052
|
if (_push) _push(`${ssrInterpolate(_ctx.$t("daq.k1bhhheq077"))}`);
|
|
@@ -1063,7 +1068,7 @@ index_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
|
|
|
1063
1068
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/daq/index.vue");
|
|
1064
1069
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
1065
1070
|
};
|
|
1066
|
-
var daq_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
1071
|
+
var daq_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-147f945f"]]);
|
|
1067
1072
|
|
|
1068
1073
|
export { daq_default as default };
|
|
1069
|
-
//# sourceMappingURL=daq-
|
|
1074
|
+
//# sourceMappingURL=daq-CmeM4u5u.mjs.map
|