@kedem/okdb 1.0.1 → 1.0.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/bin/okdb.js +1 -1
- package/keys/public.pem +3 -0
- package/okdb.js +1 -1
- package/package.json +2 -2
- package/public/admin-app.js +1 -1
- package/public/components/admin-route-host.ok.js +1 -1
- package/public/components/env-picker.ok.js +1 -1
- package/public/components/field-path-input.ok.js +1 -1
- package/public/components/geo-map.ok.js +1 -1
- package/public/components/ok-cron-input.ok.js +1 -1
- package/public/components/ok-dropzone.ok.js +1 -1
- package/public/components/ok-js-input.ok.js +1 -1
- package/public/components/ok-json-input.ok.js +1 -1
- package/public/components/ok-text-monaco-input.ok.js +1 -1
- package/public/components/theme-toggle.ok.js +1 -1
- package/public/login-app.js +1 -1
- package/public/modules/ok.js +1 -1
- package/public/sections/api/parts/api-endpoint.ok.js +1 -1
- package/public/sections/auth/modals/create-token-modal.ok.js +1 -1
- package/public/sections/auth/modals/edit-token-modal.ok.js +1 -1
- package/public/sections/auth/modals/perm-info-popover.ok.js +1 -1
- package/public/sections/auth/parts/token-detail.ok.js +1 -1
- package/public/sections/auth/parts/token-list.ok.js +1 -1
- package/public/sections/db/modals/add-item-modal.ok.js +1 -1
- package/public/sections/db/modals/create-env-modal.ok.js +1 -1
- package/public/sections/db/modals/create-fts-modal.ok.js +1 -1
- package/public/sections/db/modals/create-index-modal.ok.js +1 -1
- package/public/sections/db/modals/create-pipeline-modal.ok.js +1 -1
- package/public/sections/db/modals/demo-env-modal.ok.js +1 -1
- package/public/sections/db/modals/remove-env-modal.ok.js +1 -1
- package/public/sections/db/modals/schema-edit-modal.ok.js +1 -1
- package/public/sections/db/parts/db-overview.ok.js +1 -1
- package/public/sections/db/parts/db-pipelines-panel.ok.js +1 -1
- package/public/sections/db/parts/edit-row.ok.js +1 -1
- package/public/sections/db/parts/tm-timeline.ok.js +1 -1
- package/public/sections/db/parts/type-changelog.ok.js +1 -1
- package/public/sections/db/parts/type-list.ok.js +1 -1
- package/public/sections/db/parts/type-pipelines-tab.ok.js +1 -1
- package/public/sections/db/parts/type-schema-tab.ok.js +1 -1
- package/public/sections/db/parts/type-viewer.ok.js +1 -1
- package/public/sections/db/parts/type-violations-tab.ok.js +1 -1
- package/public/sections/embeddings/modals/register-model-modal.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-engine-declaration-editor.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-engine-list.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-lifecycle-bar.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-model-catalog.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embeddings-engine-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/pipeline-create-panel.ok.js +1 -1
- package/public/sections/engines/engine-panel-shared-style.js +1 -1
- package/public/sections/engines/engine-ui-utils.js +1 -1
- package/public/sections/engines/modals/engine-modal.ok.js +1 -1
- package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
- package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
- package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
- package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
- package/public/sections/engines/parts/engine-row-item.ok.js +1 -1
- package/public/sections/engines/parts/generic-engine-panel.ok.js +1 -1
- package/public/sections/files/parts/files-blob-status.ok.js +1 -1
- package/public/sections/files/parts/files-collection-list.ok.js +1 -1
- package/public/sections/files/parts/files-collection-panel.ok.js +1 -1
- package/public/sections/files/parts/files-file-list.ok.js +1 -1
- package/public/sections/files/parts/files-overview.ok.js +1 -1
- package/public/sections/files/parts/files-path-browser.ok.js +1 -1
- package/public/sections/files/parts/files-upload-panel.ok.js +1 -1
- package/public/sections/functions/modals/function-modal.ok.js +1 -1
- package/public/sections/functions/parts/function-detail.ok.js +1 -1
- package/public/sections/functions/parts/function-logs.ok.js +1 -1
- package/public/sections/functions/parts/function-runner.ok.js +1 -1
- package/public/sections/functions/parts/functions-list.ok.js +1 -1
- package/public/sections/license/parts/license-panel.ok.js +1 -1
- package/public/sections/queue/modals/create-bucket-modal.ok.js +1 -1
- package/public/sections/queue/modals/edit-bucket-modal.ok.js +1 -1
- package/public/sections/queue/modals/edit-job-modal.ok.js +1 -1
- package/public/sections/queue/modals/enqueue-job-modal.ok.js +1 -1
- package/public/sections/queue/modals/job-type-modal.ok.js +1 -1
- package/public/sections/queue/parts/ok-job-form.ok.js +1 -1
- package/public/sections/queue/parts/queue-buckets.ok.js +1 -1
- package/public/sections/queue/parts/queue-job-types.ok.js +1 -1
- package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
- package/public/sections/queue/parts/queue-types.ok.js +1 -1
- package/public/sections/queue/parts/queue-workers.ok.js +1 -1
- package/public/sections/sync/parts/sync-node-detail.ok.js +1 -1
- package/public/sections/sync/parts/sync-retention.ok.js +1 -1
- package/public/sections/sync/parts/sync-topology.ok.js +1 -1
- package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
- package/public/sections/system/parts/system-api-panel.ok.js +1 -1
- package/public/sections/system/parts/system-auth-panel.ok.js +1 -1
- package/public/sections/system/parts/system-log-history.ok.js +1 -1
- package/public/sections/system/parts/system-log.ok.js +1 -1
- package/public/sections/system/parts/system-status.ok.js +1 -1
- package/public/sections/system/parts/system-sync-panel.ok.js +1 -1
- package/public/sections/views/modals/create-view-modal.ok.js +1 -1
- package/public/sections/views/parts/view-detail.ok.js +1 -1
- package/public/sections/views/parts/views-list.ok.js +1 -1
- package/public/sections/views/parts/views-overview.ok.js +1 -1
- package/public/setup-app.js +1 -1
- package/public/stores/auth-store.js +1 -1
- package/public/stores/events-store.js +1 -1
- package/public/stores/functions-store.js +1 -1
- package/public/stores/okdb-store.js +1 -1
- package/public/stores/theme-store.js +1 -1
- package/public/util/permissions.js +1 -1
- package/public/util/sift-schema.js +1 -1
- package/public/vendor/okjs/ok.esm.min.js +1 -2
- package/public/vendor/okjs/toolkit/behavior/async.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-chart.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-doc-viewer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-marked.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-monaco.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-layer-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-layer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-overlay.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-sandbox.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/transition.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/virtualized.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-console-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-console.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-inspector-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-inspector.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-js-tree.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-timeline-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-timeline.ok.js +1 -1
- package/public/vendor/okjs/toolkit/docs/doc-viewer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/editor/ok-live-component.ok.js +1 -1
- package/public/vendor/okjs/toolkit/editor/ok-live-example.ok.js +1 -1
- package/public/vendor/okjs/toolkit/editor/ok-live-shell.ok.js +1 -1
- package/public/vendor/okjs/toolkit/elements/ok-dropdown.ok.js +1 -1
- package/public/vendor/okjs/toolkit/elements/ok-icon.ok.js +1 -1
- package/public/vendor/okjs/toolkit/elements/ok-select.ok.js +1 -1
- package/public/vendor/okjs/toolkit/elements/ok-table.ok.js +1 -1
- package/public/vendor/okjs/toolkit/errors/ok-crash-boundary.ok.js +1 -1
- package/public/vendor/okjs/toolkit/errors/ok-crash-info.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-editor-examples.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-editor.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-key-editor-tips.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-key-editor.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/ok-i18n.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-contextmenu.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-dismiss-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-draggable.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-flyover-panel.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-flyover.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-highlight-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-highlight.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-hotkeys-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-picker-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-popout-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-popout.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-portal-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-submenu.ok.js +1 -1
- package/public/vendor/okjs/toolkit/layout/ok-resizer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/manifest.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-modal-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-modal.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-toast-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-window.ok.js +1 -1
- package/public/vendor/okjs/toolkit/navigation/hash-router.ok.js +1 -1
- package/public/vendor/okjs/toolkit/navigation/history-router.ok.js +1 -1
- package/public/vendor/okjs/toolkit/navigation/router.ok.js +1 -1
- package/public/vendor/okjs/toolkit/sync/reactive-sync-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/sync/reactive-sync.js +1 -1
- package/public/vendor/okjs/toolkit/theming/blocks/ok-design-button.css.js +1 -1
- package/public/vendor/okjs/toolkit/theming/blocks/ok-design-input.css.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-design-style.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-design-vars.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-design.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-input.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-style.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-utils.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-variable.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-vm.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme.ok.js +1 -1
- package/public/view-models/type-query-vm.js +1 -1
- package/okdb-data/default/data.mdb +0 -0
- package/okdb-data/default/lock.mdb +0 -0
- package/okdb-data/~log/data.mdb +0 -0
- package/okdb-data/~log/lock.mdb +0 -0
- package/okdb-data/~system/data.mdb +0 -0
- package/okdb-data/~system/lock.mdb +0 -0
- package/public/images/logo.png +0 -0
- package/public/images/logo.svg +0 -333
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x307a37=_0x3823;function _0x3823(_0x442079,_0x534a39){_0x442079=_0x442079-0x16b;const _0xb5f0da=_0xb5f0();let _0x3823bf=_0xb5f0da[_0x442079];return _0x3823bf;}(function(_0x427218,_0x41ae30){const _0x3e69aa=_0x3823,_0x10f7fc=_0x427218();while(!![]){try{const _0x8107c7=parseInt(_0x3e69aa(0x177))/0x1+parseInt(_0x3e69aa(0x19a))/0x2+parseInt(_0x3e69aa(0x192))/0x3+parseInt(_0x3e69aa(0x1a1))/0x4+parseInt(_0x3e69aa(0x183))/0x5+parseInt(_0x3e69aa(0x1a2))/0x6+-parseInt(_0x3e69aa(0x175))/0x7;if(_0x8107c7===_0x41ae30)break;else _0x10f7fc['push'](_0x10f7fc['shift']());}catch(_0x520baa){_0x10f7fc['push'](_0x10f7fc['shift']());}}}(_0xb5f0,0x2097c));import _0x42dcb3 from'../../../stores/okdb-store.js';import _0x3b83c0 from'../modals/job-type-modal.ok.js';import _0x497e42 from'../modals/enqueue-job-modal.ok.js';const n={'active':'Active','paused':_0x307a37(0x191),'draining':_0x307a37(0x188)},a={'active':_0x307a37(0x16f),'paused':'color-mix(in\x20srgb,\x20#f59e0b\x2080%,\x20transparent)','draining':_0x307a37(0x16b)};export default{'tag':_0x307a37(0x182),'dependencies':[_0x3b83c0,_0x497e42],'context':_0x2dbf0=>({'busy':!0x1,'loadError':null,'types':[],'bucketOptions':[],async 'load'(){const _0x31afda=_0x307a37;this['busy']=!0x0,this[_0x31afda(0x194)]=null;try{const [_0x4ceaa4,_0x2de1b0]=await Promise['all']([fetch(_0x42dcb3[_0x31afda(0x18c)]+_0x31afda(0x19e)),fetch(_0x42dcb3[_0x31afda(0x18c)]+'/queue/buckets')['catch'](()=>null)]);if(!_0x4ceaa4['ok']){const _0x2dabc6=await _0x4ceaa4['json']()['catch'](()=>({}));throw new Error(_0x2dabc6?.[_0x31afda(0x1a3)]?.[_0x31afda(0x1a0)]??_0x2dabc6?.[_0x31afda(0x1a0)]??_0x31afda(0x17f)+_0x4ceaa4[_0x31afda(0x178)]);}const _0x12f796=await _0x4ceaa4[_0x31afda(0x199)]();this[_0x31afda(0x1a4)]=_0x12f796?.[_0x31afda(0x185)]??_0x12f796?.[_0x31afda(0x16e)]??[];const _0x2b3298=_0x2de1b0?.['ok']?await _0x2de1b0[_0x31afda(0x199)]()['catch'](()=>({})):{};this[_0x31afda(0x181)]=_0x2b3298?.[_0x31afda(0x185)]??_0x2b3298?.[_0x31afda(0x16e)]??[];}catch(_0x597a04){console[_0x31afda(0x1a3)](_0x31afda(0x17e),_0x597a04),this['loadError']=_0x597a04['message']||_0x31afda(0x176),this[_0x31afda(0x1a4)]=[];}finally{this[_0x31afda(0x19b)]=!0x1;}},'statusLabel':_0x302b3c=>n[_0x302b3c]??_0x302b3c,'statusColor':_0x3aa542=>a[_0x3aa542]??_0x307a37(0x179),'formatDefaults'(_0xe1c1ac){const _0x3cf4f1=_0x307a37,_0x4e89e9=_0xe1c1ac[_0x3cf4f1(0x19d)]??{},_0x570707=[];return null!=_0x4e89e9[_0x3cf4f1(0x187)]&&_0x570707[_0x3cf4f1(0x17b)](_0x3cf4f1(0x172)+_0x4e89e9['max_tries']),null!=_0x4e89e9[_0x3cf4f1(0x195)]&&_0x570707[_0x3cf4f1(0x17b)]('delay:'+_0x4e89e9[_0x3cf4f1(0x195)]+'ms'),null!=_0x4e89e9['priority']&&_0x570707[_0x3cf4f1(0x17b)](_0x3cf4f1(0x193)+_0x4e89e9[_0x3cf4f1(0x171)]),null!=_0x4e89e9[_0x3cf4f1(0x174)]&&_0x570707['push'](_0x3cf4f1(0x170)+_0x4e89e9[_0x3cf4f1(0x174)]+'ms'),null!=_0xe1c1ac[_0x3cf4f1(0x19f)]&&_0x570707['push'](_0x3cf4f1(0x19c)+_0xe1c1ac[_0x3cf4f1(0x19f)]),_0x570707[_0x3cf4f1(0x16c)]('\x20\x20·\x20\x20')||'—';},'openCreate'(){const _0x1fa5fb=_0x307a37,_0x47eed1=this;_0x2dbf0[_0x1fa5fb(0x18b)][_0x1fa5fb(0x18f)][_0x1fa5fb(0x17d)][_0x1fa5fb(0x198)]({'owner':_0x2dbf0,'title':'Register\x20Job\x20Type','content':_0x1fa5fb(0x186),'context':_0x37e80b=>({'modal':_0x37e80b,'bucketOptions':_0x47eed1[_0x1fa5fb(0x181)],'onDone':()=>_0x47eed1[_0x1fa5fb(0x16d)]()})});},'openEdit'(_0x465b7a){const _0x4d42e6=_0x307a37;_0x2dbf0[_0x4d42e6(0x18b)][_0x4d42e6(0x18f)][_0x4d42e6(0x17d)]['open']({'owner':_0x2dbf0,'title':'Edit:\x20'+_0x465b7a['id'],'content':'<job-type-modal\x20:modal=\x22modal\x22\x20:job-type=\x22jobType\x22\x20:bucket-options=\x22bucketOptions\x22\x20:on-done=\x22onDone\x22\x20/>','context':_0xdd1be3=>({'modal':_0xdd1be3,'jobType':_0x465b7a,'bucketOptions':this[_0x4d42e6(0x181)],'onDone':()=>this[_0x4d42e6(0x16d)]()})});},async 'setStatus'(_0x5f5dce,_0x385c04){const _0x22fec9=_0x307a37;try{if(!(await fetch(_0x42dcb3['apiBase']+_0x22fec9(0x17a)+encodeURIComponent(_0x5f5dce['id'])+'/'+_0x385c04,{'method':_0x22fec9(0x18a)}))['ok'])throw new Error(_0x22fec9(0x196));await this[_0x22fec9(0x16d)]();}catch{_0x2dbf0[_0x22fec9(0x18b)][_0x22fec9(0x18f)]?.[_0x22fec9(0x18d)]?.[_0x22fec9(0x1a3)]?.(_0x22fec9(0x189)+_0x385c04+_0x22fec9(0x17c));}},'openEnqueue'(_0x53d91a){const _0x2bd215=_0x307a37;_0x2dbf0[_0x2bd215(0x18b)]['shared'][_0x2bd215(0x17d)]['open']({'owner':_0x2dbf0,'title':_0x2bd215(0x197),'content':_0x2bd215(0x173),'context':_0x1771ac=>({'modal':_0x1771ac,'initialType':_0x53d91a['id'],'onDone':()=>_0x2dbf0[_0x2bd215(0x18b)][_0x2bd215(0x18f)]?.[_0x2bd215(0x18d)]?.['success']?.(_0x2bd215(0x184))})});},async 'remove'(_0x4103cf){const _0x17cd0b=_0x307a37;if(await _0x2dbf0[_0x17cd0b(0x18b)][_0x17cd0b(0x18f)]['modal'][_0x17cd0b(0x180)](_0x17cd0b(0x190)+_0x4103cf['id']+'\x22?\x20Existing\x20jobs\x20are\x20unaffected.'))try{if(!(await fetch(_0x42dcb3['apiBase']+_0x17cd0b(0x17a)+encodeURIComponent(_0x4103cf['id']),{'method':'DELETE'}))['ok'])throw new Error(_0x17cd0b(0x196));await this['load']();}catch{_0x2dbf0[_0x17cd0b(0x18b)]['shared']?.[_0x17cd0b(0x18d)]?.['error']?.('Failed\x20to\x20remove\x20job\x20type');}}}),async 'mount'(_0x2d86ec){const _0x518bf3=_0x307a37;await this['load'](),_0x2d86ec[_0x518bf3(0x18e)](()=>_0x42dcb3['selectedEnv'],()=>{const _0x596223=_0x518bf3;this[_0x596223(0x1a4)]=[],this['load']();});},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:16px;\x20padding:16px\x200;\x22>\x0a\x0a\x20\x20<!--\x20header\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:14px;\x20font-weight:600;\x20flex:1;\x22>Registered\x20Job\x20Types</div>\x0a\x20\x20\x20\x20<button\x20@click=\x22load\x22\x20:disabled=\x22busy\x22\x20style=\x22opacity:.6;\x20font-size:11px;\x20padding:2px\x208px;\x22>↻</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22openCreate()\x22\x20style=\x22font-size:12px;\x20padding:4px\x2012px;\x22>+\x20Register\x20type</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20error\x20state\x20-->\x0a\x20\x20<if\x20:=\x22loadError\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22color:#ef4444;\x20font-size:12px;\x20padding:8px\x2012px;\x20border:1px\x20solid\x20#ef4444;\x20border-radius:6px;\x20background:color-mix(in\x20srgb,\x20#ef4444\x208%,\x20transparent);\x22>\x0a\x20\x20\x20\x20\x20\x20Failed\x20to\x20load\x20job\x20types:\x20{{\x20loadError\x20}}\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20empty\x20state\x20-->\x0a\x20\x20<if\x20:=\x22!busy\x20&&\x20!loadError\x20&&\x20types.length\x20===\x200\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22opacity:.45;\x20font-size:13px;\x20line-height:1.8;\x20padding:32px\x200;\x20text-align:center;\x22>\x0a\x20\x20\x20\x20\x20\x20No\x20registered\x20job\x20types.<br>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:12px;\x22>Register\x20a\x20type\x20to\x20set\x20defaults,\x20control\x20concurrency,\x20and\x20pause/resume\x20claiming.</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20types\x20list\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<each\x20:of=\x22types\x22\x20let:item=\x22jt\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22jt-card\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:13px;\x20font-weight:600;\x20flex:1;\x20min-width:0;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x22>{{\x20jt.id\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20:style=\x22\x27border-color:\x27\x20+\x20statusColor(jt.status)\x20+\x20\x27;\x20color:\x27\x20+\x20statusColor(jt.status)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20statusLabel(jt.status)\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.payload_schema\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20style=\x22border-color:var(--okdb-accent);\x20color:var(--okdb-accent);\x22>schema</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.payload_schema.enforce\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20style=\x22border-color:#ef4444;\x20color:#ef4444;\x22>enforced</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20lifecycle\x20actions\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20!==\x20\x27paused\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22setStatus(jt,\x20\x27pause\x27)\x22\x20title=\x22Pause\x20—\x20stop\x20workers\x20from\x20claiming\x20new\x20jobs\x22>⏸\x20Pause</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20===\x20\x27paused\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--accent\x22\x20@click=\x22setStatus(jt,\x20\x27resume\x27)\x22\x20title=\x22Resume\x20normal\x20claiming\x22>▶\x20Resume</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20!==\x20\x27draining\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22setStatus(jt,\x20\x27drain\x27)\x22\x20title=\x22Drain\x20—\x20stop\x20new\x20enqueues,\x20let\x20queue\x20empty\x22>⬇\x20Drain</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20===\x20\x27draining\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--accent\x22\x20@click=\x22setStatus(jt,\x20\x27resume\x27)\x22>▶\x20Resume</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--enqueue\x22\x20@click=\x22openEnqueue(jt)\x22>+\x20Enqueue</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22openEdit(jt)\x22>Edit</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--danger\x22\x20@click=\x22remove(jt)\x22>Remove</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.55;\x20margin-top:4px;\x20font-family:monospace;\x22>{{\x20formatDefaults(jt)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</each>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','style':'.jt-card{border:1px\x20solid\x20var(--okdb-app-border);border-radius:8px;padding:10px\x2014px;background:var(--okdb-app-surface)}.status-badge{font-size:10px;padding:2px\x208px;border-radius:999px;border:1px\x20solid;font-weight:600;letter-spacing:.04em}.act-btn{font-size:11px;padding:2px\x208px;border-radius:5px;border:1px\x20solid\x20var(--okdb-app-border);background:0\x200;cursor:pointer;color:var(--okdb-app-fg-muted)}.act-btn:hover{border-color:var(--okdb-app-fg-muted);color:var(--okdb-app-fg)}.act-btn--accent,.act-btn--enqueue{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}.act-btn--danger:hover{border-color:#ef4444;color:#ef4444}.act-btn--enqueue{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2030%,transparent)}.act-btn--enqueue:hover{border-color:var(--okdb-accent)}'};function _0xb5f0(){const _0xb15547=['error','types','color-mix(in\x20srgb,\x20#3b82f6\x2080%,\x20transparent)','join','load','data','color-mix(in\x20srgb,\x20#22c55e\x2080%,\x20transparent)','ttl:','priority','tries:','<enqueue-job-modal\x20:modal=\x22modal\x22\x20:initial-type=\x22initialType\x22\x20:on-done=\x22onDone\x22\x20/>','ttl','4781847FKcZzH','Failed\x20to\x20load','217632FQEcaY','status','var(--okdb-app-fg-muted)','/queue/job-type/','push','\x20job\x20type','modal','queue-job-types\x20load\x20error','HTTP\x20','confirm','bucketOptions','queue-job-types','950445hxINEA','Job\x20enqueued','result','<job-type-modal\x20:modal=\x22modal\x22\x20:job-type=\x22null\x22\x20:bucket-options=\x22bucketOptions\x22\x20:on-done=\x22onDone\x22\x20/>','max_tries','Draining','Failed\x20to\x20','POST','$ok','apiBase','toast','$watch','shared','Remove\x20job\x20type\x20\x22','Paused','352443REojcy','pri:','loadError','retry_delay','failed','Enqueue\x20Job','open','json','147482sbbTTO','busy','concurrency:','defaults','/queue/job-types','max_concurrency','message','826468XoRSeo','66366OIdBLe'];_0xb5f0=function(){return _0xb15547;};return _0xb5f0();}
|
|
1
|
+
const _0x5c4f4f=_0x2506;function _0x2506(_0x529897,_0x35850b){_0x529897=_0x529897-0x100;const _0x195a27=_0x195a();let _0x250638=_0x195a27[_0x529897];return _0x250638;}(function(_0x37fb46,_0x16904d){const _0x1d2b40=_0x2506,_0x318050=_0x37fb46();while(!![]){try{const _0x47ab82=parseInt(_0x1d2b40(0x12f))/0x1*(parseInt(_0x1d2b40(0x13a))/0x2)+-parseInt(_0x1d2b40(0x121))/0x3+-parseInt(_0x1d2b40(0x136))/0x4+parseInt(_0x1d2b40(0x10f))/0x5+parseInt(_0x1d2b40(0x13b))/0x6*(parseInt(_0x1d2b40(0x13c))/0x7)+parseInt(_0x1d2b40(0x111))/0x8*(-parseInt(_0x1d2b40(0x12a))/0x9)+parseInt(_0x1d2b40(0x103))/0xa*(parseInt(_0x1d2b40(0x11b))/0xb);if(_0x47ab82===_0x16904d)break;else _0x318050['push'](_0x318050['shift']());}catch(_0x50aa6c){_0x318050['push'](_0x318050['shift']());}}}(_0x195a,0x75818));import _0x590a25 from'../../../stores/okdb-store.js';import _0x17016d from'../modals/job-type-modal.ok.js';import _0x43418f from'../modals/enqueue-job-modal.ok.js';const n={'active':_0x5c4f4f(0x133),'paused':_0x5c4f4f(0x10c),'draining':'Draining'},a={'active':_0x5c4f4f(0x124),'paused':_0x5c4f4f(0x131),'draining':_0x5c4f4f(0x11f)};function _0x195a(){const _0x470aac=['pri:','3489568qkWkks','json','Failed\x20to\x20remove\x20job\x20type','status','$watch','ttl','Register\x20Job\x20Type','tries:','result','busy','11JQDusj','confirm','failed','Remove\x20job\x20type\x20\x22','color-mix(in\x20srgb,\x20#3b82f6\x2080%,\x20transparent)','Failed\x20to\x20load','829398CFQWFo','delay:','priority','color-mix(in\x20srgb,\x20#22c55e\x2080%,\x20transparent)','max_tries','join','Enqueue\x20Job','\x22?\x20Existing\x20jobs\x20are\x20unaffected.','bucketOptions','9eDxDxo','<job-type-modal\x20:modal=\x22modal\x22\x20:job-type=\x22jobType\x22\x20:bucket-options=\x22bucketOptions\x22\x20:on-done=\x22onDone\x22\x20/>','message','$ok','max_concurrency','69NbVRuY','queue-job-types','color-mix(in\x20srgb,\x20#f59e0b\x2080%,\x20transparent)','/queue/buckets','Active','/queue/job-type/','retry_delay','607656vxyQCJ','types','Job\x20enqueued','modal','8898cvvZnA','86676aheVuy','413ZYTfoL','shared','ttl:','selectedEnv','load','open','<enqueue-job-modal\x20:modal=\x22modal\x22\x20:initial-type=\x22initialType\x22\x20:on-done=\x22onDone\x22\x20/>','\x20job\x20type','data','catch','829060EatfAk','concurrency:','\x20\x20·\x20\x20','all','error','queue-job-types\x20load\x20error','.jt-card{border:1px\x20solid\x20var(--okdb-app-border);border-radius:8px;padding:10px\x2014px;background:var(--okdb-app-surface)}.status-badge{font-size:10px;padding:2px\x208px;border-radius:999px;border:1px\x20solid;font-weight:600;letter-spacing:.04em}.act-btn{font-size:11px;padding:2px\x208px;border-radius:5px;border:1px\x20solid\x20var(--okdb-app-border);background:0\x200;cursor:pointer;color:var(--okdb-app-fg-muted)}.act-btn:hover{border-color:var(--okdb-app-fg-muted);color:var(--okdb-app-fg)}.act-btn--accent,.act-btn--enqueue{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2040%,transparent);color:var(--okdb-accent)}.act-btn--danger:hover{border-color:#ef4444;color:#ef4444}.act-btn--enqueue{border-color:color-mix(in\x20srgb,var(--okdb-accent)\x2030%,transparent)}.act-btn--enqueue:hover{border-color:var(--okdb-accent)}','push','apiBase','Paused','/queue/job-types','toast','518395RTtzGF'];_0x195a=function(){return _0x470aac;};return _0x195a();}export default{'tag':_0x5c4f4f(0x130),'dependencies':[_0x17016d,_0x43418f],'context':_0x454250=>({'busy':!0x1,'loadError':null,'types':[],'bucketOptions':[],async 'load'(){const _0x2be54d=_0x5c4f4f;this[_0x2be54d(0x11a)]=!0x0,this['loadError']=null;try{const [_0x2045fd,_0x79c3ca]=await Promise[_0x2be54d(0x106)]([fetch(_0x590a25[_0x2be54d(0x10b)]+_0x2be54d(0x10d)),fetch(_0x590a25[_0x2be54d(0x10b)]+_0x2be54d(0x132))[_0x2be54d(0x102)](()=>null)]);if(!_0x2045fd['ok']){const _0x462fbb=await _0x2045fd[_0x2be54d(0x112)]()[_0x2be54d(0x102)](()=>({}));throw new Error(_0x462fbb?.[_0x2be54d(0x107)]?.[_0x2be54d(0x12c)]??_0x462fbb?.['message']??'HTTP\x20'+_0x2045fd[_0x2be54d(0x114)]);}const _0x147ab7=await _0x2045fd[_0x2be54d(0x112)]();this[_0x2be54d(0x137)]=_0x147ab7?.[_0x2be54d(0x119)]??_0x147ab7?.[_0x2be54d(0x101)]??[];const _0x54c935=_0x79c3ca?.['ok']?await _0x79c3ca[_0x2be54d(0x112)]()[_0x2be54d(0x102)](()=>({})):{};this[_0x2be54d(0x129)]=_0x54c935?.['result']??_0x54c935?.['data']??[];}catch(_0x350268){console[_0x2be54d(0x107)](_0x2be54d(0x108),_0x350268),this['loadError']=_0x350268[_0x2be54d(0x12c)]||_0x2be54d(0x120),this[_0x2be54d(0x137)]=[];}finally{this[_0x2be54d(0x11a)]=!0x1;}},'statusLabel':_0x4b3bcb=>n[_0x4b3bcb]??_0x4b3bcb,'statusColor':_0x2fc61d=>a[_0x2fc61d]??'var(--okdb-app-fg-muted)','formatDefaults'(_0x420ea0){const _0x28938b=_0x5c4f4f,_0x174d84=_0x420ea0['defaults']??{},_0x5f4cb0=[];return null!=_0x174d84[_0x28938b(0x125)]&&_0x5f4cb0[_0x28938b(0x10a)](_0x28938b(0x118)+_0x174d84[_0x28938b(0x125)]),null!=_0x174d84[_0x28938b(0x135)]&&_0x5f4cb0[_0x28938b(0x10a)](_0x28938b(0x122)+_0x174d84[_0x28938b(0x135)]+'ms'),null!=_0x174d84[_0x28938b(0x123)]&&_0x5f4cb0[_0x28938b(0x10a)](_0x28938b(0x110)+_0x174d84[_0x28938b(0x123)]),null!=_0x174d84['ttl']&&_0x5f4cb0[_0x28938b(0x10a)](_0x28938b(0x13e)+_0x174d84[_0x28938b(0x116)]+'ms'),null!=_0x420ea0[_0x28938b(0x12e)]&&_0x5f4cb0['push'](_0x28938b(0x104)+_0x420ea0['max_concurrency']),_0x5f4cb0[_0x28938b(0x126)](_0x28938b(0x105))||'—';},'openCreate'(){const _0x4c5c8d=_0x5c4f4f,_0x307132=this;_0x454250['$ok'][_0x4c5c8d(0x13d)][_0x4c5c8d(0x139)][_0x4c5c8d(0x141)]({'owner':_0x454250,'title':_0x4c5c8d(0x117),'content':'<job-type-modal\x20:modal=\x22modal\x22\x20:job-type=\x22null\x22\x20:bucket-options=\x22bucketOptions\x22\x20:on-done=\x22onDone\x22\x20/>','context':_0x246b49=>({'modal':_0x246b49,'bucketOptions':_0x307132[_0x4c5c8d(0x129)],'onDone':()=>_0x307132[_0x4c5c8d(0x140)]()})});},'openEdit'(_0x5154a6){const _0x5723a5=_0x5c4f4f;_0x454250[_0x5723a5(0x12d)][_0x5723a5(0x13d)][_0x5723a5(0x139)][_0x5723a5(0x141)]({'owner':_0x454250,'title':'Edit:\x20'+_0x5154a6['id'],'content':_0x5723a5(0x12b),'context':_0x2d78ea=>({'modal':_0x2d78ea,'jobType':_0x5154a6,'bucketOptions':this['bucketOptions'],'onDone':()=>this[_0x5723a5(0x140)]()})});},async 'setStatus'(_0x1c9578,_0x22e5ef){const _0x23a886=_0x5c4f4f;try{if(!(await fetch(_0x590a25['apiBase']+_0x23a886(0x134)+encodeURIComponent(_0x1c9578['id'])+'/'+_0x22e5ef,{'method':'POST'}))['ok'])throw new Error(_0x23a886(0x11d));await this[_0x23a886(0x140)]();}catch{_0x454250[_0x23a886(0x12d)][_0x23a886(0x13d)]?.[_0x23a886(0x10e)]?.['error']?.('Failed\x20to\x20'+_0x22e5ef+_0x23a886(0x100));}},'openEnqueue'(_0x9daa68){const _0x4f3243=_0x5c4f4f;_0x454250[_0x4f3243(0x12d)][_0x4f3243(0x13d)]['modal'][_0x4f3243(0x141)]({'owner':_0x454250,'title':_0x4f3243(0x127),'content':_0x4f3243(0x142),'context':_0x593732=>({'modal':_0x593732,'initialType':_0x9daa68['id'],'onDone':()=>_0x454250['$ok'][_0x4f3243(0x13d)]?.[_0x4f3243(0x10e)]?.['success']?.(_0x4f3243(0x138))})});},async 'remove'(_0xdfe6e5){const _0x4b7990=_0x5c4f4f;if(await _0x454250[_0x4b7990(0x12d)][_0x4b7990(0x13d)]['modal'][_0x4b7990(0x11c)](_0x4b7990(0x11e)+_0xdfe6e5['id']+_0x4b7990(0x128)))try{if(!(await fetch(_0x590a25[_0x4b7990(0x10b)]+_0x4b7990(0x134)+encodeURIComponent(_0xdfe6e5['id']),{'method':'DELETE'}))['ok'])throw new Error(_0x4b7990(0x11d));await this['load']();}catch{_0x454250[_0x4b7990(0x12d)][_0x4b7990(0x13d)]?.['toast']?.[_0x4b7990(0x107)]?.(_0x4b7990(0x113));}}}),async 'mount'(_0x1726d5){const _0x193261=_0x5c4f4f;await this['load'](),_0x1726d5[_0x193261(0x115)](()=>_0x590a25[_0x193261(0x13f)],()=>{const _0x5b60c9=_0x193261;this[_0x5b60c9(0x137)]=[],this[_0x5b60c9(0x140)]();});},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:16px;\x20padding:16px\x200;\x22>\x0a\x0a\x20\x20<!--\x20header\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22font-size:14px;\x20font-weight:600;\x20flex:1;\x22>Registered\x20Job\x20Types</div>\x0a\x20\x20\x20\x20<button\x20@click=\x22load\x22\x20:disabled=\x22busy\x22\x20style=\x22opacity:.6;\x20font-size:11px;\x20padding:2px\x208px;\x22>↻</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22openCreate()\x22\x20style=\x22font-size:12px;\x20padding:4px\x2012px;\x22>+\x20Register\x20type</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20error\x20state\x20-->\x0a\x20\x20<if\x20:=\x22loadError\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22color:#ef4444;\x20font-size:12px;\x20padding:8px\x2012px;\x20border:1px\x20solid\x20#ef4444;\x20border-radius:6px;\x20background:color-mix(in\x20srgb,\x20#ef4444\x208%,\x20transparent);\x22>\x0a\x20\x20\x20\x20\x20\x20Failed\x20to\x20load\x20job\x20types:\x20{{\x20loadError\x20}}\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20empty\x20state\x20-->\x0a\x20\x20<if\x20:=\x22!busy\x20&&\x20!loadError\x20&&\x20types.length\x20===\x200\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22opacity:.45;\x20font-size:13px;\x20line-height:1.8;\x20padding:32px\x200;\x20text-align:center;\x22>\x0a\x20\x20\x20\x20\x20\x20No\x20registered\x20job\x20types.<br>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:12px;\x22>Register\x20a\x20type\x20to\x20set\x20defaults,\x20control\x20concurrency,\x20and\x20pause/resume\x20claiming.</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</if>\x0a\x0a\x20\x20<!--\x20types\x20list\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<each\x20:of=\x22types\x22\x20let:item=\x22jt\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22jt-card\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:10px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:13px;\x20font-weight:600;\x20flex:1;\x20min-width:0;\x20overflow:hidden;\x20text-overflow:ellipsis;\x20white-space:nowrap;\x22>{{\x20jt.id\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20:style=\x22\x27border-color:\x27\x20+\x20statusColor(jt.status)\x20+\x20\x27;\x20color:\x27\x20+\x20statusColor(jt.status)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20statusLabel(jt.status)\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.payload_schema\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20style=\x22border-color:var(--okdb-accent);\x20color:var(--okdb-accent);\x22>schema</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.payload_schema.enforce\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20style=\x22border-color:#ef4444;\x20color:#ef4444;\x22>enforced</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20lifecycle\x20actions\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20!==\x20\x27paused\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22setStatus(jt,\x20\x27pause\x27)\x22\x20title=\x22Pause\x20—\x20stop\x20workers\x20from\x20claiming\x20new\x20jobs\x22>⏸\x20Pause</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20===\x20\x27paused\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--accent\x22\x20@click=\x22setStatus(jt,\x20\x27resume\x27)\x22\x20title=\x22Resume\x20normal\x20claiming\x22>▶\x20Resume</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20!==\x20\x27draining\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22setStatus(jt,\x20\x27drain\x27)\x22\x20title=\x22Drain\x20—\x20stop\x20new\x20enqueues,\x20let\x20queue\x20empty\x22>⬇\x20Drain</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jt.status\x20===\x20\x27draining\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--accent\x22\x20@click=\x22setStatus(jt,\x20\x27resume\x27)\x22>▶\x20Resume</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--enqueue\x22\x20@click=\x22openEnqueue(jt)\x22>+\x20Enqueue</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x22\x20@click=\x22openEdit(jt)\x22>Edit</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22act-btn\x20act-btn--danger\x22\x20@click=\x22remove(jt)\x22>Remove</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-size:11px;\x20opacity:.55;\x20margin-top:4px;\x20font-family:monospace;\x22>{{\x20formatDefaults(jt)\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</each>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','style':_0x5c4f4f(0x109)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5013c1=_0x3ae3;(function(_0x57c268,_0x1fd176){const _0x54017a=_0x3ae3,_0x5edff8=_0x57c268();while(!![]){try{const _0x5bbbdb=-parseInt(_0x54017a(0xd4))/0x1*(-parseInt(_0x54017a(0xbe))/0x2)+-parseInt(_0x54017a(0x111))/0x3*(parseInt(_0x54017a(0xdf))/0x4)+-parseInt(_0x54017a(0xf2))/0x5+-parseInt(_0x54017a(0xdc))/0x6+parseInt(_0x54017a(0x123))/0x7+parseInt(_0x54017a(0xa7))/0x8+parseInt(_0x54017a(0xe5))/0x9;if(_0x5bbbdb===_0x1fd176)break;else _0x5edff8['push'](_0x5edff8['shift']());}catch(_0x4adf19){_0x5edff8['push'](_0x5edff8['shift']());}}}(_0xe319,0x87fa2));import _0x5a46e5 from'@toolkit/elements/ok-icon.ok.js';import _0x1309db from'@toolkit/elements/ok-table.ok.js';import _0x488880 from'@toolkit/core/ok-overlay.ok.js';function _0x3ae3(_0x1372c2,_0x51ed58){_0x1372c2=_0x1372c2-0xa1;const _0xe3196e=_0xe319();let _0x3ae39d=_0xe3196e[_0x1372c2];return _0x3ae39d;}function _0xe319(){const _0x37de54=['total','Clear\x20all\x20\x22done\x22\x20jobs','bulkBusy','in\x20a\x20moment','h\x20ago','_nextCursor','var(--okdb-success)','indexOf','cursor','_busy','resetPaging','busy','function','modal','Edit\x20Job\x20','isArray','byType','sortMode','queue:failed','cancel\x20failed','/remove','confirm','52wkfQHb','POST','Delete\x20failed','/queue/job/','Clear\x20failed\x20jobs\x20error:\x20','\x20stuck\x20jobs','values','/queue/clearDone','application/json','items','push','queue:removed','toast','now','_scheduleLiveReload','$watch','<edit-job-modal\x20:modal=\x22modal\x22\x20:job-id=\x22jobId\x22\x20:on-done=\x22onDone\x22\x20/>','Cancel\x20failed','\x20done\x20jobs','open','set','/cancel','35942duwqRt','Cancel\x20job\x20<code>','/queue/stats','sort','hasNext','Cancelled\x20','pageSize','hasPrev','3537168MDHYle','info','_unsubs','12StNkYi','abs','Delete\x20all\x20\x22failed\x22\x20jobs','Delete\x20all\x20stuck\x20(expired-claim)\x20running\x20jobs','$dispatch','/queue/retryFailed','5656023hHybRA','$ok','byStatus','_applyFilterAndReload','_cursors','Deleted\x20','asc',';\x20border-color:','Retry\x20failed:\x20','slice','deleted','Cleared\x20','load','1513060LPocRH','queue:enqueued','Clear\x20stuck\x20failed:\x20','Clear\x20done\x20failed:\x20','apiBase','$attr','result','round','Bulk\x20retry\x20failed:\x20','loadError','stats','retry\x20failed','</code>?','type','Retry\x20job\x20<code>','Delete\x20job\x20<code>','data','stores','Retried\x20','HTTP\x20','refresh','success','when','json','all','in\x20','direction','?<br><br>Stuck\x20jobs\x20are\x20running\x20jobs\x20whose\x20TTL\x20has\x20expired.\x20They\x20will\x20be\x20permanently\x20deleted,\x20not\x20re-queued.','_applySort','var(--okdb-danger)','message','996516gEMcwk','/queue/clearFailed','error','\x20for\x20type\x20\x22<b>','shared','d\x20ago','color:','loadStats','stringify','.pill{display:inline-flex;align-items:center;gap:5px;border:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-surface);padding:4px\x2010px;border-radius:999px;font-size:12px;cursor:pointer;color:var(--okdb-app-fg-muted);transition:border-color\x20.12s,color\x20.12s}.pill:hover{border-color:#3b4754;color:var(--okdb-app-fg)}.pill--on{box-shadow:0\x200\x200\x201px\x20rgba(255,255,255,.07)\x20inset}.pill--p.pill--on{color:var(--okdb-warning);border-color:var(--okdb-warning)}.pill--r.pill--on{color:var(--okdb-info);border-color:var(--okdb-info)}.pill--f.pill--on{color:var(--okdb-danger);border-color:var(--okdb-danger)}.pill--d.pill--on{color:var(--okdb-success);border-color:var(--okdb-success)}.pill-count{font-size:11px;opacity:.65;font-variant-numeric:tabular-nums}.status-badge{display:inline-block;padding:2px\x208px;border-radius:999px;font-size:11px;border:1px\x20solid;white-space:nowrap}','</b>\x22','_liveTimer','length','?<br><br>This\x20cannot\x20be\x20undone.','selectedEnv','queue-jobs','status','_pageIdx','1979166lFFtKV','pendingUpdates','_scheduleStats','/queue/reconcile','_statsTimer','queue:reconciled','failed','\x20failed\x20jobs','/queue/jobs?','query','retried','4799528VhQgdX'];_0xe319=function(){return _0x37de54;};return _0xe319();}import _0x46c9d5 from'../modals/edit-job-modal.ok.js';import _0x44b236 from'../modals/enqueue-job-modal.ok.js';import _0x3d44de from'../../../stores/events-store.js';import _0x3ebfbd from'../../../stores/okdb-store.js';export default{'tag':_0x5013c1(0x120),'dependencies':[_0x5a46e5,_0x1309db,_0x488880,_0x44b236,_0x46c9d5],'attr':{'type':{}},'context':_0x4b5458=>({'query':function({apiBase:_0x3b7d08,pageSize:_0x46d758=0x32}){const _0x2a2866=_0x5013c1;return{'busy':!0x1,'values':[],'total':0x0,'hasNext':!0x1,'hasPrev':!0x1,'pageSize':_0x46d758,'loadError':null,'type':null,'status':null,'sort':_0x2a2866(0x108),'direction':_0x2a2866(0xeb),'_cursors':[null],'_pageIdx':0x0,'_nextCursor':null,'resetPaging'(){const _0x377358=_0x2a2866;this[_0x377358(0xe9)]=[null],this['_pageIdx']=0x0,this['_nextCursor']=null,this[_0x377358(0xd8)]=!0x1,this[_0x377358(0xdb)]=!0x1;},async 'load'(){const _0x4af9f5=_0x2a2866,_0x21c499=_0x4af9f5(0xb4)==typeof _0x3b7d08?_0x3b7d08():_0x3b7d08,_0x2d8178=this[_0x4af9f5(0xe9)][this['_pageIdx']];this['busy']=!0x0,this['loadError']=null;try{const _0x2bc91a=new URLSearchParams({'limit':String(this[_0x4af9f5(0xda)]),'sort':this['sort']??_0x4af9f5(0x108),'direction':this[_0x4af9f5(0x10c)]??'asc'});this[_0x4af9f5(0xff)]&&_0x2bc91a['set'](_0x4af9f5(0xff),this['type']),this['status']&&_0x2bc91a['set'](_0x4af9f5(0x121),this[_0x4af9f5(0x121)]),null!=_0x2d8178&&_0x2bc91a[_0x4af9f5(0xd2)](_0x4af9f5(0xb0),JSON[_0x4af9f5(0x119)](_0x2d8178));const _0x3cead8=await fetch(_0x21c499+_0x4af9f5(0xa4)+_0x2bc91a),_0x27cfdb=await _0x3cead8[_0x4af9f5(0x109)]();if(!_0x3cead8['ok'])throw new Error(_0x27cfdb?.[_0x4af9f5(0x113)]?.['message']||_0x4af9f5(0x105)+_0x3cead8[_0x4af9f5(0x121)]);const _0x248a69=_0x27cfdb[_0x4af9f5(0xf8)]??_0x27cfdb[_0x4af9f5(0x102)]??_0x27cfdb;this[_0x4af9f5(0xc4)]=Array[_0x4af9f5(0xb7)](_0x248a69[_0x4af9f5(0xc7)])?_0x248a69[_0x4af9f5(0xc7)]:Array[_0x4af9f5(0xb7)](_0x248a69)?_0x248a69:[],this[_0x4af9f5(0xad)]=_0x248a69[_0x4af9f5(0xb0)]??null,this[_0x4af9f5(0xd8)]=null!=this['_nextCursor'],this[_0x4af9f5(0xdb)]=this[_0x4af9f5(0x122)]>0x0;}catch(_0x23fa8b){this[_0x4af9f5(0xfb)]=_0x23fa8b?.[_0x4af9f5(0x110)]||String(_0x23fa8b),this['values']=[];}finally{this[_0x4af9f5(0xb3)]=!0x1;}},async 'nextPage'(){const _0x2f6c42=_0x2a2866;this[_0x2f6c42(0xd8)]&&!this[_0x2f6c42(0xb3)]&&(this['_pageIdx']+0x1>=this[_0x2f6c42(0xe9)][_0x2f6c42(0x11d)]&&this['_cursors'][_0x2f6c42(0xc8)](this[_0x2f6c42(0xad)]),this[_0x2f6c42(0x122)]++,await this[_0x2f6c42(0xf1)]());},async 'prevPage'(){const _0x3d32be=_0x2a2866;this[_0x3d32be(0xdb)]&&!this[_0x3d32be(0xb3)]&&(this[_0x3d32be(0x122)]--,await this[_0x3d32be(0xf1)]());}};}({'apiBase':()=>_0x3ebfbd[_0x5013c1(0xf6)],'pageSize':0x32}),'type':null,'status':null,'sortMode':'when','direction':'asc','stats':null,'_statsTimer':null,async 'loadStats'(){const _0x4bea28=_0x5013c1;try{const _0x1b6366=await fetch(_0x3ebfbd[_0x4bea28(0xf6)]+_0x4bea28(0xd6));if(_0x1b6366['ok']){const _0x409843=await _0x1b6366[_0x4bea28(0x109)]();this[_0x4bea28(0xfc)]=_0x409843['result']??_0x409843['data']??null;}}catch{}},'_scheduleStats'(){const _0x27fcc4=_0x5013c1;clearTimeout(this[_0x27fcc4(0x127)]),this[_0x27fcc4(0x127)]=setTimeout(()=>this[_0x27fcc4(0x118)](),0x190);},'statusCount'(_0x165ede){const _0x36f972=_0x5013c1;if(!this[_0x36f972(0xfc)])return'';const _0x457258=this[_0x36f972(0xff)];return _0x165ede?_0x457258?this[_0x36f972(0xfc)][_0x36f972(0xb8)]?.[_0x457258]?.[_0x36f972(0xe7)]?.[_0x165ede]??0x0:this[_0x36f972(0xfc)]['byStatus']?.[_0x165ede]??0x0:_0x457258?this[_0x36f972(0xfc)][_0x36f972(0xb8)]?.[_0x457258]?.[_0x36f972(0xa8)]??0x0:this[_0x36f972(0xfc)][_0x36f972(0xa8)]??0x0;},'applyTypeAttr'(){const _0xe33325=_0x5013c1;var _0x4ed2fa;this[_0xe33325(0xff)]=null==(_0x4ed2fa=_0x4b5458[_0xe33325(0xf7)][_0xe33325(0xff)])||''===_0x4ed2fa?null:String(_0x4ed2fa),this[_0xe33325(0xe8)]();},'setStatus'(_0x32c5d2){const _0x14bc44=_0x5013c1;this[_0x14bc44(0x121)]=null==_0x32c5d2||''===_0x32c5d2?null:_0x32c5d2,this['_applyFilterAndReload']();},'setSort'(_0x27476b){const _0x1740e1=_0x5013c1;this['sortMode']=_0x27476b,this[_0x1740e1(0x10e)](),this[_0x1740e1(0xa5)][_0x1740e1(0xb2)](),this[_0x1740e1(0xa5)][_0x1740e1(0xf1)]();},'toggleDirection'(){const _0x46edf1=_0x5013c1;this[_0x46edf1(0x10c)]=_0x46edf1(0xeb)===this[_0x46edf1(0x10c)]?'desc':_0x46edf1(0xeb),this[_0x46edf1(0x10e)](),this[_0x46edf1(0xa5)][_0x46edf1(0xb2)](),this[_0x46edf1(0xa5)][_0x46edf1(0xf1)]();},'_applySort'(){const _0x126b0c=_0x5013c1;this[_0x126b0c(0xa5)][_0x126b0c(0xd7)]=this[_0x126b0c(0xb9)],this[_0x126b0c(0xa5)]['direction']=this[_0x126b0c(0x10c)];},'_applyFilterAndReload'(){const _0x5d7519=_0x5013c1;this[_0x5d7519(0xa5)][_0x5d7519(0xff)]=this['type'],this['query'][_0x5d7519(0x121)]=this[_0x5d7519(0x121)],this[_0x5d7519(0x10e)](),this[_0x5d7519(0xa5)][_0x5d7519(0xb2)](),this[_0x5d7519(0xa5)]['load']();},async 'refresh'(){const _0x13f519=_0x5013c1;clearTimeout(this[_0x13f519(0x11c)]),this[_0x13f519(0x124)]=0x0;try{await fetch(_0x3ebfbd[_0x13f519(0xf6)]+_0x13f519(0x126),{'method':'POST'});}catch{}await this['query'][_0x13f519(0xf1)](),await this[_0x13f519(0x118)](),_0x4b5458[_0x13f519(0xe3)](_0x13f519(0x106));},async 'rebuildStats'(){const _0x1fcd8c=_0x5013c1;try{await fetch(_0x3ebfbd[_0x1fcd8c(0xf6)]+'/queue/stats/rebuild',{'method':_0x1fcd8c(0xbf)}),_0x4b5458['$ok'][_0x1fcd8c(0x115)]?.[_0x1fcd8c(0xca)]?.['success']?.('Stats\x20rebuilt'),await this[_0x1fcd8c(0x118)](),_0x4b5458[_0x1fcd8c(0xe3)](_0x1fcd8c(0x106)),await this[_0x1fcd8c(0xa5)][_0x1fcd8c(0xf1)]();}catch{_0x4b5458[_0x1fcd8c(0xe6)]['shared']?.['toast']?.[_0x1fcd8c(0x113)]?.('Stats\x20rebuild\x20failed');}},async 'openEnqueue'(){const _0x4329f7=_0x5013c1,_0x5381bb=this;await _0x4b5458['$ok'][_0x4329f7(0x115)][_0x4329f7(0xb5)][_0x4329f7(0xd1)]({'owner':_0x4b5458,'title':'Enqueue\x20Job','content':'<enqueue-job-modal\x20:modal=\x22modal\x22\x20:initial-type=\x22initialType\x22\x20:on-done=\x22onDone\x22\x20/>','context':_0xedb295=>({'modal':_0xedb295,'initialType':_0x5381bb[_0x4329f7(0xff)]||'','onDone':async()=>{const _0x28e2bf=_0x4329f7;_0x4b5458[_0x28e2bf(0xe6)]['shared']?.[_0x28e2bf(0xca)]?.[_0x28e2bf(0x107)]?.('Job\x20enqueued'),await _0x5381bb['refresh']();}})});},async 'openEditJob'(_0x3a83ab){const _0x8a56dc=_0x5013c1,_0x4abd44=this;await _0x4b5458[_0x8a56dc(0xe6)]['shared']['modal'][_0x8a56dc(0xd1)]({'owner':_0x4b5458,'title':_0x8a56dc(0xb6)+_0x3a83ab['id'][_0x8a56dc(0xee)](0x0,0x8),'content':_0x8a56dc(0xce),'context':_0x2140f4=>({'modal':_0x2140f4,'jobId':_0x3a83ab['id'],'onDone':async()=>{const _0x29e3e6=_0x8a56dc;await _0x4abd44[_0x29e3e6(0x106)]();}})});},async 'deleteJob'(_0x498ad1){const _0x2520f9=_0x5013c1;if(await _0x4b5458[_0x2520f9(0xe6)][_0x2520f9(0x115)][_0x2520f9(0xb5)]['confirm'](_0x2520f9(0x101)+_0x498ad1['id'][_0x2520f9(0xee)](0x0,0x8)+_0x2520f9(0xfe))){_0x498ad1[_0x2520f9(0xb1)]=!0x0;try{if(!(await fetch(_0x3ebfbd[_0x2520f9(0xf6)]+_0x2520f9(0xc1)+_0x498ad1['id']+_0x2520f9(0xbc),{'method':'POST'}))['ok'])throw new Error('remove\x20failed');const _0x3592ef=this[_0x2520f9(0xa5)][_0x2520f9(0xc4)][_0x2520f9(0xaf)](_0x498ad1);_0x3592ef>=0x0&&this[_0x2520f9(0xa5)][_0x2520f9(0xc4)]['splice'](_0x3592ef,0x1),_0x4b5458['$ok'][_0x2520f9(0x115)][_0x2520f9(0xca)]?.['info'](_0x2520f9(0xea)+_0x498ad1['id'][_0x2520f9(0xee)](0x0,0x8)),_0x4b5458[_0x2520f9(0xe3)](_0x2520f9(0x106)),this[_0x2520f9(0x125)]();}catch{_0x4b5458[_0x2520f9(0xe6)]['shared'][_0x2520f9(0xca)]?.[_0x2520f9(0x113)](_0x2520f9(0xc0));}finally{_0x498ad1['_busy']=!0x1;}}},async 'cancelJob'(_0x5bd670){const _0x46615d=_0x5013c1;if(await _0x4b5458[_0x46615d(0xe6)][_0x46615d(0x115)]['modal'][_0x46615d(0xbd)](_0x46615d(0xd5)+_0x5bd670['id'][_0x46615d(0xee)](0x0,0x8)+_0x46615d(0xfe))){_0x5bd670[_0x46615d(0xb1)]=!0x0;try{if(!(await fetch(_0x3ebfbd[_0x46615d(0xf6)]+_0x46615d(0xc1)+_0x5bd670['id']+_0x46615d(0xd3),{'method':_0x46615d(0xbf)}))['ok'])throw new Error(_0x46615d(0xbb));_0x4b5458[_0x46615d(0xe6)][_0x46615d(0x115)][_0x46615d(0xca)]?.[_0x46615d(0xdd)](_0x46615d(0xd9)+_0x5bd670['id']['slice'](0x0,0x8)),await this[_0x46615d(0x106)]();}catch{_0x4b5458[_0x46615d(0xe6)][_0x46615d(0x115)]['toast']?.['error'](_0x46615d(0xcf));}finally{_0x5bd670[_0x46615d(0xb1)]=!0x1;}}},async 'retryJob'(_0x2f99ed){const _0x15aecb=_0x5013c1;if(await _0x4b5458[_0x15aecb(0xe6)][_0x15aecb(0x115)][_0x15aecb(0xb5)][_0x15aecb(0xbd)](_0x15aecb(0x100)+_0x2f99ed['id'][_0x15aecb(0xee)](0x0,0x8)+_0x15aecb(0xfe))){_0x2f99ed[_0x15aecb(0xb1)]=!0x0;try{const _0x5435ce=await fetch(_0x3ebfbd[_0x15aecb(0xf6)]+'/queue/job/'+_0x2f99ed['id']+'/retry',{'method':_0x15aecb(0xbf)}),_0x4fe620=await _0x5435ce[_0x15aecb(0x109)]();if(!_0x5435ce['ok'])throw new Error(_0x4fe620?.['error']?.['message']||_0x15aecb(0xfd));_0x4b5458[_0x15aecb(0xe6)]['shared'][_0x15aecb(0xca)]?.[_0x15aecb(0x107)](_0x15aecb(0x104)+_0x2f99ed['id']['slice'](0x0,0x8)),await this[_0x15aecb(0x106)]();}catch(_0x5849dc){_0x4b5458[_0x15aecb(0xe6)][_0x15aecb(0x115)][_0x15aecb(0xca)]?.['error'](_0x15aecb(0xed)+(_0x5849dc?.[_0x15aecb(0x110)]||_0x5849dc));}finally{_0x2f99ed[_0x15aecb(0xb1)]=!0x1;}}},'bulkBusy':!0x1,async 'retryAllFailed'(){const _0x2eee39=_0x5013c1;if(await _0x4b5458[_0x2eee39(0xe6)]['shared']['modal'][_0x2eee39(0xbd)]('Retry\x20all\x20failed\x20jobs'+(this[_0x2eee39(0xff)]?'\x20for\x20type\x20\x22<b>'+this[_0x2eee39(0xff)]+_0x2eee39(0x11b):'')+'?')){this[_0x2eee39(0xaa)]=!0x0;try{const _0x5c08f6={'limit':0x1388};this[_0x2eee39(0xff)]&&(_0x5c08f6[_0x2eee39(0xff)]=this['type']);const _0x1c5ae6=await fetch(_0x3ebfbd[_0x2eee39(0xf6)]+_0x2eee39(0xe4),{'method':_0x2eee39(0xbf),'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x5c08f6)}),_0x400553=await _0x1c5ae6[_0x2eee39(0x109)]();if(!_0x1c5ae6['ok'])throw new Error(_0x400553?.[_0x2eee39(0x113)]?.[_0x2eee39(0x110)]||_0x2eee39(0xa2));_0x4b5458[_0x2eee39(0xe6)][_0x2eee39(0x115)]?.[_0x2eee39(0xca)]?.[_0x2eee39(0x107)]?.(_0x2eee39(0x104)+_0x400553[_0x2eee39(0x102)][_0x2eee39(0xa6)]+_0x2eee39(0xa3)),await this[_0x2eee39(0x106)]();}catch(_0x2fc06e){_0x4b5458[_0x2eee39(0xe6)][_0x2eee39(0x115)]?.[_0x2eee39(0xca)]?.[_0x2eee39(0x113)]?.(_0x2eee39(0xfa)+(_0x2fc06e?.[_0x2eee39(0x110)]||_0x2fc06e));}finally{this['bulkBusy']=!0x1;}}},async 'deleteAllDone'(){const _0x17c1fa=_0x5013c1;if(await _0x4b5458[_0x17c1fa(0xe6)]['shared'][_0x17c1fa(0xb5)]['confirm'](_0x17c1fa(0xa9)+(this[_0x17c1fa(0xff)]?_0x17c1fa(0x114)+this[_0x17c1fa(0xff)]+_0x17c1fa(0x11b):'')+_0x17c1fa(0x11e))){this[_0x17c1fa(0xaa)]=!0x0;try{const _0x2087bf={'limit':0xc350};this[_0x17c1fa(0xff)]&&(_0x2087bf['type']=this[_0x17c1fa(0xff)]);const _0x5ba5f1=await fetch(_0x3ebfbd[_0x17c1fa(0xf6)]+_0x17c1fa(0xc5),{'method':'POST','headers':{'Content-Type':_0x17c1fa(0xc6)},'body':JSON[_0x17c1fa(0x119)](_0x2087bf)}),_0x509b90=await _0x5ba5f1[_0x17c1fa(0x109)]();if(!_0x5ba5f1['ok'])throw new Error(_0x509b90?.[_0x17c1fa(0x113)]?.[_0x17c1fa(0x110)]||'failed');_0x4b5458[_0x17c1fa(0xe6)][_0x17c1fa(0x115)]?.[_0x17c1fa(0xca)]?.[_0x17c1fa(0xdd)]?.(_0x17c1fa(0xf0)+_0x509b90[_0x17c1fa(0x102)][_0x17c1fa(0xef)]+_0x17c1fa(0xd0)),await this[_0x17c1fa(0x106)]();}catch(_0x20ca6c){_0x4b5458[_0x17c1fa(0xe6)][_0x17c1fa(0x115)]?.[_0x17c1fa(0xca)]?.[_0x17c1fa(0x113)]?.(_0x17c1fa(0xf5)+(_0x20ca6c?.[_0x17c1fa(0x110)]||_0x20ca6c));}finally{this[_0x17c1fa(0xaa)]=!0x1;}}},async 'deleteAllFailed'(){const _0x3e31d0=_0x5013c1;if(await _0x4b5458[_0x3e31d0(0xe6)][_0x3e31d0(0x115)][_0x3e31d0(0xb5)]['confirm'](_0x3e31d0(0xe1)+(this[_0x3e31d0(0xff)]?_0x3e31d0(0x114)+this[_0x3e31d0(0xff)]+_0x3e31d0(0x11b):'')+'?<br><br>This\x20cannot\x20be\x20undone.')){this[_0x3e31d0(0xaa)]=!0x0;try{const _0x80ef83={'limit':0xc350};this[_0x3e31d0(0xff)]&&(_0x80ef83[_0x3e31d0(0xff)]=this[_0x3e31d0(0xff)]);const _0x3f21d2=await fetch(_0x3ebfbd[_0x3e31d0(0xf6)]+_0x3e31d0(0x112),{'method':_0x3e31d0(0xbf),'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x80ef83)}),_0x15a26d=await _0x3f21d2['json']();if(!_0x3f21d2['ok'])throw new Error(_0x15a26d?.[_0x3e31d0(0x113)]?.[_0x3e31d0(0x110)]||_0x3e31d0(0xa2));_0x4b5458[_0x3e31d0(0xe6)][_0x3e31d0(0x115)]?.['toast']?.[_0x3e31d0(0xdd)]?.('Cleared\x20'+_0x15a26d['data'][_0x3e31d0(0xef)]+_0x3e31d0(0xa3)),await this['refresh']();}catch(_0x491b1e){_0x4b5458[_0x3e31d0(0xe6)][_0x3e31d0(0x115)]?.[_0x3e31d0(0xca)]?.[_0x3e31d0(0x113)]?.(_0x3e31d0(0xc2)+(_0x491b1e?.[_0x3e31d0(0x110)]||_0x491b1e));}finally{this[_0x3e31d0(0xaa)]=!0x1;}}},async 'clearStuck'(){const _0x4bd46f=_0x5013c1;if(await _0x4b5458[_0x4bd46f(0xe6)][_0x4bd46f(0x115)]['modal'][_0x4bd46f(0xbd)](_0x4bd46f(0xe2)+(this['type']?'\x20for\x20type\x20\x22<b>'+this[_0x4bd46f(0xff)]+'</b>\x22':'')+_0x4bd46f(0x10d))){this[_0x4bd46f(0xaa)]=!0x0;try{const _0x3a32db={'limit':0xc350};this[_0x4bd46f(0xff)]&&(_0x3a32db['type']=this[_0x4bd46f(0xff)]);const _0x1cbf31=await fetch(_0x3ebfbd['apiBase']+'/queue/clearStuck',{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x4bd46f(0x119)](_0x3a32db)}),_0x24745e=await _0x1cbf31[_0x4bd46f(0x109)]();if(!_0x1cbf31['ok'])throw new Error(_0x24745e?.[_0x4bd46f(0x113)]?.['message']||_0x4bd46f(0xa2));_0x4b5458[_0x4bd46f(0xe6)]['shared']?.[_0x4bd46f(0xca)]?.[_0x4bd46f(0xdd)]?.(_0x4bd46f(0xf0)+_0x24745e[_0x4bd46f(0x102)]['deleted']+_0x4bd46f(0xc3)),await this[_0x4bd46f(0x106)]();}catch(_0x4dbabb){_0x4b5458[_0x4bd46f(0xe6)]['shared']?.[_0x4bd46f(0xca)]?.[_0x4bd46f(0x113)]?.(_0x4bd46f(0xf4)+(_0x4dbabb?.[_0x4bd46f(0x110)]||_0x4dbabb));}finally{this[_0x4bd46f(0xaa)]=!0x1;}}},'isStatusOn'(_0x33c682){const _0x499bab=_0x5013c1;return(this[_0x499bab(0x121)]??null)===(_0x33c682??null);},'statusBadgeStyle'(_0x44186f){const _0x20563d=_0x5013c1,_0x1d314a={'pending':'var(--okdb-warning)','running':'var(--okdb-info)','done':_0x20563d(0xae),'failed':_0x20563d(0x10f)}[_0x44186f]||'#9ca3af';return _0x20563d(0x117)+_0x1d314a+_0x20563d(0xec)+_0x1d314a+';';},'formatWhen'(_0x12ccde){const _0x5a29a6=_0x5013c1;if(!_0x12ccde)return'—';const _0xb2369c=_0x12ccde-Date[_0x5a29a6(0xcb)](),_0x49a7a2=Math[_0x5a29a6(0xe0)](_0xb2369c),_0x402ee9=Math[_0x5a29a6(0xf9)](_0x49a7a2/0x3e8);if(_0x402ee9<0x5)return _0xb2369c<=0x0?_0x5a29a6(0xcb):_0x5a29a6(0xab);if(_0x402ee9<0x3c)return _0xb2369c<0x0?_0x402ee9+'s\x20ago':_0x5a29a6(0x10b)+_0x402ee9+'s';const _0x551521=Math[_0x5a29a6(0xf9)](_0x402ee9/0x3c);if(_0x551521<0x3c)return _0xb2369c<0x0?_0x551521+'m\x20ago':'in\x20'+_0x551521+'m';const _0x33d55b=Math['round'](_0x551521/0x3c);if(_0x33d55b<0x18)return _0xb2369c<0x0?_0x33d55b+_0x5a29a6(0xac):_0x5a29a6(0x10b)+_0x33d55b+'h';const _0x5798b1=Math[_0x5a29a6(0xf9)](_0x33d55b/0x18);return _0xb2369c<0x0?_0x5798b1+_0x5a29a6(0x116):_0x5a29a6(0x10b)+_0x5798b1+'d';},'shortId':_0x372b00=>(_0x372b00||'')[_0x5013c1(0xee)](0x0,0x8),'_unsubs':[],'_liveTimer':null,'pendingUpdates':0x0,'_scheduleLiveReload'(){const _0x29437b=_0x5013c1;this[_0x29437b(0x124)]++,clearTimeout(this[_0x29437b(0x11c)]),this[_0x29437b(0x11c)]=setTimeout(async()=>{const _0x3435cb=_0x29437b;await this['query'][_0x3435cb(0xf1)](),await this['loadStats'](),_0x4b5458[_0x3435cb(0xe3)](_0x3435cb(0x106)),this[_0x3435cb(0x124)]=0x0;},0xbb8);}}),async 'init'(_0x79138a){const _0x345b8d=_0x5013c1;this['applyTypeAttr'](),_0x79138a[_0x345b8d(0xcd)](()=>_0x79138a[_0x345b8d(0xf7)][_0x345b8d(0xff)],()=>this['applyTypeAttr']()),_0x79138a[_0x345b8d(0xcd)](()=>_0x79138a[_0x345b8d(0xe6)][_0x345b8d(0x103)]['okdb'][_0x345b8d(0x11f)],()=>{const _0x1573f3=_0x345b8d;this['stats']=null,this[_0x1573f3(0xa5)][_0x1573f3(0xb2)](),Promise[_0x1573f3(0x10a)]([this[_0x1573f3(0xa5)][_0x1573f3(0xf1)](),this[_0x1573f3(0x118)]()]);}),await Promise[_0x345b8d(0x10a)]([this['query'][_0x345b8d(0xf1)](),this[_0x345b8d(0x118)]()]);},'mount'(){const _0x2f8bfc=_0x5013c1,_0x2bce0d=()=>this[_0x2f8bfc(0xcc)]();this[_0x2f8bfc(0xde)]=[_0x3d44de['on'](_0x2f8bfc(0xf3),_0x2bce0d),_0x3d44de['on']('queue:done',_0x2bce0d),_0x3d44de['on'](_0x2f8bfc(0xba),_0x2bce0d),_0x3d44de['on']('queue:retry',_0x2bce0d),_0x3d44de['on'](_0x2f8bfc(0xc9),_0x2bce0d),_0x3d44de['on'](_0x2f8bfc(0xa1),_0x2bce0d)];},'unmount'(){const _0x11b592=_0x5013c1;clearTimeout(this[_0x11b592(0x11c)]),clearTimeout(this['_statsTimer']);for(const _0x278bd9 of this[_0x11b592(0xde)])_0x278bd9();this[_0x11b592(0xde)]=[];},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20height:100%;\x20min-height:0;\x20gap:10px;\x22>\x0a\x0a\x20\x20<!--\x20──\x20Row\x201:\x20Status\x20filters\x20+\x20Enqueue\x20──\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(null)\x22\x20\x20\x20\x20\x20\x20:class=\x22isStatusOn(null)\x20\x20\x20\x20\x20\x20?\x20\x27pill\x20pill--on\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20\x27pill\x27\x22>All<span\x20class=\x22pill-count\x22>{{\x20statusCount(null)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27pending\x27)\x22\x20:class=\x22isStatusOn(\x27pending\x27)\x20?\x20\x27pill\x20pill--on\x20pill--p\x27\x20\x20\x20:\x20\x27pill\x20pill--p\x27\x22>Pending<span\x20class=\x22pill-count\x22>{{\x20statusCount(\x27pending\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27running\x27)\x22\x20:class=\x22isStatusOn(\x27running\x27)\x20?\x20\x27pill\x20pill--on\x20pill--r\x27\x20\x20\x20:\x20\x27pill\x20pill--r\x27\x22>Running<span\x20class=\x22pill-count\x22>{{\x20statusCount(\x27running\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27failed\x27)\x22\x20\x20:class=\x22isStatusOn(\x27failed\x27)\x20\x20?\x20\x27pill\x20pill--on\x20pill--f\x27\x20\x20\x20:\x20\x27pill\x20pill--f\x27\x22>Failed<span\x20\x20class=\x22pill-count\x22>{{\x20statusCount(\x27failed\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27done\x27)\x22\x20\x20\x20\x20:class=\x22isStatusOn(\x27done\x27)\x20\x20\x20\x20?\x20\x27pill\x20pill--on\x20pill--d\x27\x20\x20\x20:\x20\x27pill\x20pill--d\x27\x22>Done<span\x20\x20\x20\x20class=\x22pill-count\x22>{{\x20statusCount(\x27done\x27)\x20}}</span></button>\x0a\x0a\x20\x20\x20\x20<div\x20style=\x22flex:1;\x22></div>\x0a\x0a\x20\x20\x20\x20<select\x20@change=\x22setSort($el.value)\x22\x20:value=\x22sortMode\x22\x20style=\x22font-size:12px;\x22>\x0a\x20\x20\x20\x20\x20\x20<option\x20value=\x22when\x22>Sort:\x20When</option>\x0a\x20\x20\x20\x20\x20\x20<option\x20value=\x22priority\x22>Sort:\x20Priority</option>\x0a\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20<button\x20@click=\x22toggleDirection\x22\x20style=\x22font-size:12px;\x20min-width:32px;\x22\x20title=\x22Toggle\x20sort\x20direction\x22>\x0a\x20\x20\x20\x20\x20\x20{{\x20direction\x20===\x20\x27asc\x27\x20?\x20\x27▲\x27\x20:\x20\x27▼\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<button\x20@click=\x22openEnqueue\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2013%,\x20transparent);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2033%,\x20transparent);\x20color:var(--okdb-accent);\x20font-weight:600;\x20padding:4px\x2014px;\x20font-size:12px;\x20white-space:nowrap;\x22>\x0a\x20\x20\x20\x20\x20\x20+\x20Enqueue\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20──\x20Row\x202:\x20Bulk\x20actions\x20──\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x20padding:5px\x200;\x20border-top:1px\x20solid\x20var(--okdb-app-surface-2);\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface-2);\x22>\x0a\x20\x20\x20\x20<button\x20@click=\x22retryAllFailed()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-warning);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-warning)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Reset\x20all\x20failed\x20jobs\x20back\x20to\x20pending\x22>\x0a\x20\x20\x20\x20\x20\x20↺\x20Retry\x20Failed\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20style=\x22width:1px;\x20height:16px;\x20background:var(--okdb-app-border);\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22deleteAllDone()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-success);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-success)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Delete\x20all\x20done\x20jobs\x20in\x20one\x20index\x20pass\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Done\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22deleteAllFailed()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Permanently\x20delete\x20all\x20failed\x20jobs\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Failed\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22clearStuck()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-app-fg-muted);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-app-fg-muted)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Delete\x20running\x20jobs\x20whose\x20claim\x20TTL\x20has\x20expired\x20(permanently,\x20not\x20re-queued)\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Stuck\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20style=\x22width:1px;\x20height:16px;\x20background:var(--okdb-app-border);\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22rebuildStats\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:11px;\x20opacity:.4;\x20background:transparent;\x20border-color:transparent;\x20padding:3px\x208px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Full\x20scan\x20rebuild\x20of\x20stats\x20counters\x22>\x0a\x20\x20\x20\x20\x20\x20Rebuild\x20Stats\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<if\x20:=\x22pendingUpdates\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-warning);\x20opacity:.8;\x20margin-left:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20⟳\x20{{\x20pendingUpdates\x20}}\x20pending\x0a\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Table\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20position:relative;\x20flex:1;\x20min-height:0;\x22>\x0a\x20\x20\x20\x20<if\x20:=\x22query.busy\x22>\x0a\x20\x20\x20\x20\x20\x20<ok-overlay>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22loader-center\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22loader\x22\x20class=\x22spin\x22\x20style=\x22width:32px;height:32px;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</ok-overlay>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22query.loadError\x20&&\x20!query.busy\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22color:var(--okdb-danger);\x20padding:12px\x2014px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20border-radius:8px;\x20margin-bottom:8px;\x20font-size:13px;\x20display:flex;\x20align-items:center;\x20gap:10px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22flex:1;\x22>{{\x20query.loadError\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.load()\x22\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20padding:3px\x2010px;\x22>Retry</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<ok-table\x20:data=\x22query.values\x22\x20no-scroll\x20style=\x22flex:1;\x20min-height:0;\x20overflow:auto;\x22>\x0a\x20\x20\x20\x20\x20\x20<columns>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x2280px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Status</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20:style=\x22statusBadgeStyle(row.status)\x22>{{\x20row.status\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x221fr\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Type\x20+\x20Metadata</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:2px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>{{\x20row.type\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20gap:4px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.tags\x20&&\x20row.tags.length\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x22>{{\x20row.tags.join(\x27,\x20\x27)\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.progress\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x22>{{\x20row.progress\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.cron\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x20color:var(--okdb-indigo);\x22>cron:\x20{{\x20row.cron\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.idempotency_key\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x20color:#34d399;\x22>key:\x20{{\x20row.idempotency_key\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x22130px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>When</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>{{\x20formatWhen(row.when)\x20}}</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x2270px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Tries</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22row.tries\x20>=\x20row.max_tries\x20&&\x20row.max_tries\x20>\x200\x20?\x20\x27color:var(--okdb-danger);\x27\x20:\x20\x27\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20row.tries\x20}}\x20/\x20{{\x20row.max_tries\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x22180px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Actions</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openEditJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Edit</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22retryJob(row)\x22\x20\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Retry</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.status\x20===\x20\x27pending\x27\x20||\x20row.status\x20===\x20\x27running\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22cancelJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Cancel</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22deleteJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22color:#ff6c6b;\x20font-size:11px;\x22>Delete</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20</columns>\x0a\x0a\x20\x20\x20\x20\x20\x20<expanded\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:10px;\x20font-size:12px;\x20display:flex;\x20flex-direction:column;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.error_stack\x20||\x20row.status_message\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.status_message\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22white-space:pre-wrap;\x20opacity:.9;\x20margin-bottom:6px;\x22>{{\x20row.status_message\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.error_stack\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22white-space:pre-wrap;\x20opacity:.85;\x20max-height:220px;\x20overflow:auto;\x20background:var(--okdb-app-bg-deep);\x20padding:8px;\x20border-radius:4px;\x22>{{\x20row.error_stack\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-wrap:wrap;\x20gap:12px;\x20opacity:.8;\x20font-size:11px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>ID:\x20<b>{{\x20row.id\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Status\x20code:\x20<b>{{\x20row.status_code\x20||\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Max\x20tries:\x20<b>{{\x20row.max_tries\x20??\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Retry\x20delay:\x20<b>{{\x20row.retry_delay\x20??\x200\x20}}ms</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Backoff:\x20<b>{{\x20row.backoff_multiplier\x20??\x201\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Priority:\x20<b>{{\x20row.priority\x20??\x200\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:=\x22row.bucket\x22\x20style=\x22display:inline;\x22>Bucket:\x20<b>{{\x20row.bucket\x20||\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Claim\x20expires:\x20<b>{{\x20formatWhen(row.claim_expires)\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<details\x20style=\x22margin-top:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<summary\x20style=\x22cursor:pointer;\x20opacity:.8;\x20font-size:11px;\x22>Raw\x20job</summary>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22white-space:pre-wrap;\x20opacity:.85;\x20max-height:260px;\x20overflow:auto;\x20margin-top:4px;\x20background:var(--okdb-app-bg-deep);\x20padding:8px;\x20border-radius:4px;\x20font-size:10px;\x22>{{\x20row\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</details>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</expanded>\x0a\x20\x20\x20\x20</ok-table>\x0a\x0a\x20\x20\x20\x20<!--\x20Pagination\x20-->\x0a\x20\x20\x20\x20<div\x20class=\x22ok-pager\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.prevPage()\x22\x20:disabled=\x22!query.hasPrev\x20||\x20query.busy\x22>‹\x20Prev</button>\x0a\x20\x20\x20\x20\x20\x20<span>{{\x20statusCount(status)\x20}}\x20total\x20·\x20{{\x20query.pageSize\x20}}/page</span>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.nextPage()\x22\x20:disabled=\x22!query.hasNext\x20||\x20query.busy\x22>Next\x20›</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','style':_0x5013c1(0x11a)};
|
|
1
|
+
const _0x5ee753=_0x71a9;(function(_0x401920,_0x3814ca){const _0x54eed6=_0x71a9,_0x42940a=_0x401920();while(!![]){try{const _0x2567e5=-parseInt(_0x54eed6(0x9e))/0x1*(-parseInt(_0x54eed6(0x10e))/0x2)+parseInt(_0x54eed6(0xeb))/0x3*(-parseInt(_0x54eed6(0xa4))/0x4)+-parseInt(_0x54eed6(0xb4))/0x5*(-parseInt(_0x54eed6(0xe4))/0x6)+-parseInt(_0x54eed6(0x9d))/0x7*(-parseInt(_0x54eed6(0xc8))/0x8)+-parseInt(_0x54eed6(0xbb))/0x9+parseInt(_0x54eed6(0x109))/0xa*(parseInt(_0x54eed6(0xf9))/0xb)+-parseInt(_0x54eed6(0xf8))/0xc*(-parseInt(_0x54eed6(0xc2))/0xd);if(_0x2567e5===_0x3814ca)break;else _0x42940a['push'](_0x42940a['shift']());}catch(_0x314459){_0x42940a['push'](_0x42940a['shift']());}}}(_0x5c98,0x3b0b9));import _0x2d21db from'@toolkit/elements/ok-icon.ok.js';import _0x1d4b79 from'@toolkit/elements/ok-table.ok.js';function _0x5c98(){const _0x36b057=['3400794IZCdOU','stringify','direction','queue:reconciled','splice','POST','Retried\x20','2301nJsbLI','/queue/clearStuck','loadError','_nextCursor',';\x20border-color:','deleted','3485264nyuqnb','json','$ok','h\x20ago','?<br><br>This\x20cannot\x20be\x20undone.','application/json','_cursors','_statsTimer','Stats\x20rebuilt','?<br><br>Stuck\x20jobs\x20are\x20running\x20jobs\x20whose\x20TTL\x20has\x20expired.\x20They\x20will\x20be\x20permanently\x20deleted,\x20not\x20re-queued.','data','retried','/queue/clearFailed','pendingUpdates','_scheduleStats','error','round','_applySort','_busy','Cancel\x20job\x20<code>','/remove','status','\x20failed\x20jobs','queue:removed','/queue/stats/rebuild','\x20done\x20jobs','</b>\x22','\x20for\x20type\x20\x22<b>','18iCHEgo','_scheduleLiveReload','bulkBusy','/queue/stats','modal','/retry','</code>?','9579OjjczK','success','indexOf','toast','hasNext','when','function','queue:enqueued','shared','_applyFilterAndReload','asc','all','selectedEnv','11712hRTyUN','110jZvqPw','Delete\x20failed','Cancelled\x20','Deleted\x20','resetPaging','loadStats','length','_pageIdx','sortMode','var(--okdb-warning)','failed','apiBase','Retry\x20job\x20<code>','/queue/reconcile','type','result','14870XOoOsy','.pill{display:inline-flex;align-items:center;gap:5px;border:1px\x20solid\x20var(--okdb-app-border);background:var(--okdb-app-surface);padding:4px\x2010px;border-radius:999px;font-size:12px;cursor:pointer;color:var(--okdb-app-fg-muted);transition:border-color\x20.12s,color\x20.12s}.pill:hover{border-color:#3b4754;color:var(--okdb-app-fg)}.pill--on{box-shadow:0\x200\x200\x201px\x20rgba(255,255,255,.07)\x20inset}.pill--p.pill--on{color:var(--okdb-warning);border-color:var(--okdb-warning)}.pill--r.pill--on{color:var(--okdb-info);border-color:var(--okdb-info)}.pill--f.pill--on{color:var(--okdb-danger);border-color:var(--okdb-danger)}.pill--d.pill--on{color:var(--okdb-success);border-color:var(--okdb-success)}.pill-count{font-size:11px;opacity:.65;font-variant-numeric:tabular-nums}.status-badge{display:inline-block;padding:2px\x208px;border-radius:999px;font-size:11px;border:1px\x20solid;white-space:nowrap}','m\x20ago','busy','HTTP\x20','4126dVkVOQ','_liveTimer','sort','slice','var(--okdb-info)','retry\x20failed','/queue/job/','load','query','okdb','info','abs','queue:failed','isArray','Job\x20enqueued','Edit\x20Job\x20','byType','remove\x20failed','7EJhOIt','32GKGRkq','/cancel','$attr','values','hasPrev','\x20stuck\x20jobs','296XcrvGE','Cleared\x20','cursor','desc','open','/queue/clearDone','var(--okdb-danger)','stats','$dispatch','items','in\x20','$watch','Enqueue\x20Job','Clear\x20done\x20failed:\x20','total','refresh','277835IIYDFB','set','byStatus','confirm','message','applyTypeAttr','now'];_0x5c98=function(){return _0x36b057;};return _0x5c98();}import _0x24e586 from'@toolkit/core/ok-overlay.ok.js';import _0x172e96 from'../modals/edit-job-modal.ok.js';function _0x71a9(_0x157fd2,_0x270101){_0x157fd2=_0x157fd2-0x93;const _0x5c9823=_0x5c98();let _0x71a9eb=_0x5c9823[_0x157fd2];return _0x71a9eb;}import _0x49ac0e from'../modals/enqueue-job-modal.ok.js';import _0x10b37b from'../../../stores/events-store.js';import _0x581285 from'../../../stores/okdb-store.js';export default{'tag':'queue-jobs','dependencies':[_0x2d21db,_0x1d4b79,_0x24e586,_0x49ac0e,_0x172e96],'attr':{'type':{}},'context':_0x4235d6=>({'query':function({apiBase:_0x2fca95,pageSize:_0xb13b2c=0x32}){const _0x5b6e18=_0x71a9;return{'busy':!0x1,'values':[],'total':0x0,'hasNext':!0x1,'hasPrev':!0x1,'pageSize':_0xb13b2c,'loadError':null,'type':null,'status':null,'sort':_0x5b6e18(0xf0),'direction':_0x5b6e18(0xf5),'_cursors':[null],'_pageIdx':0x0,'_nextCursor':null,'resetPaging'(){const _0x41d192=_0x5b6e18;this[_0x41d192(0xce)]=[null],this[_0x41d192(0x100)]=0x0,this[_0x41d192(0xc5)]=null,this['hasNext']=!0x1,this[_0x41d192(0xa2)]=!0x1;},async 'load'(){const _0x38d380=_0x5b6e18,_0x48dca2=_0x38d380(0xf1)==typeof _0x2fca95?_0x2fca95():_0x2fca95,_0x37b83d=this[_0x38d380(0xce)][this[_0x38d380(0x100)]];this[_0x38d380(0x10c)]=!0x0,this[_0x38d380(0xc4)]=null;try{const _0x3b88f9=new URLSearchParams({'limit':String(this['pageSize']),'sort':this[_0x38d380(0x110)]??_0x38d380(0xf0),'direction':this[_0x38d380(0xbd)]??_0x38d380(0xf5)});this['type']&&_0x3b88f9[_0x38d380(0xb5)](_0x38d380(0x107),this['type']),this[_0x38d380(0xdd)]&&_0x3b88f9[_0x38d380(0xb5)]('status',this[_0x38d380(0xdd)]),null!=_0x37b83d&&_0x3b88f9[_0x38d380(0xb5)](_0x38d380(0xa6),JSON[_0x38d380(0xbc)](_0x37b83d));const _0x595529=await fetch(_0x48dca2+'/queue/jobs?'+_0x3b88f9),_0x352582=await _0x595529['json']();if(!_0x595529['ok'])throw new Error(_0x352582?.[_0x38d380(0xd7)]?.[_0x38d380(0xb8)]||_0x38d380(0x10d)+_0x595529[_0x38d380(0xdd)]);const _0x56be1b=_0x352582[_0x38d380(0x108)]??_0x352582[_0x38d380(0xd2)]??_0x352582;this[_0x38d380(0xa1)]=Array[_0x38d380(0x98)](_0x56be1b[_0x38d380(0xad)])?_0x56be1b[_0x38d380(0xad)]:Array[_0x38d380(0x98)](_0x56be1b)?_0x56be1b:[],this['_nextCursor']=_0x56be1b[_0x38d380(0xa6)]??null,this[_0x38d380(0xef)]=null!=this[_0x38d380(0xc5)],this[_0x38d380(0xa2)]=this[_0x38d380(0x100)]>0x0;}catch(_0x219330){this[_0x38d380(0xc4)]=_0x219330?.[_0x38d380(0xb8)]||String(_0x219330),this[_0x38d380(0xa1)]=[];}finally{this[_0x38d380(0x10c)]=!0x1;}},async 'nextPage'(){const _0x2ca8fb=_0x5b6e18;this[_0x2ca8fb(0xef)]&&!this['busy']&&(this[_0x2ca8fb(0x100)]+0x1>=this[_0x2ca8fb(0xce)][_0x2ca8fb(0xff)]&&this['_cursors']['push'](this[_0x2ca8fb(0xc5)]),this['_pageIdx']++,await this['load']());},async 'prevPage'(){const _0x4d4c5b=_0x5b6e18;this[_0x4d4c5b(0xa2)]&&!this[_0x4d4c5b(0x10c)]&&(this[_0x4d4c5b(0x100)]--,await this[_0x4d4c5b(0x115)]());}};}({'apiBase':()=>_0x581285['apiBase'],'pageSize':0x32}),'type':null,'status':null,'sortMode':_0x5ee753(0xf0),'direction':_0x5ee753(0xf5),'stats':null,'_statsTimer':null,async 'loadStats'(){const _0x3cd6fd=_0x5ee753;try{const _0x293f65=await fetch(_0x581285[_0x3cd6fd(0x104)]+_0x3cd6fd(0xe7));if(_0x293f65['ok']){const _0x5b0aa1=await _0x293f65[_0x3cd6fd(0xc9)]();this[_0x3cd6fd(0xab)]=_0x5b0aa1['result']??_0x5b0aa1['data']??null;}}catch{}},'_scheduleStats'(){const _0x4790bb=_0x5ee753;clearTimeout(this[_0x4790bb(0xcf)]),this['_statsTimer']=setTimeout(()=>this['loadStats'](),0x190);},'statusCount'(_0x1cc08e){const _0x51b91f=_0x5ee753;if(!this['stats'])return'';const _0x30002d=this[_0x51b91f(0x107)];return _0x1cc08e?_0x30002d?this[_0x51b91f(0xab)][_0x51b91f(0x9b)]?.[_0x30002d]?.[_0x51b91f(0xb6)]?.[_0x1cc08e]??0x0:this[_0x51b91f(0xab)]['byStatus']?.[_0x1cc08e]??0x0:_0x30002d?this[_0x51b91f(0xab)][_0x51b91f(0x9b)]?.[_0x30002d]?.['total']??0x0:this[_0x51b91f(0xab)][_0x51b91f(0xb2)]??0x0;},'applyTypeAttr'(){const _0x5bd03e=_0x5ee753;var _0x5c9904;this[_0x5bd03e(0x107)]=null==(_0x5c9904=_0x4235d6[_0x5bd03e(0xa0)]['type'])||''===_0x5c9904?null:String(_0x5c9904),this[_0x5bd03e(0xf4)]();},'setStatus'(_0x54df7b){const _0x2b07e2=_0x5ee753;this[_0x2b07e2(0xdd)]=null==_0x54df7b||''===_0x54df7b?null:_0x54df7b,this[_0x2b07e2(0xf4)]();},'setSort'(_0x511f97){const _0x18d341=_0x5ee753;this[_0x18d341(0x101)]=_0x511f97,this[_0x18d341(0xd9)](),this[_0x18d341(0x93)]['resetPaging'](),this[_0x18d341(0x93)]['load']();},'toggleDirection'(){const _0x8e18dc=_0x5ee753;this[_0x8e18dc(0xbd)]=_0x8e18dc(0xf5)===this[_0x8e18dc(0xbd)]?_0x8e18dc(0xa7):_0x8e18dc(0xf5),this[_0x8e18dc(0xd9)](),this['query'][_0x8e18dc(0xfd)](),this[_0x8e18dc(0x93)]['load']();},'_applySort'(){const _0x6000fd=_0x5ee753;this[_0x6000fd(0x93)]['sort']=this[_0x6000fd(0x101)],this[_0x6000fd(0x93)][_0x6000fd(0xbd)]=this[_0x6000fd(0xbd)];},'_applyFilterAndReload'(){const _0x1d7c7a=_0x5ee753;this[_0x1d7c7a(0x93)][_0x1d7c7a(0x107)]=this['type'],this[_0x1d7c7a(0x93)]['status']=this[_0x1d7c7a(0xdd)],this[_0x1d7c7a(0xd9)](),this['query']['resetPaging'](),this[_0x1d7c7a(0x93)]['load']();},async 'refresh'(){const _0x2f4ca0=_0x5ee753;clearTimeout(this[_0x2f4ca0(0x10f)]),this[_0x2f4ca0(0xd5)]=0x0;try{await fetch(_0x581285[_0x2f4ca0(0x104)]+_0x2f4ca0(0x106),{'method':'POST'});}catch{}await this['query'][_0x2f4ca0(0x115)](),await this[_0x2f4ca0(0xfe)](),_0x4235d6['$dispatch'](_0x2f4ca0(0xb3));},async 'rebuildStats'(){const _0x5207c7=_0x5ee753;try{await fetch(_0x581285[_0x5207c7(0x104)]+_0x5207c7(0xe0),{'method':_0x5207c7(0xc0)}),_0x4235d6['$ok']['shared']?.[_0x5207c7(0xee)]?.[_0x5207c7(0xec)]?.(_0x5207c7(0xd0)),await this['loadStats'](),_0x4235d6[_0x5207c7(0xac)](_0x5207c7(0xb3)),await this[_0x5207c7(0x93)][_0x5207c7(0x115)]();}catch{_0x4235d6[_0x5207c7(0xca)][_0x5207c7(0xf3)]?.[_0x5207c7(0xee)]?.[_0x5207c7(0xd7)]?.('Stats\x20rebuild\x20failed');}},async 'openEnqueue'(){const _0x437c76=_0x5ee753,_0x3dd134=this;await _0x4235d6['$ok'][_0x437c76(0xf3)]['modal'][_0x437c76(0xa8)]({'owner':_0x4235d6,'title':_0x437c76(0xb0),'content':'<enqueue-job-modal\x20:modal=\x22modal\x22\x20:initial-type=\x22initialType\x22\x20:on-done=\x22onDone\x22\x20/>','context':_0x55f1af=>({'modal':_0x55f1af,'initialType':_0x3dd134['type']||'','onDone':async()=>{const _0xbc1060=_0x437c76;_0x4235d6[_0xbc1060(0xca)][_0xbc1060(0xf3)]?.[_0xbc1060(0xee)]?.[_0xbc1060(0xec)]?.(_0xbc1060(0x99)),await _0x3dd134['refresh']();}})});},async 'openEditJob'(_0x260cda){const _0x2b5103=_0x5ee753,_0x3c130c=this;await _0x4235d6[_0x2b5103(0xca)][_0x2b5103(0xf3)][_0x2b5103(0xe8)][_0x2b5103(0xa8)]({'owner':_0x4235d6,'title':_0x2b5103(0x9a)+_0x260cda['id'][_0x2b5103(0x111)](0x0,0x8),'content':'<edit-job-modal\x20:modal=\x22modal\x22\x20:job-id=\x22jobId\x22\x20:on-done=\x22onDone\x22\x20/>','context':_0x43a473=>({'modal':_0x43a473,'jobId':_0x260cda['id'],'onDone':async()=>{await _0x3c130c['refresh']();}})});},async 'deleteJob'(_0x3633ce){const _0x32abd9=_0x5ee753;if(await _0x4235d6[_0x32abd9(0xca)]['shared'][_0x32abd9(0xe8)][_0x32abd9(0xb7)]('Delete\x20job\x20<code>'+_0x3633ce['id'][_0x32abd9(0x111)](0x0,0x8)+_0x32abd9(0xea))){_0x3633ce['_busy']=!0x0;try{if(!(await fetch(_0x581285[_0x32abd9(0x104)]+_0x32abd9(0x114)+_0x3633ce['id']+_0x32abd9(0xdc),{'method':'POST'}))['ok'])throw new Error(_0x32abd9(0x9c));const _0x1a9a9f=this['query'][_0x32abd9(0xa1)][_0x32abd9(0xed)](_0x3633ce);_0x1a9a9f>=0x0&&this[_0x32abd9(0x93)][_0x32abd9(0xa1)][_0x32abd9(0xbf)](_0x1a9a9f,0x1),_0x4235d6[_0x32abd9(0xca)][_0x32abd9(0xf3)][_0x32abd9(0xee)]?.[_0x32abd9(0x95)](_0x32abd9(0xfc)+_0x3633ce['id']['slice'](0x0,0x8)),_0x4235d6[_0x32abd9(0xac)](_0x32abd9(0xb3)),this[_0x32abd9(0xd6)]();}catch{_0x4235d6['$ok'][_0x32abd9(0xf3)][_0x32abd9(0xee)]?.[_0x32abd9(0xd7)](_0x32abd9(0xfa));}finally{_0x3633ce[_0x32abd9(0xda)]=!0x1;}}},async 'cancelJob'(_0x559b1a){const _0xbb21ab=_0x5ee753;if(await _0x4235d6[_0xbb21ab(0xca)][_0xbb21ab(0xf3)]['modal'][_0xbb21ab(0xb7)](_0xbb21ab(0xdb)+_0x559b1a['id'][_0xbb21ab(0x111)](0x0,0x8)+_0xbb21ab(0xea))){_0x559b1a['_busy']=!0x0;try{if(!(await fetch(_0x581285[_0xbb21ab(0x104)]+_0xbb21ab(0x114)+_0x559b1a['id']+_0xbb21ab(0x9f),{'method':_0xbb21ab(0xc0)}))['ok'])throw new Error('cancel\x20failed');_0x4235d6['$ok'][_0xbb21ab(0xf3)][_0xbb21ab(0xee)]?.[_0xbb21ab(0x95)](_0xbb21ab(0xfb)+_0x559b1a['id']['slice'](0x0,0x8)),await this[_0xbb21ab(0xb3)]();}catch{_0x4235d6[_0xbb21ab(0xca)]['shared'][_0xbb21ab(0xee)]?.[_0xbb21ab(0xd7)]('Cancel\x20failed');}finally{_0x559b1a[_0xbb21ab(0xda)]=!0x1;}}},async 'retryJob'(_0x275cb3){const _0x4de0c5=_0x5ee753;if(await _0x4235d6[_0x4de0c5(0xca)]['shared'][_0x4de0c5(0xe8)][_0x4de0c5(0xb7)](_0x4de0c5(0x105)+_0x275cb3['id'][_0x4de0c5(0x111)](0x0,0x8)+_0x4de0c5(0xea))){_0x275cb3[_0x4de0c5(0xda)]=!0x0;try{const _0x259712=await fetch(_0x581285[_0x4de0c5(0x104)]+_0x4de0c5(0x114)+_0x275cb3['id']+_0x4de0c5(0xe9),{'method':'POST'}),_0x312606=await _0x259712['json']();if(!_0x259712['ok'])throw new Error(_0x312606?.['error']?.[_0x4de0c5(0xb8)]||_0x4de0c5(0x113));_0x4235d6[_0x4de0c5(0xca)][_0x4de0c5(0xf3)][_0x4de0c5(0xee)]?.['success'](_0x4de0c5(0xc1)+_0x275cb3['id'][_0x4de0c5(0x111)](0x0,0x8)),await this['refresh']();}catch(_0x3e39ab){_0x4235d6[_0x4de0c5(0xca)]['shared'][_0x4de0c5(0xee)]?.['error']('Retry\x20failed:\x20'+(_0x3e39ab?.[_0x4de0c5(0xb8)]||_0x3e39ab));}finally{_0x275cb3['_busy']=!0x1;}}},'bulkBusy':!0x1,async 'retryAllFailed'(){const _0x586904=_0x5ee753;if(await _0x4235d6[_0x586904(0xca)][_0x586904(0xf3)]['modal'][_0x586904(0xb7)]('Retry\x20all\x20failed\x20jobs'+(this['type']?'\x20for\x20type\x20\x22<b>'+this['type']+'</b>\x22':'')+'?')){this[_0x586904(0xe6)]=!0x0;try{const _0x344908={'limit':0x1388};this[_0x586904(0x107)]&&(_0x344908[_0x586904(0x107)]=this[_0x586904(0x107)]);const _0x2c6a9e=await fetch(_0x581285['apiBase']+'/queue/retryFailed',{'method':_0x586904(0xc0),'headers':{'Content-Type':'application/json'},'body':JSON['stringify'](_0x344908)}),_0x338912=await _0x2c6a9e['json']();if(!_0x2c6a9e['ok'])throw new Error(_0x338912?.['error']?.['message']||'failed');_0x4235d6[_0x586904(0xca)]['shared']?.[_0x586904(0xee)]?.[_0x586904(0xec)]?.(_0x586904(0xc1)+_0x338912[_0x586904(0xd2)][_0x586904(0xd3)]+_0x586904(0xde)),await this['refresh']();}catch(_0x4d4b7b){_0x4235d6[_0x586904(0xca)]['shared']?.[_0x586904(0xee)]?.[_0x586904(0xd7)]?.('Bulk\x20retry\x20failed:\x20'+(_0x4d4b7b?.[_0x586904(0xb8)]||_0x4d4b7b));}finally{this[_0x586904(0xe6)]=!0x1;}}},async 'deleteAllDone'(){const _0x5bc9e5=_0x5ee753;if(await _0x4235d6['$ok'][_0x5bc9e5(0xf3)][_0x5bc9e5(0xe8)]['confirm']('Clear\x20all\x20\x22done\x22\x20jobs'+(this[_0x5bc9e5(0x107)]?_0x5bc9e5(0xe3)+this[_0x5bc9e5(0x107)]+_0x5bc9e5(0xe2):'')+_0x5bc9e5(0xcc))){this[_0x5bc9e5(0xe6)]=!0x0;try{const _0x556cf3={'limit':0xc350};this['type']&&(_0x556cf3[_0x5bc9e5(0x107)]=this[_0x5bc9e5(0x107)]);const _0x2893a1=await fetch(_0x581285[_0x5bc9e5(0x104)]+_0x5bc9e5(0xa9),{'method':_0x5bc9e5(0xc0),'headers':{'Content-Type':'application/json'},'body':JSON[_0x5bc9e5(0xbc)](_0x556cf3)}),_0x1a070d=await _0x2893a1[_0x5bc9e5(0xc9)]();if(!_0x2893a1['ok'])throw new Error(_0x1a070d?.[_0x5bc9e5(0xd7)]?.['message']||'failed');_0x4235d6[_0x5bc9e5(0xca)][_0x5bc9e5(0xf3)]?.[_0x5bc9e5(0xee)]?.[_0x5bc9e5(0x95)]?.(_0x5bc9e5(0xa5)+_0x1a070d[_0x5bc9e5(0xd2)][_0x5bc9e5(0xc7)]+_0x5bc9e5(0xe1)),await this[_0x5bc9e5(0xb3)]();}catch(_0x4c012a){_0x4235d6['$ok'][_0x5bc9e5(0xf3)]?.[_0x5bc9e5(0xee)]?.[_0x5bc9e5(0xd7)]?.(_0x5bc9e5(0xb1)+(_0x4c012a?.[_0x5bc9e5(0xb8)]||_0x4c012a));}finally{this[_0x5bc9e5(0xe6)]=!0x1;}}},async 'deleteAllFailed'(){const _0x34fa47=_0x5ee753;if(await _0x4235d6[_0x34fa47(0xca)][_0x34fa47(0xf3)]['modal'][_0x34fa47(0xb7)]('Delete\x20all\x20\x22failed\x22\x20jobs'+(this[_0x34fa47(0x107)]?_0x34fa47(0xe3)+this[_0x34fa47(0x107)]+_0x34fa47(0xe2):'')+_0x34fa47(0xcc))){this['bulkBusy']=!0x0;try{const _0x5a0cd7={'limit':0xc350};this[_0x34fa47(0x107)]&&(_0x5a0cd7[_0x34fa47(0x107)]=this['type']);const _0x41e582=await fetch(_0x581285['apiBase']+_0x34fa47(0xd4),{'method':'POST','headers':{'Content-Type':_0x34fa47(0xcd)},'body':JSON['stringify'](_0x5a0cd7)}),_0x29e8c1=await _0x41e582[_0x34fa47(0xc9)]();if(!_0x41e582['ok'])throw new Error(_0x29e8c1?.[_0x34fa47(0xd7)]?.['message']||_0x34fa47(0x103));_0x4235d6[_0x34fa47(0xca)][_0x34fa47(0xf3)]?.[_0x34fa47(0xee)]?.['info']?.(_0x34fa47(0xa5)+_0x29e8c1['data'][_0x34fa47(0xc7)]+_0x34fa47(0xde)),await this['refresh']();}catch(_0x2593aa){_0x4235d6['$ok'][_0x34fa47(0xf3)]?.[_0x34fa47(0xee)]?.[_0x34fa47(0xd7)]?.('Clear\x20failed\x20jobs\x20error:\x20'+(_0x2593aa?.[_0x34fa47(0xb8)]||_0x2593aa));}finally{this[_0x34fa47(0xe6)]=!0x1;}}},async 'clearStuck'(){const _0x43ad94=_0x5ee753;if(await _0x4235d6[_0x43ad94(0xca)][_0x43ad94(0xf3)]['modal']['confirm']('Delete\x20all\x20stuck\x20(expired-claim)\x20running\x20jobs'+(this[_0x43ad94(0x107)]?'\x20for\x20type\x20\x22<b>'+this[_0x43ad94(0x107)]+_0x43ad94(0xe2):'')+_0x43ad94(0xd1))){this[_0x43ad94(0xe6)]=!0x0;try{const _0xf09033={'limit':0xc350};this[_0x43ad94(0x107)]&&(_0xf09033['type']=this[_0x43ad94(0x107)]);const _0x57b4b2=await fetch(_0x581285[_0x43ad94(0x104)]+_0x43ad94(0xc3),{'method':_0x43ad94(0xc0),'headers':{'Content-Type':'application/json'},'body':JSON[_0x43ad94(0xbc)](_0xf09033)}),_0x308888=await _0x57b4b2['json']();if(!_0x57b4b2['ok'])throw new Error(_0x308888?.[_0x43ad94(0xd7)]?.['message']||_0x43ad94(0x103));_0x4235d6[_0x43ad94(0xca)][_0x43ad94(0xf3)]?.[_0x43ad94(0xee)]?.[_0x43ad94(0x95)]?.(_0x43ad94(0xa5)+_0x308888['data'][_0x43ad94(0xc7)]+_0x43ad94(0xa3)),await this[_0x43ad94(0xb3)]();}catch(_0x15afa4){_0x4235d6['$ok'][_0x43ad94(0xf3)]?.[_0x43ad94(0xee)]?.[_0x43ad94(0xd7)]?.('Clear\x20stuck\x20failed:\x20'+(_0x15afa4?.[_0x43ad94(0xb8)]||_0x15afa4));}finally{this[_0x43ad94(0xe6)]=!0x1;}}},'isStatusOn'(_0x2ada47){const _0x17a0db=_0x5ee753;return(this[_0x17a0db(0xdd)]??null)===(_0x2ada47??null);},'statusBadgeStyle'(_0x209f23){const _0xae68ec=_0x5ee753,_0x311261={'pending':_0xae68ec(0x102),'running':_0xae68ec(0x112),'done':'var(--okdb-success)','failed':_0xae68ec(0xaa)}[_0x209f23]||'#9ca3af';return'color:'+_0x311261+_0xae68ec(0xc6)+_0x311261+';';},'formatWhen'(_0x457de8){const _0x2e60ca=_0x5ee753;if(!_0x457de8)return'—';const _0x3ac338=_0x457de8-Date[_0x2e60ca(0xba)](),_0x5ca477=Math[_0x2e60ca(0x96)](_0x3ac338),_0x61e4b0=Math[_0x2e60ca(0xd8)](_0x5ca477/0x3e8);if(_0x61e4b0<0x5)return _0x3ac338<=0x0?_0x2e60ca(0xba):'in\x20a\x20moment';if(_0x61e4b0<0x3c)return _0x3ac338<0x0?_0x61e4b0+'s\x20ago':_0x2e60ca(0xae)+_0x61e4b0+'s';const _0x4e5a7e=Math[_0x2e60ca(0xd8)](_0x61e4b0/0x3c);if(_0x4e5a7e<0x3c)return _0x3ac338<0x0?_0x4e5a7e+_0x2e60ca(0x10b):_0x2e60ca(0xae)+_0x4e5a7e+'m';const _0x1d0944=Math[_0x2e60ca(0xd8)](_0x4e5a7e/0x3c);if(_0x1d0944<0x18)return _0x3ac338<0x0?_0x1d0944+_0x2e60ca(0xcb):_0x2e60ca(0xae)+_0x1d0944+'h';const _0x41342e=Math[_0x2e60ca(0xd8)](_0x1d0944/0x18);return _0x3ac338<0x0?_0x41342e+'d\x20ago':'in\x20'+_0x41342e+'d';},'shortId':_0x55df60=>(_0x55df60||'')[_0x5ee753(0x111)](0x0,0x8),'_unsubs':[],'_liveTimer':null,'pendingUpdates':0x0,'_scheduleLiveReload'(){const _0x15c3fe=_0x5ee753;this[_0x15c3fe(0xd5)]++,clearTimeout(this[_0x15c3fe(0x10f)]),this[_0x15c3fe(0x10f)]=setTimeout(async()=>{const _0x312e6a=_0x15c3fe;await this[_0x312e6a(0x93)][_0x312e6a(0x115)](),await this[_0x312e6a(0xfe)](),_0x4235d6[_0x312e6a(0xac)](_0x312e6a(0xb3)),this[_0x312e6a(0xd5)]=0x0;},0xbb8);}}),async 'init'(_0x3b5bcb){const _0x4abefe=_0x5ee753;this[_0x4abefe(0xb9)](),_0x3b5bcb[_0x4abefe(0xaf)](()=>_0x3b5bcb[_0x4abefe(0xa0)][_0x4abefe(0x107)],()=>this[_0x4abefe(0xb9)]()),_0x3b5bcb[_0x4abefe(0xaf)](()=>_0x3b5bcb['$ok']['stores'][_0x4abefe(0x94)][_0x4abefe(0xf7)],()=>{const _0x3460e1=_0x4abefe;this[_0x3460e1(0xab)]=null,this[_0x3460e1(0x93)][_0x3460e1(0xfd)](),Promise[_0x3460e1(0xf6)]([this[_0x3460e1(0x93)][_0x3460e1(0x115)](),this[_0x3460e1(0xfe)]()]);}),await Promise[_0x4abefe(0xf6)]([this[_0x4abefe(0x93)][_0x4abefe(0x115)](),this[_0x4abefe(0xfe)]()]);},'mount'(){const _0xa9cec3=_0x5ee753,_0x291506=()=>this[_0xa9cec3(0xe5)]();this['_unsubs']=[_0x10b37b['on'](_0xa9cec3(0xf2),_0x291506),_0x10b37b['on']('queue:done',_0x291506),_0x10b37b['on'](_0xa9cec3(0x97),_0x291506),_0x10b37b['on']('queue:retry',_0x291506),_0x10b37b['on'](_0xa9cec3(0xdf),_0x291506),_0x10b37b['on'](_0xa9cec3(0xbe),_0x291506)];},'unmount'(){const _0x12c981=_0x5ee753;clearTimeout(this['_liveTimer']),clearTimeout(this[_0x12c981(0xcf)]);for(const _0x11b52a of this['_unsubs'])_0x11b52a();this['_unsubs']=[];},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20height:100%;\x20min-height:0;\x20gap:10px;\x22>\x0a\x0a\x20\x20<!--\x20──\x20Row\x201:\x20Status\x20filters\x20+\x20Enqueue\x20──\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(null)\x22\x20\x20\x20\x20\x20\x20:class=\x22isStatusOn(null)\x20\x20\x20\x20\x20\x20?\x20\x27pill\x20pill--on\x27\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20\x27pill\x27\x22>All<span\x20class=\x22pill-count\x22>{{\x20statusCount(null)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27pending\x27)\x22\x20:class=\x22isStatusOn(\x27pending\x27)\x20?\x20\x27pill\x20pill--on\x20pill--p\x27\x20\x20\x20:\x20\x27pill\x20pill--p\x27\x22>Pending<span\x20class=\x22pill-count\x22>{{\x20statusCount(\x27pending\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27running\x27)\x22\x20:class=\x22isStatusOn(\x27running\x27)\x20?\x20\x27pill\x20pill--on\x20pill--r\x27\x20\x20\x20:\x20\x27pill\x20pill--r\x27\x22>Running<span\x20class=\x22pill-count\x22>{{\x20statusCount(\x27running\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27failed\x27)\x22\x20\x20:class=\x22isStatusOn(\x27failed\x27)\x20\x20?\x20\x27pill\x20pill--on\x20pill--f\x27\x20\x20\x20:\x20\x27pill\x20pill--f\x27\x22>Failed<span\x20\x20class=\x22pill-count\x22>{{\x20statusCount(\x27failed\x27)\x20}}</span></button>\x0a\x20\x20\x20\x20<button\x20@click=\x22setStatus(\x27done\x27)\x22\x20\x20\x20\x20:class=\x22isStatusOn(\x27done\x27)\x20\x20\x20\x20?\x20\x27pill\x20pill--on\x20pill--d\x27\x20\x20\x20:\x20\x27pill\x20pill--d\x27\x22>Done<span\x20\x20\x20\x20class=\x22pill-count\x22>{{\x20statusCount(\x27done\x27)\x20}}</span></button>\x0a\x0a\x20\x20\x20\x20<div\x20style=\x22flex:1;\x22></div>\x0a\x0a\x20\x20\x20\x20<select\x20@change=\x22setSort($el.value)\x22\x20:value=\x22sortMode\x22\x20style=\x22font-size:12px;\x22>\x0a\x20\x20\x20\x20\x20\x20<option\x20value=\x22when\x22>Sort:\x20When</option>\x0a\x20\x20\x20\x20\x20\x20<option\x20value=\x22priority\x22>Sort:\x20Priority</option>\x0a\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20<button\x20@click=\x22toggleDirection\x22\x20style=\x22font-size:12px;\x20min-width:32px;\x22\x20title=\x22Toggle\x20sort\x20direction\x22>\x0a\x20\x20\x20\x20\x20\x20{{\x20direction\x20===\x20\x27asc\x27\x20?\x20\x27▲\x27\x20:\x20\x27▼\x27\x20}}\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<button\x20@click=\x22openEnqueue\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2013%,\x20transparent);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-accent)\x2033%,\x20transparent);\x20color:var(--okdb-accent);\x20font-weight:600;\x20padding:4px\x2014px;\x20font-size:12px;\x20white-space:nowrap;\x22>\x0a\x20\x20\x20\x20\x20\x20+\x20Enqueue\x0a\x20\x20\x20\x20</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20──\x20Row\x202:\x20Bulk\x20actions\x20──\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20gap:6px;\x20align-items:center;\x20flex-wrap:wrap;\x20padding:5px\x200;\x20border-top:1px\x20solid\x20var(--okdb-app-surface-2);\x20border-bottom:1px\x20solid\x20var(--okdb-app-surface-2);\x22>\x0a\x20\x20\x20\x20<button\x20@click=\x22retryAllFailed()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-warning);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-warning)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Reset\x20all\x20failed\x20jobs\x20back\x20to\x20pending\x22>\x0a\x20\x20\x20\x20\x20\x20↺\x20Retry\x20Failed\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20style=\x22width:1px;\x20height:16px;\x20background:var(--okdb-app-border);\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22deleteAllDone()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-success);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-success)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Delete\x20all\x20done\x20jobs\x20in\x20one\x20index\x20pass\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Done\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22deleteAllFailed()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Permanently\x20delete\x20all\x20failed\x20jobs\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Failed\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<button\x20@click=\x22clearStuck()\x22\x20:disabled=\x22bulkBusy\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:12px;\x20color:var(--okdb-app-fg-muted);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-app-fg-muted)\x2020%,\x20transparent);\x20background:transparent;\x20padding:3px\x2010px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Delete\x20running\x20jobs\x20whose\x20claim\x20TTL\x20has\x20expired\x20(permanently,\x20not\x20re-queued)\x22>\x0a\x20\x20\x20\x20\x20\x20✕\x20Clear\x20Stuck\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<div\x20style=\x22width:1px;\x20height:16px;\x20background:var(--okdb-app-border);\x22></div>\x0a\x20\x20\x20\x20<button\x20@click=\x22rebuildStats\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22font-size:11px;\x20opacity:.4;\x20background:transparent;\x20border-color:transparent;\x20padding:3px\x208px;\x22\x0a\x20\x20\x20\x20\x20\x20title=\x22Full\x20scan\x20rebuild\x20of\x20stats\x20counters\x22>\x0a\x20\x20\x20\x20\x20\x20Rebuild\x20Stats\x0a\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20<if\x20:=\x22pendingUpdates\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:11px;\x20color:var(--okdb-warning);\x20opacity:.8;\x20margin-left:4px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20⟳\x20{{\x20pendingUpdates\x20}}\x20pending\x0a\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Table\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20position:relative;\x20flex:1;\x20min-height:0;\x22>\x0a\x20\x20\x20\x20<if\x20:=\x22query.busy\x22>\x0a\x20\x20\x20\x20\x20\x20<ok-overlay>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22loader-center\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<ok-icon\x20name=\x22loader\x22\x20class=\x22spin\x22\x20style=\x22width:32px;height:32px;\x22></ok-icon>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</ok-overlay>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22query.loadError\x20&&\x20!query.busy\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22color:var(--okdb-danger);\x20padding:12px\x2014px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20border-radius:8px;\x20margin-bottom:8px;\x20font-size:13px;\x20display:flex;\x20align-items:center;\x20gap:10px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22flex:1;\x22>{{\x20query.loadError\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.load()\x22\x20style=\x22font-size:11px;\x20color:var(--okdb-danger);\x20border-color:color-mix(in\x20srgb,\x20var(--okdb-danger)\x2033%,\x20transparent);\x20padding:3px\x2010px;\x22>Retry</button>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</if>\x0a\x0a\x20\x20\x20\x20<ok-table\x20:data=\x22query.values\x22\x20no-scroll\x20style=\x22flex:1;\x20min-height:0;\x20overflow:auto;\x22>\x0a\x20\x20\x20\x20\x20\x20<columns>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x2280px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Status</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22status-badge\x22\x20:style=\x22statusBadgeStyle(row.status)\x22>{{\x20row.status\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x221fr\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Type\x20+\x20Metadata</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:2px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>{{\x20row.type\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20gap:4px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.tags\x20&&\x20row.tags.length\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x22>{{\x20row.tags.join(\x27,\x20\x27)\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.progress\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x22>{{\x20row.progress\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.cron\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x20color:var(--okdb-indigo);\x22>cron:\x20{{\x20row.cron\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.idempotency_key\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:inline-block;\x20font-size:11px;\x20padding:1px\x206px;\x20background:var(--okdb-app-bg-deep);\x20border-radius:3px;\x20opacity:.7;\x20color:#34d399;\x22>key:\x20{{\x20row.idempotency_key\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x22130px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>When</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>{{\x20formatWhen(row.when)\x20}}</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x2270px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Tries</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22row.tries\x20>=\x20row.max_tries\x20&&\x20row.max_tries\x20>\x200\x20?\x20\x27color:var(--okdb-danger);\x27\x20:\x20\x27\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{\x20row.tries\x20}}\x20/\x20{{\x20row.max_tries\x20}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<column\x20width=\x22180px\x22\x20no-resize>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<header>Actions</header>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<cell\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22openEditJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Edit</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22retryJob(row)\x22\x20\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Retry</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.status\x20===\x20\x27pending\x27\x20||\x20row.status\x20===\x20\x27running\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22cancelJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22font-size:11px;\x22>Cancel</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20@click=\x22deleteJob(row)\x22\x20:disabled=\x22row._busy\x22\x20style=\x22color:#ff6c6b;\x20font-size:11px;\x22>Delete</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</cell>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</column>\x0a\x20\x20\x20\x20\x20\x20</columns>\x0a\x0a\x20\x20\x20\x20\x20\x20<expanded\x20let:row>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22padding:10px;\x20font-size:12px;\x20display:flex;\x20flex-direction:column;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.error_stack\x20||\x20row.status_message\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.status_message\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22white-space:pre-wrap;\x20opacity:.9;\x20margin-bottom:6px;\x22>{{\x20row.status_message\x20}}</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22row.error_stack\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22white-space:pre-wrap;\x20opacity:.85;\x20max-height:220px;\x20overflow:auto;\x20background:var(--okdb-app-bg-deep);\x20padding:8px;\x20border-radius:4px;\x22>{{\x20row.error_stack\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20flex-wrap:wrap;\x20gap:12px;\x20opacity:.8;\x20font-size:11px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>ID:\x20<b>{{\x20row.id\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Status\x20code:\x20<b>{{\x20row.status_code\x20||\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Max\x20tries:\x20<b>{{\x20row.max_tries\x20??\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Retry\x20delay:\x20<b>{{\x20row.retry_delay\x20??\x200\x20}}ms</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Backoff:\x20<b>{{\x20row.backoff_multiplier\x20??\x201\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Priority:\x20<b>{{\x20row.priority\x20??\x200\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:=\x22row.bucket\x22\x20style=\x22display:inline;\x22>Bucket:\x20<b>{{\x20row.bucket\x20||\x20\x27—\x27\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span>Claim\x20expires:\x20<b>{{\x20formatWhen(row.claim_expires)\x20}}</b></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<details\x20style=\x22margin-top:6px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<summary\x20style=\x22cursor:pointer;\x20opacity:.8;\x20font-size:11px;\x22>Raw\x20job</summary>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<pre\x20style=\x22white-space:pre-wrap;\x20opacity:.85;\x20max-height:260px;\x20overflow:auto;\x20margin-top:4px;\x20background:var(--okdb-app-bg-deep);\x20padding:8px;\x20border-radius:4px;\x20font-size:10px;\x22>{{\x20row\x20}}</pre>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</details>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</expanded>\x0a\x20\x20\x20\x20</ok-table>\x0a\x0a\x20\x20\x20\x20<!--\x20Pagination\x20-->\x0a\x20\x20\x20\x20<div\x20class=\x22ok-pager\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.prevPage()\x22\x20:disabled=\x22!query.hasPrev\x20||\x20query.busy\x22>‹\x20Prev</button>\x0a\x20\x20\x20\x20\x20\x20<span>{{\x20statusCount(status)\x20}}\x20total\x20·\x20{{\x20query.pageSize\x20}}/page</span>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22query.nextPage()\x22\x20:disabled=\x22!query.hasNext\x20||\x20query.busy\x22>Next\x20›</button>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','style':_0x5ee753(0x10a)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x332d(){const _0x2d8cf2=['length','\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:8px;\x20min-height:0;\x22>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20justify-content:space-between;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-weight:600;\x20font-size:12px;\x20opacity:.7;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x22>Types</div>\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22totalWorkers()\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:10px;\x20padding:1px\x206px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-accent)\x2027%,\x20transparent);\x20color:var(--okdb-accent);\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x207%,\x20transparent);\x22>⚙\x20{{\x20totalWorkers()\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<button\x20@click=\x22load\x22\x20:disabled=\x22busy\x22\x20style=\x22opacity:.6;\x20font-size:11px;\x20padding:2px\x206px;\x22>↻</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20:value=\x22filterText\x22\x0a\x20\x20\x20\x20\x20\x20@input=\x22filterText\x20=\x20$event.target.value\x22\x0a\x20\x20\x20\x20\x20\x20placeholder=\x22Filter\x20types…\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22width:100%;\x20min-width:0;\x20padding:6px\x208px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-strong);\x20font-size:12px;\x22\x0a\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20<if\x20:=\x22filterText\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clearFilter()\x22\x20style=\x22opacity:.7;\x20font-size:11px;\x20padding:5px\x207px;\x22>✕</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Types\x20list\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:3px;\x20overflow:auto;\x20min-height:0;\x20padding-right:4px;\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22selectType(null)\x22\x0a\x20\x20\x20\x20\x20\x20:class=\x22selectedType\x20==\x20null\x20?\x20\x27type-row\x20type-row--on\x27\x20:\x20\x27type-row\x27\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20min-width:0;\x20flex:1;\x20text-align:left;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x22>All\x20types</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22totalWorkers()\x20>\x200\x22><span\x20class=\x22worker-chip\x22>⚙\x20{{\x20totalWorkers()\x20}}</span></if>\x0a\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-size:11px;\x22>{{\x20totalFor(null)\x20}}</span>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<each\x20:of=\x22types\x22\x20let:item=\x22item\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22selectType(item.type)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:class=\x22selectedType\x20===\x20item.type\x20?\x20\x27type-row\x20type-row--on\x27\x20:\x20\x27type-row\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20min-width:0;\x20flex:1;\x20text-align:left;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jtStatusColor(item.type)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27width:6px;height:6px;border-radius:50%;background:\x27\x20+\x20jtStatusColor(item.type)\x20+\x20\x27;flex-shrink:0;\x27\x22\x20:title=\x22jtStatus(item.type)\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x22>{{\x20item.type\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22item.workerCount\x20>\x200\x22><span\x20class=\x22worker-chip\x22>⚙\x20{{\x20item.workerCount\x20}}</span></if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-size:11px;\x22>{{\x20item.total\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</each>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22!busy\x20&&\x20types.length\x20===\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22opacity:.5;\x20font-size:12px;\x20padding:6px\x208px;\x20line-height:1.5;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20{{\x20filterText\x20?\x20\x27No\x20types\x20match\x20this\x20filter.\x27\x20:\x20\x27No\x20queued\x20job\x20types\x20in\x20this\x20environment.\x27\x20}}\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','_reloadTimer','values','slice','catch','$attr','json','typesData','job_type','2uiAbyC','selectedEnv','status','registeredTypes','engine:error','loadFromStats','trim','engine:started','queue:reconciled','/queue/types','types','queue:retry','byStatus','4048UhjrDb','fromEntries','localeCompare','_mergeRegisteredTypes','has','total','result','byType','/engines?type=queue-worker','types\x20failed','25927891KAwcxt','isArray','keys','sort','13635550XcaiCr','532657GAcZUn','config','532XUtjEN','queue-types\x20load\x20error','queue:done','filterText','find','apiBase','queue-types\x20stats\x20fallback\x20error','filter','_unsubs','workerCounts','941164jMUYHJ','includes','busy','queue-types','selectedType','33165KgCLmD','queue:failed','stats\x20failed','26115XsIYKH','toLowerCase','2459769YavDmZ','type','jtStatus','$dispatch','78IxUafj','engine:uninstalled','selectedtype','map','$watch','all','data','/queue/stats','some','load'];_0x332d=function(){return _0x2d8cf2;};return _0x332d();}const _0x5f18da=_0x1e21;(function(_0x140853,_0x3a10c9){const _0x313516=_0x1e21,_0x29897b=_0x140853();while(!![]){try{const _0xb91319=-parseInt(_0x313516(0x15e))/0x1*(-parseInt(_0x313516(0x18c))/0x2)+parseInt(_0x313516(0x174))/0x3+parseInt(_0x313516(0x160))/0x4*(parseInt(_0x313516(0x172))/0x5)+-parseInt(_0x313516(0x178))/0x6*(-parseInt(_0x313516(0x16a))/0x7)+-parseInt(_0x313516(0x199))/0x8*(parseInt(_0x313516(0x16f))/0x9)+parseInt(_0x313516(0x15d))/0xa+-parseInt(_0x313516(0x159))/0xb;if(_0xb91319===_0x3a10c9)break;else _0x29897b['push'](_0x29897b['shift']());}catch(_0x6617bb){_0x29897b['push'](_0x29897b['shift']());}}}(_0x332d,0xe4c13));function _0x1e21(_0x30a59c,_0x2d7c22){_0x30a59c=_0x30a59c-0x153;const _0x332dd0=_0x332d();let _0x1e21dc=_0x332dd0[_0x30a59c];return _0x1e21dc;}import _0x1bd5d0 from'../../../stores/events-store.js';import _0x5defce from'../../../stores/okdb-store.js';const s={'paused':'#f59e0b','draining':'#3b82f6'};export default{'tag':_0x5f18da(0x16d),'attr':{'selectedtype':{}},'context':_0x5b1e27=>({'busy':!0x1,'total':0x0,'typesData':[],'workerCounts':{},'registeredTypes':{},'filterText':'','_unsubs':[],'_reloadTimer':null,'selectedType':null,async 'load'(){const _0x5d0c08=_0x5f18da;this[_0x5d0c08(0x16c)]=!0x0;try{const [_0x479a4b,_0x34924b,_0x8489ce]=await Promise[_0x5d0c08(0x17d)]([fetch(_0x5defce[_0x5d0c08(0x165)]+_0x5d0c08(0x195)),fetch(_0x5defce['apiBase']+_0x5d0c08(0x157))[_0x5d0c08(0x187)](()=>null),fetch(_0x5defce['apiBase']+'/queue/job-types')[_0x5d0c08(0x187)](()=>null)]);if(!_0x479a4b['ok'])throw new Error(_0x5d0c08(0x158));const _0x575b60=await _0x479a4b[_0x5d0c08(0x189)](),_0x187d3a=_0x575b60?.[_0x5d0c08(0x155)]??_0x575b60?.[_0x5d0c08(0x17e)]??null,_0x54f812=_0x34924b?.['ok']?await _0x34924b[_0x5d0c08(0x189)]()[_0x5d0c08(0x187)](()=>({})):null,_0x43e841=_0x54f812?.[_0x5d0c08(0x155)]??_0x54f812?.[_0x5d0c08(0x17e)]??[],_0x44c057={};for(const _0x5a3c3e of _0x43e841){const _0x16f1c5=_0x5a3c3e?.[_0x5d0c08(0x15f)]?.[_0x5d0c08(0x18b)];_0x16f1c5&&(_0x44c057[_0x16f1c5]=(_0x44c057[_0x16f1c5]??0x0)+0x1);}if(this[_0x5d0c08(0x169)]=_0x44c057,_0x8489ce?.['ok']){const _0x1e3c2c=await _0x8489ce[_0x5d0c08(0x189)]()[_0x5d0c08(0x187)](()=>({})),_0x23dfc9=_0x1e3c2c?.['result']??[];this[_0x5d0c08(0x18f)]=Object[_0x5d0c08(0x19a)](_0x23dfc9[_0x5d0c08(0x17b)](_0xc12cc7=>[_0xc12cc7['id'],_0xc12cc7]));}this[_0x5d0c08(0x154)]=_0x187d3a?.[_0x5d0c08(0x154)]??0x0,this[_0x5d0c08(0x18a)]=Array[_0x5d0c08(0x15a)](_0x187d3a?.['types'])?_0x187d3a[_0x5d0c08(0x196)][_0x5d0c08(0x186)]()[_0x5d0c08(0x15c)]((_0x5e1038,_0x78e965)=>String(_0x5e1038?.[_0x5d0c08(0x175)]||'')[_0x5d0c08(0x19b)](String(_0x78e965?.[_0x5d0c08(0x175)]||'')))[_0x5d0c08(0x17b)](_0x5bc269=>({..._0x5bc269,'workerCount':_0x44c057[_0x5bc269?.[_0x5d0c08(0x175)]]??0x0})):[],this[_0x5d0c08(0x18a)][_0x5d0c08(0x182)]||await this[_0x5d0c08(0x191)](),this['_mergeRegisteredTypes'](),this[_0x5d0c08(0x16e)]&&!this['typesData'][_0x5d0c08(0x180)](_0x3ee7d1=>_0x3ee7d1?.[_0x5d0c08(0x175)]===this[_0x5d0c08(0x16e)])&&(this[_0x5d0c08(0x16e)]=null,_0x5b1e27[_0x5d0c08(0x177)](_0x5d0c08(0x175),null));}catch(_0x2f0acd){console['error'](_0x5d0c08(0x161),_0x2f0acd),await this[_0x5d0c08(0x191)](),this[_0x5d0c08(0x19c)]();}finally{this[_0x5d0c08(0x16c)]=!0x1;}},'_mergeRegisteredTypes'(){const _0x6af768=_0x5f18da,_0x14e208=new Set(this['typesData'][_0x6af768(0x17b)](_0x4897d1=>_0x4897d1?.[_0x6af768(0x175)]));for(const _0x38e27b of Object['keys'](this['registeredTypes']))_0x14e208[_0x6af768(0x153)](_0x38e27b)||this['typesData']['push']({'type':_0x38e27b,'total':0x0,'byStatus':{},'workerCount':this[_0x6af768(0x169)][_0x38e27b]??0x0});this[_0x6af768(0x18a)]['sort']((_0x2d6c00,_0x4e34ab)=>String(_0x2d6c00?.[_0x6af768(0x175)]||'')[_0x6af768(0x19b)](String(_0x4e34ab?.['type']||'')));},async 'loadFromStats'(){const _0x3cbd37=_0x5f18da;try{const _0x1ac8a1=await fetch(_0x5defce[_0x3cbd37(0x165)]+_0x3cbd37(0x17f));if(!_0x1ac8a1['ok'])throw new Error(_0x3cbd37(0x171));const _0xd10230=await _0x1ac8a1[_0x3cbd37(0x189)](),_0x3e14cc=_0xd10230?.['result']??_0xd10230?.[_0x3cbd37(0x17e)]??null,_0x122fb1=_0x3e14cc?.[_0x3cbd37(0x156)]||{};this['total']=_0x3e14cc?.[_0x3cbd37(0x154)]??0x0,this['typesData']=Object[_0x3cbd37(0x15b)](_0x122fb1)['sort']((_0xbbea02,_0x35245f)=>_0xbbea02[_0x3cbd37(0x19b)](_0x35245f))[_0x3cbd37(0x17b)](_0x417dc5=>({'type':_0x417dc5,'total':_0x122fb1[_0x417dc5]?.['total']??0x0,'byStatus':_0x122fb1[_0x417dc5]?.[_0x3cbd37(0x198)]||{},'workerCount':this[_0x3cbd37(0x169)]?.[_0x417dc5]??0x0}));}catch(_0x102132){console['error'](_0x3cbd37(0x166),_0x102132),this[_0x3cbd37(0x154)]=0x0,this[_0x3cbd37(0x18a)]=[];}},get 'types'(){const _0x495278=_0x5f18da,_0x122a0b=(this[_0x495278(0x163)]||'')[_0x495278(0x192)]()[_0x495278(0x173)]();return _0x122a0b?this['typesData'][_0x495278(0x167)](_0x246922=>String(_0x246922?.['type']||'')[_0x495278(0x173)]()[_0x495278(0x16b)](_0x122a0b)):this[_0x495278(0x18a)];},'totalFor'(_0x1109ef){const _0x384b44=_0x5f18da;return _0x1109ef?this['typesData'][_0x384b44(0x164)](_0x143712=>_0x143712?.[_0x384b44(0x175)]===_0x1109ef)?.[_0x384b44(0x154)]??0x0:this[_0x384b44(0x154)];},'totalWorkers'(){const _0x556931=_0x5f18da;return Object[_0x556931(0x185)](this[_0x556931(0x169)]||{})['reduce']((_0x1dc02e,_0x59b8a1)=>_0x1dc02e+Number(_0x59b8a1||0x0),0x0);},'jtStatus'(_0x5f0918){const _0xbf63c3=_0x5f18da;return this[_0xbf63c3(0x18f)][_0x5f0918]?.[_0xbf63c3(0x18e)]??null;},'jtStatusColor'(_0x3fa8ae){const _0x1fa046=_0x5f18da;return s[this[_0x1fa046(0x176)](_0x3fa8ae)]??null;},'selectType'(_0x386fb4){const _0x5dc408=_0x5f18da;this[_0x5dc408(0x16e)]=_0x386fb4??null,_0x5b1e27[_0x5dc408(0x177)]('type',this[_0x5dc408(0x16e)]);},async 'refresh'(){await this['load']();},'clearFilter'(){this['filterText']='';},'_scheduleLoad'(){const _0x1f01de=_0x5f18da;clearTimeout(this['_reloadTimer']),this[_0x1f01de(0x184)]=setTimeout(()=>this[_0x1f01de(0x181)](),0x190);}}),async 'mount'(_0x2620b1){const _0x3ff16b=_0x5f18da;await this[_0x3ff16b(0x181)](),this[_0x3ff16b(0x16e)]=_0x2620b1[_0x3ff16b(0x188)][_0x3ff16b(0x17a)]??null;const _0x201673=()=>this['_scheduleLoad']();this[_0x3ff16b(0x168)]=[_0x1bd5d0['on']('queue:enqueued',_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x162),_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x170),_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x197),_0x201673),_0x1bd5d0['on']('queue:removed',_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x194),_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x193),_0x201673),_0x1bd5d0['on']('engine:stopped',_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x190),_0x201673),_0x1bd5d0['on'](_0x3ff16b(0x179),_0x201673)],_0x2620b1[_0x3ff16b(0x17c)](()=>_0x5defce[_0x3ff16b(0x18d)],()=>{const _0xf74b73=_0x3ff16b;this[_0xf74b73(0x154)]=0x0,this[_0xf74b73(0x18a)]=[],this[_0xf74b73(0x163)]='',this[_0xf74b73(0x16e)]=null,_0x2620b1['$dispatch'](_0xf74b73(0x175),null),this[_0xf74b73(0x181)]();}),_0x2620b1['$watch'](()=>_0x2620b1[_0x3ff16b(0x188)]['selectedtype'],_0x4d2c77=>{const _0x3c5039=_0x3ff16b;this[_0x3c5039(0x16e)]=_0x4d2c77??null;});},'unmount'(){const _0x4520fa=_0x5f18da;clearTimeout(this[_0x4520fa(0x184)]);for(const _0x5e0b69 of this[_0x4520fa(0x168)])_0x5e0b69();this[_0x4520fa(0x168)]=[];},'template':_0x5f18da(0x183),'style':'.type-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px\x208px;border-radius:5px;font-size:12px;border:1px\x20solid\x20transparent;background:0\x200;cursor:pointer;width:100%;color:var(--okdb-app-fg-muted);transition:background\x20.12s,border-color\x20.12s,color\x20.12s}.type-row--on,.type-row:hover{background:var(--okdb-app-surface);border-color:var(--okdb-app-border);color:var(--okdb-app-fg)}.type-row--on{border-color:var(--okdb-accent);color:var(--okdb-app-fg-strong)}.worker-chip{display:inline-flex;align-items:center;gap:4px;padding:1px\x206px;border-radius:999px;border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-accent)\x2020%,transparent);color:var(--okdb-accent);background:color-mix(in\x20srgb,var(--okdb-accent)\x205%,transparent);font-size:10px;flex-shrink:0}'};
|
|
1
|
+
const _0x3daca6=_0x364e;(function(_0x51fe1c,_0x5cde71){const _0x537d19=_0x364e,_0x5bdc84=_0x51fe1c();while(!![]){try{const _0x65f0cc=parseInt(_0x537d19(0xcb))/0x1*(-parseInt(_0x537d19(0xe5))/0x2)+parseInt(_0x537d19(0xf4))/0x3+-parseInt(_0x537d19(0xf7))/0x4+-parseInt(_0x537d19(0x10c))/0x5*(-parseInt(_0x537d19(0x10d))/0x6)+parseInt(_0x537d19(0xe8))/0x7*(-parseInt(_0x537d19(0xe7))/0x8)+parseInt(_0x537d19(0xce))/0x9*(-parseInt(_0x537d19(0xf9))/0xa)+parseInt(_0x537d19(0xe2))/0xb*(parseInt(_0x537d19(0xd9))/0xc);if(_0x65f0cc===_0x5cde71)break;else _0x5bdc84['push'](_0x5bdc84['shift']());}catch(_0x1236f0){_0x5bdc84['push'](_0x5bdc84['shift']());}}}(_0x8fa9,0xb6999));function _0x364e(_0x5175df,_0x51fef8){_0x5175df=_0x5175df-0xc1;const _0x8fa906=_0x8fa9();let _0x364e01=_0x8fa906[_0x5175df];return _0x364e01;}import _0x204853 from'../../../stores/events-store.js';import _0x535c46 from'../../../stores/okdb-store.js';const s={'paused':_0x3daca6(0xe3),'draining':_0x3daca6(0xcf)};function _0x8fa9(){const _0x548bd2=['_reloadTimer','total','1250kZpDEp','queue-types\x20stats\x20fallback\x20error','.type-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px\x208px;border-radius:5px;font-size:12px;border:1px\x20solid\x20transparent;background:0\x200;cursor:pointer;width:100%;color:var(--okdb-app-fg-muted);transition:background\x20.12s,border-color\x20.12s,color\x20.12s}.type-row--on,.type-row:hover{background:var(--okdb-app-surface);border-color:var(--okdb-app-border);color:var(--okdb-app-fg)}.type-row--on{border-color:var(--okdb-accent);color:var(--okdb-app-fg-strong)}.worker-chip{display:inline-flex;align-items:center;gap:4px;padding:1px\x206px;border-radius:999px;border:1px\x20solid\x20color-mix(in\x20srgb,var(--okdb-accent)\x2020%,transparent);color:var(--okdb-accent);background:color-mix(in\x20srgb,var(--okdb-accent)\x205%,transparent);font-size:10px;flex-shrink:0}','18vSDZUp','#3b82f6','queue-types\x20load\x20error','selectedType','queue-types','queue:reconciled','engine:uninstalled','job_type','loadFromStats','$attr','find','4672884BWGBvV','filterText','localeCompare','typesData','registeredTypes','load','catch','engine:stopped','keys','66WJUDmH','#f59e0b','queue:done','1890hNQGmY','queue:failed','2791408jrxFiz','7PWJCEd','type','/queue/types','byType','types\x20failed','map','byStatus','workerCounts','apiBase','/queue/stats','values','result','1245084yiJwGs','has','json','2291044AMeRWN','isArray','2614120eGqBLp','queue:retry','/queue/job-types','_unsubs','selectedtype','reduce','all','busy','sort','queue:removed','trim','engine:error','toLowerCase','engine:started','fromEntries','includes','$dispatch','selectedEnv','$watch','10YqnsMp','1866660pEPhWU','error','some','slice','length','data','filter','status','_mergeRegisteredTypes'];_0x8fa9=function(){return _0x548bd2;};return _0x8fa9();}export default{'tag':_0x3daca6(0xd2),'attr':{'selectedtype':{}},'context':_0x409ce8=>({'busy':!0x1,'total':0x0,'typesData':[],'workerCounts':{},'registeredTypes':{},'filterText':'','_unsubs':[],'_reloadTimer':null,'selectedType':null,async 'load'(){const _0x4fc10f=_0x3daca6;this[_0x4fc10f(0x100)]=!0x0;try{const [_0x301db2,_0x2d3fe6,_0x1a72bd]=await Promise[_0x4fc10f(0xff)]([fetch(_0x535c46[_0x4fc10f(0xf0)]+_0x4fc10f(0xea)),fetch(_0x535c46[_0x4fc10f(0xf0)]+'/engines?type=queue-worker')[_0x4fc10f(0xdf)](()=>null),fetch(_0x535c46['apiBase']+_0x4fc10f(0xfb))['catch'](()=>null)]);if(!_0x301db2['ok'])throw new Error(_0x4fc10f(0xec));const _0x1c32f9=await _0x301db2[_0x4fc10f(0xf6)](),_0x298676=_0x1c32f9?.[_0x4fc10f(0xf3)]??_0x1c32f9?.[_0x4fc10f(0xc5)]??null,_0x59ccc2=_0x2d3fe6?.['ok']?await _0x2d3fe6[_0x4fc10f(0xf6)]()[_0x4fc10f(0xdf)](()=>({})):null,_0x44484f=_0x59ccc2?.[_0x4fc10f(0xf3)]??_0x59ccc2?.[_0x4fc10f(0xc5)]??[],_0x23b60d={};for(const _0xf6e2e3 of _0x44484f){const _0x2b3d89=_0xf6e2e3?.['config']?.[_0x4fc10f(0xd5)];_0x2b3d89&&(_0x23b60d[_0x2b3d89]=(_0x23b60d[_0x2b3d89]??0x0)+0x1);}if(this[_0x4fc10f(0xef)]=_0x23b60d,_0x1a72bd?.['ok']){const _0x337a4e=await _0x1a72bd[_0x4fc10f(0xf6)]()[_0x4fc10f(0xdf)](()=>({})),_0x9c0109=_0x337a4e?.[_0x4fc10f(0xf3)]??[];this['registeredTypes']=Object[_0x4fc10f(0x107)](_0x9c0109[_0x4fc10f(0xed)](_0x21ae42=>[_0x21ae42['id'],_0x21ae42]));}this[_0x4fc10f(0xca)]=_0x298676?.['total']??0x0,this[_0x4fc10f(0xdc)]=Array[_0x4fc10f(0xf8)](_0x298676?.['types'])?_0x298676['types'][_0x4fc10f(0xc3)]()[_0x4fc10f(0x101)]((_0x44b394,_0x37537d)=>String(_0x44b394?.['type']||'')[_0x4fc10f(0xdb)](String(_0x37537d?.['type']||'')))[_0x4fc10f(0xed)](_0x21b94d=>({..._0x21b94d,'workerCount':_0x23b60d[_0x21b94d?.[_0x4fc10f(0xe9)]]??0x0})):[],this['typesData'][_0x4fc10f(0xc4)]||await this['loadFromStats'](),this[_0x4fc10f(0xc8)](),this[_0x4fc10f(0xd1)]&&!this[_0x4fc10f(0xdc)][_0x4fc10f(0xc2)](_0x483938=>_0x483938?.['type']===this[_0x4fc10f(0xd1)])&&(this[_0x4fc10f(0xd1)]=null,_0x409ce8[_0x4fc10f(0x109)](_0x4fc10f(0xe9),null));}catch(_0x30ff1d){console[_0x4fc10f(0xc1)](_0x4fc10f(0xd0),_0x30ff1d),await this[_0x4fc10f(0xd6)](),this[_0x4fc10f(0xc8)]();}finally{this[_0x4fc10f(0x100)]=!0x1;}},'_mergeRegisteredTypes'(){const _0x2c75fa=_0x3daca6,_0x46089c=new Set(this[_0x2c75fa(0xdc)][_0x2c75fa(0xed)](_0x1be666=>_0x1be666?.['type']));for(const _0x380c0c of Object[_0x2c75fa(0xe1)](this['registeredTypes']))_0x46089c[_0x2c75fa(0xf5)](_0x380c0c)||this['typesData']['push']({'type':_0x380c0c,'total':0x0,'byStatus':{},'workerCount':this[_0x2c75fa(0xef)][_0x380c0c]??0x0});this['typesData'][_0x2c75fa(0x101)]((_0x4174fa,_0x8783aa)=>String(_0x4174fa?.['type']||'')[_0x2c75fa(0xdb)](String(_0x8783aa?.[_0x2c75fa(0xe9)]||'')));},async 'loadFromStats'(){const _0x430665=_0x3daca6;try{const _0x2d8305=await fetch(_0x535c46[_0x430665(0xf0)]+_0x430665(0xf1));if(!_0x2d8305['ok'])throw new Error('stats\x20failed');const _0x100846=await _0x2d8305['json'](),_0x507e00=_0x100846?.[_0x430665(0xf3)]??_0x100846?.[_0x430665(0xc5)]??null,_0x2772ab=_0x507e00?.[_0x430665(0xeb)]||{};this[_0x430665(0xca)]=_0x507e00?.[_0x430665(0xca)]??0x0,this[_0x430665(0xdc)]=Object['keys'](_0x2772ab)['sort']((_0x1bada5,_0x3aff57)=>_0x1bada5[_0x430665(0xdb)](_0x3aff57))[_0x430665(0xed)](_0x5947b9=>({'type':_0x5947b9,'total':_0x2772ab[_0x5947b9]?.[_0x430665(0xca)]??0x0,'byStatus':_0x2772ab[_0x5947b9]?.[_0x430665(0xee)]||{},'workerCount':this[_0x430665(0xef)]?.[_0x5947b9]??0x0}));}catch(_0x282ca8){console[_0x430665(0xc1)](_0x430665(0xcc),_0x282ca8),this['total']=0x0,this[_0x430665(0xdc)]=[];}},get 'types'(){const _0x1b5a5e=_0x3daca6,_0x2f0e0b=(this[_0x1b5a5e(0xda)]||'')[_0x1b5a5e(0x103)]()[_0x1b5a5e(0x105)]();return _0x2f0e0b?this['typesData'][_0x1b5a5e(0xc6)](_0x5f0c64=>String(_0x5f0c64?.[_0x1b5a5e(0xe9)]||'')['toLowerCase']()[_0x1b5a5e(0x108)](_0x2f0e0b)):this['typesData'];},'totalFor'(_0x1ce82f){const _0x404805=_0x3daca6;return _0x1ce82f?this[_0x404805(0xdc)][_0x404805(0xd8)](_0x11284d=>_0x11284d?.[_0x404805(0xe9)]===_0x1ce82f)?.[_0x404805(0xca)]??0x0:this[_0x404805(0xca)];},'totalWorkers'(){const _0x4e8fbe=_0x3daca6;return Object[_0x4e8fbe(0xf2)](this[_0x4e8fbe(0xef)]||{})[_0x4e8fbe(0xfe)]((_0x3a4493,_0x313096)=>_0x3a4493+Number(_0x313096||0x0),0x0);},'jtStatus'(_0x143380){const _0x267128=_0x3daca6;return this[_0x267128(0xdd)][_0x143380]?.[_0x267128(0xc7)]??null;},'jtStatusColor'(_0x4f2c47){return s[this['jtStatus'](_0x4f2c47)]??null;},'selectType'(_0x2bd6ff){const _0x5eea46=_0x3daca6;this['selectedType']=_0x2bd6ff??null,_0x409ce8[_0x5eea46(0x109)](_0x5eea46(0xe9),this[_0x5eea46(0xd1)]);},async 'refresh'(){const _0x454d84=_0x3daca6;await this[_0x454d84(0xde)]();},'clearFilter'(){this['filterText']='';},'_scheduleLoad'(){const _0x5ec09b=_0x3daca6;clearTimeout(this[_0x5ec09b(0xc9)]),this[_0x5ec09b(0xc9)]=setTimeout(()=>this['load'](),0x190);}}),async 'mount'(_0x54045d){const _0x4fc83e=_0x3daca6;await this['load'](),this['selectedType']=_0x54045d[_0x4fc83e(0xd7)]['selectedtype']??null;const _0x4ec557=()=>this['_scheduleLoad']();this['_unsubs']=[_0x204853['on']('queue:enqueued',_0x4ec557),_0x204853['on'](_0x4fc83e(0xe4),_0x4ec557),_0x204853['on'](_0x4fc83e(0xe6),_0x4ec557),_0x204853['on'](_0x4fc83e(0xfa),_0x4ec557),_0x204853['on'](_0x4fc83e(0x102),_0x4ec557),_0x204853['on'](_0x4fc83e(0xd3),_0x4ec557),_0x204853['on'](_0x4fc83e(0x106),_0x4ec557),_0x204853['on'](_0x4fc83e(0xe0),_0x4ec557),_0x204853['on'](_0x4fc83e(0x104),_0x4ec557),_0x204853['on'](_0x4fc83e(0xd4),_0x4ec557)],_0x54045d['$watch'](()=>_0x535c46[_0x4fc83e(0x10a)],()=>{const _0x3c0a31=_0x4fc83e;this[_0x3c0a31(0xca)]=0x0,this[_0x3c0a31(0xdc)]=[],this[_0x3c0a31(0xda)]='',this['selectedType']=null,_0x54045d[_0x3c0a31(0x109)](_0x3c0a31(0xe9),null),this['load']();}),_0x54045d[_0x4fc83e(0x10b)](()=>_0x54045d[_0x4fc83e(0xd7)][_0x4fc83e(0xfd)],_0x27bf3e=>{const _0x2d9c6b=_0x4fc83e;this[_0x2d9c6b(0xd1)]=_0x27bf3e??null;});},'unmount'(){const _0x52a6c7=_0x3daca6;clearTimeout(this['_reloadTimer']);for(const _0x109727 of this[_0x52a6c7(0xfc)])_0x109727();this[_0x52a6c7(0xfc)]=[];},'template':'\x0a<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:8px;\x20min-height:0;\x22>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20justify-content:space-between;\x20gap:8px;\x22>\x0a\x20\x20\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20flex-wrap:wrap;\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22font-weight:600;\x20font-size:12px;\x20opacity:.7;\x20text-transform:uppercase;\x20letter-spacing:.05em;\x22>Types</div>\x0a\x20\x20\x20\x20\x20\x20<if\x20:=\x22totalWorkers()\x20>\x200\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22font-size:10px;\x20padding:1px\x206px;\x20border-radius:999px;\x20border:1px\x20solid\x20color-mix(in\x20srgb,\x20var(--okdb-accent)\x2027%,\x20transparent);\x20color:var(--okdb-accent);\x20background:color-mix(in\x20srgb,\x20var(--okdb-accent)\x207%,\x20transparent);\x22>⚙\x20{{\x20totalWorkers()\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<button\x20@click=\x22load\x22\x20:disabled=\x22busy\x22\x20style=\x22opacity:.6;\x20font-size:11px;\x20padding:2px\x206px;\x22>↻</button>\x0a\x20\x20</div>\x0a\x0a\x20\x20<div\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x22>\x0a\x20\x20\x20\x20<input\x0a\x20\x20\x20\x20\x20\x20:value=\x22filterText\x22\x0a\x20\x20\x20\x20\x20\x20@input=\x22filterText\x20=\x20$event.target.value\x22\x0a\x20\x20\x20\x20\x20\x20placeholder=\x22Filter\x20types…\x22\x0a\x20\x20\x20\x20\x20\x20style=\x22width:100%;\x20min-width:0;\x20padding:6px\x208px;\x20border-radius:6px;\x20border:1px\x20solid\x20var(--okdb-app-border);\x20background:var(--okdb-app-bg-deep);\x20color:var(--okdb-app-fg-strong);\x20font-size:12px;\x22\x0a\x20\x20\x20\x20/>\x0a\x20\x20\x20\x20<if\x20:=\x22filterText\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x20@click=\x22clearFilter()\x22\x20style=\x22opacity:.7;\x20font-size:11px;\x20padding:5px\x207px;\x22>✕</button>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a\x20\x20<!--\x20Types\x20list\x20-->\x0a\x20\x20<div\x20style=\x22display:flex;\x20flex-direction:column;\x20gap:3px;\x20overflow:auto;\x20min-height:0;\x20padding-right:4px;\x22>\x0a\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20@click=\x22selectType(null)\x22\x0a\x20\x20\x20\x20\x20\x20:class=\x22selectedType\x20==\x20null\x20?\x20\x27type-row\x20type-row--on\x27\x20:\x20\x27type-row\x27\x22>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20min-width:0;\x20flex:1;\x20text-align:left;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x22>All\x20types</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22totalWorkers()\x20>\x200\x22><span\x20class=\x22worker-chip\x22>⚙\x20{{\x20totalWorkers()\x20}}</span></if>\x0a\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-size:11px;\x22>{{\x20totalFor(null)\x20}}</span>\x0a\x20\x20\x20\x20</button>\x0a\x0a\x20\x20\x20\x20<each\x20:of=\x22types\x22\x20let:item=\x22item\x22>\x0a\x20\x20\x20\x20\x20\x20<button\x0a\x20\x20\x20\x20\x20\x20\x20\x20@click=\x22selectType(item.type)\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20:class=\x22selectedType\x20===\x20item.type\x20?\x20\x27type-row\x20type-row--on\x27\x20:\x20\x27type-row\x27\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22display:flex;\x20align-items:center;\x20gap:6px;\x20min-width:0;\x20flex:1;\x20text-align:left;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22jtStatusColor(item.type)\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20:style=\x22\x27width:6px;height:6px;border-radius:50%;background:\x27\x20+\x20jtStatusColor(item.type)\x20+\x20\x27;flex-shrink:0;\x27\x22\x20:title=\x22jtStatus(item.type)\x22></span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22white-space:nowrap;\x20overflow:hidden;\x20text-overflow:ellipsis;\x22>{{\x20item.type\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<if\x20:=\x22item.workerCount\x20>\x200\x22><span\x20class=\x22worker-chip\x22>⚙\x20{{\x20item.workerCount\x20}}</span></if>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20style=\x22opacity:.55;\x20font-size:11px;\x22>{{\x20item.total\x20}}</span>\x0a\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20</each>\x0a\x0a\x20\x20\x20\x20<if\x20:=\x22!busy\x20&&\x20types.length\x20===\x200\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20style=\x22opacity:.5;\x20font-size:12px;\x20padding:6px\x208px;\x20line-height:1.5;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20{{\x20filterText\x20?\x20\x27No\x20types\x20match\x20this\x20filter.\x27\x20:\x20\x27No\x20queued\x20job\x20types\x20in\x20this\x20environment.\x27\x20}}\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</if>\x0a\x20\x20</div>\x0a\x0a</div>\x0a','style':_0x3daca6(0xcd)};
|