agentworkshop 0.17.4 → 0.18.0
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/6EjYqizd2.js +1 -0
- package/.output/public/_nuxt/{B6OzW5oQ.js → BWYSIX3z.js} +1 -1
- package/.output/public/_nuxt/{DXY8bTqS.js → BYVeifDW.js} +1 -1
- package/.output/public/_nuxt/{ClVN8KaH2.js → Bb8neYWw2.js} +1 -1
- package/.output/public/_nuxt/{D4fDMDMY.js → ByxXSCf9.js} +3 -3
- package/.output/public/_nuxt/{BM-sWDDD.js → C3bwSomj.js} +1 -1
- package/.output/public/_nuxt/CDwx6Qk-2.js +1 -0
- package/.output/public/_nuxt/{CC8gRGAU.js → CL1GexAK.js} +1 -1
- package/.output/public/_nuxt/{CjSLwcFL.js → CTkJWXt4.js} +1 -1
- package/.output/public/_nuxt/{BIyCQj6O.js → CXBXiOFX.js} +2 -2
- package/.output/public/_nuxt/CXFz9B_-2.js +1 -0
- package/.output/public/_nuxt/CgEhlg4v2.js +8 -0
- package/.output/public/_nuxt/Ch8LlQ0r.js +1 -0
- package/.output/public/_nuxt/D8Poe1wJ.js +1 -0
- package/.output/public/_nuxt/{Uuf6Jdzd.js → DVUJFOJO.js} +1 -1
- package/.output/public/_nuxt/{CUMTaH3Z2.js → DhmtX4iY2.js} +1 -1
- package/.output/public/_nuxt/{Cu6Hle_d.js → DmeuO59Y.js} +1 -1
- package/.output/public/_nuxt/RMWsCPgI2.js +2 -0
- package/.output/public/_nuxt/{_wsId_.CzdXTLVh.css → _wsId_.DaZ8g4FD.css} +1 -1
- package/.output/public/_nuxt/board.CqeENEsw.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/7becc7b9-c45c-4edb-81af-969c538d2fed.json +1 -0
- package/.output/public/_nuxt/channel-templates.BUNpRy6E.css +1 -0
- package/.output/public/_nuxt/{default.Diue5wr2.css → default.Cg1zKZla.css} +1 -1
- package/.output/public/_nuxt/{entry.D9gnKVzx.css → entry.DaOm6Z_i.css} +1 -1
- package/.output/public/_nuxt/ontology.NGw2WSc2.css +1 -0
- package/.output/public/_nuxt/optimizer.CkKx4qp3.css +1 -0
- package/.output/public/_nuxt/pipeline.BnaxJDtL.css +1 -0
- package/.output/public/_nuxt/projects.D7IsCl8K.css +1 -0
- package/.output/public/_nuxt/{settings.BRjXthG4.css → settings.B2GP7Esk.css} +1 -1
- package/.output/public/_nuxt/studio.CNtVgRxO.css +1 -0
- package/.output/public/_nuxt/{BpqmshmO.js → tjYEbvAS.js} +1 -1
- package/.output/server/chunks/_/nitro.mjs +1180 -1130
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/build/{TownView-BdwjWlnU.mjs → TownView-Czmlr5PS.mjs} +2 -2
- package/.output/server/chunks/build/{TownView-BdwjWlnU.mjs.map → TownView-Czmlr5PS.mjs.map} +1 -1
- package/.output/server/chunks/build/{_wsId_-CLBiQH5c.mjs → _wsId_-BW4pvga3.mjs} +17 -13
- package/.output/server/chunks/build/{_wsId_-CLBiQH5c.mjs.map → _wsId_-BW4pvga3.mjs.map} +1 -1
- package/.output/server/chunks/build/{agents-CBs5MnHX.mjs → agents-D01VNBtw.mjs} +6 -6
- package/.output/server/chunks/build/{agents-CBs5MnHX.mjs.map → agents-D01VNBtw.mjs.map} +1 -1
- package/.output/server/chunks/build/{board-2MX66I4I.mjs → board-DRTCHkkb.mjs} +15 -15
- package/.output/server/chunks/build/{board-2MX66I4I.mjs.map → board-DRTCHkkb.mjs.map} +1 -1
- package/.output/server/chunks/build/{channel-templates-HQdH7rSi.mjs → channel-templates-CLVbikUl.mjs} +25 -22
- package/.output/server/chunks/build/channel-templates-CLVbikUl.mjs.map +1 -0
- package/.output/server/chunks/build/{default-Bgt1lEEe.mjs → default-S1G03iOr.mjs} +195 -55
- package/.output/server/chunks/build/{default-Bgt1lEEe.mjs.map → default-S1G03iOr.mjs.map} +1 -1
- package/.output/server/chunks/build/{ontology-qi542_PU.mjs → ontology-ChvlO0hr.mjs} +69 -66
- package/.output/server/chunks/build/ontology-ChvlO0hr.mjs.map +1 -0
- package/.output/server/chunks/build/{optimizer-D1krDGJ8.mjs → optimizer-cAR_QJo3.mjs} +63 -63
- package/.output/server/chunks/build/{optimizer-D1krDGJ8.mjs.map → optimizer-cAR_QJo3.mjs.map} +1 -1
- package/.output/server/chunks/build/{pages-BglOdtvM.mjs → pages-BfBExPSN.mjs} +3 -3
- package/.output/server/chunks/build/{pages-BglOdtvM.mjs.map → pages-BfBExPSN.mjs.map} +1 -1
- package/.output/server/chunks/build/{pipeline-Bm4BvjJk.mjs → pipeline-Cown7Xpn.mjs} +38 -38
- package/.output/server/chunks/build/{pipeline-Bm4BvjJk.mjs.map → pipeline-Cown7Xpn.mjs.map} +1 -1
- package/.output/server/chunks/build/{projects-BxzJhim8.mjs → projects--pAY6UvD.mjs} +46 -29
- package/.output/server/chunks/build/projects--pAY6UvD.mjs.map +1 -0
- package/.output/server/chunks/build/{schedules-ByNLHzUb.mjs → schedules-CO8r0ATX.mjs} +2 -2
- package/.output/server/chunks/build/{schedules-ByNLHzUb.mjs.map → schedules-CO8r0ATX.mjs.map} +1 -1
- package/.output/server/chunks/build/{settings-Cmn3aD8S.mjs → settings-B2Y4Z_Dv.mjs} +102 -66
- package/.output/server/chunks/build/settings-B2Y4Z_Dv.mjs.map +1 -0
- package/.output/server/chunks/build/{studio-UA6uE2rX.mjs → studio-CrZ_athz.mjs} +49 -47
- package/.output/server/chunks/build/studio-CrZ_athz.mjs.map +1 -0
- package/.output/server/chunks/build/{teams-91fbSTKR.mjs → teams-CI3co-r4.mjs} +8 -8
- package/.output/server/chunks/build/{teams-91fbSTKR.mjs.map → teams-CI3co-r4.mjs.map} +1 -1
- package/.output/server/chunks/build/{tools-CymDQIxW.mjs → tools-6vjvrXEV.mjs} +2 -2
- package/.output/server/chunks/build/{tools-CymDQIxW.mjs.map → tools-6vjvrXEV.mjs.map} +1 -1
- package/.output/server/chunks/build/{town-Djy_zAJV.mjs → town-DmnFpDzr.mjs} +3 -3
- package/.output/server/chunks/build/{town-Djy_zAJV.mjs.map → town-DmnFpDzr.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentHarnessOptions-_BNL2lCk.mjs → useAgentHarnessOptions-DA0sHG6Q.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentHarnessOptions-_BNL2lCk.mjs.map → useAgentHarnessOptions-DA0sHG6Q.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentTemplateActions-DwZgWchg.mjs → useAgentTemplateActions-NN7wJsn8.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentTemplateActions-DwZgWchg.mjs.map → useAgentTemplateActions-NN7wJsn8.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentTemplateForm-Coq1ZUFt.mjs → useAgentTemplateForm-Cnr5CF6p.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentTemplateForm-Coq1ZUFt.mjs.map → useAgentTemplateForm-Cnr5CF6p.mjs.map} +1 -1
- package/.output/server/chunks/build/{useAgentTemplatesCatalog-D5_uOqc_.mjs → useAgentTemplatesCatalog-Cov5-icf.mjs} +2 -2
- package/.output/server/chunks/build/{useAgentTemplatesCatalog-D5_uOqc_.mjs.map → useAgentTemplatesCatalog-Cov5-icf.mjs.map} +1 -1
- package/.output/server/chunks/build/{useDashboardData-zegEZEVV.mjs → useDashboardData-mlV9XxSi.mjs} +2 -2
- package/.output/server/chunks/build/{useDashboardData-zegEZEVV.mjs.map → useDashboardData-mlV9XxSi.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamActions-DoE_H7SI.mjs → useTeamActions-6whZe0-H.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamActions-DoE_H7SI.mjs.map → useTeamActions-6whZe0-H.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamAddMemberDialog-DPo909sp.mjs → useTeamAddMemberDialog-Dfjq6MqH.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamAddMemberDialog-DPo909sp.mjs.map → useTeamAddMemberDialog-Dfjq6MqH.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamCreateDialog-De5FKDar.mjs → useTeamCreateDialog-CCL53yq2.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamCreateDialog-De5FKDar.mjs.map → useTeamCreateDialog-CCL53yq2.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamDeployDialog-CgF-2sLw.mjs → useTeamDeployDialog-CEOtXJ-6.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamDeployDialog-CgF-2sLw.mjs.map → useTeamDeployDialog-CEOtXJ-6.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamPluginDialog-DyTbDorE.mjs → useTeamPluginDialog-DrwWX0Fg.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamPluginDialog-DyTbDorE.mjs.map → useTeamPluginDialog-DrwWX0Fg.mjs.map} +1 -1
- package/.output/server/chunks/build/{useTeamsCatalog-D358hKGV.mjs → useTeamsCatalog-DpfL45qY.mjs} +2 -2
- package/.output/server/chunks/build/{useTeamsCatalog-D358hKGV.mjs.map → useTeamsCatalog-DpfL45qY.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkbenchWorkspaces-CfIx3ApC.mjs → useWorkbenchWorkspaces-4_MVYDdE.mjs} +2 -2
- package/.output/server/chunks/build/{useWorkbenchWorkspaces-CfIx3ApC.mjs.map → useWorkbenchWorkspaces-4_MVYDdE.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkshopApi-Bj1wtLkN.mjs → useWorkshopApi-8Hs5PB69.mjs} +2 -1
- package/.output/server/chunks/build/useWorkshopApi-8Hs5PB69.mjs.map +1 -0
- package/.output/server/chunks/build/{useWorkspaceAuth-BYuPfKMw.mjs → useWorkspaceAuth-_ZjFSIR4.mjs} +2 -2
- package/.output/server/chunks/build/{useWorkspaceAuth-BYuPfKMw.mjs.map → useWorkspaceAuth-_ZjFSIR4.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkspaceChannels-DDDAh7iW.mjs → useWorkspaceChannels-QG6oBcmm.mjs} +2 -2
- package/.output/server/chunks/build/{useWorkspaceChannels-DDDAh7iW.mjs.map → useWorkspaceChannels-QG6oBcmm.mjs.map} +1 -1
- package/.output/server/chunks/build/{useWorkspacePanels-ht2LWq_7.mjs → useWorkspacePanels-B4hGMl1e.mjs} +2 -2
- package/.output/server/chunks/build/{useWorkspacePanels-ht2LWq_7.mjs.map → useWorkspacePanels-B4hGMl1e.mjs.map} +1 -1
- package/.output/server/chunks/build/{workshop-DXJ1pkhv.mjs → workshop-xJRphBs5.mjs} +3 -3
- package/.output/server/chunks/build/{workshop-DXJ1pkhv.mjs.map → workshop-xJRphBs5.mjs.map} +1 -1
- package/.output/server/chunks/build/{workspaces-DSrMIrqL.mjs → workspaces-CtXv4a9w.mjs} +1 -11
- package/.output/server/chunks/build/{workspaces-DSrMIrqL.mjs.map → workspaces-CtXv4a9w.mjs.map} +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +10 -8
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +3 -2
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +20 -8
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs +26 -28
- package/.output/server/chunks/routes/api/workshop/daq/_id/ingest.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +10 -2
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/reopen.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/reopen.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/update.post.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id/update.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +1 -1
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/virtual/entry.mjs +32 -32
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README-zh.md +23 -8
- package/README.md +23 -8
- package/app/components/AppSidebar.vue +72 -10
- package/app/components/app-header/HeaderTools.vue +33 -8
- package/app/components/app-header/HitlBell.vue +89 -4
- package/app/components/settings/AppearancePane.vue +34 -7
- package/app/components/workshop/session-list/MountChannelModal.vue +10 -1
- package/app/composables/workshop/useWorkshopApi.ts +3 -2
- package/app/pages/ontology/index.vue +30 -4
- package/app/pages/optimizer/index.vue +31 -28
- package/app/pages/projects/index.vue +258 -38
- package/app/pages/settings.vue +80 -49
- package/app/pages/studio/board.vue +9 -1
- package/app/pages/studio/index.vue +40 -16
- package/app/pages/studio/pipeline.vue +20 -1
- package/app/pages/workshop/channel-templates.vue +14 -7
- package/app/stores/workshop/workspaces.ts +0 -10
- package/config.yml +1 -1
- package/desktop/chrome/contract.mjs +59 -3
- package/desktop/chrome/preload-splash.cjs +29 -0
- package/desktop/chrome/preload.cjs +2 -0
- package/desktop/chrome/settings.mjs +24 -0
- package/desktop/chrome/splash.html +610 -0
- package/desktop/chrome/titlebar.html +8 -1
- package/desktop/chrome/tray-menu.mjs +56 -0
- package/desktop/main.mjs +694 -42
- package/desktop/sidecar.mjs +12 -2
- package/docs/cli.en.md +1 -1
- package/docs/cli.md +1 -1
- package/docs/desktop.md +21 -3
- package/docs/mcp.md +10 -4
- package/docs/plugins.en.md +1 -1
- package/docs/plugins.md +1 -1
- package/docs/sdk.en.md +1 -1
- package/docs/sdk.md +1 -1
- package/package.json +223 -219
- package/scripts/e2e-line-governance.mjs +9 -5
- package/scripts/experiments/gemma4-pipeline.mjs +811 -0
- package/scripts/experiments/gemma4-supplement-fix.mjs +119 -0
- package/scripts/experiments/gemma4-supplement.mjs +266 -0
- package/scripts/experiments/tsa-phase-c.mjs +154 -0
- package/scripts/experiments/tsa-phase-f.mjs +167 -0
- package/scripts/experiments/tsa-phase-i.mjs +151 -0
- package/scripts/experiments/tsa-phase-s.mjs +223 -0
- package/scripts/experiments/tsa2-phase-c.mjs +259 -0
- package/scripts/experiments/tsa2-phase-p.mjs +379 -0
- package/scripts/experiments/tsa2-phase-p1.mjs +386 -0
- package/scripts/experiments/tsa2-phase-s.mjs +224 -0
- package/scripts/ui/lib.mjs +7 -0
- package/scripts/ui/seed-demo.mjs +2 -0
- package/server/api/workshop/a2a/[agentId]/card/index.get.ts +15 -9
- package/server/api/workshop/a2a/[agentId]/rpc/index.post.ts +5 -2
- package/server/api/workshop/agents/[id].delete.ts +2 -1
- package/server/api/workshop/agents/[id].get.ts +2 -1
- package/server/api/workshop/channel-templates/[id].get.ts +2 -1
- package/server/api/workshop/channels.post.ts +22 -8
- package/server/api/workshop/daq/[id]/ingest.post.ts +23 -24
- package/server/api/workshop/dcw/line/query.get.ts +5 -2
- package/server/api/workshop/tasks/[id]/cancel/index.post.ts +4 -4
- package/server/api/workshop/tasks/[id]/reopen.post.ts +2 -1
- package/server/api/workshop/tasks/[id]/retry.post.ts +2 -1
- package/server/api/workshop/tasks/[id]/update.post.ts +2 -1
- package/server/api/workshop/tasks/[id].get.ts +2 -2
- package/server/api/workshop/teams/[id]/members/index.get.ts +2 -1
- package/server/api/workshop/teams/[id].get.ts +2 -1
- package/server/services/workshop/db/memory.repo.ts +16 -8
- package/server/services/workshop/dcw/line-query-window.ts +20 -0
- package/server/services/workshop/runtime/manager/admin-channel.ts +54 -3
- package/server/services/workshop/runtime/manager/workspace-defaults.ts +20 -0
- package/.output/public/_nuxt/4zHSAgHR2.js +0 -8
- package/.output/public/_nuxt/B7qnHEGS2.js +0 -1
- package/.output/public/_nuxt/Bn2mnZ8D2.js +0 -1
- package/.output/public/_nuxt/C7cwKZqJ2.js +0 -1
- package/.output/public/_nuxt/CuiM5V6m.js +0 -1
- package/.output/public/_nuxt/DIXtjY5n2.js +0 -2
- package/.output/public/_nuxt/DnKSca_n.js +0 -1
- package/.output/public/_nuxt/board.ByfnFvkG.css +0 -1
- package/.output/public/_nuxt/builds/meta/2547f38c-dfaf-48fa-9b29-334889a73f2c.json +0 -1
- package/.output/public/_nuxt/channel-templates.DnibuaPe.css +0 -1
- package/.output/public/_nuxt/ontology.Clux6c4G.css +0 -1
- package/.output/public/_nuxt/optimizer.BVfrqOYg.css +0 -1
- package/.output/public/_nuxt/pipeline.CYRrisV7.css +0 -1
- package/.output/public/_nuxt/projects.GM3P0C78.css +0 -1
- package/.output/public/_nuxt/studio.BiiONLaO.css +0 -1
- package/.output/server/chunks/build/channel-templates-HQdH7rSi.mjs.map +0 -1
- package/.output/server/chunks/build/ontology-qi542_PU.mjs.map +0 -1
- package/.output/server/chunks/build/projects-BxzJhim8.mjs.map +0 -1
- package/.output/server/chunks/build/settings-Cmn3aD8S.mjs.map +0 -1
- package/.output/server/chunks/build/studio-UA6uE2rX.mjs.map +0 -1
- package/.output/server/chunks/build/useWorkshopApi-Bj1wtLkN.mjs.map +0 -1
|
@@ -10,12 +10,12 @@ import { u as useAuthUiStore, L as LoginModal_default } from './LoginModal-CzQiS
|
|
|
10
10
|
import { u as useResponsive } from './useResponsive-BKDMGTHs.mjs';
|
|
11
11
|
import { f as formatLocalClock } from './useLocalTime-D0cYH6g3.mjs';
|
|
12
12
|
import { c as useChatStore, a as useWorkshopWs, g as useWsConnectionStore, d as useNotificationsStore } from './useWorkshopWs-C_uDuErQ.mjs';
|
|
13
|
-
import { u as useWorkspacesStore } from './workspaces-
|
|
13
|
+
import { u as useWorkspacesStore } from './workspaces-CtXv4a9w.mjs';
|
|
14
14
|
import { u as useHitlStore } from './hitl-dcRMQMdi.mjs';
|
|
15
|
-
import { createVNode, defineComponent, mergeProps, withCtx, unref, renderSlot, toDisplayString, openBlock, createBlock, createTextVNode, createCommentVNode, inject, shallowRef, watch, provide, ref, computed, watchEffect, Transition, withDirectives, vShow, Fragment, renderList, withModifiers, useSSRContext } from 'vue';
|
|
15
|
+
import { createVNode, defineComponent, mergeProps, withCtx, unref, renderSlot, toDisplayString, openBlock, createBlock, createTextVNode, createCommentVNode, inject, shallowRef, watch, provide, ref, computed, watchEffect, nextTick, Transition, withDirectives, vShow, Fragment, renderList, withModifiers, useId, withKeys, useSSRContext } from 'vue';
|
|
16
16
|
import { R as RightOutlined } from '../_/RightOutlined.mjs';
|
|
17
17
|
import { L as LeftOutlined } from '../_/LeftOutlined.mjs';
|
|
18
|
-
import { ssrRenderComponent, ssrRenderSlot, ssrInterpolate, ssrRenderStyle, ssrRenderList, ssrRenderClass, ssrRenderAttr, ssrRenderAttrs } from 'vue/server-renderer';
|
|
18
|
+
import { ssrRenderComponent, ssrRenderSlot, ssrInterpolate, ssrRenderStyle, ssrRenderList, ssrRenderClass, ssrRenderAttr, ssrRenderAttrs, ssrIncludeBooleanAttr } from 'vue/server-renderer';
|
|
19
19
|
import '../_/nitro.mjs';
|
|
20
20
|
import 'node:crypto';
|
|
21
21
|
import 'node:http';
|
|
@@ -683,13 +683,48 @@ var AppSidebar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
683
683
|
* 改为把形态写在 body 上,CSS 由 main.css 的响应式层接管,只依赖自己的状态。
|
|
684
684
|
*/
|
|
685
685
|
watchEffect(() => {});
|
|
686
|
-
/**
|
|
687
|
-
|
|
686
|
+
/** 抽屉关闭时只还原自己的滚动锁,保留原有的轴向值和优先级。 */
|
|
687
|
+
const nav = ref(null);
|
|
688
|
+
let releaseScrollLock;
|
|
689
|
+
let returnFocus = null;
|
|
690
|
+
let navToggle = null;
|
|
691
|
+
function lockBodyScroll() {
|
|
692
|
+
const { style } = (void 0).body;
|
|
693
|
+
const overflow = ["overflow-x", "overflow-y"].map((name) => ({
|
|
694
|
+
name,
|
|
695
|
+
value: style.getPropertyValue(name),
|
|
696
|
+
priority: style.getPropertyPriority(name)
|
|
697
|
+
}));
|
|
698
|
+
style.setProperty("overflow", "hidden");
|
|
699
|
+
return () => {
|
|
700
|
+
for (const { name, value, priority } of overflow) {
|
|
701
|
+
if (style.getPropertyValue(name) !== "hidden" || style.getPropertyPriority(name)) continue;
|
|
702
|
+
if (value) style.setProperty(name, value, priority);
|
|
703
|
+
else style.removeProperty(name);
|
|
704
|
+
}
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
watch([navHydrated, drawerOpen], async ([hydrated, open]) => {
|
|
708
|
+
if (!hydrated) return;
|
|
709
|
+
if (open) {
|
|
710
|
+
const active = (void 0).activeElement;
|
|
711
|
+
returnFocus = active instanceof HTMLElement && active !== (void 0).body && !nav.value?.contains(active) ? active : navToggle;
|
|
712
|
+
releaseScrollLock = lockBodyScroll();
|
|
713
|
+
await nextTick();
|
|
714
|
+
if (drawerOpen.value) nav.value?.querySelector(".menu-item")?.focus();
|
|
715
|
+
} else {
|
|
716
|
+
releaseScrollLock?.();
|
|
717
|
+
releaseScrollLock = void 0;
|
|
718
|
+
if (returnFocus?.isConnected) returnFocus.focus({ preventScroll: true });
|
|
719
|
+
returnFocus = null;
|
|
720
|
+
}
|
|
721
|
+
});
|
|
688
722
|
return (_ctx, _push, _parent, _attrs) => {
|
|
689
723
|
const _component_a_layout_sider = LayoutSider;
|
|
690
724
|
const _component_AwLogo = AwLogo_default;
|
|
691
725
|
_push(`<!--[-->`);
|
|
692
726
|
_push(ssrRenderComponent(_component_a_layout_sider, {
|
|
727
|
+
id: "app-sidebar",
|
|
693
728
|
collapsed: unref(effectiveCollapsed),
|
|
694
729
|
trigger: null,
|
|
695
730
|
collapsible: "",
|
|
@@ -697,21 +732,22 @@ var AppSidebar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
697
732
|
"collapsed-width": 64,
|
|
698
733
|
class: "app-sider",
|
|
699
734
|
"data-nav-mode": unref(navMode),
|
|
700
|
-
|
|
735
|
+
inert: unref(navHydrated) && unref(isDrawer) && !unref(drawerOpen),
|
|
736
|
+
"aria-hidden": unref(navHydrated) && unref(isDrawer) && !unref(drawerOpen) ? "true" : void 0
|
|
701
737
|
}, {
|
|
702
738
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
703
739
|
if (_push) {
|
|
704
|
-
_push(`<div class="logo" data-v-
|
|
740
|
+
_push(`<div class="logo" data-v-9b72d7d4${_scopeId}><div class="logo-mark" aria-hidden="true" data-v-9b72d7d4${_scopeId}>`);
|
|
705
741
|
_push(ssrRenderComponent(_component_AwLogo, { size: 30 }, null, _parent, _scopeId));
|
|
706
|
-
_push(`</div><div class="logo-text" style="${ssrRenderStyle(unref(showLabels) ? null : { display: "none" })}" data-v-
|
|
742
|
+
_push(`</div><div class="logo-text" style="${ssrRenderStyle(unref(showLabels) ? null : { display: "none" })}" data-v-9b72d7d4${_scopeId}><span class="logo-title" data-v-9b72d7d4${_scopeId}>${ssrInterpolate(unref(site).name)}</span><span class="logo-sub" data-v-9b72d7d4${_scopeId}>digital twin</span></div></div><nav class="app-menu" aria-label="主导航" data-v-9b72d7d4${_scopeId}><!--[-->`);
|
|
707
743
|
ssrRenderList(unref(menuGroups), (group) => {
|
|
708
|
-
_push(`<div class="menu-group" data-v-
|
|
744
|
+
_push(`<div class="menu-group" data-v-9b72d7d4${_scopeId}><div class="menu-group-label" style="${ssrRenderStyle(unref(showLabels) ? null : { display: "none" })}" data-v-9b72d7d4${_scopeId}><span class="menu-group-text" data-v-9b72d7d4${_scopeId}>${ssrInterpolate(group.label)}</span><span class="menu-group-rule" aria-hidden="true" data-v-9b72d7d4${_scopeId}></span></div><div class="menu-group-sep" aria-hidden="true" style="${ssrRenderStyle(!unref(showLabels) ? null : { display: "none" })}" data-v-9b72d7d4${_scopeId}></div><!--[-->`);
|
|
709
745
|
ssrRenderList(group.items, (item) => {
|
|
710
|
-
_push(`<button type="button" class="${ssrRenderClass([{ active: isActive(item.key) }, "menu-item im"])}"${ssrRenderAttr("aria-current", isActive(item.key) ? "page" : void 0)}${ssrRenderAttr("title", !unref(showLabels) ? item.label : void 0)} data-v-
|
|
746
|
+
_push(`<button type="button" class="${ssrRenderClass([{ active: isActive(item.key) }, "menu-item im"])}"${ssrRenderAttr("aria-current", isActive(item.key) ? "page" : void 0)}${ssrRenderAttr("title", !unref(showLabels) ? item.label : void 0)} data-v-9b72d7d4${_scopeId}><span class="${ssrRenderClass([[item.icon, item.motion], "menu-icon"])}" data-v-9b72d7d4${_scopeId}></span><span class="menu-label" style="${ssrRenderStyle(unref(showLabels) ? null : { display: "none" })}" data-v-9b72d7d4${_scopeId}>${ssrInterpolate(item.label)}</span></button>`);
|
|
711
747
|
});
|
|
712
748
|
_push(`<!--]--></div>`);
|
|
713
749
|
});
|
|
714
|
-
_push(`<!--]--></nav><div class="sider-footer" style="${ssrRenderStyle(unref(showLabels) ? null : { display: "none" })}" data-v-
|
|
750
|
+
_push(`<!--]--></nav><div class="sider-footer" style="${ssrRenderStyle(unref(showLabels) ? null : { display: "none" })}" data-v-9b72d7d4${_scopeId}><div class="footer-rule" data-v-9b72d7d4${_scopeId}></div><div class="footer-line" data-v-9b72d7d4${_scopeId}><span data-v-9b72d7d4${_scopeId}>v${ssrInterpolate(unref(site).version)}</span><span class="sep" data-v-9b72d7d4${_scopeId}>/</span><span data-v-9b72d7d4${_scopeId}>${ssrInterpolate(unref(site).mode)}</span></div></div>`);
|
|
715
751
|
} else return [
|
|
716
752
|
createVNode("div", { class: "logo" }, [createVNode("div", {
|
|
717
753
|
class: "logo-mark",
|
|
@@ -761,7 +797,7 @@ var AppSidebar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
761
797
|
}),
|
|
762
798
|
_: 1
|
|
763
799
|
}, _parent));
|
|
764
|
-
if (unref(drawerOpen)) _push(`<div class="nav-scrim" aria-hidden="true" data-v-
|
|
800
|
+
if (unref(drawerOpen)) _push(`<div class="nav-scrim" aria-hidden="true" data-v-9b72d7d4></div>`);
|
|
765
801
|
else _push(`<!---->`);
|
|
766
802
|
_push(`<!--]-->`);
|
|
767
803
|
};
|
|
@@ -775,7 +811,7 @@ AppSidebar_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
|
|
|
775
811
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/AppSidebar.vue");
|
|
776
812
|
return _sfc_setup$7 ? _sfc_setup$7(props, ctx) : void 0;
|
|
777
813
|
};
|
|
778
|
-
var AppSidebar_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(AppSidebar_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
814
|
+
var AppSidebar_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(AppSidebar_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9b72d7d4"]]), { __name: "AppSidebar" });
|
|
779
815
|
//#endregion
|
|
780
816
|
//#region app/components/workshop/NotificationCenter.vue?vue&type=script&setup=true&lang.ts
|
|
781
817
|
var NotificationCenter_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -1364,44 +1400,95 @@ var HitlBell_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
1364
1400
|
setup(__props) {
|
|
1365
1401
|
const { t } = useI18n();
|
|
1366
1402
|
const hitl = useHitlStore();
|
|
1403
|
+
const panelId = `hitl-panel-${useId()}`;
|
|
1404
|
+
const open = ref(false);
|
|
1405
|
+
const bell = ref(null);
|
|
1406
|
+
const panel = ref(null);
|
|
1407
|
+
let focusOnAlign = false;
|
|
1408
|
+
function focusPanel() {
|
|
1409
|
+
const first = panel.value?.querySelector(".hitl-item-head");
|
|
1410
|
+
if (!first?.getClientRects().length) return false;
|
|
1411
|
+
first.focus();
|
|
1412
|
+
return true;
|
|
1413
|
+
}
|
|
1414
|
+
function onOpenChange(next) {
|
|
1415
|
+
if (next || !focusOnAlign && !panel.value?.contains((void 0).activeElement)) open.value = next;
|
|
1416
|
+
}
|
|
1417
|
+
function openFromBell(event) {
|
|
1418
|
+
open.value = true;
|
|
1419
|
+
if (event.detail === 0) focusOnAlign = !focusPanel();
|
|
1420
|
+
}
|
|
1421
|
+
function onPopupAlign() {
|
|
1422
|
+
if (open.value && focusOnAlign && focusPanel()) focusOnAlign = false;
|
|
1423
|
+
}
|
|
1424
|
+
function closePanel(restoreFocus = false) {
|
|
1425
|
+
if (restoreFocus) bell.value?.focus({ preventScroll: true });
|
|
1426
|
+
focusOnAlign = false;
|
|
1427
|
+
open.value = false;
|
|
1428
|
+
}
|
|
1429
|
+
function onEscape(event) {
|
|
1430
|
+
if (!open.value) return;
|
|
1431
|
+
event.preventDefault();
|
|
1432
|
+
event.stopPropagation();
|
|
1433
|
+
closePanel(true);
|
|
1434
|
+
}
|
|
1435
|
+
function onPanelFocusOut(event) {
|
|
1436
|
+
const next = event.relatedTarget;
|
|
1437
|
+
if (next instanceof Node) {
|
|
1438
|
+
if (!panel.value?.contains(next)) closePanel();
|
|
1439
|
+
return;
|
|
1440
|
+
}
|
|
1441
|
+
setTimeout(() => {
|
|
1442
|
+
const active = (void 0).activeElement;
|
|
1443
|
+
if (!active || active === (void 0).body || !panel.value?.contains(active)) closePanel();
|
|
1444
|
+
}, 0);
|
|
1445
|
+
}
|
|
1446
|
+
watch(() => hitl.count, (count) => {
|
|
1447
|
+
if (!count) closePanel();
|
|
1448
|
+
});
|
|
1367
1449
|
const { HITL_KINDS, hitlKindLabel, hitlGo, permsKnown, canAnswer, requestTypeOf, isQuestion, isNativeOptionApproval, qFree, slotOf, isChosen, chooseOption, questionsOf, submitQuestion, submitNativeOption, submitApproval, submitCancel, policyLabel } = useHitlAnswer();
|
|
1368
1450
|
return (_ctx, _push, _parent, _attrs) => {
|
|
1369
1451
|
const _component_a_dropdown = dropdown_default;
|
|
1370
1452
|
const _component_a_textarea = TextArea_default;
|
|
1371
1453
|
const _component_a_button = button_default;
|
|
1372
|
-
if (unref(hitl).count > 0) _push(ssrRenderComponent(_component_a_dropdown, mergeProps({
|
|
1454
|
+
if (unref(hitl).count > 0) _push(ssrRenderComponent(_component_a_dropdown, mergeProps({
|
|
1455
|
+
open: unref(open),
|
|
1456
|
+
placement: "bottomRight",
|
|
1457
|
+
onOpenChange,
|
|
1458
|
+
onPopupAlign
|
|
1459
|
+
}, _attrs), {
|
|
1373
1460
|
overlay: withCtx((_, _push, _parent, _scopeId) => {
|
|
1374
1461
|
if (_push) {
|
|
1375
|
-
_push(`<div class="hitl-menu" data-v-
|
|
1462
|
+
_push(`<div${ssrRenderAttr("id", panelId)} class="hitl-menu" role="region"${ssrRenderAttr("aria-labelledby", `${panelId}-title`)}${ssrIncludeBooleanAttr(!unref(open)) ? " inert" : ""} data-v-02fde99d${_scopeId}><div${ssrRenderAttr("id", `${panelId}-title`)} class="hitl-menu-title" data-v-02fde99d${_scopeId}>${ssrInterpolate(unref(t)("appHeader.hitlBadge"))} · ${ssrInterpolate(unref(hitl).count)}</div><!--[-->`);
|
|
1376
1463
|
ssrRenderList(unref(hitl).items, (item) => {
|
|
1377
|
-
_push(`<div class="hitl-item" data-v-
|
|
1378
|
-
if (item.requestType || unref(isQuestion)(item)) _push(`<span class="hitl-item-reqtype"${ssrRenderAttr("data-type", unref(requestTypeOf)(item))} data-v-
|
|
1464
|
+
_push(`<div class="hitl-item" data-v-02fde99d${_scopeId}><button type="button" class="hitl-item-head" data-v-02fde99d${_scopeId}><span class="hitl-item-top" data-v-02fde99d${_scopeId}><span class="hitl-item-agent" data-v-02fde99d${_scopeId}>${ssrInterpolate(item.agentName)}</span><span class="hitl-item-kind" data-v-02fde99d${_scopeId}>${ssrInterpolate(unref(hitlKindLabel)(item.kind))}</span>`);
|
|
1465
|
+
if (item.requestType || unref(isQuestion)(item)) _push(`<span class="hitl-item-reqtype"${ssrRenderAttr("data-type", unref(requestTypeOf)(item))} data-v-02fde99d${_scopeId}>${ssrInterpolate(unref(isQuestion)(item) ? unref(t)("appHeader.hitlReqQuestion") : unref(t)("appHeader.hitlReqApproval"))}</span>`);
|
|
1379
1466
|
else _push(`<!---->`);
|
|
1380
|
-
_push(`</span><span class="hitl-item-title" data-v-
|
|
1381
|
-
if (item.detail) _push(`<span class="hitl-item-detail" data-v-
|
|
1467
|
+
_push(`</span><span class="hitl-item-title" data-v-02fde99d${_scopeId}>${ssrInterpolate(item.title)}</span>`);
|
|
1468
|
+
if (item.detail) _push(`<span class="hitl-item-detail" data-v-02fde99d${_scopeId}>${ssrInterpolate(item.detail)}</span>`);
|
|
1382
1469
|
else _push(`<!---->`);
|
|
1383
|
-
if (item.message) _push(`<span class="hitl-item-detail" data-v-
|
|
1470
|
+
if (item.message) _push(`<span class="hitl-item-detail" data-v-02fde99d${_scopeId}>${ssrInterpolate(item.message)}</span>`);
|
|
1384
1471
|
else _push(`<!---->`);
|
|
1385
|
-
if (item.policy) _push(`<span class="hitl-item-policy" data-v-
|
|
1472
|
+
if (item.policy) _push(`<span class="hitl-item-policy" data-v-02fde99d${_scopeId}><span class="i-tabler-shield-lock" data-v-02fde99d${_scopeId}></span> ${ssrInterpolate(unref(t)("appHeader.hitlPolicy", { p0: unref(policyLabel)(item) }))}</span>`);
|
|
1386
1473
|
else _push(`<!---->`);
|
|
1387
1474
|
_push(`</button>`);
|
|
1388
|
-
if (!unref(HITL_KINDS).includes(item.kind)) _push(`<div class="hitl-answer-note" data-v-
|
|
1389
|
-
else if (!unref(permsKnown)(item)) _push(`<div class="hitl-answer-note" data-v-
|
|
1390
|
-
else if (!unref(canAnswer)(item)) _push(`<div class="hitl-answer-note" data-v-
|
|
1475
|
+
if (!unref(HITL_KINDS).includes(item.kind)) _push(`<div class="hitl-answer-note" data-v-02fde99d${_scopeId}>${ssrInterpolate(unref(t)("appHeader.hitlEngineNote"))}</div>`);
|
|
1476
|
+
else if (!unref(permsKnown)(item)) _push(`<div class="hitl-answer-note" data-v-02fde99d${_scopeId}>${ssrInterpolate(unref(t)("appHeader.hitlPermsLoading"))}</div>`);
|
|
1477
|
+
else if (!unref(canAnswer)(item)) _push(`<div class="hitl-answer-note" data-v-02fde99d${_scopeId}>${ssrInterpolate(unref(t)("appHeader.hitlNoPerm"))}${ssrInterpolate(item.policy ? `(${unref(policyLabel)(item)})` : "")}</div>`);
|
|
1391
1478
|
else {
|
|
1392
|
-
_push(`<div class="hitl-answer" data-v-
|
|
1479
|
+
_push(`<div class="hitl-answer" data-v-02fde99d${_scopeId}>`);
|
|
1393
1480
|
if (unref(isQuestion)(item)) {
|
|
1394
1481
|
_push(`<!--[--><!--[-->`);
|
|
1395
1482
|
ssrRenderList(unref(questionsOf)(item), (q, qi) => {
|
|
1396
|
-
_push(`<div class="hitl-q" data-v-
|
|
1397
|
-
if (item.questions && item.questions.length > 1) _push(`<div class="hitl-q-title" data-v-
|
|
1483
|
+
_push(`<div class="hitl-q" data-v-02fde99d${_scopeId}>`);
|
|
1484
|
+
if (item.questions && item.questions.length > 1) _push(`<div class="hitl-q-title" data-v-02fde99d${_scopeId}>${ssrInterpolate(qi + 1)}. ${ssrInterpolate(q.header || q.question)}</div>`);
|
|
1398
1485
|
else _push(`<!---->`);
|
|
1399
|
-
if (q.header && q.question) _push(`<div class="hitl-q-desc" data-v-
|
|
1486
|
+
if (q.header && q.question) _push(`<div class="hitl-q-desc" data-v-02fde99d${_scopeId}>${ssrInterpolate(q.question)}</div>`);
|
|
1400
1487
|
else _push(`<!---->`);
|
|
1401
1488
|
if (q.options && q.options.length > 0) {
|
|
1402
|
-
_push(`<div class="hitl-opts" data-v-
|
|
1489
|
+
_push(`<div class="hitl-opts" data-v-02fde99d${_scopeId}><!--[-->`);
|
|
1403
1490
|
ssrRenderList(q.options, (o) => {
|
|
1404
|
-
_push(`<button type="button" class="${ssrRenderClass([{ on: unref(isChosen)(item, q, o.label) }, "hitl-opt"])}"${ssrRenderAttr("title", o.description || o.label)} data-v-
|
|
1491
|
+
_push(`<button type="button" class="${ssrRenderClass([{ on: unref(isChosen)(item, q, o.label) }, "hitl-opt"])}"${ssrRenderAttr("title", o.description || o.label)} data-v-02fde99d${_scopeId}>${ssrInterpolate(o.label)}</button>`);
|
|
1405
1492
|
});
|
|
1406
1493
|
_push(`<!--]--></div>`);
|
|
1407
1494
|
} else _push(`<!---->`);
|
|
@@ -1414,7 +1501,7 @@ var HitlBell_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
1414
1501
|
else _push(`<!---->`);
|
|
1415
1502
|
_push(`</div>`);
|
|
1416
1503
|
});
|
|
1417
|
-
_push(`<!--]--><div class="hitl-btns" data-v-
|
|
1504
|
+
_push(`<!--]--><div class="hitl-btns" data-v-02fde99d${_scopeId}>`);
|
|
1418
1505
|
_push(ssrRenderComponent(_component_a_button, {
|
|
1419
1506
|
size: "small",
|
|
1420
1507
|
type: "primary",
|
|
@@ -1442,13 +1529,13 @@ var HitlBell_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
1442
1529
|
} else {
|
|
1443
1530
|
_push(`<!--[-->`);
|
|
1444
1531
|
if (unref(isNativeOptionApproval)(item)) {
|
|
1445
|
-
_push(`<div class="hitl-opts" data-v-
|
|
1532
|
+
_push(`<div class="hitl-opts" data-v-02fde99d${_scopeId}><!--[-->`);
|
|
1446
1533
|
ssrRenderList(item.options, (o) => {
|
|
1447
|
-
_push(`<button type="button" class="hitl-opt" data-v-
|
|
1534
|
+
_push(`<button type="button" class="hitl-opt" data-v-02fde99d${_scopeId}>${ssrInterpolate(o)}</button>`);
|
|
1448
1535
|
});
|
|
1449
1536
|
_push(`<!--]--></div>`);
|
|
1450
1537
|
} else _push(`<!---->`);
|
|
1451
|
-
_push(`<div class="hitl-btns" data-v-
|
|
1538
|
+
_push(`<div class="hitl-btns" data-v-02fde99d${_scopeId}>`);
|
|
1452
1539
|
_push(ssrRenderComponent(_component_a_button, {
|
|
1453
1540
|
size: "small",
|
|
1454
1541
|
type: "primary",
|
|
@@ -1491,7 +1578,20 @@ var HitlBell_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
1491
1578
|
_push(`</div>`);
|
|
1492
1579
|
});
|
|
1493
1580
|
_push(`<!--]--></div>`);
|
|
1494
|
-
} else return [createVNode("div", {
|
|
1581
|
+
} else return [createVNode("div", {
|
|
1582
|
+
id: panelId,
|
|
1583
|
+
ref_key: "panel",
|
|
1584
|
+
ref: panel,
|
|
1585
|
+
class: "hitl-menu",
|
|
1586
|
+
role: "region",
|
|
1587
|
+
"aria-labelledby": `${panelId}-title`,
|
|
1588
|
+
inert: !unref(open),
|
|
1589
|
+
onFocusout: onPanelFocusOut,
|
|
1590
|
+
onKeydown: withKeys(onEscape, ["esc"])
|
|
1591
|
+
}, [createVNode("div", {
|
|
1592
|
+
id: `${panelId}-title`,
|
|
1593
|
+
class: "hitl-menu-title"
|
|
1594
|
+
}, toDisplayString(unref(t)("appHeader.hitlBadge")) + " · " + toDisplayString(unref(hitl).count), 9, ["id"]), (openBlock(true), createBlock(Fragment, null, renderList(unref(hitl).items, (item) => {
|
|
1495
1595
|
return openBlock(), createBlock("div", {
|
|
1496
1596
|
key: `${item.kind}:${item.id}`,
|
|
1497
1597
|
class: "hitl-item"
|
|
@@ -1624,14 +1724,33 @@ var HitlBell_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineC
|
|
|
1624
1724
|
_: 1
|
|
1625
1725
|
}, 8, ["disabled", "onClick"])
|
|
1626
1726
|
])], 64))]))]);
|
|
1627
|
-
}), 128))])];
|
|
1727
|
+
}), 128))], 40, ["aria-labelledby", "inert"])];
|
|
1628
1728
|
}),
|
|
1629
1729
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
1630
|
-
if (_push) _push(`<button class="icon-btn hitl-bell"${ssrRenderAttr("title", unref(t)("appHeader.hitlBadge"))} data-v-
|
|
1730
|
+
if (_push) _push(`<button type="button" class="icon-btn hitl-bell"${ssrRenderAttr("title", unref(t)("appHeader.hitlBadge"))}${ssrRenderAttr("aria-label", `${unref(t)("appHeader.hitlBadge")} · ${unref(hitl).count}`)}${ssrRenderAttr("aria-expanded", unref(open))}${ssrRenderAttr("aria-controls", unref(open) ? panelId : void 0)} data-v-02fde99d${_scopeId}><span class="i-tabler-bell-ringing" aria-hidden="true" data-v-02fde99d${_scopeId}></span><span class="hitl-count" aria-hidden="true" data-v-02fde99d${_scopeId}>${ssrInterpolate(unref(hitl).count)}</span></button>`);
|
|
1631
1731
|
else return [createVNode("button", {
|
|
1732
|
+
ref_key: "bell",
|
|
1733
|
+
ref: bell,
|
|
1734
|
+
type: "button",
|
|
1632
1735
|
class: "icon-btn hitl-bell",
|
|
1633
|
-
title: unref(t)("appHeader.hitlBadge")
|
|
1634
|
-
|
|
1736
|
+
title: unref(t)("appHeader.hitlBadge"),
|
|
1737
|
+
"aria-label": `${unref(t)("appHeader.hitlBadge")} · ${unref(hitl).count}`,
|
|
1738
|
+
"aria-expanded": unref(open),
|
|
1739
|
+
"aria-controls": unref(open) ? panelId : void 0,
|
|
1740
|
+
onClick: openFromBell,
|
|
1741
|
+
onKeydown: withKeys(onEscape, ["esc"])
|
|
1742
|
+
}, [createVNode("span", {
|
|
1743
|
+
class: "i-tabler-bell-ringing",
|
|
1744
|
+
"aria-hidden": "true"
|
|
1745
|
+
}), createVNode("span", {
|
|
1746
|
+
class: "hitl-count",
|
|
1747
|
+
"aria-hidden": "true"
|
|
1748
|
+
}, toDisplayString(unref(hitl).count), 1)], 40, [
|
|
1749
|
+
"title",
|
|
1750
|
+
"aria-label",
|
|
1751
|
+
"aria-expanded",
|
|
1752
|
+
"aria-controls"
|
|
1753
|
+
])];
|
|
1635
1754
|
}),
|
|
1636
1755
|
_: 1
|
|
1637
1756
|
}, _parent));
|
|
@@ -1647,7 +1766,7 @@ HitlBell_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
|
|
|
1647
1766
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/app-header/HitlBell.vue");
|
|
1648
1767
|
return _sfc_setup$4 ? _sfc_setup$4(props, ctx) : void 0;
|
|
1649
1768
|
};
|
|
1650
|
-
var HitlBell_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(HitlBell_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
1769
|
+
var HitlBell_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(HitlBell_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-02fde99d"]]), { __name: "AppHeaderHitlBell" });
|
|
1651
1770
|
//#endregion
|
|
1652
1771
|
//#region app/components/app-header/HeaderTools.vue?vue&type=script&setup=true&lang.ts
|
|
1653
1772
|
var HeaderTools_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -1684,31 +1803,44 @@ var HeaderTools_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
1684
1803
|
return t("appHeader.kwsdot0004");
|
|
1685
1804
|
});
|
|
1686
1805
|
const isFullscreen = ref(false);
|
|
1687
|
-
function
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
(void 0).exitFullscreen();
|
|
1693
|
-
|
|
1806
|
+
function syncFullscreen() {
|
|
1807
|
+
isFullscreen.value = Boolean((void 0).fullscreenElement);
|
|
1808
|
+
}
|
|
1809
|
+
async function toggleFullscreen() {
|
|
1810
|
+
try {
|
|
1811
|
+
if ((void 0).fullscreenElement) await (void 0).exitFullscreen();
|
|
1812
|
+
else await (void 0).documentElement.requestFullscreen();
|
|
1813
|
+
} catch {
|
|
1814
|
+
syncFullscreen();
|
|
1694
1815
|
}
|
|
1695
1816
|
}
|
|
1817
|
+
const themeAction = computed(() => store.isDark ? t("common.light") : t("common.dark"));
|
|
1696
1818
|
return (_ctx, _push, _parent, _attrs) => {
|
|
1697
1819
|
const _component_a_tooltip = tooltip_default;
|
|
1698
1820
|
const _component_a_select = Select;
|
|
1699
1821
|
_push(`<!--[-->`);
|
|
1700
|
-
if (__props.hydrated && unref(wsVisible)) _push(`<span class="${ssrRenderClass([unref(wsClass), "ws-dot"])}"${ssrRenderAttr("title", unref(wsLabel))} data-v-
|
|
1822
|
+
if (__props.hydrated && unref(wsVisible)) _push(`<span class="${ssrRenderClass([unref(wsClass), "ws-dot"])}"${ssrRenderAttr("title", unref(wsLabel))} data-v-6ffebade></span>`);
|
|
1701
1823
|
else _push(`<!---->`);
|
|
1702
1824
|
_push(ssrRenderComponent(_component_a_tooltip, { title: unref(t)("header.fullscreen") }, {
|
|
1703
1825
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
1704
|
-
if (_push) _push(`<button class="icon-btn hdr-fullscreen" data-v-
|
|
1826
|
+
if (_push) _push(`<button type="button" class="icon-btn hdr-fullscreen"${ssrRenderAttr("aria-label", unref(t)("header.fullscreen"))}${ssrRenderAttr("aria-pressed", unref(isFullscreen))} data-v-6ffebade${_scopeId}><span class="${ssrRenderClass([{ hidden: unref(isFullscreen) }, "i-tabler-arrows-maximize"])}" aria-hidden="true" data-v-6ffebade${_scopeId}></span><span class="${ssrRenderClass([{ hidden: !unref(isFullscreen) }, "i-tabler-arrows-minimize"])}" aria-hidden="true" data-v-6ffebade${_scopeId}></span></button>`);
|
|
1705
1827
|
else return [createVNode("button", {
|
|
1828
|
+
type: "button",
|
|
1706
1829
|
class: "icon-btn hdr-fullscreen",
|
|
1830
|
+
"aria-label": unref(t)("header.fullscreen"),
|
|
1831
|
+
"aria-pressed": unref(isFullscreen),
|
|
1707
1832
|
onClick: toggleFullscreen
|
|
1708
|
-
}, [createVNode("span", {
|
|
1833
|
+
}, [createVNode("span", {
|
|
1834
|
+
class: ["i-tabler-arrows-maximize", { hidden: unref(isFullscreen) }],
|
|
1835
|
+
"aria-hidden": "true"
|
|
1836
|
+
}, null, 2), createVNode("span", {
|
|
1837
|
+
class: ["i-tabler-arrows-minimize", { hidden: !unref(isFullscreen) }],
|
|
1838
|
+
"aria-hidden": "true"
|
|
1839
|
+
}, null, 2)], 8, ["aria-label", "aria-pressed"])];
|
|
1709
1840
|
}),
|
|
1710
1841
|
_: 1
|
|
1711
1842
|
}, _parent));
|
|
1843
|
+
_push(`<label class="sr-only" for="hdr-locale" data-v-6ffebade>${ssrInterpolate(unref(t)("header.language"))}</label>`);
|
|
1712
1844
|
_push(ssrRenderComponent(_component_a_select, {
|
|
1713
1845
|
id: "hdr-locale",
|
|
1714
1846
|
value: unref(locale),
|
|
@@ -1717,13 +1849,21 @@ var HeaderTools_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
1717
1849
|
class: "lang-select",
|
|
1718
1850
|
onChange: switchLocale
|
|
1719
1851
|
}, null, _parent));
|
|
1720
|
-
_push(ssrRenderComponent(_component_a_tooltip, { title: unref(
|
|
1852
|
+
_push(ssrRenderComponent(_component_a_tooltip, { title: unref(themeAction) }, {
|
|
1721
1853
|
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
1722
|
-
if (_push) _push(`<button class="icon-btn" data-v-
|
|
1854
|
+
if (_push) _push(`<button type="button" class="icon-btn"${ssrRenderAttr("aria-label", unref(themeAction))} data-v-6ffebade${_scopeId}><span class="${ssrRenderClass([{ hidden: unref(store).isDark }, "i-tabler-sun-high"])}" aria-hidden="true" data-v-6ffebade${_scopeId}></span><span class="${ssrRenderClass([{ hidden: !unref(store).isDark }, "i-tabler-moon-stars"])}" aria-hidden="true" data-v-6ffebade${_scopeId}></span></button>`);
|
|
1723
1855
|
else return [createVNode("button", {
|
|
1856
|
+
type: "button",
|
|
1724
1857
|
class: "icon-btn",
|
|
1858
|
+
"aria-label": unref(themeAction),
|
|
1725
1859
|
onClick: ($event) => unref(store).toggleDark()
|
|
1726
|
-
}, [createVNode("span", {
|
|
1860
|
+
}, [createVNode("span", {
|
|
1861
|
+
class: ["i-tabler-sun-high", { hidden: unref(store).isDark }],
|
|
1862
|
+
"aria-hidden": "true"
|
|
1863
|
+
}, null, 2), createVNode("span", {
|
|
1864
|
+
class: ["i-tabler-moon-stars", { hidden: !unref(store).isDark }],
|
|
1865
|
+
"aria-hidden": "true"
|
|
1866
|
+
}, null, 2)], 8, ["aria-label", "onClick"])];
|
|
1727
1867
|
}),
|
|
1728
1868
|
_: 1
|
|
1729
1869
|
}, _parent));
|
|
@@ -1739,7 +1879,7 @@ HeaderTools_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) =>
|
|
|
1739
1879
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/app-header/HeaderTools.vue");
|
|
1740
1880
|
return _sfc_setup$3 ? _sfc_setup$3(props, ctx) : void 0;
|
|
1741
1881
|
};
|
|
1742
|
-
var HeaderTools_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(HeaderTools_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
1882
|
+
var HeaderTools_default = /*#__PURE__*/ Object.assign(_plugin_vue_export_helper_default(HeaderTools_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-6ffebade"]]), { __name: "AppHeaderTools" });
|
|
1743
1883
|
//#endregion
|
|
1744
1884
|
//#region app/components/app-header/UserChip.vue?vue&type=script&setup=true&lang.ts
|
|
1745
1885
|
var UserChip_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
@@ -2228,4 +2368,4 @@ default_vue_vue_type_script_setup_true_lang_default.setup = (props, ctx) => {
|
|
|
2228
2368
|
var default_default = /*#__PURE__*/ _plugin_vue_export_helper_default(default_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-1febce03"]]);
|
|
2229
2369
|
|
|
2230
2370
|
export { default_default as default };
|
|
2231
|
-
//# sourceMappingURL=default-
|
|
2371
|
+
//# sourceMappingURL=default-S1G03iOr.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-
|
|
1
|
+
{"version":3,"file":"default-S1G03iOr.mjs","sources":["../../../../node_modules/.pnpm/@ant-design+icons-svg@4.5.0/node_modules/@ant-design/icons-svg/es/asn/BarsOutlined.js","../../../../node_modules/.pnpm/@ant-design+icons-vue@7.0.1_vue@3.5.41_typescript@5.9.3_/node_modules/@ant-design/icons-vue/es/icons/BarsOutlined.js","../../../../node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/layout/style/light.js","../../../../node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/layout/style/index.js","../../../../node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/layout/layout.js","../../../../node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/layout/Sider.js","../../../../node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/layout/index.js","../../../../app/components/AwLogo.vue","../../../../app/components/AppSidebar.vue","../../../../app/components/workshop/NotificationCenter.vue","../../../../app/stores/route-trail.ts","../../../../app/composables/useRouteMeta.ts","../../../../app/components/app-header/TrailNav.vue","../../../../app/composables/workshop/useHitlAnswer.ts","../../../../app/components/app-header/HitlBell.vue","../../../../app/components/app-header/HeaderTools.vue","../../../../app/components/app-header/UserChip.vue","../../../../app/components/AppHeader.vue","../../../../app/layouts/default.vue"],"names":["BarsOutlined","_createVNode","AntdIcon","BarsOutlinedSvg","mergeToken","useConfigInject","useStyle","Sider","api","$t"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6]}
|