@64mb/freelens-power 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -33
- package/THIRD_PARTY_LICENSES +74 -0
- package/out/main/_virtual/_rolldown/runtime.js +25 -0
- package/out/main/ai-answer-stream.js +96 -0
- package/out/main/ai-answer-stream.js.map +1 -0
- package/out/main/ai-api-key.js +95 -0
- package/out/main/ai-api-key.js.map +1 -0
- package/out/main/ai-codex-api.js +611 -0
- package/out/main/ai-codex-api.js.map +1 -0
- package/out/main/ai-ipc.js +42 -11
- package/out/main/ai-ipc.js.map +1 -1
- package/out/main/ai-logs.js +4 -3
- package/out/main/ai-logs.js.map +1 -1
- package/out/main/ai-models.js +23 -11
- package/out/main/ai-models.js.map +1 -1
- package/out/main/ai-pi-models.js +73 -0
- package/out/main/ai-pi-models.js.map +1 -0
- package/out/main/ai-pi.js +411 -0
- package/out/main/ai-pi.js.map +1 -0
- package/out/main/ai-references.js +1 -1
- package/out/main/ai-resources.js +166 -220
- package/out/main/ai-resources.js.map +1 -1
- package/out/main/ai.js +303 -142
- package/out/main/ai.js.map +1 -1
- package/out/main/cluster-icons-catalog.js +1 -1
- package/out/main/cluster-icons.js +4 -4
- package/out/main/dashboard-ai.js +29 -0
- package/out/main/dashboard-ai.js.map +1 -0
- package/out/main/dashboard-catalog.js +1 -1
- package/out/main/dashboard-picker.js +3 -3
- package/out/main/dashboard-views.js +102 -10
- package/out/main/dashboard-views.js.map +1 -1
- package/out/main/diagnostics-menu-order.js +1 -1
- package/out/main/dock-icon.js +1 -1
- package/out/main/extension-updates.js +151 -0
- package/out/main/extension-updates.js.map +1 -0
- package/out/main/helm-installed-chart.js +141 -0
- package/out/main/helm-installed-chart.js.map +1 -0
- package/out/main/helm-ipc.js +748 -0
- package/out/main/helm-ipc.js.map +1 -0
- package/out/main/helm-values.js +45 -0
- package/out/main/helm-values.js.map +1 -0
- package/out/main/helm.js +283 -0
- package/out/main/helm.js.map +1 -0
- package/out/main/index.js +20 -12
- package/out/main/index.js.map +1 -1
- package/out/main/monitoring-history.js +2 -2
- package/out/main/node-bulk.js +260 -0
- package/out/main/node-bulk.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js +99 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js +32 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js +242 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js +154 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js +60 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js +346 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js +479 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js +508 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js +127 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js +50 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js +201 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js +401 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js +1007 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js.map +1 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js +23 -0
- package/out/main/node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js +69 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js +56 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js +73 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js +214 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js +100 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js +187 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js +55 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js +47 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js +173 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js +218 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js +116 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js +38 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js +36 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js +23 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js +23 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js +302 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js +79 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js +49 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js +76 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js +177 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js +62 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js +74 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js +23 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js +111 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js +134 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js +47 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js +47 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js +40 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js +125 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js +122 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js +66 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js +59 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js +48 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js +281 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js +60 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js +100 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js +92 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js +542 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js +56 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js +875 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js +104 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js +43 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js +29 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js +26 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js +29 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js +26 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js +30 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js +53 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js +52 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js +41 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js +75 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js +110 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js +68 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js +38 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js +56 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js +86 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js +55 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js +78 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +74 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js +63 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js +81 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +94 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js +125 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js +122 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js +131 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js +29 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js +74 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js +30 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js +111 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js +236 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js.map +1 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js +201 -0
- package/out/main/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js.map +1 -0
- package/out/main/package.js +6 -0
- package/out/main/package.js.map +1 -0
- package/out/main/power-logs-budget.js +1 -1
- package/out/main/power-logs-child.js +5 -4
- package/out/main/power-logs-child.js.map +1 -1
- package/out/main/power-logs-database.js +214 -8
- package/out/main/power-logs-database.js.map +1 -1
- package/out/main/power-logs-ipc.js +56 -7
- package/out/main/power-logs-ipc.js.map +1 -1
- package/out/main/power-logs-query-child.js +1 -1
- package/out/main/power-logs-query.js +6 -4
- package/out/main/power-logs-query.js.map +1 -1
- package/out/main/power-logs-worker.js +31 -9
- package/out/main/power-logs-worker.js.map +1 -1
- package/out/main/resource-search-database.js +9 -3
- package/out/main/resource-search-database.js.map +1 -1
- package/out/main/resource-search-worker.js +6 -2
- package/out/main/resource-search-worker.js.map +1 -1
- package/out/main/resource-search.js +4 -3
- package/out/main/resource-search.js.map +1 -1
- package/out/main/settings-export.js +3 -3
- package/out/main/settings-import.js +3 -3
- package/out/main/splash-accent.js +1 -1
- package/out/main/src/common/ai-attachments.js +36 -0
- package/out/main/src/common/ai-attachments.js.map +1 -0
- package/out/main/src/common/ai-extras.js.map +1 -0
- package/out/main/src/common/ai-models.js +81 -0
- package/out/main/src/common/ai-models.js.map +1 -0
- package/out/main/src/common/ai-prompts.js +46 -0
- package/out/main/src/common/ai-prompts.js.map +1 -0
- package/out/main/src/common/ai-resource-payload.js +308 -0
- package/out/main/src/common/ai-resource-payload.js.map +1 -0
- package/out/main/src/common/ai-shortcuts.js.map +1 -0
- package/out/main/src/common/ai-terminal-context.js +72 -0
- package/out/main/src/common/ai-terminal-context.js.map +1 -0
- package/out/main/{common → src/common}/ai.js +6 -0
- package/out/main/src/common/ai.js.map +1 -0
- package/out/main/src/common/cluster-icon-ipc.js.map +1 -0
- package/out/main/src/common/cluster-icons.js.map +1 -0
- package/out/main/src/common/dashboard-ai.js +64 -0
- package/out/main/src/common/dashboard-ai.js.map +1 -0
- package/out/main/src/common/dashboard-picker.js.map +1 -0
- package/out/main/src/common/dashboard-readiness.js.map +1 -0
- package/out/main/src/common/dashboard-selector.js.map +1 -0
- package/out/main/src/common/dashboard-views.js.map +1 -0
- package/out/main/src/common/dashboard.js.map +1 -0
- package/out/main/src/common/extension-info.js.map +1 -0
- package/out/main/src/common/extension-updates.js +13 -0
- package/out/main/src/common/extension-updates.js.map +1 -0
- package/out/main/src/common/helm-values-validation.js +56 -0
- package/out/main/src/common/helm-values-validation.js.map +1 -0
- package/out/main/src/common/helm.js +8 -0
- package/out/main/src/common/helm.js.map +1 -0
- package/out/main/src/common/monitoring-history.js.map +1 -0
- package/out/main/src/common/node-bulk.js +6 -0
- package/out/main/src/common/node-bulk.js.map +1 -0
- package/out/main/src/common/power-logs-limits.js.map +1 -0
- package/out/main/{common → src/common}/power-logs.js +6 -0
- package/out/main/src/common/power-logs.js.map +1 -0
- package/out/main/src/common/resource-search-kind-priority.js +23 -0
- package/out/main/src/common/resource-search-kind-priority.js.map +1 -0
- package/out/main/src/common/resource-search.js.map +1 -0
- package/out/main/src/common/settings-export.js.map +1 -0
- package/out/main/{common → src/common}/store/ai-preferences-store.js +50 -8
- package/out/main/src/common/store/ai-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/ai-shortcuts-store.js +2 -2
- package/out/main/src/common/store/ai-shortcuts-store.js.map +1 -0
- package/out/main/{common → src/common}/store/appearance-preferences-store.js +10 -5
- package/out/main/src/common/store/appearance-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/cluster-icons-store.js +2 -2
- package/out/main/src/common/store/cluster-icons-store.js.map +1 -0
- package/out/main/{common → src/common}/store/dashboard-preferences-store.js +2 -2
- package/out/main/src/common/store/dashboard-preferences-store.js.map +1 -0
- package/out/main/src/common/store/helm-preferences-store.js +26 -0
- package/out/main/src/common/store/helm-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/logs-preferences-store.js +7 -2
- package/out/main/src/common/store/logs-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/monitoring-preferences-store.js +2 -2
- package/out/main/src/common/store/monitoring-preferences-store.js.map +1 -0
- package/out/main/src/common/store/node-shell-preferences-store.js +44 -0
- package/out/main/src/common/store/node-shell-preferences-store.js.map +1 -0
- package/out/main/src/common/store/power-preferences-store.js +39 -0
- package/out/main/src/common/store/power-preferences-store.js.map +1 -0
- package/out/main/{common → src/common}/store/read-only-preferences-store.js +2 -2
- package/out/main/src/common/store/read-only-preferences-store.js.map +1 -0
- package/out/renderer/_virtual/_global-external_mobx.js +4 -2
- package/out/renderer/_virtual/_global-external_react-dom.js +4 -2
- package/out/renderer/_virtual/_global-external_react.js +4 -2
- package/out/renderer/ai-attachment-card.js +92 -0
- package/out/renderer/ai-attachment-card.js.map +1 -0
- package/out/renderer/ai-context-mutations.js +14 -0
- package/out/renderer/ai-context-mutations.js.map +1 -0
- package/out/renderer/ai-copy-answer.js +18 -15
- package/out/renderer/ai-copy-answer.js.map +1 -1
- package/out/renderer/ai-diagnostic-handoff.js +5 -2
- package/out/renderer/ai-diagnostic-handoff.js.map +1 -1
- package/out/renderer/ai-extras.js +95 -85
- package/out/renderer/ai-extras.js.map +1 -1
- package/out/renderer/ai-icon.js +26 -0
- package/out/renderer/ai-icon.js.map +1 -1
- package/out/renderer/ai-logs-sql.js +1 -0
- package/out/renderer/ai-logs-sql.js.map +1 -1
- package/out/renderer/ai-message.js +58 -41
- package/out/renderer/ai-message.js.map +1 -1
- package/out/renderer/ai-provider-icon.js +77 -32
- package/out/renderer/ai-provider-icon.js.map +1 -1
- package/out/renderer/ai-resize.js +40 -37
- package/out/renderer/ai-resize.js.map +1 -1
- package/out/renderer/ai-shortcuts.js +21 -17
- package/out/renderer/ai-shortcuts.js.map +1 -1
- package/out/renderer/ai-terminal-context.js +54 -81
- package/out/renderer/ai-terminal-context.js.map +1 -1
- package/out/renderer/ai.js +530 -172
- package/out/renderer/ai.js.map +1 -1
- package/out/renderer/appearance.js +59 -5
- package/out/renderer/appearance.js.map +1 -1
- package/out/renderer/assets/openai.js +6 -0
- package/out/renderer/assets/openai.js.map +1 -0
- package/out/renderer/assets/pi.js +6 -0
- package/out/renderer/assets/pi.js.map +1 -0
- package/out/renderer/button-styles.js +31 -2
- package/out/renderer/button-styles.js.map +1 -1
- package/out/renderer/cluster-icon-colors.js +10 -7
- package/out/renderer/cluster-icon-colors.js.map +1 -1
- package/out/renderer/cluster-icons.js +47 -40
- package/out/renderer/cluster-icons.js.map +1 -1
- package/out/renderer/dashboard.js +75 -14
- package/out/renderer/dashboard.js.map +1 -1
- package/out/renderer/details/resource-health-details.js +2 -2
- package/out/renderer/details/resource-health-details.js.map +1 -1
- package/out/renderer/details/service-diagnostics-details.js +25 -23
- package/out/renderer/details/service-diagnostics-details.js.map +1 -1
- package/out/renderer/diagnostic-explain-button.js +7 -4
- package/out/renderer/diagnostic-explain-button.js.map +1 -1
- package/out/renderer/diagnostics-screen-finding.js +52 -0
- package/out/renderer/diagnostics-screen-finding.js.map +1 -0
- package/out/renderer/diagnostics-state.js +37 -0
- package/out/renderer/diagnostics-state.js.map +1 -1
- package/out/renderer/diagnostics.css.js +17 -4
- package/out/renderer/diagnostics.css.js.map +1 -1
- package/out/renderer/diagnostics.js +457 -189
- package/out/renderer/diagnostics.js.map +1 -1
- package/out/renderer/extension-update-notifications.js +221 -0
- package/out/renderer/extension-update-notifications.js.map +1 -0
- package/out/renderer/extension-update.js +189 -0
- package/out/renderer/extension-update.js.map +1 -0
- package/out/renderer/floating-action-transitions.js +139 -0
- package/out/renderer/floating-action-transitions.js.map +1 -0
- package/out/renderer/helm-app-version.js +141 -0
- package/out/renderer/helm-app-version.js.map +1 -0
- package/out/renderer/helm-code-view.js +727 -0
- package/out/renderer/helm-code-view.js.map +1 -0
- package/out/renderer/helm-entrypoints.js +79 -0
- package/out/renderer/helm-entrypoints.js.map +1 -0
- package/out/renderer/helm-full-comparison.js +233 -0
- package/out/renderer/helm-full-comparison.js.map +1 -0
- package/out/renderer/helm-operations.js +541 -0
- package/out/renderer/helm-operations.js.map +1 -0
- package/out/renderer/helm-release-actions.js +296 -0
- package/out/renderer/helm-release-actions.js.map +1 -0
- package/out/renderer/helm-revision-delete.js +128 -0
- package/out/renderer/helm-revision-delete.js.map +1 -0
- package/out/renderer/helm-version-index.js +283 -0
- package/out/renderer/helm-version-index.js.map +1 -0
- package/out/renderer/helm.js +2383 -0
- package/out/renderer/helm.js.map +1 -0
- package/out/renderer/host-extensions.js +102 -0
- package/out/renderer/host-extensions.js.map +1 -0
- package/out/renderer/host-layout.js +59 -0
- package/out/renderer/host-layout.js.map +1 -0
- package/out/renderer/host-preferences.js +192 -0
- package/out/renderer/host-preferences.js.map +1 -0
- package/out/renderer/incident-copy-button.js +24 -21
- package/out/renderer/incident-copy-button.js.map +1 -1
- package/out/renderer/index.js +47 -5
- package/out/renderer/index.js.map +1 -1
- package/out/renderer/menus/secure-node-shell-menu.js +2 -1
- package/out/renderer/menus/secure-node-shell-menu.js.map +1 -1
- package/out/renderer/monitoring-collector.js +13 -8
- package/out/renderer/monitoring-collector.js.map +1 -1
- package/out/renderer/monitoring-history-view.js +1 -1
- package/out/renderer/monitoring-history-view.js.map +1 -1
- package/out/renderer/monitoring.js +130 -49
- package/out/renderer/monitoring.js.map +1 -1
- package/out/renderer/native-resource-removals.js +202 -0
- package/out/renderer/native-resource-removals.js.map +1 -0
- package/out/renderer/native-tooltip.js +22 -0
- package/out/renderer/native-tooltip.js.map +1 -0
- package/out/renderer/node-bulk-actions.js +527 -0
- package/out/renderer/node-bulk-actions.js.map +1 -0
- package/out/renderer/node-bulk-selection.js +203 -0
- package/out/renderer/node-bulk-selection.js.map +1 -0
- package/out/renderer/node-shell-entrypoints.js +65 -0
- package/out/renderer/node-shell-entrypoints.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js +52 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-collection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js +41 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-doc.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js +88 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-node.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js +59 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/compose-scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js +195 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/composer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js +84 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-map.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +176 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +42 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-block-seq.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js +38 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-end.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +155 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +206 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js +107 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/resolve-props.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js +29 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-contains-newline.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +27 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +12 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js +12 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/compose/util-map-includes.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js +279 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/Document.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js +67 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/anchors.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js +40 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/applyReviver.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js +63 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/createNode.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js +165 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/doc/directives.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js +53 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/errors.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/index.js +24 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js +8 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/log.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js +96 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Alias.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js +121 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Collection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js +34 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Node.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js +32 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Pair.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js +27 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/Scalar.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js +109 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLMap.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +106 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/YAMLSeq.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +51 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js +50 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/toJS.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-scalar.js +3 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js +91 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst-visit.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js +42 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/cst.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js +531 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/lexer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js +47 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/line-counter.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js +861 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/parse/parser.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js +56 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/public-api.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js +29 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/Schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js +18 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/map.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/null.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js +18 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/seq.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js +16 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/common/string.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/bool.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js +42 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/float.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js +41 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/int.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js +25 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/core/schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js +63 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/json/schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js +84 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/tags.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +54 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +27 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +45 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +75 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +43 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +63 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +60 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +41 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +68 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +83 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +116 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/foldFlowLines.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js +108 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringify.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +118 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyCollection.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyComment.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +61 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyDocument.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +21 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyNumber.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js +97 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyPair.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js +224 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/stringify/stringifyString.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js +190 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/visit.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/index.js +24 -0
- package/out/renderer/package.js +6 -0
- package/out/renderer/package.js.map +1 -0
- package/out/renderer/pod-bulk-customization.js +51 -0
- package/out/renderer/pod-bulk-customization.js.map +1 -0
- package/out/renderer/pod-details-enhancements.js +107 -0
- package/out/renderer/pod-details-enhancements.js.map +1 -0
- package/out/renderer/pod-removal-confirmation.js +172 -0
- package/out/renderer/pod-removal-confirmation.js.map +1 -0
- package/out/renderer/power-log-column-widths.js +54 -0
- package/out/renderer/power-log-column-widths.js.map +1 -0
- package/out/renderer/power-log-columns.js +114 -0
- package/out/renderer/power-log-columns.js.map +1 -0
- package/out/renderer/power-log-json-cell.js +88 -0
- package/out/renderer/power-log-json-cell.js.map +1 -0
- package/out/renderer/power-log-json-fields.js +144 -0
- package/out/renderer/power-log-json-fields.js.map +1 -0
- package/out/renderer/power-log-json.js +252 -20
- package/out/renderer/power-log-json.js.map +1 -1
- package/out/renderer/power-log-message-tokens.js +60 -0
- package/out/renderer/power-log-message-tokens.js.map +1 -0
- package/out/renderer/power-log-message.js +26 -0
- package/out/renderer/power-log-message.js.map +1 -0
- package/out/renderer/power-log-sql-editor.js +120 -0
- package/out/renderer/power-log-sql-editor.js.map +1 -0
- package/out/renderer/power-logs-client.js +9 -0
- package/out/renderer/power-logs-client.js.map +1 -1
- package/out/renderer/power-logs-context.js +45 -0
- package/out/renderer/power-logs-context.js.map +1 -0
- package/out/renderer/power-logs-entrypoints.js +13 -36
- package/out/renderer/power-logs-entrypoints.js.map +1 -1
- package/out/renderer/power-logs-resource-stores.js +71 -0
- package/out/renderer/power-logs-resource-stores.js.map +1 -0
- package/out/renderer/power-logs-session.js +35 -0
- package/out/renderer/power-logs-session.js.map +1 -0
- package/out/renderer/power-logs-sql-drafts.js +76 -0
- package/out/renderer/power-logs-sql-drafts.js.map +1 -0
- package/out/renderer/power-logs-sql-row.js +5 -13
- package/out/renderer/power-logs-sql-row.js.map +1 -1
- package/out/renderer/power-logs-storage.js +11 -0
- package/out/renderer/power-logs-storage.js.map +1 -0
- package/out/renderer/power-logs.css.js +116 -16
- package/out/renderer/power-logs.css.js.map +1 -1
- package/out/renderer/power-logs.js +1139 -348
- package/out/renderer/power-logs.js.map +1 -1
- package/out/renderer/preferences/ai-preferences.js +264 -55
- package/out/renderer/preferences/ai-preferences.js.map +1 -1
- package/out/renderer/preferences/dashboard-preferences.js +42 -35
- package/out/renderer/preferences/dashboard-preferences.js.map +1 -1
- package/out/renderer/preferences/helm-preferences.js +22 -0
- package/out/renderer/preferences/helm-preferences.js.map +1 -0
- package/out/renderer/preferences/logs-preferences.js +287 -52
- package/out/renderer/preferences/logs-preferences.js.map +1 -1
- package/out/renderer/preferences/monitoring-preferences.js +21 -20
- package/out/renderer/preferences/monitoring-preferences.js.map +1 -1
- package/out/renderer/preferences/node-shell-preferences.js +10 -0
- package/out/renderer/preferences/node-shell-preferences.js.map +1 -1
- package/out/renderer/preferences/other-preferences.js +55 -0
- package/out/renderer/preferences/other-preferences.js.map +1 -0
- package/out/renderer/preferences/power-preferences.js +27 -10
- package/out/renderer/preferences/power-preferences.js.map +1 -1
- package/out/renderer/preferences/preferences.js +44 -13
- package/out/renderer/preferences/preferences.js.map +1 -1
- package/out/renderer/preferences/section-navigation.js +44 -0
- package/out/renderer/preferences/section-navigation.js.map +1 -0
- package/out/renderer/preferences/settings-icon-action.js +12 -11
- package/out/renderer/preferences/settings-icon-action.js.map +1 -1
- package/out/renderer/preferences/settings-modal.js +1 -1
- package/out/renderer/preferences/settings-modal.js.map +1 -1
- package/out/renderer/relationship-map-finding.js +54 -0
- package/out/renderer/relationship-map-finding.js.map +1 -0
- package/out/renderer/resource-relationships.css.js +11 -1
- package/out/renderer/resource-relationships.css.js.map +1 -1
- package/out/renderer/resource-relationships.js +104 -50
- package/out/renderer/resource-relationships.js.map +1 -1
- package/out/renderer/resource-search-client.js.map +1 -1
- package/out/renderer/resource-search-fields.js +2 -2
- package/out/renderer/resource-search-fields.js.map +1 -1
- package/out/renderer/resource-search-model.js +2 -1
- package/out/renderer/resource-search-model.js.map +1 -1
- package/out/renderer/resource-search-sync.js +1 -1
- package/out/renderer/resource-search-sync.js.map +1 -1
- package/out/renderer/resource-search.js +164 -108
- package/out/renderer/resource-search.js.map +1 -1
- package/out/renderer/secret-dialog-customization.js +142 -0
- package/out/renderer/secret-dialog-customization.js.map +1 -0
- package/out/renderer/src/common/ai-attachments.js +160 -0
- package/out/renderer/src/common/ai-attachments.js.map +1 -0
- package/out/renderer/src/common/ai-models.js +58 -0
- package/out/renderer/src/common/ai-models.js.map +1 -1
- package/out/renderer/src/common/ai-prompts.js +32 -2
- package/out/renderer/src/common/ai-prompts.js.map +1 -1
- package/out/renderer/src/common/ai-resource-payload.js +262 -0
- package/out/renderer/src/common/ai-resource-payload.js.map +1 -0
- package/out/renderer/src/common/ai-terminal-context.js +39 -18
- package/out/renderer/src/common/ai-terminal-context.js.map +1 -1
- package/out/renderer/src/common/ai.js +6 -0
- package/out/renderer/src/common/ai.js.map +1 -1
- package/out/renderer/src/common/dashboard-ai.js +22 -0
- package/out/renderer/src/common/dashboard-ai.js.map +1 -0
- package/out/renderer/src/common/extension-updates.js +33 -0
- package/out/renderer/src/common/extension-updates.js.map +1 -0
- package/out/renderer/src/common/gateway-relationships.js +8 -7
- package/out/renderer/src/common/gateway-relationships.js.map +1 -1
- package/out/renderer/src/common/helm-diff.js +312 -0
- package/out/renderer/src/common/helm-diff.js.map +1 -0
- package/out/renderer/src/common/helm-values-validation.js +59 -0
- package/out/renderer/src/common/helm-values-validation.js.map +1 -0
- package/out/renderer/src/common/helm.js +10 -0
- package/out/renderer/src/common/helm.js.map +1 -0
- package/out/renderer/src/common/node-bulk.js +6 -0
- package/out/renderer/src/common/node-bulk.js.map +1 -0
- package/out/renderer/src/common/power-log-field-filters.js +92 -0
- package/out/renderer/src/common/power-log-field-filters.js.map +1 -0
- package/out/renderer/src/common/power-log-json-filter-sql.js +118 -0
- package/out/renderer/src/common/power-log-json-filter-sql.js.map +1 -0
- package/out/renderer/src/common/power-log-json-preset.js +34 -0
- package/out/renderer/src/common/power-log-json-preset.js.map +1 -0
- package/out/renderer/src/common/power-log-level.js +172 -0
- package/out/renderer/src/common/power-log-level.js.map +1 -0
- package/out/renderer/src/common/power-log-parser.js +7 -29
- package/out/renderer/src/common/power-log-parser.js.map +1 -1
- package/out/renderer/src/common/power-log-sql-level.js +25 -0
- package/out/renderer/src/common/power-log-sql-level.js.map +1 -0
- package/out/renderer/src/common/power-logs-ai.js +11 -7
- package/out/renderer/src/common/power-logs-ai.js.map +1 -1
- package/out/renderer/src/common/power-logs.js +6 -0
- package/out/renderer/src/common/power-logs.js.map +1 -1
- package/out/renderer/src/common/resource-relationships.js +10 -8
- package/out/renderer/src/common/resource-relationships.js.map +1 -1
- package/out/renderer/src/common/resource-search-kind-priority.js +28 -0
- package/out/renderer/src/common/resource-search-kind-priority.js.map +1 -0
- package/out/renderer/src/common/resource-search.js.map +1 -1
- package/out/{main/common/ai-terminal-context.js → renderer/src/common/search-index-redaction.js} +4 -29
- package/out/renderer/src/common/search-index-redaction.js.map +1 -0
- package/out/renderer/src/common/store/ai-preferences-store.js +48 -6
- package/out/renderer/src/common/store/ai-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/appearance-preferences-store.js +8 -3
- package/out/renderer/src/common/store/appearance-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/helm-preferences-store.js +26 -0
- package/out/renderer/src/common/store/helm-preferences-store.js.map +1 -0
- package/out/renderer/src/common/store/logs-preferences-store.js +5 -0
- package/out/renderer/src/common/store/logs-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/node-shell-preferences-store.js +10 -6
- package/out/renderer/src/common/store/node-shell-preferences-store.js.map +1 -1
- package/out/renderer/src/common/store/power-preferences-store.js +19 -3
- package/out/renderer/src/common/store/power-preferences-store.js.map +1 -1
- package/out/renderer/welcome.js +29 -2
- package/out/renderer/welcome.js.map +1 -1
- package/package.json +5 -2
- package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
- package/out/main/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
- package/out/main/common/ai-extras.js.map +0 -1
- package/out/main/common/ai-models.js +0 -6
- package/out/main/common/ai-models.js.map +0 -1
- package/out/main/common/ai-prompts.js +0 -16
- package/out/main/common/ai-prompts.js.map +0 -1
- package/out/main/common/ai-shortcuts.js.map +0 -1
- package/out/main/common/ai-terminal-context.js.map +0 -1
- package/out/main/common/ai.js.map +0 -1
- package/out/main/common/cluster-icon-ipc.js.map +0 -1
- package/out/main/common/cluster-icons.js.map +0 -1
- package/out/main/common/dashboard-picker.js.map +0 -1
- package/out/main/common/dashboard-readiness.js.map +0 -1
- package/out/main/common/dashboard-selector.js.map +0 -1
- package/out/main/common/dashboard-views.js.map +0 -1
- package/out/main/common/dashboard.js.map +0 -1
- package/out/main/common/extension-info.js.map +0 -1
- package/out/main/common/monitoring-history.js.map +0 -1
- package/out/main/common/power-logs-limits.js.map +0 -1
- package/out/main/common/power-logs.js.map +0 -1
- package/out/main/common/resource-search.js.map +0 -1
- package/out/main/common/settings-export.js.map +0 -1
- package/out/main/common/store/ai-preferences-store.js.map +0 -1
- package/out/main/common/store/ai-shortcuts-store.js.map +0 -1
- package/out/main/common/store/appearance-preferences-store.js.map +0 -1
- package/out/main/common/store/cluster-icons-store.js.map +0 -1
- package/out/main/common/store/dashboard-preferences-store.js.map +0 -1
- package/out/main/common/store/logs-preferences-store.js.map +0 -1
- package/out/main/common/store/monitoring-preferences-store.js.map +0 -1
- package/out/main/common/store/node-shell-preferences-store.js +0 -40
- package/out/main/common/store/node-shell-preferences-store.js.map +0 -1
- package/out/main/common/store/power-preferences-store.js +0 -23
- package/out/main/common/store/power-preferences-store.js.map +0 -1
- package/out/main/common/store/read-only-preferences-store.js.map +0 -1
- package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js +0 -9
- package/out/renderer/_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorateMetadata.js +0 -6
- /package/out/main/{common → src/common}/ai-extras.js +0 -0
- /package/out/main/{common → src/common}/ai-shortcuts.js +0 -0
- /package/out/main/{common → src/common}/cluster-icon-ipc.js +0 -0
- /package/out/main/{common → src/common}/cluster-icons.js +0 -0
- /package/out/main/{common → src/common}/dashboard-picker.js +0 -0
- /package/out/main/{common → src/common}/dashboard-readiness.js +0 -0
- /package/out/main/{common → src/common}/dashboard-selector.js +0 -0
- /package/out/main/{common → src/common}/dashboard-views.js +0 -0
- /package/out/main/{common → src/common}/dashboard.js +0 -0
- /package/out/main/{common → src/common}/extension-info.js +0 -0
- /package/out/main/{common → src/common}/monitoring-history.js +0 -0
- /package/out/main/{common → src/common}/power-logs-limits.js +0 -0
- /package/out/main/{common → src/common}/resource-search.js +0 -0
- /package/out/main/{common → src/common}/settings-export.js +0 -0
|
@@ -0,0 +1,2383 @@
|
|
|
1
|
+
const require_extensions = require("./_virtual/_global-external_@freelensapp/extensions.js");
|
|
2
|
+
const require__global_external_mobx_react = require("./_virtual/_global-external_mobx-react.js");
|
|
3
|
+
const require_helm_preferences_store = require("./src/common/store/helm-preferences-store.js");
|
|
4
|
+
const require_power_preferences_store = require("./src/common/store/power-preferences-store.js");
|
|
5
|
+
const require_read_only_preferences_store = require("./src/common/store/read-only-preferences-store.js");
|
|
6
|
+
const require__global_external_react = require("./_virtual/_global-external_react.js");
|
|
7
|
+
const require__global_external_react_dom = require("./_virtual/_global-external_react-dom.js");
|
|
8
|
+
const require_jsx_runtime = require("./_virtual/_global-external_react/jsx-runtime.js");
|
|
9
|
+
const require_native_tooltip = require("./native-tooltip.js");
|
|
10
|
+
const require_date_time = require("./src/common/date-time.js");
|
|
11
|
+
const require_helm = require("./src/common/helm.js");
|
|
12
|
+
const require_helm_values_validation = require("./src/common/helm-values-validation.js");
|
|
13
|
+
const require_helm_version_index = require("./helm-version-index.js");
|
|
14
|
+
const require_helm_app_version = require("./helm-app-version.js");
|
|
15
|
+
const require_helm_code_view = require("./helm-code-view.js");
|
|
16
|
+
const require_helm_operations = require("./helm-operations.js");
|
|
17
|
+
const require_helm_release_actions = require("./helm-release-actions.js");
|
|
18
|
+
const require_helm_revision_delete = require("./helm-revision-delete.js");
|
|
19
|
+
let electron = require("electron");
|
|
20
|
+
//#region src/renderer/helm.tsx
|
|
21
|
+
function HelmSearchField({ value, onChange, label, placeholder, clearLabel }) {
|
|
22
|
+
const input = require__global_external_react.useRef(null);
|
|
23
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
24
|
+
className: "helm-search-field",
|
|
25
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("input", {
|
|
26
|
+
ref: input,
|
|
27
|
+
className: "helm-text-input",
|
|
28
|
+
"aria-label": label,
|
|
29
|
+
placeholder,
|
|
30
|
+
value,
|
|
31
|
+
onChange: (event) => onChange(event.target.value)
|
|
32
|
+
}), value && /* @__PURE__ */ require_jsx_runtime.jsx("button", {
|
|
33
|
+
type: "button",
|
|
34
|
+
className: "helm-search-clear",
|
|
35
|
+
"aria-label": clearLabel,
|
|
36
|
+
onClick: (event) => {
|
|
37
|
+
event.preventDefault();
|
|
38
|
+
onChange("");
|
|
39
|
+
input.current?.focus();
|
|
40
|
+
},
|
|
41
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
42
|
+
material: "close",
|
|
43
|
+
size: 16
|
|
44
|
+
})
|
|
45
|
+
})]
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
var ReadOnlyDocumentIndicator = require__global_external_mobx_react.observer(() => {
|
|
49
|
+
if (!require_read_only_preferences_store.ReadOnlyPreferencesStore.getInstanceOrCreate().enabled) return null;
|
|
50
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
51
|
+
className: "helm-access-badge",
|
|
52
|
+
role: "status",
|
|
53
|
+
"aria-label": "Read only",
|
|
54
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
55
|
+
material: "lock_outline",
|
|
56
|
+
size: 14
|
|
57
|
+
}), "Read only"]
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
function ReleaseTimestamp({ value }) {
|
|
61
|
+
if (value === void 0 || value === "") return /* @__PURE__ */ require_jsx_runtime.jsx(require_jsx_runtime.Fragment, { children: "—" });
|
|
62
|
+
const date = new Date(value);
|
|
63
|
+
if (!Number.isFinite(date.getTime())) return /* @__PURE__ */ require_jsx_runtime.jsx(require_jsx_runtime.Fragment, { children: "Unavailable" });
|
|
64
|
+
const timestamp = date.toISOString();
|
|
65
|
+
return /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
66
|
+
title: `UTC: ${timestamp}`,
|
|
67
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("time", {
|
|
68
|
+
className: "helm-timestamp",
|
|
69
|
+
dateTime: timestamp,
|
|
70
|
+
children: require_date_time.formatDateTime(value)
|
|
71
|
+
})
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function ReleaseAppVersion({ clusterId, contextId, release }) {
|
|
75
|
+
if (!contextId) return null;
|
|
76
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
77
|
+
className: "helm-release-app-version",
|
|
78
|
+
children: ["App version ", /* @__PURE__ */ require_jsx_runtime.jsx(require_helm_app_version.HelmAppVersionCell, {
|
|
79
|
+
clusterId,
|
|
80
|
+
contextId,
|
|
81
|
+
release
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function ReleaseOverview({ overview, actions }) {
|
|
86
|
+
const fields = [
|
|
87
|
+
["Revision", overview.revision],
|
|
88
|
+
["Name", overview.name],
|
|
89
|
+
["App version", require_helm.formatHelmAppVersion(overview.appVersion)],
|
|
90
|
+
["Namespace", overview.namespace],
|
|
91
|
+
["Chart version", overview.chartVersion],
|
|
92
|
+
["Status", overview.status],
|
|
93
|
+
["Chart", overview.chartName || overview.chart],
|
|
94
|
+
["Updated", overview.updatedAt],
|
|
95
|
+
["Description", overview.description]
|
|
96
|
+
];
|
|
97
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("section", {
|
|
98
|
+
className: "helm-overview-card",
|
|
99
|
+
"aria-label": "Release details",
|
|
100
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsxs("header", { children: [/* @__PURE__ */ require_jsx_runtime.jsx("h3", { children: "Release details" }), actions] }), /* @__PURE__ */ require_jsx_runtime.jsx("dl", {
|
|
101
|
+
className: "helm-overview",
|
|
102
|
+
children: fields.filter(([, value]) => value !== void 0 && value !== "").map(([label, value]) => /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
103
|
+
"data-field": label,
|
|
104
|
+
className: label === "Description" ? "helm-overview-description" : void 0,
|
|
105
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("dt", { children: label }), /* @__PURE__ */ require_jsx_runtime.jsx("dd", { children: label === "Status" ? /* @__PURE__ */ require_jsx_runtime.jsx(StatusBadge, { status: String(value) }) : label === "Updated" ? /* @__PURE__ */ require_jsx_runtime.jsx(ReleaseTimestamp, { value: String(value) }) : label === "Revision" || label === "App version" || label === "Chart version" ? /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
106
|
+
className: "helm-version-badge helm-overview-version-badge",
|
|
107
|
+
children: String(value)
|
|
108
|
+
}) : String(value) })]
|
|
109
|
+
}, label))
|
|
110
|
+
})]
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function InlineAlert({ children }) {
|
|
114
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
115
|
+
className: "helm-inline-alert",
|
|
116
|
+
role: "alert",
|
|
117
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
118
|
+
material: "error_outline",
|
|
119
|
+
size: 18
|
|
120
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx("span", { children })]
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function VersionSearchProgress({ index, paused, onToggle, onRefresh }) {
|
|
124
|
+
if (!index.total) return null;
|
|
125
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
126
|
+
className: "helm-version-progress",
|
|
127
|
+
"aria-label": "App version search progress",
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
130
|
+
material: index.errors || index.truncated ? "info_outline" : index.completed >= index.total ? "check_circle" : paused ? "pause_circle_outline" : "search",
|
|
131
|
+
size: 16
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", { children: [
|
|
134
|
+
"App versions checked: ",
|
|
135
|
+
index.completed,
|
|
136
|
+
" / ",
|
|
137
|
+
index.total,
|
|
138
|
+
paused && index.completed < index.total ? " · Paused" : ""
|
|
139
|
+
] }),
|
|
140
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("progress", {
|
|
141
|
+
"aria-label": "App versions checked",
|
|
142
|
+
value: index.completed,
|
|
143
|
+
max: index.total
|
|
144
|
+
}),
|
|
145
|
+
index.completed < index.total && /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
146
|
+
title: paused ? "Continue checking app versions from the saved progress" : "Pause background checks and keep the versions already found",
|
|
147
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsxs(Button, {
|
|
148
|
+
onClick: onToggle,
|
|
149
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
150
|
+
material: paused ? "play_arrow" : "pause",
|
|
151
|
+
size: 16
|
|
152
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx("span", { children: paused ? "Resume" : "Pause" })]
|
|
153
|
+
})
|
|
154
|
+
}),
|
|
155
|
+
index.errors > 0 && /* @__PURE__ */ require_jsx_runtime.jsxs("small", {
|
|
156
|
+
className: "helm-version-unavailable",
|
|
157
|
+
children: [index.errors, " unavailable"]
|
|
158
|
+
}),
|
|
159
|
+
index.truncated && /* @__PURE__ */ require_jsx_runtime.jsxs("small", {
|
|
160
|
+
className: "helm-version-unavailable",
|
|
161
|
+
children: [
|
|
162
|
+
"Only the first ",
|
|
163
|
+
index.total,
|
|
164
|
+
" entries are checked"
|
|
165
|
+
]
|
|
166
|
+
}),
|
|
167
|
+
(index.errors > 0 || index.truncated) && /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
168
|
+
label: "Refresh versions",
|
|
169
|
+
onClick: onRefresh
|
|
170
|
+
})
|
|
171
|
+
]
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function validateDraft(value) {
|
|
175
|
+
if (new TextEncoder().encode(value).length > 1024 * 1024) return "Values must be smaller than 1 MiB";
|
|
176
|
+
return require_helm_values_validation.helmValuesValidationError(value);
|
|
177
|
+
}
|
|
178
|
+
var requestSequence = 0;
|
|
179
|
+
var session = `${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
180
|
+
var cache = /* @__PURE__ */ new Map();
|
|
181
|
+
function cachedMetadata(key) {
|
|
182
|
+
for (const [entry, value] of cache) if (value.expiresAt <= Date.now()) cache.delete(entry);
|
|
183
|
+
return key ? cache.get(key)?.result : void 0;
|
|
184
|
+
}
|
|
185
|
+
function responseError(response) {
|
|
186
|
+
return Object.assign(new Error(response.error.message), { code: response.error.code });
|
|
187
|
+
}
|
|
188
|
+
function invalidatesPartition(error) {
|
|
189
|
+
return error instanceof Error && "code" in error && ["forbidden", "context-changed"].includes(String(error.code));
|
|
190
|
+
}
|
|
191
|
+
var invalidationListeners = /* @__PURE__ */ new Set();
|
|
192
|
+
var { Button, Checkbox, Drawer, Icon, Select } = require_extensions.Renderer.Component;
|
|
193
|
+
function statusLabel(status) {
|
|
194
|
+
const label = status.replace(/-/g, " ");
|
|
195
|
+
return label.charAt(0).toUpperCase() + label.slice(1);
|
|
196
|
+
}
|
|
197
|
+
function StatusBadge({ status }) {
|
|
198
|
+
return /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
199
|
+
className: "helm-status",
|
|
200
|
+
"data-status": status,
|
|
201
|
+
children: statusLabel(status)
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
function useHelmRequest(request, cacheKey, generation = 0) {
|
|
205
|
+
const identity = `${JSON.stringify(request)}/${generation}`;
|
|
206
|
+
const activeIdentity = require__global_external_react.useRef(identity);
|
|
207
|
+
activeIdentity.current = identity;
|
|
208
|
+
const [state, setState] = require__global_external_react.useState({
|
|
209
|
+
result: cachedMetadata(cacheKey),
|
|
210
|
+
loading: true,
|
|
211
|
+
stale: true
|
|
212
|
+
});
|
|
213
|
+
const [attempt, setAttempt] = require__global_external_react.useState(0);
|
|
214
|
+
const cancelRef = require__global_external_react.useRef();
|
|
215
|
+
require__global_external_react.useEffect(() => {
|
|
216
|
+
let current = true;
|
|
217
|
+
const payload = {
|
|
218
|
+
...request,
|
|
219
|
+
requestId: `${session}-${++requestSequence}`,
|
|
220
|
+
refresh: request.refresh || attempt > 0
|
|
221
|
+
};
|
|
222
|
+
const cancel = () => {
|
|
223
|
+
if (!current) return;
|
|
224
|
+
current = false;
|
|
225
|
+
electron.ipcRenderer.invoke(require_helm.HELM_CHANNEL, {
|
|
226
|
+
...payload,
|
|
227
|
+
operation: "cancel"
|
|
228
|
+
}).catch(() => void 0);
|
|
229
|
+
setState((previous) => ({
|
|
230
|
+
...previous,
|
|
231
|
+
loading: false,
|
|
232
|
+
stale: true
|
|
233
|
+
}));
|
|
234
|
+
};
|
|
235
|
+
const invalidate = (clusterId, error) => {
|
|
236
|
+
if (clusterId !== request.clusterId || activeIdentity.current !== identity) return;
|
|
237
|
+
cancel();
|
|
238
|
+
setState({
|
|
239
|
+
loading: false,
|
|
240
|
+
stale: true,
|
|
241
|
+
error: error.message,
|
|
242
|
+
errorCode: "code" in error ? String(error.code) : void 0
|
|
243
|
+
});
|
|
244
|
+
};
|
|
245
|
+
invalidationListeners.add(invalidate);
|
|
246
|
+
cancelRef.current = cancel;
|
|
247
|
+
setState((previous) => ({
|
|
248
|
+
...previous,
|
|
249
|
+
loading: true,
|
|
250
|
+
error: void 0,
|
|
251
|
+
stale: true
|
|
252
|
+
}));
|
|
253
|
+
electron.ipcRenderer.invoke(require_helm.HELM_CHANNEL, payload).then((result) => {
|
|
254
|
+
if (!current || activeIdentity.current !== identity) return;
|
|
255
|
+
if (!result.ok) throw responseError(result);
|
|
256
|
+
if (cacheKey && request.operation === "list") {
|
|
257
|
+
cache.delete(cacheKey);
|
|
258
|
+
cache.set(cacheKey, {
|
|
259
|
+
result,
|
|
260
|
+
expiresAt: Date.now() + 3e4
|
|
261
|
+
});
|
|
262
|
+
while (cache.size > 8) cache.delete(cache.keys().next().value);
|
|
263
|
+
}
|
|
264
|
+
setState({
|
|
265
|
+
result,
|
|
266
|
+
loading: false,
|
|
267
|
+
stale: false
|
|
268
|
+
});
|
|
269
|
+
}).catch((error) => {
|
|
270
|
+
if (!current || activeIdentity.current !== identity) return;
|
|
271
|
+
if (invalidatesPartition(error)) {
|
|
272
|
+
cache.clear();
|
|
273
|
+
for (const listener of invalidationListeners) listener(request.clusterId, error);
|
|
274
|
+
}
|
|
275
|
+
if (current) setState((previous) => ({
|
|
276
|
+
...previous,
|
|
277
|
+
result: invalidatesPartition(error) ? void 0 : previous.result,
|
|
278
|
+
loading: false,
|
|
279
|
+
error: error instanceof Error ? error.message : String(error),
|
|
280
|
+
errorCode: error instanceof Error && "code" in error ? String(error.code) : void 0
|
|
281
|
+
}));
|
|
282
|
+
});
|
|
283
|
+
return () => {
|
|
284
|
+
invalidationListeners.delete(invalidate);
|
|
285
|
+
cancel();
|
|
286
|
+
};
|
|
287
|
+
}, [
|
|
288
|
+
identity,
|
|
289
|
+
attempt,
|
|
290
|
+
cacheKey
|
|
291
|
+
]);
|
|
292
|
+
return {
|
|
293
|
+
...state,
|
|
294
|
+
refresh: () => setAttempt((value) => value + 1),
|
|
295
|
+
cancel: () => cancelRef.current?.()
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
function RequestStatus({ state, refreshLabel = "Refresh", labeled = false, showTimestamp = true, loadingLabel = "Loading…", compact = false }) {
|
|
299
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
300
|
+
role: "status",
|
|
301
|
+
className: `helm-request-status${compact ? " helm-request-compact" : ""}`,
|
|
302
|
+
"data-error": Boolean(state.error),
|
|
303
|
+
"aria-busy": state.loading,
|
|
304
|
+
children: [
|
|
305
|
+
state.loading && compact && /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
306
|
+
title: "Cancel loading",
|
|
307
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsxs("button", {
|
|
308
|
+
type: "button",
|
|
309
|
+
className: "helm-icon-button helm-loading-cancel",
|
|
310
|
+
"aria-label": "Cancel loading",
|
|
311
|
+
onClick: state.cancel,
|
|
312
|
+
children: [
|
|
313
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
314
|
+
"aria-hidden": "true",
|
|
315
|
+
className: "helm-spinner",
|
|
316
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
317
|
+
material: "autorenew",
|
|
318
|
+
size: 18
|
|
319
|
+
})
|
|
320
|
+
}),
|
|
321
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
322
|
+
"aria-hidden": "true",
|
|
323
|
+
className: "helm-cancel-icon",
|
|
324
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
325
|
+
material: "close",
|
|
326
|
+
size: 18
|
|
327
|
+
})
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
330
|
+
className: "helm-sr-only",
|
|
331
|
+
children: loadingLabel
|
|
332
|
+
})
|
|
333
|
+
]
|
|
334
|
+
})
|
|
335
|
+
}),
|
|
336
|
+
state.loading && !compact && /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
337
|
+
className: "helm-loading",
|
|
338
|
+
"aria-label": compact ? loadingLabel : void 0,
|
|
339
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
340
|
+
"aria-hidden": "true",
|
|
341
|
+
className: "helm-spinner",
|
|
342
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, { material: "autorenew" })
|
|
343
|
+
}), compact ? /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
344
|
+
className: "helm-sr-only",
|
|
345
|
+
children: loadingLabel
|
|
346
|
+
}) : loadingLabel]
|
|
347
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
348
|
+
title: "Cancel loading",
|
|
349
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("button", {
|
|
350
|
+
type: "button",
|
|
351
|
+
className: "helm-icon-button",
|
|
352
|
+
"aria-label": "Cancel loading",
|
|
353
|
+
onClick: state.cancel,
|
|
354
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
355
|
+
material: "close",
|
|
356
|
+
size: 18
|
|
357
|
+
})
|
|
358
|
+
})
|
|
359
|
+
})] }),
|
|
360
|
+
state.error && /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
361
|
+
role: "alert",
|
|
362
|
+
className: "helm-error",
|
|
363
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
364
|
+
material: "error_outline",
|
|
365
|
+
size: 16
|
|
366
|
+
}), state.error]
|
|
367
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
368
|
+
className: "helm-comparison-toggle",
|
|
369
|
+
"aria-label": "Retry",
|
|
370
|
+
label: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
371
|
+
material: "refresh",
|
|
372
|
+
size: 16
|
|
373
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "Retry" })] }),
|
|
374
|
+
onClick: state.refresh
|
|
375
|
+
})] }),
|
|
376
|
+
!state.loading && !state.error && /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
377
|
+
title: refreshLabel,
|
|
378
|
+
children: labeled ? /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
379
|
+
className: "helm-comparison-toggle",
|
|
380
|
+
"aria-label": refreshLabel,
|
|
381
|
+
label: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
382
|
+
material: "refresh",
|
|
383
|
+
size: 18
|
|
384
|
+
}), refreshLabel] }),
|
|
385
|
+
onClick: state.refresh
|
|
386
|
+
}) : /* @__PURE__ */ require_jsx_runtime.jsxs("button", {
|
|
387
|
+
type: "button",
|
|
388
|
+
className: "helm-icon-button",
|
|
389
|
+
"aria-label": refreshLabel,
|
|
390
|
+
onClick: state.refresh,
|
|
391
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
392
|
+
material: "refresh",
|
|
393
|
+
size: 18
|
|
394
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
395
|
+
className: "helm-sr-only",
|
|
396
|
+
children: refreshLabel
|
|
397
|
+
})]
|
|
398
|
+
})
|
|
399
|
+
}),
|
|
400
|
+
showTimestamp && state.result?.ok && state.result.fetchedAt && /* @__PURE__ */ require_jsx_runtime.jsxs("small", { children: [state.stale || state.loading || state.error || state.result.cached ? "Cached · " : "Updated · ", /* @__PURE__ */ require_jsx_runtime.jsx(ReleaseTimestamp, { value: state.result.fetchedAt })] })
|
|
401
|
+
]
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
function HelmPagination({ page, pages, kind, onChange }) {
|
|
405
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("nav", {
|
|
406
|
+
className: "helm-toolbar helm-pagination",
|
|
407
|
+
"aria-label": `Helm ${kind} pages`,
|
|
408
|
+
children: [
|
|
409
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
410
|
+
title: `Previous ${kind}`,
|
|
411
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("button", {
|
|
412
|
+
type: "button",
|
|
413
|
+
"aria-label": `Previous ${kind}`,
|
|
414
|
+
disabled: page === 0,
|
|
415
|
+
onClick: () => onChange(page - 1),
|
|
416
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
417
|
+
material: "chevron_left",
|
|
418
|
+
size: 16
|
|
419
|
+
})
|
|
420
|
+
})
|
|
421
|
+
}),
|
|
422
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", { children: [
|
|
423
|
+
"Page ",
|
|
424
|
+
page + 1,
|
|
425
|
+
" / ",
|
|
426
|
+
pages
|
|
427
|
+
] }),
|
|
428
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
429
|
+
title: `Next ${kind}`,
|
|
430
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("button", {
|
|
431
|
+
type: "button",
|
|
432
|
+
"aria-label": `Next ${kind}`,
|
|
433
|
+
disabled: page + 1 >= pages,
|
|
434
|
+
onClick: () => onChange(page + 1),
|
|
435
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
436
|
+
material: "chevron_right",
|
|
437
|
+
size: 16
|
|
438
|
+
})
|
|
439
|
+
})
|
|
440
|
+
})
|
|
441
|
+
]
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
function Section({ clusterId, contextId, release, tab, currentRelease, onChanged, deployedRelease, initialCompare = false, isOverlayEscape, restoreControls }) {
|
|
445
|
+
const state = useHelmRequest({
|
|
446
|
+
clusterId,
|
|
447
|
+
namespace: release.namespace,
|
|
448
|
+
contextId,
|
|
449
|
+
operation: "details",
|
|
450
|
+
name: release.name,
|
|
451
|
+
revision: release.revision,
|
|
452
|
+
uid: release.uid,
|
|
453
|
+
section: tab
|
|
454
|
+
});
|
|
455
|
+
const [compare, setCompare] = require__global_external_react.useState(initialCompare);
|
|
456
|
+
const [baseline, setBaseline] = require__global_external_react.useState("latest");
|
|
457
|
+
const [comparisonToolbar, setComparisonToolbar] = require__global_external_react.useState(null);
|
|
458
|
+
const [comparisonReady, setComparisonReady] = require__global_external_react.useState(false);
|
|
459
|
+
const comparisonRelease = baseline === "deployed" && deployedRelease ? deployedRelease : currentRelease;
|
|
460
|
+
const [editing, setEditing] = require__global_external_react.useState(false);
|
|
461
|
+
const [codeActions, setCodeActions] = require__global_external_react.useState(null);
|
|
462
|
+
require__global_external_react.useEffect(() => {
|
|
463
|
+
const onEscape = (event) => {
|
|
464
|
+
if (event.key !== "Escape" || event.defaultPrevented || isOverlayEscape?.(event) || document.querySelector("[data-testid=\"confirmation-dialog\"], .Select__menu, .helm-release-actions-menu, .monaco-editor .find-widget.visible, .helm-diff-find, .power-helm-operation-dialog")) return;
|
|
465
|
+
if (editing || compare && !initialCompare) {
|
|
466
|
+
event.preventDefault();
|
|
467
|
+
event.stopPropagation();
|
|
468
|
+
if (!editing) setCompare(false);
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
document.addEventListener("keydown", onEscape, true);
|
|
472
|
+
return () => document.removeEventListener("keydown", onEscape, true);
|
|
473
|
+
}, [
|
|
474
|
+
editing,
|
|
475
|
+
compare,
|
|
476
|
+
initialCompare,
|
|
477
|
+
isOverlayEscape
|
|
478
|
+
]);
|
|
479
|
+
const historical = release.revision !== currentRelease.revision;
|
|
480
|
+
const detail = state.result?.ok ? state.result.detail : void 0;
|
|
481
|
+
const [copySequence, setCopySequence] = require__global_external_react.useState(0);
|
|
482
|
+
const copied = copySequence > 0;
|
|
483
|
+
require__global_external_react.useEffect(() => {
|
|
484
|
+
setCopySequence(0);
|
|
485
|
+
}, [detail?.content]);
|
|
486
|
+
require__global_external_react.useEffect(() => {
|
|
487
|
+
if (!copied) return;
|
|
488
|
+
const timeout = setTimeout(() => setCopySequence(0), 2e3);
|
|
489
|
+
return () => clearTimeout(timeout);
|
|
490
|
+
}, [copySequence]);
|
|
491
|
+
const lineCount = require__global_external_react.useMemo(() => {
|
|
492
|
+
const content = detail?.content ?? "";
|
|
493
|
+
let count = content ? 1 : 0;
|
|
494
|
+
for (let index = 0; index < content.length; index++) if (content.charCodeAt(index) === 10) count++;
|
|
495
|
+
return count;
|
|
496
|
+
}, [detail?.content]);
|
|
497
|
+
const inlineRefresh = Boolean(detail && tab !== "notes" && !(tab === "overview" && detail.overview));
|
|
498
|
+
const comparisonToggle = /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
499
|
+
className: "helm-comparison-toggle",
|
|
500
|
+
"aria-label": compare ? "Show revision" : "Compare with current",
|
|
501
|
+
label: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
502
|
+
material: compare ? "visibility" : "difference",
|
|
503
|
+
size: 18
|
|
504
|
+
}), compare ? "Show revision" : "Compare with current"] }),
|
|
505
|
+
disabled: state.loading || Boolean(state.error) || state.stale,
|
|
506
|
+
onClick: () => setCompare(!compare)
|
|
507
|
+
});
|
|
508
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
509
|
+
className: tab === "values" || tab === "manifest" ? `helm-document-section${compare ? " helm-comparison-active" : ""}` : tab === "notes" ? "helm-notes-section" : void 0,
|
|
510
|
+
children: [
|
|
511
|
+
!(tab === "overview" && detail?.overview) && !(tab === "notes" && detail && !detail.content.trim()) && !inlineRefresh && !(compare && (tab === "values" || tab === "manifest")) && /* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
512
|
+
state,
|
|
513
|
+
labeled: tab === "notes",
|
|
514
|
+
refreshLabel: tab === "notes" ? "Refresh notes" : "Refresh"
|
|
515
|
+
}),
|
|
516
|
+
compare && (tab === "values" || tab === "manifest") && detail && /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
517
|
+
className: "helm-toolbar helm-comparison-toolbar",
|
|
518
|
+
children: [
|
|
519
|
+
compare && deployedRelease && /* @__PURE__ */ require_jsx_runtime.jsxs("label", {
|
|
520
|
+
className: "helm-filter helm-comparison-baseline",
|
|
521
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "Compare with" }), /* @__PURE__ */ require_jsx_runtime.jsx(Select, {
|
|
522
|
+
"aria-label": "Comparison baseline",
|
|
523
|
+
value: baseline,
|
|
524
|
+
options: [{
|
|
525
|
+
value: "latest",
|
|
526
|
+
label: `Latest · Revision ${currentRelease.revision}`
|
|
527
|
+
}, {
|
|
528
|
+
value: "deployed",
|
|
529
|
+
label: `Last deployed · Revision ${deployedRelease.revision}`
|
|
530
|
+
}],
|
|
531
|
+
onChange: (option) => setBaseline(option?.value ?? "latest")
|
|
532
|
+
})]
|
|
533
|
+
}),
|
|
534
|
+
comparisonToggle,
|
|
535
|
+
compare && /* @__PURE__ */ require_jsx_runtime.jsx("div", {
|
|
536
|
+
className: "helm-comparison-refresh",
|
|
537
|
+
ref: setComparisonToolbar
|
|
538
|
+
})
|
|
539
|
+
]
|
|
540
|
+
}),
|
|
541
|
+
tab === "values" && !historical && !compare && detail && /* @__PURE__ */ require_jsx_runtime.jsx(ValuesEditing, {
|
|
542
|
+
release,
|
|
543
|
+
clusterId,
|
|
544
|
+
contextId,
|
|
545
|
+
content: detail.content,
|
|
546
|
+
editing,
|
|
547
|
+
disabled: state.loading || Boolean(state.error) || state.stale,
|
|
548
|
+
actionTarget: codeActions,
|
|
549
|
+
setEditing,
|
|
550
|
+
onChanged: () => {
|
|
551
|
+
state.refresh();
|
|
552
|
+
onChanged();
|
|
553
|
+
}
|
|
554
|
+
}),
|
|
555
|
+
!editing && compare && restoreControls && /* @__PURE__ */ require_jsx_runtime.jsx("div", {
|
|
556
|
+
className: "helm-comparison-restore",
|
|
557
|
+
hidden: !comparisonReady,
|
|
558
|
+
children: restoreControls
|
|
559
|
+
}),
|
|
560
|
+
!editing && (compare && (tab === "values" || tab === "manifest") ? /* @__PURE__ */ require_jsx_runtime.jsx(RevisionComparison, {
|
|
561
|
+
clusterId,
|
|
562
|
+
contextId,
|
|
563
|
+
release: comparisonRelease,
|
|
564
|
+
selected: release,
|
|
565
|
+
baselineLabel: baseline === "deployed" && deployedRelease ? "Last deployed" : "Latest",
|
|
566
|
+
section: tab,
|
|
567
|
+
selectedState: state,
|
|
568
|
+
onReadyChange: setComparisonReady,
|
|
569
|
+
toolbar: comparisonToolbar
|
|
570
|
+
}, `${tab}/${release.revision}/${comparisonRelease.revision}/${comparisonRelease.uid ?? ""}`) : /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [
|
|
571
|
+
detail && tab === "overview" && detail.overview && /* @__PURE__ */ require_jsx_runtime.jsx(ReleaseOverview, {
|
|
572
|
+
overview: detail.overview,
|
|
573
|
+
actions: /* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
574
|
+
state,
|
|
575
|
+
refreshLabel: "Refresh overview"
|
|
576
|
+
})
|
|
577
|
+
}),
|
|
578
|
+
detail && tab === "notes" && !detail.content.trim() && /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
579
|
+
className: "helm-notes-state",
|
|
580
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
581
|
+
state,
|
|
582
|
+
refreshLabel: "Refresh notes",
|
|
583
|
+
showTimestamp: false,
|
|
584
|
+
labeled: true
|
|
585
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
586
|
+
className: "helm-notes-empty",
|
|
587
|
+
role: "status",
|
|
588
|
+
children: [
|
|
589
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
590
|
+
material: "description",
|
|
591
|
+
size: 24
|
|
592
|
+
}),
|
|
593
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("strong", { children: "No release notes" }),
|
|
594
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "This chart did not provide notes for this revision." })
|
|
595
|
+
]
|
|
596
|
+
})]
|
|
597
|
+
}),
|
|
598
|
+
detail && (tab !== "overview" || !detail.overview) && (tab !== "notes" || Boolean(detail.content.trim())) && /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
599
|
+
className: "helm-code-header",
|
|
600
|
+
children: [
|
|
601
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", { children: [tab === "notes" ? "Release notes" : `${tab.charAt(0).toUpperCase() + tab.slice(1)} · YAML`, !historical && /* @__PURE__ */ require_jsx_runtime.jsx(ReadOnlyDocumentIndicator, {})] }),
|
|
602
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("small", { children: [
|
|
603
|
+
lineCount,
|
|
604
|
+
" ",
|
|
605
|
+
lineCount === 1 ? "line" : "lines"
|
|
606
|
+
] }),
|
|
607
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
608
|
+
className: "helm-copy-action",
|
|
609
|
+
children: [
|
|
610
|
+
historical && (tab === "values" || tab === "manifest") && comparisonToggle,
|
|
611
|
+
tab === "values" && /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
612
|
+
ref: setCodeActions,
|
|
613
|
+
className: "helm-edit-action"
|
|
614
|
+
}),
|
|
615
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
616
|
+
role: "status",
|
|
617
|
+
className: "helm-sr-only",
|
|
618
|
+
children: copied ? "Copied" : ""
|
|
619
|
+
}),
|
|
620
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
621
|
+
title: copied ? "Copied" : "Copy",
|
|
622
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
623
|
+
"aria-label": "Copy",
|
|
624
|
+
label: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
625
|
+
material: copied ? "check" : "content_copy",
|
|
626
|
+
size: 16
|
|
627
|
+
}), "Copy"] }),
|
|
628
|
+
onClick: () => {
|
|
629
|
+
electron.clipboard.writeText(detail.content);
|
|
630
|
+
setCopySequence((value) => value + 1);
|
|
631
|
+
}
|
|
632
|
+
})
|
|
633
|
+
}),
|
|
634
|
+
inlineRefresh && /* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
635
|
+
state,
|
|
636
|
+
refreshLabel: `Refresh ${tab}`,
|
|
637
|
+
showTimestamp: false,
|
|
638
|
+
compact: true
|
|
639
|
+
})
|
|
640
|
+
]
|
|
641
|
+
})
|
|
642
|
+
]
|
|
643
|
+
}), tab === "notes" ? /* @__PURE__ */ require_jsx_runtime.jsx("pre", {
|
|
644
|
+
className: "helm-notes",
|
|
645
|
+
style: {
|
|
646
|
+
whiteSpace: "pre-wrap",
|
|
647
|
+
overflowWrap: "anywhere",
|
|
648
|
+
fontFamily: "var(--font-monospace, monospace)",
|
|
649
|
+
userSelect: "text"
|
|
650
|
+
},
|
|
651
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("code", { children: detail.content })
|
|
652
|
+
}) : /* @__PURE__ */ require_jsx_runtime.jsx(require_helm_code_view.HelmCodeView, {
|
|
653
|
+
value: detail.content,
|
|
654
|
+
ariaLabel: `${tab} for revision ${release.revision}`,
|
|
655
|
+
style: {
|
|
656
|
+
height: "100%",
|
|
657
|
+
minHeight: 0,
|
|
658
|
+
flex: 1
|
|
659
|
+
}
|
|
660
|
+
})] })
|
|
661
|
+
] }))
|
|
662
|
+
]
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
var ValuesEditing = require__global_external_mobx_react.observer(({ release, clusterId, contextId, content, editing, disabled, actionTarget, setEditing, onChanged }) => {
|
|
666
|
+
const allowed = !require_read_only_preferences_store.ReadOnlyPreferencesStore.getInstanceOrCreate().enabled && require_power_preferences_store.PowerPreferencesStore.getInstanceOrCreate().enabled;
|
|
667
|
+
require__global_external_react.useEffect(() => {
|
|
668
|
+
if (!allowed) setEditing(false);
|
|
669
|
+
}, [allowed, setEditing]);
|
|
670
|
+
if (!allowed) return null;
|
|
671
|
+
return editing ? /* @__PURE__ */ require_jsx_runtime.jsx(ValuesEditor, {
|
|
672
|
+
release,
|
|
673
|
+
clusterId,
|
|
674
|
+
contextId,
|
|
675
|
+
content,
|
|
676
|
+
onCancel: () => setEditing(false),
|
|
677
|
+
onChanged
|
|
678
|
+
}, `${release.revision}/${contextId}`) : actionTarget ? require__global_external_react_dom.createPortal(/* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
679
|
+
"aria-label": "Edit values",
|
|
680
|
+
disabled: disabled || require_helm_operations.helmOperations.isRunning(clusterId, contextId, release.namespace, release.name),
|
|
681
|
+
label: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
682
|
+
material: "edit",
|
|
683
|
+
size: 16
|
|
684
|
+
}), "Edit values"] }),
|
|
685
|
+
onClick: () => setEditing(true)
|
|
686
|
+
}), actionTarget) : null;
|
|
687
|
+
});
|
|
688
|
+
var ValuesEditor = require__global_external_mobx_react.observer(({ release, clusterId, contextId, content, onCancel, onChanged }) => {
|
|
689
|
+
const state = useHelmRequest({
|
|
690
|
+
clusterId,
|
|
691
|
+
contextId,
|
|
692
|
+
namespace: release.namespace,
|
|
693
|
+
name: release.name,
|
|
694
|
+
revision: release.revision,
|
|
695
|
+
uid: release.uid,
|
|
696
|
+
operation: "edit-options"
|
|
697
|
+
});
|
|
698
|
+
const [draft, setDraft] = require__global_external_react.useState(content);
|
|
699
|
+
const [chart, setChart] = require__global_external_react.useState("");
|
|
700
|
+
const [busy, setBusy] = require__global_external_react.useState(false);
|
|
701
|
+
const [attempted, setAttempted] = require__global_external_react.useState(false);
|
|
702
|
+
const [refreshing, setRefreshing] = require__global_external_react.useState(false);
|
|
703
|
+
const [error, setError] = require__global_external_react.useState("");
|
|
704
|
+
const live = require__global_external_react.useRef(true);
|
|
705
|
+
const operation = require__global_external_react.useRef();
|
|
706
|
+
const choices = state.result?.ok ? state.result.chartChoices ?? [] : [];
|
|
707
|
+
const sourceStatusRef = require__global_external_react.useRef(null);
|
|
708
|
+
const [sourceStatusHeight, setSourceStatusHeight] = require__global_external_react.useState(0);
|
|
709
|
+
require__global_external_react.useLayoutEffect(() => {
|
|
710
|
+
const root = sourceStatusRef.current;
|
|
711
|
+
if (state.loading || choices.length || !root) return;
|
|
712
|
+
const measure = () => setSourceStatusHeight(root.getBoundingClientRect().height);
|
|
713
|
+
measure();
|
|
714
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
715
|
+
const observer = new ResizeObserver(measure);
|
|
716
|
+
observer.observe(root);
|
|
717
|
+
return () => observer.disconnect();
|
|
718
|
+
}, [
|
|
719
|
+
state.loading,
|
|
720
|
+
state.error,
|
|
721
|
+
choices.length
|
|
722
|
+
]);
|
|
723
|
+
const selectedChart = chart || choices[0]?.ref || "";
|
|
724
|
+
const permitted = Boolean(state.result?.ok && state.result.upgradeAllowed && !state.loading && !state.stale && !state.error && !require_read_only_preferences_store.ReadOnlyPreferencesStore.getInstanceOrCreate().enabled && require_power_preferences_store.PowerPreferencesStore.getInstanceOrCreate().enabled && !require_helm_operations.helmOperations.isRunning(clusterId, contextId, release.namespace, release.name));
|
|
725
|
+
const [validation, setValidation] = require__global_external_react.useState(() => ({
|
|
726
|
+
draft: content,
|
|
727
|
+
error: validateDraft(content)
|
|
728
|
+
}));
|
|
729
|
+
const validationPending = validation.draft !== draft;
|
|
730
|
+
require__global_external_react.useEffect(() => {
|
|
731
|
+
if (!validationPending) return;
|
|
732
|
+
const timer = setTimeout(() => setValidation({
|
|
733
|
+
draft,
|
|
734
|
+
error: validateDraft(draft)
|
|
735
|
+
}), 150);
|
|
736
|
+
return () => clearTimeout(timer);
|
|
737
|
+
}, [draft, validationPending]);
|
|
738
|
+
const validationError = validationPending ? void 0 : validation.error;
|
|
739
|
+
const ready = permitted && !validationPending && !validationError && draft !== content && choices.some((choice) => choice.ref === selectedChart) && !attempted && !busy;
|
|
740
|
+
const latest = require__global_external_react.useRef({
|
|
741
|
+
ready,
|
|
742
|
+
draft,
|
|
743
|
+
selectedChart
|
|
744
|
+
});
|
|
745
|
+
latest.current = {
|
|
746
|
+
ready,
|
|
747
|
+
draft,
|
|
748
|
+
selectedChart
|
|
749
|
+
};
|
|
750
|
+
require__global_external_react.useEffect(() => () => {
|
|
751
|
+
live.current = false;
|
|
752
|
+
if (operation.current) electron.ipcRenderer.invoke(require_helm.HELM_CHANNEL, {
|
|
753
|
+
...operation.current,
|
|
754
|
+
operation: "cancel"
|
|
755
|
+
}).catch(() => void 0);
|
|
756
|
+
}, []);
|
|
757
|
+
const save = () => {
|
|
758
|
+
if (!ready) return;
|
|
759
|
+
const values = draft;
|
|
760
|
+
const chartRef = selectedChart;
|
|
761
|
+
require_extensions.Renderer.Component.ConfirmDialog.open({
|
|
762
|
+
message: /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
763
|
+
className: "power-helm-confirmation",
|
|
764
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
765
|
+
className: "helm-confirmation-heading",
|
|
766
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsxs("strong", { children: [
|
|
767
|
+
"Apply values to ",
|
|
768
|
+
release.name,
|
|
769
|
+
"?"
|
|
770
|
+
] }), /* @__PURE__ */ require_jsx_runtime.jsx("p", { children: "This upgrades the current release using the same chart version. Review your changes before applying." })]
|
|
771
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx(require_helm_code_view.HelmRevisionDiff, {
|
|
772
|
+
before: content,
|
|
773
|
+
after: values,
|
|
774
|
+
beforeLabel: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsxs("span", { children: ["Current · Revision ", release.revision] }), /* @__PURE__ */ require_jsx_runtime.jsx(StatusBadge, { status: release.status })] }),
|
|
775
|
+
afterLabel: "Proposed values"
|
|
776
|
+
})]
|
|
777
|
+
}),
|
|
778
|
+
labelOk: "Apply values",
|
|
779
|
+
okButtonProps: { className: "power-helm-confirm" },
|
|
780
|
+
ok: () => {
|
|
781
|
+
if (!live.current || operation.current || !latest.current.ready || latest.current.draft !== values || latest.current.selectedChart !== chartRef || require_read_only_preferences_store.ReadOnlyPreferencesStore.getInstanceOrCreate().enabled || !require_power_preferences_store.PowerPreferencesStore.getInstanceOrCreate().enabled) return;
|
|
782
|
+
const payload = {
|
|
783
|
+
operation: "upgrade-values",
|
|
784
|
+
requestId: `${session}-${++requestSequence}`,
|
|
785
|
+
clusterId,
|
|
786
|
+
contextId: state.result?.ok ? state.result.contextId ?? contextId : contextId,
|
|
787
|
+
namespace: release.namespace,
|
|
788
|
+
name: release.name,
|
|
789
|
+
revision: release.revision,
|
|
790
|
+
uid: release.uid,
|
|
791
|
+
chart: chartRef,
|
|
792
|
+
values,
|
|
793
|
+
confirmed: true
|
|
794
|
+
};
|
|
795
|
+
operation.current = payload;
|
|
796
|
+
setBusy(true);
|
|
797
|
+
setAttempted(true);
|
|
798
|
+
setError("");
|
|
799
|
+
electron.ipcRenderer.invoke(require_helm.HELM_CHANNEL, payload).then((response) => {
|
|
800
|
+
if (!live.current) return;
|
|
801
|
+
if (!response.ok) throw responseError(response);
|
|
802
|
+
onChanged();
|
|
803
|
+
onCancel();
|
|
804
|
+
}).catch((failure) => {
|
|
805
|
+
if (live.current) {
|
|
806
|
+
setError(failure instanceof Error ? failure.message : String(failure));
|
|
807
|
+
if (failure instanceof Error && "code" in failure && [
|
|
808
|
+
"invalid-values",
|
|
809
|
+
"invalid-request",
|
|
810
|
+
"chart-unavailable"
|
|
811
|
+
].includes(String(failure.code))) setAttempted(false);
|
|
812
|
+
}
|
|
813
|
+
}).finally(() => {
|
|
814
|
+
operation.current = void 0;
|
|
815
|
+
if (live.current) setBusy(false);
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
});
|
|
819
|
+
};
|
|
820
|
+
const refreshRelease = () => {
|
|
821
|
+
if (!live.current || operation.current || busy || require_read_only_preferences_store.ReadOnlyPreferencesStore.getInstanceOrCreate().enabled || !require_power_preferences_store.PowerPreferencesStore.getInstanceOrCreate().enabled) return;
|
|
822
|
+
const trustedContextId = state.result?.ok ? state.result.contextId ?? contextId : contextId;
|
|
823
|
+
const payload = {
|
|
824
|
+
operation: "history",
|
|
825
|
+
requestId: `${session}-${++requestSequence}`,
|
|
826
|
+
clusterId,
|
|
827
|
+
namespace: release.namespace,
|
|
828
|
+
name: release.name,
|
|
829
|
+
contextId: trustedContextId,
|
|
830
|
+
refresh: true
|
|
831
|
+
};
|
|
832
|
+
operation.current = payload;
|
|
833
|
+
setBusy(true);
|
|
834
|
+
setRefreshing(true);
|
|
835
|
+
electron.ipcRenderer.invoke(require_helm.HELM_CHANNEL, payload).then((response) => {
|
|
836
|
+
if (!live.current) return;
|
|
837
|
+
if (!response.ok) throw responseError(response);
|
|
838
|
+
if (trustedContextId && response.contextId && response.contextId !== trustedContextId) throw new Error("The cluster context changed. Reopen the release before editing values.");
|
|
839
|
+
if (require_read_only_preferences_store.ReadOnlyPreferencesStore.getInstanceOrCreate().enabled || !require_power_preferences_store.PowerPreferencesStore.getInstanceOrCreate().enabled) return;
|
|
840
|
+
setError("");
|
|
841
|
+
setAttempted(false);
|
|
842
|
+
state.refresh();
|
|
843
|
+
onChanged();
|
|
844
|
+
onCancel();
|
|
845
|
+
}).catch((failure) => {
|
|
846
|
+
if (live.current) setError(failure instanceof Error ? failure.message : String(failure));
|
|
847
|
+
}).finally(() => {
|
|
848
|
+
operation.current = void 0;
|
|
849
|
+
if (live.current) {
|
|
850
|
+
setBusy(false);
|
|
851
|
+
setRefreshing(false);
|
|
852
|
+
}
|
|
853
|
+
});
|
|
854
|
+
};
|
|
855
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
856
|
+
className: "helm-values-editor",
|
|
857
|
+
children: [
|
|
858
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
859
|
+
className: "helm-edit-notice",
|
|
860
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
861
|
+
material: "edit",
|
|
862
|
+
size: 16
|
|
863
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsxs("div", { children: [/* @__PURE__ */ require_jsx_runtime.jsx("strong", { children: "Edit current values" }), /* @__PURE__ */ require_jsx_runtime.jsx("p", { children: "Applying creates a new release revision. The chart version stays unchanged." })] })]
|
|
864
|
+
}),
|
|
865
|
+
!choices.length && /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
866
|
+
ref: sourceStatusRef,
|
|
867
|
+
className: `helm-chart-source-status${state.loading ? " helm-chart-source-loading" : ""}`,
|
|
868
|
+
style: state.loading && sourceStatusHeight ? { minHeight: sourceStatusHeight } : void 0,
|
|
869
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
870
|
+
state,
|
|
871
|
+
refreshLabel: "Refresh chart sources",
|
|
872
|
+
loadingLabel: "Loading chart sources…"
|
|
873
|
+
}), !state.loading && !state.error && /* @__PURE__ */ require_jsx_runtime.jsx("p", {
|
|
874
|
+
role: "alert",
|
|
875
|
+
children: "No matching chart is available in your Helm repositories. Add the repository for this chart before editing values."
|
|
876
|
+
})]
|
|
877
|
+
}),
|
|
878
|
+
choices.length > 0 && /* @__PURE__ */ require_jsx_runtime.jsxs("label", {
|
|
879
|
+
className: "helm-filter",
|
|
880
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
881
|
+
className: "helm-field-heading",
|
|
882
|
+
children: ["Chart source · same version", /* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
883
|
+
state,
|
|
884
|
+
refreshLabel: "Refresh chart sources"
|
|
885
|
+
})]
|
|
886
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx(Select, {
|
|
887
|
+
"aria-label": "Chart source",
|
|
888
|
+
value: selectedChart,
|
|
889
|
+
options: choices.map((choice) => ({
|
|
890
|
+
value: choice.ref,
|
|
891
|
+
label: `${choice.ref === "@installed" ? "Installed release chart" : choice.ref} · ${choice.version}`
|
|
892
|
+
})),
|
|
893
|
+
onChange: (option) => setChart(option?.value ?? "")
|
|
894
|
+
})]
|
|
895
|
+
}),
|
|
896
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(require_helm_code_view.HelmCodeView, {
|
|
897
|
+
value: draft,
|
|
898
|
+
readOnly: busy || attempted || !permitted,
|
|
899
|
+
onChange: (value) => {
|
|
900
|
+
setDraft(value);
|
|
901
|
+
setError("");
|
|
902
|
+
},
|
|
903
|
+
ariaLabel: "Edit current release values",
|
|
904
|
+
style: {
|
|
905
|
+
height: "100%",
|
|
906
|
+
minHeight: 0,
|
|
907
|
+
flex: 1
|
|
908
|
+
}
|
|
909
|
+
}),
|
|
910
|
+
validationPending && /* @__PURE__ */ require_jsx_runtime.jsx("small", {
|
|
911
|
+
className: "helm-validation-pending",
|
|
912
|
+
role: "status",
|
|
913
|
+
children: "Checking YAML…"
|
|
914
|
+
}),
|
|
915
|
+
validationError && /* @__PURE__ */ require_jsx_runtime.jsx(InlineAlert, { children: validationError }),
|
|
916
|
+
error && /* @__PURE__ */ require_jsx_runtime.jsx(InlineAlert, { children: error }),
|
|
917
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
918
|
+
className: "helm-toolbar",
|
|
919
|
+
children: [
|
|
920
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
921
|
+
className: "helm-comparison-toggle",
|
|
922
|
+
"aria-label": refreshing ? "Refreshing…" : busy ? "Applying…" : "Review changes",
|
|
923
|
+
label: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
924
|
+
material: refreshing || busy ? "autorenew" : "difference",
|
|
925
|
+
size: 16
|
|
926
|
+
}), refreshing ? "Refreshing…" : busy ? "Applying…" : "Review changes"] }),
|
|
927
|
+
disabled: !ready,
|
|
928
|
+
onClick: save
|
|
929
|
+
}),
|
|
930
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
931
|
+
className: "helm-comparison-toggle",
|
|
932
|
+
"aria-label": "Cancel editing",
|
|
933
|
+
label: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
934
|
+
material: "close",
|
|
935
|
+
size: 16
|
|
936
|
+
}), "Cancel editing"] }),
|
|
937
|
+
disabled: busy,
|
|
938
|
+
onClick: onCancel
|
|
939
|
+
}),
|
|
940
|
+
attempted && !busy && /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
941
|
+
label: "Refresh release",
|
|
942
|
+
onClick: refreshRelease
|
|
943
|
+
})
|
|
944
|
+
]
|
|
945
|
+
})
|
|
946
|
+
]
|
|
947
|
+
});
|
|
948
|
+
});
|
|
949
|
+
function RevisionComparison({ clusterId, contextId, release, selected, section, selectedState, onReadyChange, baselineLabel, toolbar }) {
|
|
950
|
+
const state = useHelmRequest({
|
|
951
|
+
clusterId,
|
|
952
|
+
contextId,
|
|
953
|
+
namespace: release.namespace,
|
|
954
|
+
operation: "details",
|
|
955
|
+
name: release.name,
|
|
956
|
+
revision: release.revision,
|
|
957
|
+
uid: release.uid,
|
|
958
|
+
section
|
|
959
|
+
});
|
|
960
|
+
const current = state.result?.ok ? state.result.detail : void 0;
|
|
961
|
+
const selectedDetail = selectedState.result?.ok ? selectedState.result.detail : void 0;
|
|
962
|
+
const combinedState = {
|
|
963
|
+
...state,
|
|
964
|
+
loading: selectedState.loading || state.loading,
|
|
965
|
+
stale: selectedState.stale || state.stale,
|
|
966
|
+
error: selectedState.error || state.error,
|
|
967
|
+
cancel: () => {
|
|
968
|
+
selectedState.cancel();
|
|
969
|
+
state.cancel();
|
|
970
|
+
},
|
|
971
|
+
refresh: () => {
|
|
972
|
+
selectedState.refresh();
|
|
973
|
+
state.refresh();
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
const ready = !combinedState.loading && !combinedState.error && !combinedState.stale && current && selectedDetail;
|
|
977
|
+
require__global_external_react.useLayoutEffect(() => onReadyChange(Boolean(ready)), [Boolean(ready), onReadyChange]);
|
|
978
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [
|
|
979
|
+
!ready && /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
980
|
+
className: "helm-comparison-loading",
|
|
981
|
+
"aria-label": "Comparison loading state",
|
|
982
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
983
|
+
state: combinedState,
|
|
984
|
+
loadingLabel: "Loading comparison…",
|
|
985
|
+
showTimestamp: false,
|
|
986
|
+
labeled: true
|
|
987
|
+
}), !combinedState.loading && !combinedState.error && /* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "Refresh to load both revisions for comparison." })]
|
|
988
|
+
}),
|
|
989
|
+
ready && toolbar && require__global_external_react_dom.createPortal(/* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
990
|
+
state: combinedState,
|
|
991
|
+
labeled: true
|
|
992
|
+
}), toolbar),
|
|
993
|
+
ready && /* @__PURE__ */ require_jsx_runtime.jsx(require_helm_code_view.HelmRevisionDiff, {
|
|
994
|
+
before: selectedDetail.content,
|
|
995
|
+
after: current.content,
|
|
996
|
+
beforeLabel: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [
|
|
997
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
998
|
+
className: "helm-version-badge",
|
|
999
|
+
children: ["Revision ", selected.revision]
|
|
1000
|
+
}),
|
|
1001
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(StatusBadge, { status: selected.status }),
|
|
1002
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(ReleaseAppVersion, {
|
|
1003
|
+
clusterId,
|
|
1004
|
+
contextId,
|
|
1005
|
+
release: selected
|
|
1006
|
+
})
|
|
1007
|
+
] }),
|
|
1008
|
+
afterLabel: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [
|
|
1009
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
1010
|
+
className: "helm-version-badge",
|
|
1011
|
+
children: [
|
|
1012
|
+
baselineLabel,
|
|
1013
|
+
" · Revision ",
|
|
1014
|
+
release.revision
|
|
1015
|
+
]
|
|
1016
|
+
}),
|
|
1017
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(StatusBadge, { status: release.status }),
|
|
1018
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(ReleaseAppVersion, {
|
|
1019
|
+
clusterId,
|
|
1020
|
+
contextId,
|
|
1021
|
+
release
|
|
1022
|
+
})
|
|
1023
|
+
] })
|
|
1024
|
+
})
|
|
1025
|
+
] });
|
|
1026
|
+
}
|
|
1027
|
+
var History = require__global_external_mobx_react.observer(({ clusterId, contextId, release, onView, onLatest, onDeployed, generation, restoreTarget }) => {
|
|
1028
|
+
const state = useHelmRequest({
|
|
1029
|
+
clusterId,
|
|
1030
|
+
contextId,
|
|
1031
|
+
namespace: release.namespace,
|
|
1032
|
+
operation: "history",
|
|
1033
|
+
refresh: Boolean(restoreTarget),
|
|
1034
|
+
name: release.name
|
|
1035
|
+
}, void 0, generation);
|
|
1036
|
+
const [selectedRevision, setRevision] = require__global_external_react.useState();
|
|
1037
|
+
const revision = restoreTarget?.revision ?? selectedRevision;
|
|
1038
|
+
const [versionGeneration, setVersionGeneration] = require__global_external_react.useState(0);
|
|
1039
|
+
const [revisionFilter, setRevisionFilter] = require__global_external_react.useState("");
|
|
1040
|
+
const historyIdentity = JSON.stringify([
|
|
1041
|
+
clusterId,
|
|
1042
|
+
contextId,
|
|
1043
|
+
release.namespace,
|
|
1044
|
+
release.name
|
|
1045
|
+
]);
|
|
1046
|
+
const [removedRevisions, setRemovedRevisions] = require__global_external_react.useState();
|
|
1047
|
+
const revisions = require__global_external_react.useMemo(() => {
|
|
1048
|
+
const removedUids = removedRevisions?.identity === historyIdentity ? removedRevisions.uids : [];
|
|
1049
|
+
return state.result?.ok ? (state.result.releases ?? []).filter((item) => !item.uid || !removedUids.includes(item.uid)) : [];
|
|
1050
|
+
}, [
|
|
1051
|
+
state.result,
|
|
1052
|
+
removedRevisions,
|
|
1053
|
+
historyIdentity
|
|
1054
|
+
]);
|
|
1055
|
+
const [page, setPage] = require__global_external_react.useState(0);
|
|
1056
|
+
const historyFrame = require__global_external_react.useRef(null);
|
|
1057
|
+
const [revealRevision, setRevealRevision] = require__global_external_react.useState();
|
|
1058
|
+
require__global_external_react.useEffect(() => {
|
|
1059
|
+
if (historyFrame.current) historyFrame.current.scrollTop = 0;
|
|
1060
|
+
}, [
|
|
1061
|
+
page,
|
|
1062
|
+
revisionFilter,
|
|
1063
|
+
state.result
|
|
1064
|
+
]);
|
|
1065
|
+
require__global_external_react.useEffect(() => setPage(0), [
|
|
1066
|
+
state.result,
|
|
1067
|
+
revisionFilter,
|
|
1068
|
+
removedRevisions
|
|
1069
|
+
]);
|
|
1070
|
+
const [versionsPaused, setVersionsPaused] = require__global_external_react.useState(false);
|
|
1071
|
+
const versionIndex = require_helm_version_index.useHelmVersionIndex({
|
|
1072
|
+
clusterId,
|
|
1073
|
+
contextId: contextId ?? "",
|
|
1074
|
+
releases: revisions,
|
|
1075
|
+
active: Boolean(contextId && state.result?.ok && !state.loading && !state.error && !state.stale && !versionsPaused),
|
|
1076
|
+
refreshToken: versionGeneration
|
|
1077
|
+
});
|
|
1078
|
+
const history = state.result?.ok ? revisions.filter((item) => !revisionFilter || String(item.revision) === revisionFilter || (versionIndex.versionFor(item)?.appVersion ?? "").toLowerCase().includes(revisionFilter.toLowerCase())) : [];
|
|
1079
|
+
const historyPage = history.slice(page * 50, (page + 1) * 50);
|
|
1080
|
+
require__global_external_react.useEffect(() => {
|
|
1081
|
+
if (revealRevision === void 0) return;
|
|
1082
|
+
if (revealRevision.result !== state.result) {
|
|
1083
|
+
setRevealRevision(void 0);
|
|
1084
|
+
return;
|
|
1085
|
+
}
|
|
1086
|
+
if (revisionFilter) {
|
|
1087
|
+
setRevisionFilter("");
|
|
1088
|
+
setPage(0);
|
|
1089
|
+
return;
|
|
1090
|
+
}
|
|
1091
|
+
const index = revisions.findIndex((item) => item.revision === revealRevision.revision);
|
|
1092
|
+
if (index < 0) {
|
|
1093
|
+
setRevealRevision(void 0);
|
|
1094
|
+
return;
|
|
1095
|
+
}
|
|
1096
|
+
const targetPage = Math.floor(index / 50);
|
|
1097
|
+
if (page !== targetPage) {
|
|
1098
|
+
setPage(targetPage);
|
|
1099
|
+
return;
|
|
1100
|
+
}
|
|
1101
|
+
const row = historyFrame.current?.querySelector(`tr[data-revision="${revealRevision.revision}"]`);
|
|
1102
|
+
if (!row) return;
|
|
1103
|
+
row.scrollIntoView({ block: "nearest" });
|
|
1104
|
+
row.querySelector("input")?.focus({ preventScroll: true });
|
|
1105
|
+
setRevealRevision(void 0);
|
|
1106
|
+
}, [
|
|
1107
|
+
revealRevision,
|
|
1108
|
+
revisionFilter,
|
|
1109
|
+
page,
|
|
1110
|
+
state.result,
|
|
1111
|
+
revisions
|
|
1112
|
+
]);
|
|
1113
|
+
require__global_external_react.useEffect(() => {
|
|
1114
|
+
if (!state.result?.ok || state.loading || state.error || state.stale || contextId && state.result.contextId && contextId !== state.result.contextId) return;
|
|
1115
|
+
const latest = (state.result.releases ?? []).filter((item) => item.name === release.name && item.namespace === release.namespace).reduce((highest, item) => !highest || item.revision > highest.revision ? item : highest, void 0);
|
|
1116
|
+
if (latest) onLatest(latest);
|
|
1117
|
+
onDeployed((state.result.releases ?? []).filter((item) => item.name === release.name && item.namespace === release.namespace && item.status === "deployed").reduce((highest, item) => !highest || item.revision > highest.revision ? item : highest, void 0));
|
|
1118
|
+
}, [
|
|
1119
|
+
state.result,
|
|
1120
|
+
state.loading,
|
|
1121
|
+
state.error,
|
|
1122
|
+
state.stale
|
|
1123
|
+
]);
|
|
1124
|
+
const [confirmed, setConfirmed] = require__global_external_react.useState(false);
|
|
1125
|
+
require__global_external_react.useEffect(() => setConfirmed(false), [
|
|
1126
|
+
state.result,
|
|
1127
|
+
state.loading,
|
|
1128
|
+
generation,
|
|
1129
|
+
contextId,
|
|
1130
|
+
restoreTarget?.revision,
|
|
1131
|
+
restoreTarget?.uid
|
|
1132
|
+
]);
|
|
1133
|
+
const [requestBusy, setBusy] = require__global_external_react.useState(false);
|
|
1134
|
+
const busy = requestBusy || require_helm_operations.helmOperations.isRunning(clusterId, contextId, release.namespace, release.name);
|
|
1135
|
+
const [error, setError] = require__global_external_react.useState("");
|
|
1136
|
+
const live = require__global_external_react.useRef(true);
|
|
1137
|
+
const operation = require__global_external_react.useRef();
|
|
1138
|
+
require__global_external_react.useEffect(() => () => {
|
|
1139
|
+
live.current = false;
|
|
1140
|
+
}, []);
|
|
1141
|
+
const readOnly = require_read_only_preferences_store.ReadOnlyPreferencesStore.getInstanceOrCreate().enabled;
|
|
1142
|
+
const allowed = state.result?.ok && state.result.rollbackAllowed && !readOnly && require_power_preferences_store.PowerPreferencesStore.getInstanceOrCreate().enabled;
|
|
1143
|
+
require__global_external_react.useEffect(() => {
|
|
1144
|
+
if (!allowed) {
|
|
1145
|
+
setConfirmed(false);
|
|
1146
|
+
setRevision(void 0);
|
|
1147
|
+
}
|
|
1148
|
+
}, [allowed]);
|
|
1149
|
+
const historyCurrent = !state.loading && !state.error && !state.stale && !(contextId && state.result?.ok && state.result.contextId && contextId !== state.result.contextId);
|
|
1150
|
+
const eligible = require__global_external_react.useRef(false);
|
|
1151
|
+
const target = state.result?.ok ? state.result.releases?.find((item) => item.revision === revision && item.name === release.name && item.namespace === release.namespace && (!restoreTarget || item.uid === restoreTarget.uid && item.revision !== release.revision)) : void 0;
|
|
1152
|
+
eligible.current = Boolean(allowed && historyCurrent && target);
|
|
1153
|
+
const consent = require__global_external_react.useRef({
|
|
1154
|
+
revision,
|
|
1155
|
+
confirmed,
|
|
1156
|
+
uid: target?.uid
|
|
1157
|
+
});
|
|
1158
|
+
consent.current = {
|
|
1159
|
+
revision,
|
|
1160
|
+
confirmed,
|
|
1161
|
+
uid: target?.uid
|
|
1162
|
+
};
|
|
1163
|
+
const rollback = () => {
|
|
1164
|
+
if (!allowed || !historyCurrent || !confirmed || !revision || !target || busy) return;
|
|
1165
|
+
const targetUid = target.uid;
|
|
1166
|
+
require_extensions.Renderer.Component.ConfirmDialog.open({
|
|
1167
|
+
message: /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1168
|
+
className: "power-helm-confirmation helm-rollback-confirmation",
|
|
1169
|
+
children: [
|
|
1170
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("strong", { children: [
|
|
1171
|
+
"Roll back ",
|
|
1172
|
+
release.name,
|
|
1173
|
+
"?"
|
|
1174
|
+
] }),
|
|
1175
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("p", { children: [
|
|
1176
|
+
"Restore this release in ",
|
|
1177
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("strong", { children: release.namespace }),
|
|
1178
|
+
" to revision"
|
|
1179
|
+
] }),
|
|
1180
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1181
|
+
className: "helm-confirmation-target",
|
|
1182
|
+
children: [
|
|
1183
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
1184
|
+
material: "restore",
|
|
1185
|
+
size: 18
|
|
1186
|
+
}),
|
|
1187
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
1188
|
+
className: "helm-version-badge helm-revision-badge",
|
|
1189
|
+
"aria-label": `Target revision ${revision}`,
|
|
1190
|
+
children: ["Revision ", revision]
|
|
1191
|
+
}),
|
|
1192
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(StatusBadge, { status: target.status }),
|
|
1193
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
1194
|
+
className: "helm-target-version",
|
|
1195
|
+
children: [
|
|
1196
|
+
"App version",
|
|
1197
|
+
" ",
|
|
1198
|
+
contextId ? /* @__PURE__ */ require_jsx_runtime.jsx(require_helm_app_version.HelmAppVersionCell, {
|
|
1199
|
+
clusterId,
|
|
1200
|
+
contextId,
|
|
1201
|
+
release: target,
|
|
1202
|
+
knownVersion: versionIndex.versionFor(target),
|
|
1203
|
+
refreshToken: versionGeneration
|
|
1204
|
+
}) : "—"
|
|
1205
|
+
]
|
|
1206
|
+
})
|
|
1207
|
+
]
|
|
1208
|
+
}),
|
|
1209
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("p", {
|
|
1210
|
+
className: "helm-confirmation-explanation",
|
|
1211
|
+
children: "Rolling back creates a new revision. Existing history is preserved."
|
|
1212
|
+
})
|
|
1213
|
+
]
|
|
1214
|
+
}),
|
|
1215
|
+
icon: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
1216
|
+
material: "warning",
|
|
1217
|
+
size: 28
|
|
1218
|
+
}),
|
|
1219
|
+
labelOk: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
1220
|
+
material: "restore",
|
|
1221
|
+
size: 18
|
|
1222
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsxs("span", { children: ["Roll back to revision ", revision] })] }),
|
|
1223
|
+
okButtonProps: { className: "power-helm-confirm power-helm-confirm-rollback" },
|
|
1224
|
+
ok: () => {
|
|
1225
|
+
if (!live.current || !eligible.current || !consent.current.confirmed || consent.current.revision !== revision || consent.current.uid !== targetUid || operation.current || require_read_only_preferences_store.ReadOnlyPreferencesStore.getInstanceOrCreate().enabled || !require_power_preferences_store.PowerPreferencesStore.getInstanceOrCreate().enabled) return;
|
|
1226
|
+
const payload = {
|
|
1227
|
+
operation: "rollback",
|
|
1228
|
+
requestId: `${session}-${++requestSequence}`,
|
|
1229
|
+
clusterId,
|
|
1230
|
+
namespace: release.namespace,
|
|
1231
|
+
name: release.name,
|
|
1232
|
+
revision,
|
|
1233
|
+
uid: targetUid,
|
|
1234
|
+
confirmed: true,
|
|
1235
|
+
contextId: state.result?.ok ? state.result.contextId ?? contextId : contextId
|
|
1236
|
+
};
|
|
1237
|
+
operation.current = payload;
|
|
1238
|
+
setBusy(true);
|
|
1239
|
+
setError("");
|
|
1240
|
+
require_helm_operations.helmOperations.start(payload).then((result) => {
|
|
1241
|
+
if (!live.current) return;
|
|
1242
|
+
if (!result.ok) throw responseError(result);
|
|
1243
|
+
}).catch((failure) => {
|
|
1244
|
+
if (live.current) setError(failure instanceof Error ? failure.message : String(failure));
|
|
1245
|
+
}).finally(() => {
|
|
1246
|
+
operation.current = void 0;
|
|
1247
|
+
if (live.current) {
|
|
1248
|
+
setBusy(false);
|
|
1249
|
+
setConfirmed(false);
|
|
1250
|
+
setRevision(void 0);
|
|
1251
|
+
state.refresh();
|
|
1252
|
+
}
|
|
1253
|
+
});
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
};
|
|
1257
|
+
const requestStatus = /* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
1258
|
+
state: {
|
|
1259
|
+
...state,
|
|
1260
|
+
refresh: () => {
|
|
1261
|
+
setVersionGeneration((value) => value + 1);
|
|
1262
|
+
state.refresh();
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
refreshLabel: restoreTarget ? "Refresh restore availability" : "Refresh",
|
|
1266
|
+
showTimestamp: !restoreTarget
|
|
1267
|
+
});
|
|
1268
|
+
if (restoreTarget && readOnly) return null;
|
|
1269
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1270
|
+
className: restoreTarget ? "helm-restore-revision" : "helm-history-layout",
|
|
1271
|
+
children: [
|
|
1272
|
+
(!state.result?.ok || restoreTarget && !allowed) && requestStatus,
|
|
1273
|
+
!restoreTarget && state.result?.ok && /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1274
|
+
className: "helm-toolbar helm-history-tools",
|
|
1275
|
+
children: [
|
|
1276
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(HelmSearchField, {
|
|
1277
|
+
label: "Search revision history",
|
|
1278
|
+
placeholder: "Revision or App version",
|
|
1279
|
+
value: revisionFilter,
|
|
1280
|
+
onChange: setRevisionFilter,
|
|
1281
|
+
clearLabel: "Clear revision search"
|
|
1282
|
+
}),
|
|
1283
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("small", { children: history.length !== revisions.length ? `${history.length} of ${revisions.length} revisions` : `${history.length} ${history.length === 1 ? "revision" : "revisions"}` }),
|
|
1284
|
+
revision && /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
1285
|
+
title: "Return to the selected revision in the table",
|
|
1286
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
1287
|
+
className: "helm-inline-action",
|
|
1288
|
+
"aria-label": "Show selected revision",
|
|
1289
|
+
label: `Selected Revision ${revision}`,
|
|
1290
|
+
onClick: () => {
|
|
1291
|
+
if (!state.result?.ok) return;
|
|
1292
|
+
setRevisionFilter("");
|
|
1293
|
+
setPage(0);
|
|
1294
|
+
setRevealRevision({
|
|
1295
|
+
revision,
|
|
1296
|
+
result: state.result
|
|
1297
|
+
});
|
|
1298
|
+
},
|
|
1299
|
+
disabled: busy || !historyCurrent
|
|
1300
|
+
})
|
|
1301
|
+
}),
|
|
1302
|
+
readOnly && /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
1303
|
+
title: "Read-only mode is enabled. Revision contents and comparisons remain available",
|
|
1304
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
1305
|
+
className: "helm-access-badge",
|
|
1306
|
+
role: "status",
|
|
1307
|
+
"aria-label": "Read only",
|
|
1308
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
1309
|
+
material: "lock_outline",
|
|
1310
|
+
size: 14
|
|
1311
|
+
}), "Read only"]
|
|
1312
|
+
})
|
|
1313
|
+
}),
|
|
1314
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("div", {
|
|
1315
|
+
className: "helm-history-refresh",
|
|
1316
|
+
children: requestStatus
|
|
1317
|
+
})
|
|
1318
|
+
]
|
|
1319
|
+
}),
|
|
1320
|
+
!restoreTarget && revisionFilter && /* @__PURE__ */ require_jsx_runtime.jsx(VersionSearchProgress, {
|
|
1321
|
+
index: versionIndex,
|
|
1322
|
+
paused: versionsPaused,
|
|
1323
|
+
onToggle: () => setVersionsPaused((value) => !value),
|
|
1324
|
+
onRefresh: () => {
|
|
1325
|
+
setVersionsPaused(false);
|
|
1326
|
+
setVersionGeneration((value) => value + 1);
|
|
1327
|
+
}
|
|
1328
|
+
}),
|
|
1329
|
+
!restoreTarget && state.result?.ok && /* @__PURE__ */ require_jsx_runtime.jsx("div", {
|
|
1330
|
+
ref: historyFrame,
|
|
1331
|
+
className: "helm-history-frame",
|
|
1332
|
+
role: "region",
|
|
1333
|
+
"aria-label": "Revision history table",
|
|
1334
|
+
tabIndex: 0,
|
|
1335
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsxs("table", {
|
|
1336
|
+
className: "helm-table helm-history-table",
|
|
1337
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("thead", { children: /* @__PURE__ */ require_jsx_runtime.jsxs("tr", { children: [
|
|
1338
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("th", { children: "Revision" }),
|
|
1339
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("th", { children: "App version" }),
|
|
1340
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("th", { children: "Status" }),
|
|
1341
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("th", { children: "Updated" }),
|
|
1342
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("th", { children: /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
1343
|
+
className: "helm-sr-only",
|
|
1344
|
+
children: "Actions"
|
|
1345
|
+
}) })
|
|
1346
|
+
] }) }), /* @__PURE__ */ require_jsx_runtime.jsxs("tbody", { children: [!history.length && /* @__PURE__ */ require_jsx_runtime.jsx("tr", { children: /* @__PURE__ */ require_jsx_runtime.jsx("td", {
|
|
1347
|
+
colSpan: 5,
|
|
1348
|
+
className: "helm-history-empty",
|
|
1349
|
+
children: versionIndex.completed < versionIndex.total || versionIndex.errors > 0 || versionIndex.truncated ? "No known matches yet" : "No matching revisions"
|
|
1350
|
+
}) }), historyPage.map((item) => /* @__PURE__ */ require_jsx_runtime.jsxs("tr", {
|
|
1351
|
+
"data-revision": item.revision,
|
|
1352
|
+
"data-selected": revision === item.revision,
|
|
1353
|
+
tabIndex: historyCurrent && !busy ? 0 : -1,
|
|
1354
|
+
"aria-disabled": !historyCurrent || busy,
|
|
1355
|
+
onClick: (event) => {
|
|
1356
|
+
if (!historyCurrent || busy || event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || window.getSelection()?.toString() || event.target instanceof Element && event.target.closest("button, input, a, label, select, textarea, [role=button]")) return;
|
|
1357
|
+
onView(item);
|
|
1358
|
+
},
|
|
1359
|
+
onKeyDown: (event) => {
|
|
1360
|
+
if (!historyCurrent || busy || event.defaultPrevented || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.target !== event.currentTarget || !["Enter", " "].includes(event.key)) return;
|
|
1361
|
+
event.preventDefault();
|
|
1362
|
+
onView(item);
|
|
1363
|
+
},
|
|
1364
|
+
children: [
|
|
1365
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", {
|
|
1366
|
+
className: "helm-revision-cell",
|
|
1367
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1368
|
+
className: "helm-history-revision",
|
|
1369
|
+
children: [allowed ? /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx("label", {
|
|
1370
|
+
className: "helm-revision-select",
|
|
1371
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("input", {
|
|
1372
|
+
"aria-label": `Revision ${item.revision}`,
|
|
1373
|
+
type: "radio",
|
|
1374
|
+
name: "helm-revision",
|
|
1375
|
+
checked: revision === item.revision,
|
|
1376
|
+
disabled: busy || !historyCurrent,
|
|
1377
|
+
onChange: () => {
|
|
1378
|
+
setRevision(item.revision);
|
|
1379
|
+
setConfirmed(false);
|
|
1380
|
+
}
|
|
1381
|
+
})
|
|
1382
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
1383
|
+
className: "helm-version-badge",
|
|
1384
|
+
children: item.revision
|
|
1385
|
+
})] }) : /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
1386
|
+
className: "helm-version-badge",
|
|
1387
|
+
"aria-label": `Revision ${item.revision}`,
|
|
1388
|
+
children: item.revision
|
|
1389
|
+
}), item.revision === release.revision && /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
1390
|
+
className: "helm-current-tag",
|
|
1391
|
+
children: "Current"
|
|
1392
|
+
})]
|
|
1393
|
+
})
|
|
1394
|
+
}),
|
|
1395
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: contextId ? /* @__PURE__ */ require_jsx_runtime.jsx(require_helm_app_version.HelmAppVersionCell, {
|
|
1396
|
+
clusterId,
|
|
1397
|
+
contextId,
|
|
1398
|
+
release: item,
|
|
1399
|
+
knownVersion: versionIndex.versionFor(item),
|
|
1400
|
+
active: historyCurrent && !busy,
|
|
1401
|
+
refreshToken: versionGeneration
|
|
1402
|
+
}) : "—" }),
|
|
1403
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: /* @__PURE__ */ require_jsx_runtime.jsx(StatusBadge, { status: item.status }) }),
|
|
1404
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: /* @__PURE__ */ require_jsx_runtime.jsx(ReleaseTimestamp, { value: item.updatedAt }) }),
|
|
1405
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1406
|
+
className: "helm-history-actions",
|
|
1407
|
+
children: [
|
|
1408
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
1409
|
+
title: `View values from revision ${item.revision}`,
|
|
1410
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("button", {
|
|
1411
|
+
type: "button",
|
|
1412
|
+
className: "helm-icon-button helm-history-view",
|
|
1413
|
+
"aria-label": "View revision",
|
|
1414
|
+
disabled: !historyCurrent || busy,
|
|
1415
|
+
onClick: () => onView(item),
|
|
1416
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
1417
|
+
material: "visibility",
|
|
1418
|
+
size: 18
|
|
1419
|
+
})
|
|
1420
|
+
})
|
|
1421
|
+
}),
|
|
1422
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
1423
|
+
title: `Compare revision ${item.revision} with latest`,
|
|
1424
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("button", {
|
|
1425
|
+
type: "button",
|
|
1426
|
+
className: "helm-icon-button helm-history-view",
|
|
1427
|
+
"aria-label": `Compare revision ${item.revision}`,
|
|
1428
|
+
disabled: !historyCurrent || busy,
|
|
1429
|
+
onClick: () => onView(item, true),
|
|
1430
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
1431
|
+
material: "difference",
|
|
1432
|
+
size: 18
|
|
1433
|
+
})
|
|
1434
|
+
})
|
|
1435
|
+
}),
|
|
1436
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(require_helm_revision_delete.HelmRevisionDelete, {
|
|
1437
|
+
clusterId,
|
|
1438
|
+
contextId,
|
|
1439
|
+
revision: item,
|
|
1440
|
+
current: item.revision === release.revision,
|
|
1441
|
+
allowed: Boolean(allowed && historyCurrent),
|
|
1442
|
+
busy,
|
|
1443
|
+
onDeleted: () => {
|
|
1444
|
+
if (item.uid) setRemovedRevisions((current) => ({
|
|
1445
|
+
identity: historyIdentity,
|
|
1446
|
+
uids: [...current?.identity === historyIdentity ? current.uids : [], item.uid]
|
|
1447
|
+
}));
|
|
1448
|
+
setRevision(void 0);
|
|
1449
|
+
setConfirmed(false);
|
|
1450
|
+
setError("");
|
|
1451
|
+
state.refresh();
|
|
1452
|
+
},
|
|
1453
|
+
onError: setError
|
|
1454
|
+
})
|
|
1455
|
+
]
|
|
1456
|
+
}) })
|
|
1457
|
+
]
|
|
1458
|
+
}, item.revision))] })]
|
|
1459
|
+
})
|
|
1460
|
+
}),
|
|
1461
|
+
!restoreTarget && history.length > 50 && /* @__PURE__ */ require_jsx_runtime.jsx(HelmPagination, {
|
|
1462
|
+
page,
|
|
1463
|
+
pages: Math.ceil(history.length / 50),
|
|
1464
|
+
kind: "revisions",
|
|
1465
|
+
onChange: setPage
|
|
1466
|
+
}),
|
|
1467
|
+
allowed && /* @__PURE__ */ require_jsx_runtime.jsx(require_jsx_runtime.Fragment, { children: /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1468
|
+
className: "helm-rollback",
|
|
1469
|
+
children: [
|
|
1470
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1471
|
+
className: "helm-rollback-title",
|
|
1472
|
+
children: [
|
|
1473
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
1474
|
+
material: "restore",
|
|
1475
|
+
size: 18
|
|
1476
|
+
}),
|
|
1477
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "Roll back release" }),
|
|
1478
|
+
!revision && /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
1479
|
+
className: "helm-rollback-hint",
|
|
1480
|
+
children: "Select a revision to restore this release."
|
|
1481
|
+
}),
|
|
1482
|
+
restoreTarget && requestStatus
|
|
1483
|
+
]
|
|
1484
|
+
}),
|
|
1485
|
+
restoreTarget && !target && historyCurrent && /* @__PURE__ */ require_jsx_runtime.jsx("p", {
|
|
1486
|
+
role: "alert",
|
|
1487
|
+
children: restoreTarget.revision === release.revision ? "This revision is already current." : "This revision is no longer available to restore. Refresh history before continuing."
|
|
1488
|
+
}),
|
|
1489
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1490
|
+
className: "helm-rollback-controls",
|
|
1491
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(Checkbox, {
|
|
1492
|
+
className: "helm-consent",
|
|
1493
|
+
label: /* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
1494
|
+
className: "helm-consent-target",
|
|
1495
|
+
children: [
|
|
1496
|
+
"I confirm rolling back ",
|
|
1497
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("strong", { children: release.name }),
|
|
1498
|
+
target && /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [
|
|
1499
|
+
" ",
|
|
1500
|
+
"to",
|
|
1501
|
+
" ",
|
|
1502
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
1503
|
+
className: "helm-version-badge helm-consent-revision",
|
|
1504
|
+
children: ["Revision ", target.revision]
|
|
1505
|
+
}),
|
|
1506
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
1507
|
+
className: "helm-consent-version",
|
|
1508
|
+
children: [
|
|
1509
|
+
"App version",
|
|
1510
|
+
" ",
|
|
1511
|
+
versionIndex.versionFor(target)?.appVersion ? /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
1512
|
+
className: "helm-version-badge helm-consent-revision",
|
|
1513
|
+
children: require_helm.formatHelmAppVersion(versionIndex.versionFor(target)?.appVersion) || "—"
|
|
1514
|
+
}) : "—"
|
|
1515
|
+
]
|
|
1516
|
+
})
|
|
1517
|
+
] })
|
|
1518
|
+
]
|
|
1519
|
+
}),
|
|
1520
|
+
value: confirmed,
|
|
1521
|
+
disabled: busy || !revision || !historyCurrent || !target,
|
|
1522
|
+
onChange: (value) => setConfirmed(value)
|
|
1523
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
1524
|
+
className: "helm-rollback-button",
|
|
1525
|
+
"aria-label": busy ? "Rolling back…" : "Roll back",
|
|
1526
|
+
label: /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
1527
|
+
material: "restore",
|
|
1528
|
+
size: 18
|
|
1529
|
+
}), busy ? "Rolling back…" : "Roll back"] }),
|
|
1530
|
+
disabled: !revision || !confirmed || busy || !historyCurrent || !target,
|
|
1531
|
+
onClick: rollback
|
|
1532
|
+
})]
|
|
1533
|
+
})
|
|
1534
|
+
]
|
|
1535
|
+
}) }),
|
|
1536
|
+
error && /* @__PURE__ */ require_jsx_runtime.jsx(InlineAlert, { children: error })
|
|
1537
|
+
]
|
|
1538
|
+
});
|
|
1539
|
+
});
|
|
1540
|
+
var nextTabIdentity = 0;
|
|
1541
|
+
function ReleasePanel({ clusterId, contextId, release, close, onChanged, onLatest, historyGeneration, uninstallAllowed, historyRequest = 0 }) {
|
|
1542
|
+
const [tabIdentity] = require__global_external_react.useState(() => `helm-release-tabs-${++nextTabIdentity}`);
|
|
1543
|
+
const [deleteError, setDeleteError] = require__global_external_react.useState("");
|
|
1544
|
+
const overlayEscapes = require__global_external_react.useRef(/* @__PURE__ */ new WeakSet());
|
|
1545
|
+
const overlayClicks = require__global_external_react.useRef(/* @__PURE__ */ new WeakSet());
|
|
1546
|
+
const opener = require__global_external_react.useRef(document.activeElement instanceof HTMLElement ? document.activeElement : void 0);
|
|
1547
|
+
const panel = require__global_external_react.useRef(null);
|
|
1548
|
+
const currentEvent = require__global_external_react.useRef();
|
|
1549
|
+
const latestClose = require__global_external_react.useRef(close);
|
|
1550
|
+
const previousScreen = require__global_external_react.useRef();
|
|
1551
|
+
latestClose.current = close;
|
|
1552
|
+
require__global_external_react.useEffect(() => {
|
|
1553
|
+
panel.current?.focus({ preventScroll: true });
|
|
1554
|
+
const captureEvent = (event) => {
|
|
1555
|
+
currentEvent.current = event;
|
|
1556
|
+
if (event.type === "click" && event.target instanceof Element && event.target.closest(".helm-panel, .Select__menu, .helm-release-actions-menu, .power-helm-operation-dialog, [data-testid=\"confirmation-dialog\"]")) overlayClicks.current.add(event);
|
|
1557
|
+
window.setTimeout(() => {
|
|
1558
|
+
if (currentEvent.current === event) currentEvent.current = void 0;
|
|
1559
|
+
}, 0);
|
|
1560
|
+
};
|
|
1561
|
+
window.addEventListener("click", captureEvent, true);
|
|
1562
|
+
window.addEventListener("keydown", captureEvent, true);
|
|
1563
|
+
const captureEscape = (event) => {
|
|
1564
|
+
if (event.key === "Escape" && document.querySelector("[data-testid=\"confirmation-dialog\"], .Select__menu, .helm-release-actions-menu, .monaco-editor .find-widget.visible, .helm-diff-find, .power-helm-operation-dialog")) overlayEscapes.current.add(event);
|
|
1565
|
+
};
|
|
1566
|
+
window.addEventListener("keydown", captureEscape, true);
|
|
1567
|
+
const onEscape = (event) => {
|
|
1568
|
+
if (event.key !== "Escape" || event.defaultPrevented || overlayEscapes.current.has(event) || document.querySelector("[data-testid=\"confirmation-dialog\"], .Select__menu, .helm-release-actions-menu, .monaco-editor .find-widget.visible, .helm-diff-find, .power-helm-operation-dialog")) return;
|
|
1569
|
+
event.preventDefault();
|
|
1570
|
+
event.stopPropagation();
|
|
1571
|
+
if (previousScreen.current) previousScreen.current();
|
|
1572
|
+
else latestClose.current();
|
|
1573
|
+
};
|
|
1574
|
+
document.addEventListener("keydown", onEscape);
|
|
1575
|
+
return () => {
|
|
1576
|
+
window.removeEventListener("click", captureEvent, true);
|
|
1577
|
+
window.removeEventListener("keydown", captureEvent, true);
|
|
1578
|
+
window.removeEventListener("keydown", captureEscape, true);
|
|
1579
|
+
document.removeEventListener("keydown", onEscape);
|
|
1580
|
+
if (opener.current?.isConnected) opener.current.focus({ preventScroll: true });
|
|
1581
|
+
};
|
|
1582
|
+
}, []);
|
|
1583
|
+
const [tab, setTab] = require__global_external_react.useState(historyRequest ? "history" : "overview");
|
|
1584
|
+
require__global_external_react.useEffect(() => {
|
|
1585
|
+
if (historyRequest) {
|
|
1586
|
+
setTab("history");
|
|
1587
|
+
setHistoricalRelease(void 0);
|
|
1588
|
+
setInitialCompare(false);
|
|
1589
|
+
}
|
|
1590
|
+
}, [historyRequest]);
|
|
1591
|
+
const [deployedRelease, setDeployedRelease] = require__global_external_react.useState();
|
|
1592
|
+
require__global_external_react.useEffect(() => setDeployedRelease(void 0), [historyGeneration]);
|
|
1593
|
+
const [historicalRelease, setHistoricalRelease] = require__global_external_react.useState();
|
|
1594
|
+
const [initialCompare, setInitialCompare] = require__global_external_react.useState(false);
|
|
1595
|
+
const [screens, setScreens] = require__global_external_react.useState([]);
|
|
1596
|
+
const navigate = (next, historical, compare = false) => {
|
|
1597
|
+
setScreens((items) => [...items, {
|
|
1598
|
+
tab,
|
|
1599
|
+
release: historicalRelease,
|
|
1600
|
+
compare: initialCompare
|
|
1601
|
+
}]);
|
|
1602
|
+
setTab(next);
|
|
1603
|
+
setHistoricalRelease(historical);
|
|
1604
|
+
setInitialCompare(compare);
|
|
1605
|
+
};
|
|
1606
|
+
previousScreen.current = screens.length ? () => {
|
|
1607
|
+
const previous = screens[screens.length - 1];
|
|
1608
|
+
setScreens((items) => items.slice(0, -1));
|
|
1609
|
+
setTab(previous.tab);
|
|
1610
|
+
setHistoricalRelease(previous.release);
|
|
1611
|
+
setInitialCompare(previous.compare);
|
|
1612
|
+
} : void 0;
|
|
1613
|
+
require__global_external_react.useEffect(() => {
|
|
1614
|
+
setHistoricalRelease(void 0);
|
|
1615
|
+
setInitialCompare(false);
|
|
1616
|
+
}, [release.revision, release.uid]);
|
|
1617
|
+
const viewedRelease = historicalRelease ?? release;
|
|
1618
|
+
require__global_external_react.useEffect(() => {
|
|
1619
|
+
if (tab !== "values" && tab !== "manifest") return;
|
|
1620
|
+
const onFind = (event) => {
|
|
1621
|
+
if (!(event.ctrlKey || event.metaKey) || event.altKey || event.key.toLowerCase() !== "f") return;
|
|
1622
|
+
const dialog = document.querySelector("[data-testid=\"confirmation-dialog\"]");
|
|
1623
|
+
const container = dialog ? dialog.querySelector(".helm-revision-diff") ? dialog : void 0 : panel.current;
|
|
1624
|
+
if (!container) return;
|
|
1625
|
+
const target = event.target;
|
|
1626
|
+
if (target instanceof Element && (target.closest(".helm-code-view") || !container.contains(target) && target.closest("input, textarea, select, [contenteditable=true]"))) return;
|
|
1627
|
+
if (require_helm_code_view.openHelmDocumentFind(container)) {
|
|
1628
|
+
event.preventDefault();
|
|
1629
|
+
event.stopPropagation();
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
document.addEventListener("keydown", onFind, true);
|
|
1633
|
+
return () => document.removeEventListener("keydown", onFind, true);
|
|
1634
|
+
}, [tab]);
|
|
1635
|
+
return /* @__PURE__ */ require_jsx_runtime.jsx(Drawer, {
|
|
1636
|
+
open: true,
|
|
1637
|
+
className: "helm-native-drawer",
|
|
1638
|
+
contentClass: "helm-native-drawer-content",
|
|
1639
|
+
testIdForClose: "helm-release-close",
|
|
1640
|
+
title: `Helm release: ${release.name}`,
|
|
1641
|
+
onClose: () => {
|
|
1642
|
+
const event = currentEvent.current;
|
|
1643
|
+
if (event && overlayClicks.current.has(event)) return;
|
|
1644
|
+
if (event instanceof KeyboardEvent && (event.defaultPrevented || overlayEscapes.current.has(event))) return;
|
|
1645
|
+
if (event?.target instanceof Element && event.target.closest(".Select__menu, .helm-release-actions-menu, .power-helm-operation-dialog, [data-testid=\"confirmation-dialog\"]")) return;
|
|
1646
|
+
latestClose.current();
|
|
1647
|
+
},
|
|
1648
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsxs("aside", {
|
|
1649
|
+
ref: panel,
|
|
1650
|
+
tabIndex: -1,
|
|
1651
|
+
"aria-label": `Release ${release.name}`,
|
|
1652
|
+
className: "helm-panel",
|
|
1653
|
+
children: [
|
|
1654
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1655
|
+
className: "helm-panel-heading",
|
|
1656
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("div", { children: /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1657
|
+
className: "helm-panel-meta",
|
|
1658
|
+
children: [
|
|
1659
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: release.namespace }),
|
|
1660
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("span", {
|
|
1661
|
+
className: "helm-version-badge",
|
|
1662
|
+
children: [
|
|
1663
|
+
historicalRelease ? "Viewing Revision" : "Revision",
|
|
1664
|
+
" ",
|
|
1665
|
+
viewedRelease.revision
|
|
1666
|
+
]
|
|
1667
|
+
}),
|
|
1668
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(StatusBadge, { status: viewedRelease.status }),
|
|
1669
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(ReleaseAppVersion, {
|
|
1670
|
+
clusterId,
|
|
1671
|
+
contextId,
|
|
1672
|
+
release: viewedRelease
|
|
1673
|
+
})
|
|
1674
|
+
]
|
|
1675
|
+
}) }), /* @__PURE__ */ require_jsx_runtime.jsx("div", {
|
|
1676
|
+
className: "helm-panel-actions",
|
|
1677
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(require_helm_release_actions.HelmReleaseActions, {
|
|
1678
|
+
clusterId,
|
|
1679
|
+
contextId,
|
|
1680
|
+
release,
|
|
1681
|
+
allowed: uninstallAllowed,
|
|
1682
|
+
onDeleted: close,
|
|
1683
|
+
onChanged,
|
|
1684
|
+
onError: setDeleteError
|
|
1685
|
+
})
|
|
1686
|
+
})]
|
|
1687
|
+
}),
|
|
1688
|
+
deleteError && /* @__PURE__ */ require_jsx_runtime.jsx(InlineAlert, { children: deleteError }),
|
|
1689
|
+
historicalRelease && /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1690
|
+
className: "helm-viewing-banner",
|
|
1691
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "Historical revision · Read only" }), /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
1692
|
+
title: "Back to current",
|
|
1693
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("button", {
|
|
1694
|
+
type: "button",
|
|
1695
|
+
className: "helm-icon-button",
|
|
1696
|
+
"aria-label": "Back to current",
|
|
1697
|
+
onClick: () => navigate(tab),
|
|
1698
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
1699
|
+
material: "keyboard_return",
|
|
1700
|
+
size: 18
|
|
1701
|
+
})
|
|
1702
|
+
})
|
|
1703
|
+
})]
|
|
1704
|
+
}),
|
|
1705
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("nav", {
|
|
1706
|
+
className: "helm-tabs",
|
|
1707
|
+
role: "tablist",
|
|
1708
|
+
"aria-label": "Release sections",
|
|
1709
|
+
onKeyDown: (event) => {
|
|
1710
|
+
if (![
|
|
1711
|
+
"ArrowLeft",
|
|
1712
|
+
"ArrowRight",
|
|
1713
|
+
"Home",
|
|
1714
|
+
"End"
|
|
1715
|
+
].includes(event.key) || !(event.target instanceof HTMLButtonElement)) return;
|
|
1716
|
+
const tabs = Array.from(event.currentTarget.querySelectorAll("[role=\"tab\"]"));
|
|
1717
|
+
const index = tabs.indexOf(event.target);
|
|
1718
|
+
if (index < 0) return;
|
|
1719
|
+
event.preventDefault();
|
|
1720
|
+
const next = event.key === "Home" ? 0 : event.key === "End" ? tabs.length - 1 : (index + (event.key === "ArrowRight" ? 1 : -1) + tabs.length) % tabs.length;
|
|
1721
|
+
tabs[next]?.focus();
|
|
1722
|
+
tabs[next]?.click();
|
|
1723
|
+
},
|
|
1724
|
+
children: [
|
|
1725
|
+
"overview",
|
|
1726
|
+
"values",
|
|
1727
|
+
"manifest",
|
|
1728
|
+
"history",
|
|
1729
|
+
"notes"
|
|
1730
|
+
].map((value) => /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
1731
|
+
role: "tab",
|
|
1732
|
+
id: `${tabIdentity}-${value}`,
|
|
1733
|
+
"aria-controls": `${tabIdentity}-panel`,
|
|
1734
|
+
"aria-selected": tab === value,
|
|
1735
|
+
tabIndex: tab === value ? 0 : -1,
|
|
1736
|
+
label: value[0].toUpperCase() + value.slice(1),
|
|
1737
|
+
className: tab === value ? "helm-tab helm-tab-active" : "helm-tab",
|
|
1738
|
+
onClick: () => {
|
|
1739
|
+
if (value !== tab) navigate(value, value === "history" ? void 0 : historicalRelease);
|
|
1740
|
+
}
|
|
1741
|
+
}, value))
|
|
1742
|
+
}),
|
|
1743
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("div", {
|
|
1744
|
+
className: "helm-panel-content",
|
|
1745
|
+
role: "tabpanel",
|
|
1746
|
+
id: `${tabIdentity}-panel`,
|
|
1747
|
+
"aria-labelledby": `${tabIdentity}-${tab}`,
|
|
1748
|
+
children: tab === "history" ? /* @__PURE__ */ require_jsx_runtime.jsx(History, {
|
|
1749
|
+
generation: historyGeneration,
|
|
1750
|
+
clusterId,
|
|
1751
|
+
contextId,
|
|
1752
|
+
release,
|
|
1753
|
+
onLatest,
|
|
1754
|
+
onDeployed: setDeployedRelease,
|
|
1755
|
+
onView: (item, compare) => navigate("values", item.revision !== release.revision ? item : void 0, compare)
|
|
1756
|
+
}) : /* @__PURE__ */ require_jsx_runtime.jsx(Section, {
|
|
1757
|
+
clusterId,
|
|
1758
|
+
contextId,
|
|
1759
|
+
release: viewedRelease,
|
|
1760
|
+
currentRelease: release,
|
|
1761
|
+
deployedRelease,
|
|
1762
|
+
initialCompare,
|
|
1763
|
+
isOverlayEscape: (event) => overlayEscapes.current.has(event),
|
|
1764
|
+
restoreControls: historicalRelease && /* @__PURE__ */ require_jsx_runtime.jsx(History, {
|
|
1765
|
+
clusterId,
|
|
1766
|
+
contextId,
|
|
1767
|
+
release,
|
|
1768
|
+
restoreTarget: historicalRelease,
|
|
1769
|
+
generation: historyGeneration,
|
|
1770
|
+
onLatest,
|
|
1771
|
+
onDeployed: setDeployedRelease,
|
|
1772
|
+
onView: () => void 0
|
|
1773
|
+
}, `restore/${historicalRelease.revision}/${historicalRelease.uid ?? ""}`),
|
|
1774
|
+
onChanged,
|
|
1775
|
+
tab
|
|
1776
|
+
}, `${tab}/${viewedRelease.revision}/${viewedRelease.uid ?? ""}/${initialCompare}`)
|
|
1777
|
+
})
|
|
1778
|
+
]
|
|
1779
|
+
})
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
function Releases({ clusterId, namespace, partition, namespaceFilter, pendingHistory, onViewHistory, onHistoryOpened }) {
|
|
1783
|
+
const state = useHelmRequest({
|
|
1784
|
+
clusterId,
|
|
1785
|
+
namespace,
|
|
1786
|
+
operation: "list"
|
|
1787
|
+
}, `${partition}/${namespace}`);
|
|
1788
|
+
const [search, setSearch] = require__global_external_react.useState("");
|
|
1789
|
+
const [versionGeneration, setVersionGeneration] = require__global_external_react.useState(0);
|
|
1790
|
+
const [status, setStatus] = require__global_external_react.useState("");
|
|
1791
|
+
const [page, setPage] = require__global_external_react.useState(0);
|
|
1792
|
+
require__global_external_react.useEffect(() => setPage(0), [
|
|
1793
|
+
search,
|
|
1794
|
+
status,
|
|
1795
|
+
state.result
|
|
1796
|
+
]);
|
|
1797
|
+
const releaseFrame = require__global_external_react.useRef(null);
|
|
1798
|
+
require__global_external_react.useEffect(() => {
|
|
1799
|
+
if (releaseFrame.current) releaseFrame.current.scrollTop = 0;
|
|
1800
|
+
}, [
|
|
1801
|
+
page,
|
|
1802
|
+
search,
|
|
1803
|
+
status,
|
|
1804
|
+
state.result
|
|
1805
|
+
]);
|
|
1806
|
+
const [selection, setSelection] = require__global_external_react.useState();
|
|
1807
|
+
const result = state.result?.ok ? state.result : void 0;
|
|
1808
|
+
require__global_external_react.useEffect(() => {
|
|
1809
|
+
if (!pendingHistory || !result || state.loading || state.stale || result.contextId !== pendingHistory.contextId) return;
|
|
1810
|
+
const entry = result.releases?.find((item) => item.name === pendingHistory.name && item.namespace === pendingHistory.namespace);
|
|
1811
|
+
if (!entry) return;
|
|
1812
|
+
setSelection({
|
|
1813
|
+
release: entry,
|
|
1814
|
+
result,
|
|
1815
|
+
historyRequest: Date.now()
|
|
1816
|
+
});
|
|
1817
|
+
onHistoryOpened();
|
|
1818
|
+
}, [
|
|
1819
|
+
pendingHistory,
|
|
1820
|
+
result,
|
|
1821
|
+
state.loading,
|
|
1822
|
+
state.stale,
|
|
1823
|
+
onHistoryOpened
|
|
1824
|
+
]);
|
|
1825
|
+
const historyGeneration = require__global_external_react.useRef({
|
|
1826
|
+
result,
|
|
1827
|
+
id: 0
|
|
1828
|
+
});
|
|
1829
|
+
if (historyGeneration.current.result !== result) historyGeneration.current = {
|
|
1830
|
+
result,
|
|
1831
|
+
id: historyGeneration.current.id + 1
|
|
1832
|
+
};
|
|
1833
|
+
const listedSelection = selection && result?.releases?.find((item) => item.name === selection.release.name && item.namespace === selection.release.namespace);
|
|
1834
|
+
const selected = selection && result && selection.result.contextId === result.contextId ? selection.result === result ? selection.release : listedSelection : void 0;
|
|
1835
|
+
require__global_external_react.useEffect(() => {
|
|
1836
|
+
if (state.errorCode === "forbidden" || state.errorCode === "context-changed") {
|
|
1837
|
+
setSelection(void 0);
|
|
1838
|
+
return;
|
|
1839
|
+
}
|
|
1840
|
+
if (!selection || !result || selection.result === result) return;
|
|
1841
|
+
setSelection((previous) => {
|
|
1842
|
+
if (!previous || previous.result === result) return previous;
|
|
1843
|
+
if (previous.result.contextId !== result.contextId) return void 0;
|
|
1844
|
+
const entry = result.releases?.find((item) => item.name === previous.release.name && item.namespace === previous.release.namespace);
|
|
1845
|
+
return entry ? {
|
|
1846
|
+
...previous,
|
|
1847
|
+
release: entry,
|
|
1848
|
+
result
|
|
1849
|
+
} : void 0;
|
|
1850
|
+
});
|
|
1851
|
+
}, [
|
|
1852
|
+
state.errorCode,
|
|
1853
|
+
selection,
|
|
1854
|
+
result,
|
|
1855
|
+
listedSelection
|
|
1856
|
+
]);
|
|
1857
|
+
const releases = (result?.releases ?? []).map((item) => selected && selected.name === item.name && selected.namespace === item.namespace && selected.revision > item.revision ? selected : item);
|
|
1858
|
+
const initialLoading = state.loading && releases.length === 0;
|
|
1859
|
+
const selectedRelease = selected;
|
|
1860
|
+
const [versionsPaused, setVersionsPaused] = require__global_external_react.useState(false);
|
|
1861
|
+
require__global_external_react.useEffect(() => setVersionsPaused(false), [result?.contextId]);
|
|
1862
|
+
const versionIndex = require_helm_version_index.useHelmVersionIndex({
|
|
1863
|
+
clusterId,
|
|
1864
|
+
contextId: result?.contextId ?? "",
|
|
1865
|
+
releases,
|
|
1866
|
+
active: Boolean(result?.contextId && !selectedRelease && !state.loading && !state.error && !state.stale && !versionsPaused),
|
|
1867
|
+
refreshToken: versionGeneration
|
|
1868
|
+
});
|
|
1869
|
+
const filtered = releases.filter((release) => `${release.name} ${release.namespace} ${versionIndex.versionFor(release)?.appVersion ?? ""}`.toLowerCase().includes(search.toLowerCase()) && (!status || status === release.status));
|
|
1870
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs(require_jsx_runtime.Fragment, { children: [
|
|
1871
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1872
|
+
className: "helm-toolbar helm-filters",
|
|
1873
|
+
children: [
|
|
1874
|
+
namespaceFilter,
|
|
1875
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("label", {
|
|
1876
|
+
className: "helm-filter",
|
|
1877
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "Search" }), /* @__PURE__ */ require_jsx_runtime.jsx(HelmSearchField, {
|
|
1878
|
+
label: "Search releases",
|
|
1879
|
+
placeholder: "Search releases",
|
|
1880
|
+
value: search,
|
|
1881
|
+
onChange: setSearch,
|
|
1882
|
+
clearLabel: "Clear release search"
|
|
1883
|
+
})]
|
|
1884
|
+
}),
|
|
1885
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("label", {
|
|
1886
|
+
className: "helm-filter helm-status-filter",
|
|
1887
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "Status" }), /* @__PURE__ */ require_jsx_runtime.jsx(Select, {
|
|
1888
|
+
"aria-label": "Release status",
|
|
1889
|
+
isSearchable: false,
|
|
1890
|
+
value: status,
|
|
1891
|
+
formatOptionLabel: (option) => option.value ? /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
1892
|
+
className: "helm-status-menu",
|
|
1893
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(StatusBadge, { status: String(option.value) })
|
|
1894
|
+
}) : option.label,
|
|
1895
|
+
options: [{
|
|
1896
|
+
value: "",
|
|
1897
|
+
label: "All statuses"
|
|
1898
|
+
}, ...[...new Set(releases.map((release) => release.status))].sort().map((value) => ({
|
|
1899
|
+
value,
|
|
1900
|
+
label: statusLabel(value)
|
|
1901
|
+
}))],
|
|
1902
|
+
onChange: (option) => setStatus(option?.value ?? "")
|
|
1903
|
+
})]
|
|
1904
|
+
})
|
|
1905
|
+
]
|
|
1906
|
+
}),
|
|
1907
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1908
|
+
className: "helm-list-summary",
|
|
1909
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: initialLoading ? "Releases" : filtered.length !== releases.length ? `${filtered.length} of ${releases.length} releases` : `${filtered.length} ${filtered.length === 1 ? "release" : "releases"}` }), !initialLoading && /* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, { state: {
|
|
1910
|
+
...state,
|
|
1911
|
+
refresh: () => {
|
|
1912
|
+
setVersionGeneration((value) => value + 1);
|
|
1913
|
+
state.refresh();
|
|
1914
|
+
}
|
|
1915
|
+
} })]
|
|
1916
|
+
}),
|
|
1917
|
+
search && /* @__PURE__ */ require_jsx_runtime.jsx(VersionSearchProgress, {
|
|
1918
|
+
index: versionIndex,
|
|
1919
|
+
paused: versionsPaused,
|
|
1920
|
+
onToggle: () => setVersionsPaused((value) => !value),
|
|
1921
|
+
onRefresh: () => {
|
|
1922
|
+
setVersionsPaused(false);
|
|
1923
|
+
setVersionGeneration((value) => value + 1);
|
|
1924
|
+
}
|
|
1925
|
+
}),
|
|
1926
|
+
initialLoading && /* @__PURE__ */ require_jsx_runtime.jsx("div", {
|
|
1927
|
+
className: "helm-initial-loading",
|
|
1928
|
+
role: "region",
|
|
1929
|
+
"aria-label": "Helm releases table",
|
|
1930
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(RequestStatus, {
|
|
1931
|
+
state,
|
|
1932
|
+
loadingLabel: "Loading Helm releases and their current status…"
|
|
1933
|
+
})
|
|
1934
|
+
}),
|
|
1935
|
+
!initialLoading && (filtered.length > 0 || state.loading || state.error) && /* @__PURE__ */ require_jsx_runtime.jsx("div", {
|
|
1936
|
+
ref: releaseFrame,
|
|
1937
|
+
className: "helm-table-frame",
|
|
1938
|
+
role: "region",
|
|
1939
|
+
"aria-label": "Helm releases table",
|
|
1940
|
+
tabIndex: 0,
|
|
1941
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsxs("table", {
|
|
1942
|
+
className: "helm-table",
|
|
1943
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("thead", { children: /* @__PURE__ */ require_jsx_runtime.jsx("tr", { children: [
|
|
1944
|
+
"Name",
|
|
1945
|
+
"Status",
|
|
1946
|
+
"Namespace",
|
|
1947
|
+
"App version",
|
|
1948
|
+
"Revision",
|
|
1949
|
+
"Metadata updated"
|
|
1950
|
+
].map((title) => /* @__PURE__ */ require_jsx_runtime.jsx("th", { children: title }, title)) }) }), /* @__PURE__ */ require_jsx_runtime.jsx("tbody", { children: filtered.slice(page * 100, (page + 1) * 100).map((release) => /* @__PURE__ */ require_jsx_runtime.jsxs("tr", {
|
|
1951
|
+
className: "helm-release-row",
|
|
1952
|
+
onClick: (event) => {
|
|
1953
|
+
if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || window.getSelection()?.toString() || event.target instanceof Element && event.target.closest("button, a, input, select, textarea") && !event.target.closest(".helm-release-link")) return;
|
|
1954
|
+
event.preventDefault();
|
|
1955
|
+
event.currentTarget.querySelector(".helm-release-link")?.focus({ preventScroll: true });
|
|
1956
|
+
if (result) setSelection({
|
|
1957
|
+
release,
|
|
1958
|
+
result
|
|
1959
|
+
});
|
|
1960
|
+
},
|
|
1961
|
+
children: [
|
|
1962
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
1963
|
+
title: release.name,
|
|
1964
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
1965
|
+
className: "helm-release-link",
|
|
1966
|
+
label: release.name,
|
|
1967
|
+
onMouseDown: (event) => {
|
|
1968
|
+
if (event.button === 0) event.preventDefault();
|
|
1969
|
+
}
|
|
1970
|
+
})
|
|
1971
|
+
}) }),
|
|
1972
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: /* @__PURE__ */ require_jsx_runtime.jsx(StatusBadge, { status: release.status }) }),
|
|
1973
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: release.namespace }),
|
|
1974
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: result?.contextId ? /* @__PURE__ */ require_jsx_runtime.jsx(require_helm_app_version.HelmAppVersionCell, {
|
|
1975
|
+
clusterId,
|
|
1976
|
+
contextId: result.contextId,
|
|
1977
|
+
release,
|
|
1978
|
+
knownVersion: versionIndex.versionFor(release),
|
|
1979
|
+
active: !selectedRelease && !state.loading,
|
|
1980
|
+
refreshToken: versionGeneration
|
|
1981
|
+
}) : "—" }),
|
|
1982
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: /* @__PURE__ */ require_jsx_runtime.jsx("span", {
|
|
1983
|
+
className: "helm-version-badge",
|
|
1984
|
+
children: release.revision
|
|
1985
|
+
}) }),
|
|
1986
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("td", { children: /* @__PURE__ */ require_jsx_runtime.jsx(ReleaseTimestamp, { value: release.updatedAt }) })
|
|
1987
|
+
]
|
|
1988
|
+
}, `${release.namespace}/${release.name}`)) })]
|
|
1989
|
+
})
|
|
1990
|
+
}),
|
|
1991
|
+
filtered.length > 100 && /* @__PURE__ */ require_jsx_runtime.jsx(HelmPagination, {
|
|
1992
|
+
page,
|
|
1993
|
+
pages: Math.ceil(filtered.length / 100),
|
|
1994
|
+
kind: "releases",
|
|
1995
|
+
onChange: setPage
|
|
1996
|
+
}),
|
|
1997
|
+
!state.loading && !state.error && !filtered.length && /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
1998
|
+
className: "helm-empty",
|
|
1999
|
+
children: [
|
|
2000
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
2001
|
+
material: search || status ? "search" : "inbox",
|
|
2002
|
+
size: 28
|
|
2003
|
+
}),
|
|
2004
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("p", { children: search && (versionIndex.completed < versionIndex.total || versionIndex.errors > 0 || versionIndex.truncated) ? "No known matches" : search || status ? "No releases found" : "No Helm releases" }),
|
|
2005
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: search && (versionIndex.completed < versionIndex.total || versionIndex.errors > 0 || versionIndex.truncated) ? versionIndex.errors > 0 || versionIndex.truncated ? "Some App versions are unavailable. Refresh versions to check again" : versionsPaused ? "Resume App version checks to find more matches" : "More matches may appear as App versions are checked" : search || status ? "No releases match your filters" : namespace ? `No Helm releases in ${namespace}` : "No Helm releases in the available namespaces" }),
|
|
2006
|
+
(search || status) && /* @__PURE__ */ require_jsx_runtime.jsx(Button, {
|
|
2007
|
+
label: "Clear filters",
|
|
2008
|
+
onClick: () => {
|
|
2009
|
+
setSearch("");
|
|
2010
|
+
setStatus("");
|
|
2011
|
+
}
|
|
2012
|
+
})
|
|
2013
|
+
]
|
|
2014
|
+
}),
|
|
2015
|
+
/* @__PURE__ */ require_jsx_runtime.jsx(require_helm_operations.HelmOperationsPanel, {
|
|
2016
|
+
clusterId,
|
|
2017
|
+
contextId: result?.contextId,
|
|
2018
|
+
onChanged: state.refresh,
|
|
2019
|
+
onViewHistory: (operation) => {
|
|
2020
|
+
onViewHistory(operation);
|
|
2021
|
+
if (namespace === operation.namespace) state.refresh();
|
|
2022
|
+
}
|
|
2023
|
+
}),
|
|
2024
|
+
selectedRelease && /* @__PURE__ */ require_jsx_runtime.jsx(ReleasePanel, {
|
|
2025
|
+
clusterId,
|
|
2026
|
+
contextId: state.result?.ok ? state.result.contextId : void 0,
|
|
2027
|
+
release: selectedRelease,
|
|
2028
|
+
uninstallAllowed: Boolean(result?.uninstallAllowed && !state.stale && !state.loading && !state.error),
|
|
2029
|
+
close: () => setSelection(void 0),
|
|
2030
|
+
onChanged: state.refresh,
|
|
2031
|
+
historyGeneration: historyGeneration.current.id,
|
|
2032
|
+
historyRequest: selection?.historyRequest,
|
|
2033
|
+
onLatest: (latest) => setSelection((previous) => previous && result && previous.result === result && latest.name === previous.release.name && latest.namespace === previous.release.namespace && latest.revision > previous.release.revision ? {
|
|
2034
|
+
release: latest,
|
|
2035
|
+
result
|
|
2036
|
+
} : previous)
|
|
2037
|
+
}, `${selectedRelease.namespace}/${selectedRelease.name}/${state.result?.ok ? state.result.contextId : ""}`)
|
|
2038
|
+
] });
|
|
2039
|
+
}
|
|
2040
|
+
var ClusterHelm = require__global_external_mobx_react.observer(({ clusterId, partition }) => {
|
|
2041
|
+
const [namespace, setNamespace] = require__global_external_react.useState("");
|
|
2042
|
+
const [pendingHistory, setPendingHistory] = require__global_external_react.useState();
|
|
2043
|
+
const namespaces = process.isMainFrame === false ? require_extensions.Renderer.K8sApi.namespaceStore.items.map((item) => item.getName()) : require_extensions.Renderer.Catalog.activeCluster.get()?.spec?.accessibleNamespaces ?? [];
|
|
2044
|
+
return /* @__PURE__ */ require_jsx_runtime.jsx(Releases, {
|
|
2045
|
+
clusterId,
|
|
2046
|
+
namespace,
|
|
2047
|
+
partition,
|
|
2048
|
+
pendingHistory,
|
|
2049
|
+
onHistoryOpened: () => setPendingHistory(void 0),
|
|
2050
|
+
onViewHistory: (operation) => {
|
|
2051
|
+
setPendingHistory(operation);
|
|
2052
|
+
setNamespace(operation.namespace);
|
|
2053
|
+
},
|
|
2054
|
+
namespaceFilter: /* @__PURE__ */ require_jsx_runtime.jsxs("label", {
|
|
2055
|
+
className: "helm-filter helm-namespace",
|
|
2056
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "Namespace" }), /* @__PURE__ */ require_jsx_runtime.jsx(Select, {
|
|
2057
|
+
"aria-label": "Helm namespace",
|
|
2058
|
+
value: namespace,
|
|
2059
|
+
options: [{
|
|
2060
|
+
value: "",
|
|
2061
|
+
label: "All namespaces"
|
|
2062
|
+
}, ...namespaces.map((value) => ({
|
|
2063
|
+
value,
|
|
2064
|
+
label: value
|
|
2065
|
+
}))],
|
|
2066
|
+
onChange: (option) => setNamespace(option?.value ?? "")
|
|
2067
|
+
})]
|
|
2068
|
+
})
|
|
2069
|
+
}, `${partition}/${namespace}`);
|
|
2070
|
+
});
|
|
2071
|
+
var PowerHelmPage = require__global_external_mobx_react.observer(() => {
|
|
2072
|
+
const enabled = require_helm_preferences_store.HelmPreferencesStore.getInstanceOrCreate().enabled;
|
|
2073
|
+
const cluster = require_extensions.Renderer.Catalog.activeCluster.get();
|
|
2074
|
+
const clusterId = cluster?.metadata.uid;
|
|
2075
|
+
const partition = JSON.stringify([clusterId, cluster?.spec]);
|
|
2076
|
+
return /* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
2077
|
+
className: "power-helm",
|
|
2078
|
+
style: {
|
|
2079
|
+
position: "relative",
|
|
2080
|
+
height: "100%",
|
|
2081
|
+
minHeight: 0,
|
|
2082
|
+
boxSizing: "border-box",
|
|
2083
|
+
display: "flex",
|
|
2084
|
+
flexDirection: "column",
|
|
2085
|
+
overflow: "hidden",
|
|
2086
|
+
padding: 20
|
|
2087
|
+
},
|
|
2088
|
+
children: [
|
|
2089
|
+
/* @__PURE__ */ require_jsx_runtime.jsx("style", { children: `
|
|
2090
|
+
.power-helm { color: var(--textColorPrimary); font-size: 13px; }
|
|
2091
|
+
.power-helm h2, .power-helm p { margin: 0; }
|
|
2092
|
+
.power-helm .helm-page-title { display: flex; align-items: center; gap: 12px; }
|
|
2093
|
+
.power-helm .helm-page-title > .Icon { width: 32px; height: 32px; }
|
|
2094
|
+
.power-helm h2 { font-size: 19px; font-weight: 600; line-height: 1.4; }
|
|
2095
|
+
.power-helm .helm-page-title span, .power-helm small, .power-helm .helm-filter > span, .power-helm .helm-panel-meta, .power-helm .helm-empty > span { color: var(--textColorSecondary); font-size: 12px; }
|
|
2096
|
+
.power-helm .helm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
|
|
2097
|
+
.power-helm .helm-pagination { justify-content: flex-end; gap: 8px; }
|
|
2098
|
+
.power-helm .helm-pagination button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 3px; border: 1px solid var(--borderColor); border-radius: 4px; color: var(--textColorSecondary); background: var(--contentColor); cursor: pointer; }
|
|
2099
|
+
.power-helm .helm-pagination button:not(:disabled):hover { color: var(--primary); border-color: var(--primary); }
|
|
2100
|
+
.power-helm .helm-pagination button:disabled { opacity: .45; cursor: default; }
|
|
2101
|
+
.power-helm .helm-filter { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
|
|
2102
|
+
.power-helm .helm-namespace { width: 230px; }
|
|
2103
|
+
.power-helm .helm-filters { display: grid; grid-template-columns: 200px minmax(160px, 1fr) 160px; align-items: end; margin-top: 0; }
|
|
2104
|
+
.power-helm .helm-filters .helm-filter { width: auto; min-width: 0; max-width: none; }
|
|
2105
|
+
.power-helm .helm-filter .Select { width: 100%; min-width: 0; }
|
|
2106
|
+
.power-helm .helm-filter .Select__control { box-sizing: border-box; min-height: 32px; height: 32px; font-size: 12px; }
|
|
2107
|
+
.power-helm .helm-filter .Select__value-container { padding: 0 8px; }
|
|
2108
|
+
.power-helm .helm-filter .Select__input-container { margin: 0; padding: 0; }
|
|
2109
|
+
.power-helm .helm-filter .Select__indicator { padding: 4px 8px; }
|
|
2110
|
+
@media (max-width: 760px) { .power-helm .helm-filters { grid-template-columns: minmax(0, 1fr); } }
|
|
2111
|
+
.power-helm .helm-search-field { position: relative; min-width: 0; }
|
|
2112
|
+
.power-helm .helm-search-field > input { width: 100%; padding-right: 34px; }
|
|
2113
|
+
.power-helm .helm-search-clear { position: absolute; top: 1px; right: 1px; height: 30px; width: 30px; border: 0; border-radius: 3px; background: transparent; color: var(--textColorSecondary); display: flex; align-items: center; justify-content: center; cursor: pointer; }
|
|
2114
|
+
.power-helm .helm-search-clear:hover { background: var(--contentColor); color: var(--textColorPrimary); }
|
|
2115
|
+
:root .power-helm :is(.helm-filters, .helm-comparison-toolbar) .Select .Select__control { border: 1px solid var(--borderColor); box-shadow: none !important; }
|
|
2116
|
+
:root .power-helm :is(.helm-filters, .helm-comparison-toolbar) .Select:not(.Select--is-disabled) .Select__control--is-focused:not(.Select__control--is-disabled) { border-color: var(--primary) !important; box-shadow: inset 0 0 0 1px var(--primary) !important; }
|
|
2117
|
+
.power-helm .helm-text-input { box-sizing: border-box; height: 32px; color: var(--textColorPrimary); background: var(--inputControlBackground, var(--mainBackground)); border: 1px solid var(--borderColor); border-radius: 4px; padding: 6px 10px; font: inherit; }
|
|
2118
|
+
.power-helm .helm-text-input:focus-visible, .power-helm input[type=radio]:focus-visible, .power-helm button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
|
|
2119
|
+
.power-helm input[type=checkbox], .power-helm input[type=radio] { accent-color: var(--primary); margin: 0 7px 0 0; vertical-align: middle; }
|
|
2120
|
+
.power-helm .helm-native-button, .power-helm .helm-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; color: var(--textColorSecondary); border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
|
|
2121
|
+
.power-helm .helm-native-button:hover, .power-helm .helm-icon-button:hover { color: var(--textColorPrimary); background: var(--contentColor); }
|
|
2122
|
+
.power-helm .helm-list-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin: 6px 0 10px; }
|
|
2123
|
+
.power-helm .helm-chart-source-loading { display: flex; align-items: center; justify-content: center; min-height: 68px; }
|
|
2124
|
+
.power-helm .helm-chart-source-loading .helm-request-status { justify-content: center; }
|
|
2125
|
+
.power-helm .helm-comparison-restore { flex-shrink: 0; }
|
|
2126
|
+
.power-helm .helm-comparison-loading { display: flex; flex: 1; min-height: 140px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--textColorSecondary); }
|
|
2127
|
+
.power-helm .helm-comparison-loading .helm-request-status { justify-content: center; }
|
|
2128
|
+
.power-helm .helm-initial-loading { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 120px; padding: 28px; border: 1px dashed var(--borderColor); border-radius: 8px; color: var(--textColorSecondary); }
|
|
2129
|
+
.power-helm .helm-initial-loading .helm-request-status { justify-content: center; }
|
|
2130
|
+
.power-helm .helm-request-status[data-error=true] { border: 1px solid color-mix(in srgb, var(--colorError) 35%, var(--borderColor)); background: var(--contentColor); border-radius: 6px; padding: 12px; justify-content: space-between; }
|
|
2131
|
+
.power-helm .helm-request-status[data-error=true] .helm-error { flex: 1 1 200px; min-width: 0; align-items: flex-start; line-height: 1.5; }
|
|
2132
|
+
.power-helm .helm-request-status[data-error=true] .Icon { flex-shrink: 0; }
|
|
2133
|
+
.power-helm .helm-request-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 30px; }
|
|
2134
|
+
.power-helm .helm-panel-content > .helm-request-status { justify-content: flex-end; margin-bottom: 12px; }
|
|
2135
|
+
.power-helm .helm-request-compact:not([data-error=true]) { width: 32px; min-width: 32px; flex-wrap: nowrap; justify-content: flex-end; gap: 4px; }
|
|
2136
|
+
.power-helm .helm-loading-cancel .helm-cancel-icon { display: none; }
|
|
2137
|
+
.power-helm .helm-loading-cancel:is(:hover, :focus-visible) .helm-spinner { display: none; }
|
|
2138
|
+
.power-helm .helm-loading-cancel:is(:hover, :focus-visible) .helm-cancel-icon { display: inline-flex; }
|
|
2139
|
+
.power-helm .helm-request-compact .helm-loading { order: 1; justify-content: center; width: 30px; height: 30px; }
|
|
2140
|
+
.power-helm .helm-request-compact .helm-spinner .Icon { --size: 18px; }
|
|
2141
|
+
.power-helm .helm-notes-state { width: 100%; }
|
|
2142
|
+
.power-helm .helm-notes-section > .helm-request-status { justify-content: flex-end; min-height: 32px; margin-bottom: 12px; }
|
|
2143
|
+
.power-helm .helm-notes-state > .helm-request-status { justify-content: flex-end; min-height: 32px; }
|
|
2144
|
+
.power-helm .helm-loading, .power-helm .helm-error { display: inline-flex; gap: 6px; align-items: center; }
|
|
2145
|
+
.power-helm .helm-inline-alert { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--colorError) 30%, var(--borderColor)); border-radius: 5px; background: color-mix(in srgb, var(--colorError) 7%, var(--mainBackground)); color: var(--textColorPrimary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
|
|
2146
|
+
.power-helm .helm-inline-alert > .Icon { color: var(--colorError); flex-shrink: 0; margin-top: 1px; }
|
|
2147
|
+
.power-helm .helm-validation-pending { display: block; margin-top: 8px; color: var(--textColorSecondary); }
|
|
2148
|
+
.power-helm .helm-error { color: var(--colorError); overflow-wrap: anywhere; }
|
|
2149
|
+
.power-helm .helm-spinner { display: inline-flex; animation: power-helm-spin 1s linear infinite; }
|
|
2150
|
+
:root .power-helm .Button:not(.helm-tab):not(.helm-release-link):not(.helm-inline-action):not(.primary) { color: var(--textColorPrimary); background: var(--mainBackground); border: 1px solid var(--borderColor); border-radius: 4px; min-height: 30px; padding: 5px 10px; font-size: 12px; }
|
|
2151
|
+
:root .power-helm .Button:not(.helm-tab):not(.helm-release-link):not(.helm-inline-action):not(.primary):not(:disabled):hover { background: var(--contentColor); border-color: var(--textColorSecondary); }
|
|
2152
|
+
:root .power-helm .Button:disabled { opacity: .5; cursor: default; }
|
|
2153
|
+
.power-helm .helm-version-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 30px; margin: 0 0 10px; color: var(--textColorSecondary); font-size: 12px; }
|
|
2154
|
+
.power-helm .helm-version-progress progress { width: 90px; height: 4px; accent-color: var(--primary); }
|
|
2155
|
+
.power-helm .helm-version-progress progress { appearance: none; border: 0; border-radius: 2px; overflow: hidden; }
|
|
2156
|
+
.power-helm .helm-version-progress progress::-webkit-progress-bar { background: var(--borderColor); }
|
|
2157
|
+
.power-helm .helm-version-progress progress::-webkit-progress-value { background: var(--primary); }
|
|
2158
|
+
.power-helm .helm-history-empty { text-align: center; padding: 24px 12px; color: var(--textColorSecondary); }
|
|
2159
|
+
.power-helm .helm-version-unavailable { color: var(--colorWarning, var(--textColorSecondary)); }
|
|
2160
|
+
.power-helm .helm-version-progress .Button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 6px; }
|
|
2161
|
+
.power-helm .helm-app-version-cell { display: inline-flex; align-items: center; min-width: 24px; }
|
|
2162
|
+
.power-helm .helm-app-version-placeholder { color: var(--textColorSecondary); opacity: .55; }
|
|
2163
|
+
.power-helm .helm-app-version-retry { display: inline-flex; padding: 0; background: transparent; border: 0; color: var(--textColorSecondary); cursor: pointer; }
|
|
2164
|
+
.power-helm .helm-app-version-retry:hover, .power-helm .helm-app-version-retry:focus-visible { color: var(--primary); }
|
|
2165
|
+
.power-helm .helm-table-frame { flex: 0 1 auto; min-height: 0; border: 1px solid var(--borderColor); border-radius: 6px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: auto; }
|
|
2166
|
+
.power-helm > header, .power-helm > .helm-toolbar, .power-helm > .helm-list-summary, .power-helm > .helm-version-progress { flex-shrink: 0; }
|
|
2167
|
+
.power-helm .helm-table { --helm-row-highlight: var(--tableBgcSelected, color-mix(in srgb, var(--primary) 6%, var(--mainBackground))); width: 100%; border-collapse: collapse; font-size: 13px; }
|
|
2168
|
+
.power-helm .helm-table th { position: sticky; top: 0; z-index: 1; background: var(--contentColor); font-weight: 500; color: var(--textColorSecondary); white-space: nowrap; }
|
|
2169
|
+
.power-helm .helm-table th, .power-helm .helm-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--borderColor); }
|
|
2170
|
+
.power-helm .helm-table-frame .helm-table td:not(:first-child) { white-space: nowrap; }
|
|
2171
|
+
.power-helm .helm-table-frame .helm-table td:first-child { min-width: 240px; }
|
|
2172
|
+
.power-helm .helm-table-frame .helm-table :is(th, td):first-child { position: sticky; left: 0; z-index: 2; background: var(--mainBackground); box-shadow: 1px 0 var(--borderColor); }
|
|
2173
|
+
.power-helm .helm-table-frame .helm-table th:first-child { z-index: 3; background: var(--contentColor); }
|
|
2174
|
+
.power-helm .helm-table-frame .helm-table :is(tr:hover, tr[data-selected=true]) td:first-child { background: var(--helm-row-highlight); }
|
|
2175
|
+
.power-helm .helm-table-frame:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
|
|
2176
|
+
.power-helm .helm-table tbody tr:last-child td { border-bottom: 0; }
|
|
2177
|
+
.power-helm .helm-table tbody tr:hover, .power-helm .helm-table tr[data-selected=true] { background: var(--helm-row-highlight); }
|
|
2178
|
+
:root .power-helm .Button.helm-release-link { display: block; max-width: min(32vw, 460px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: transparent; border: 0; padding: 0; min-height: 0; color: var(--textColorAccent); font-size: 13px; text-align: left; box-shadow: none; }
|
|
2179
|
+
:root .power-helm .Button.helm-release-link:hover { color: var(--primary); }
|
|
2180
|
+
:root .power-helm .Button.helm-release-link::before { display: none; }
|
|
2181
|
+
:is(.power-helm, .power-helm-confirmation, .helm-status-menu) .helm-status { display: inline-flex; white-space: nowrap; box-sizing: border-box; height: 22px; align-items: center; font-size: 12px; line-height: 18px; padding: 1px 7px; border-radius: 4px; color: var(--textColorSecondary); background: var(--contentColor); border: 1px solid var(--borderColor); }
|
|
2182
|
+
:is(.power-helm, .power-helm-confirmation, .helm-status-menu) .helm-status[data-status=deployed] { color: var(--colorOk, var(--textColorAccent)); background: color-mix(in srgb, var(--colorOk, var(--primary)) 9%, var(--mainBackground)); border-color: color-mix(in srgb, var(--colorOk, var(--primary)) 25%, var(--borderColor)); }
|
|
2183
|
+
:is(.power-helm, .power-helm-confirmation, .helm-status-menu) .helm-status[data-status=failed] { color: var(--colorError); border-color: color-mix(in srgb, var(--colorError) 30%, var(--borderColor)); }
|
|
2184
|
+
:is(.power-helm, .power-helm-confirmation, .helm-status-menu) .helm-status[data-status^=pending-], :is(.power-helm, .power-helm-confirmation, .helm-status-menu) .helm-status[data-status=uninstalling] { color: var(--colorWarning, var(--textColorAccent)); background: color-mix(in srgb, var(--colorWarning, var(--primary)) 9%, var(--mainBackground)); border-color: color-mix(in srgb, var(--colorWarning, var(--primary)) 30%, var(--borderColor)); }
|
|
2185
|
+
:is(.power-helm, .power-helm-confirmation, .helm-status-menu) .helm-status[data-status=superseded], :is(.power-helm, .power-helm-confirmation, .helm-status-menu) .helm-status[data-status=uninstalled], :is(.power-helm, .power-helm-confirmation, .helm-status-menu) .helm-status[data-status=unknown] { color: var(--textColorSecondary); background: var(--contentColor); }
|
|
2186
|
+
:is(.power-helm, .power-helm-confirmation, .helm-status-menu) .helm-status[data-status=uninstalled] { border-style: dashed; }
|
|
2187
|
+
.power-helm .helm-native-drawer { max-width: 95%; }
|
|
2188
|
+
.power-helm .helm-native-drawer:has(.helm-comparison-active) { width: min(1100px, calc(100% - 24px)); }
|
|
2189
|
+
.power-helm .helm-native-drawer-content { padding: 0; overflow: hidden; min-height: 0; }
|
|
2190
|
+
.power-helm .helm-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; outline: none; }
|
|
2191
|
+
.power-helm .helm-release-row { cursor: pointer; }
|
|
2192
|
+
:root .power-helm .Button.helm-release-link:focus:not(:focus-visible) { outline: none; box-shadow: none; }
|
|
2193
|
+
.power-helm .helm-panel-actions { display: flex; align-items: center; gap: 4px; }
|
|
2194
|
+
.helm-release-actions-menu { max-height: min(360px, 70vh); overflow-y: auto; }
|
|
2195
|
+
.helm-release-actions-menu .MenuItem { gap: 8px; }
|
|
2196
|
+
:root .helm-release-actions-menu .MenuItem { --bgc-active: var(--primary); --color-active: var(--buttonPrimaryColor, white); }
|
|
2197
|
+
:root .helm-release-actions-menu .MenuItem.helm-release-delete-action { --bgc-active: var(--colorError); }
|
|
2198
|
+
.power-helm .helm-panel-heading { flex-shrink: 0; background: var(--mainBackground); display: flex; justify-content: space-between; align-items: start; padding: 22px 15.5px 18px 22px; gap: 12px; }
|
|
2199
|
+
.power-helm .helm-panel-heading h2 { overflow-wrap: anywhere; }
|
|
2200
|
+
.power-helm .helm-native-drawer:has(.helm-comparison-active) .helm-panel-heading { padding-top: 10px; padding-bottom: 6px; }
|
|
2201
|
+
.power-helm .helm-panel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
|
|
2202
|
+
.power-helm .helm-tabs { flex-shrink: 0; background: var(--mainBackground); display: flex; overflow-x: auto; padding: 0 18px; gap: 4px; border-bottom: 1px solid var(--borderColor); }
|
|
2203
|
+
:root .power-helm .Button.helm-tab { background: transparent; border: 0; border-radius: 0; padding: 12px 8px; color: var(--textColorSecondary); white-space: nowrap; box-shadow: none; border-bottom: 2px solid transparent; }
|
|
2204
|
+
:root .power-helm .Button.helm-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: -4px; }
|
|
2205
|
+
:root .power-helm .Button.helm-tab-active { color: var(--textColorPrimary); border-bottom-color: var(--primary); }
|
|
2206
|
+
.power-helm .helm-panel-content { min-height: 0; overflow: auto; flex: 1; padding: 18px 22px 24px; }
|
|
2207
|
+
.power-helm .helm-panel-content:has(> .helm-comparison-active) { padding-top: 8px; }
|
|
2208
|
+
.power-helm .helm-overview-card { border: 1px solid var(--borderColor); border-radius: 6px; overflow: hidden; }
|
|
2209
|
+
.power-helm .helm-overview-card > header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 6px 12px 6px 16px; background: var(--contentColor); border-bottom: 1px solid var(--borderColor); }
|
|
2210
|
+
.power-helm .helm-overview-card h3 { margin: 0; font-size: 12px; font-weight: 500; }
|
|
2211
|
+
.power-helm .helm-overview > [data-field="Revision"] { grid-area: 1 / 1; }
|
|
2212
|
+
.power-helm .helm-overview > [data-field="App version"] { grid-area: 2 / 1; }
|
|
2213
|
+
.power-helm .helm-overview > [data-field="Chart version"] { grid-area: 3 / 1; }
|
|
2214
|
+
.power-helm .helm-overview > [data-field="Name"] { grid-area: 1 / 2; }
|
|
2215
|
+
.power-helm .helm-overview > [data-field="Namespace"] { grid-area: 2 / 2; }
|
|
2216
|
+
.power-helm .helm-overview > [data-field="Status"] { grid-area: 3 / 2; }
|
|
2217
|
+
.power-helm .helm-overview { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 0 16px; }
|
|
2218
|
+
.power-helm .helm-overview > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--borderColor); }
|
|
2219
|
+
.power-helm .helm-overview > div:last-child { border: 0; }
|
|
2220
|
+
.power-helm .helm-overview dt { color: var(--textColorSecondary); font-size: 11px; }
|
|
2221
|
+
.power-helm .helm-overview .helm-overview-description { grid-column: 1 / -1; }
|
|
2222
|
+
.power-helm .helm-overview dd { font-size: 13px; line-height: 1.5; }
|
|
2223
|
+
.power-helm .helm-overview dd { margin: 0; overflow-wrap: anywhere; user-select: text; }
|
|
2224
|
+
:is(.power-helm, .power-helm-confirmation) .helm-version-badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 22px; padding: 1px 7px; border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--borderColor)); border-radius: 4px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; vertical-align: middle; }
|
|
2225
|
+
.power-helm .helm-edit-notice { display: flex; align-items: start; gap: 10px; padding: 12px; border: 1px solid var(--borderColor); border-radius: 4px; margin-bottom: 12px; }
|
|
2226
|
+
.power-helm .helm-edit-notice p { margin-top: 5px; color: var(--textColorSecondary); font-size: 12px; line-height: 1.5; }
|
|
2227
|
+
.power-helm .helm-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
2228
|
+
.power-helm .helm-release-app-version { display: inline-flex; align-items: center; gap: 6px; }
|
|
2229
|
+
.power-helm .helm-values-editor > .helm-request-status { margin-bottom: 16px; }
|
|
2230
|
+
.power-helm .helm-panel-content:has(> .helm-document-section) { display: flex; overflow: hidden; }
|
|
2231
|
+
.power-helm .helm-document-section > .helm-revision-diff { display: flex; flex-direction: column; min-height: 0; flex: 1; }
|
|
2232
|
+
.power-helm .helm-document-section > .helm-revision-diff > .helm-diff-scroll { flex: 1; min-height: 0; max-height: none; }
|
|
2233
|
+
.power-helm .helm-document-section > .helm-revision-diff > :not(.helm-diff-scroll) { flex-shrink: 0; }
|
|
2234
|
+
.power-helm .helm-document-section, .power-helm .helm-values-editor { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
|
|
2235
|
+
.power-helm .helm-chart-source-status { margin-bottom: 12px; }
|
|
2236
|
+
.power-helm .helm-document-section > :not(.helm-code-view):not(.helm-values-editor):not(.helm-revision-diff), .power-helm .helm-values-editor > :not(.helm-code-view) { flex-shrink: 0; }
|
|
2237
|
+
:root .power-helm .helm-copy-action .Button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; box-sizing: border-box; padding: 0 10px; line-height: 1; }
|
|
2238
|
+
:root .power-helm .Button::before { position: absolute; inset: 0; pointer-events: none; }
|
|
2239
|
+
.power-helm .helm-copy-action .Button > .Icon { flex-shrink: 0; margin: 0; padding: 0; }
|
|
2240
|
+
.power-helm .helm-copy-action .helm-icon-button { width: 32px; height: 32px; }
|
|
2241
|
+
.power-helm .helm-values-editor > .helm-filter { margin: 0 0 12px; }
|
|
2242
|
+
.power-helm .helm-values-editor > .helm-toolbar { position: sticky; bottom: -24px; z-index: 4; margin: 12px -22px -24px; padding: 12px 22px; justify-content: flex-end; border-top: 1px solid var(--borderColor); background: var(--mainBackground); box-shadow: 0 -6px 12px color-mix(in srgb, var(--mainBackground) 70%, transparent); }
|
|
2243
|
+
.power-helm .helm-revision-notice, .power-helm .helm-viewing-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--textColorSecondary); font-size: 12px; padding: 10px 12px; border: 1px solid var(--borderColor); border-radius: 4px; }
|
|
2244
|
+
.power-helm .helm-viewing-banner { margin: 0 22px 4px; padding: 4px 0; min-height: 38px; box-sizing: border-box; border: 0; }
|
|
2245
|
+
.power-helm .helm-viewing-banner > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
2246
|
+
.power-helm .helm-comparison-toolbar { align-items: center; gap: 8px; margin: 0 0 8px; }
|
|
2247
|
+
:root .power-helm .helm-comparison-toolbar .Button { height: 32px; box-sizing: border-box; }
|
|
2248
|
+
:root .power-helm .Button.helm-comparison-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; height: 32px; }
|
|
2249
|
+
.power-helm .helm-comparison-baseline { flex-direction: row; align-items: center; gap: 8px; min-width: 0; max-width: 360px; flex: 1; }
|
|
2250
|
+
.power-helm .helm-comparison-baseline > span { white-space: nowrap; }
|
|
2251
|
+
.power-helm .helm-comparison-baseline > .Select { flex: 1; min-width: 140px; }
|
|
2252
|
+
.power-helm .helm-current-baseline { display: block; margin-top: 4px; }
|
|
2253
|
+
.power-helm .helm-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
|
|
2254
|
+
.power-helm .helm-code-header + .helm-code-view { border: 1px solid var(--borderColor); border-top: 0; border-radius: 0 0 6px 6px; }
|
|
2255
|
+
.power-helm .helm-code-view { overscroll-behavior: contain; }
|
|
2256
|
+
.power-helm .helm-notes-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 16px; color: var(--textColorSecondary); text-align: center; }
|
|
2257
|
+
.power-helm .helm-notes-empty strong { font-size: 14px; font-weight: 500; color: var(--textColorPrimary); }
|
|
2258
|
+
.power-helm .helm-timestamp { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
2259
|
+
.power-helm .helm-copy-action { display: inline-flex; align-items: center; gap: 8px; }
|
|
2260
|
+
.power-helm .helm-code-header > span:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
|
|
2261
|
+
.power-helm .helm-code-header { display: flex; justify-content: space-between; align-items: center; background: var(--contentColor); border: 1px solid var(--borderColor); border-radius: 6px 6px 0 0; padding: 8px 12px; color: var(--textColorSecondary); font-size: 12px; }
|
|
2262
|
+
.power-helm pre.helm-notes { max-height: 52vh; overscroll-behavior: contain; color: var(--textColorPrimary); background: var(--mainBackground); }
|
|
2263
|
+
.power-helm pre.helm-notes code { color: inherit; opacity: 1; background: transparent; }
|
|
2264
|
+
.power-helm pre { margin: 0; padding: 16px; font-size: 12px; line-height: 1.65; border: 1px solid var(--borderColor); border-top: 0; border-radius: 0 0 6px 6px; max-height: 65vh; overflow: auto; }
|
|
2265
|
+
.power-helm .helm-panel-content:has(> .helm-history-layout) { display: flex; overflow: hidden; }
|
|
2266
|
+
.power-helm .helm-access-badge { box-sizing: border-box; height: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--borderColor); border-radius: 4px; color: var(--textColorSecondary); font-size: 11px; white-space: nowrap; }
|
|
2267
|
+
.power-helm .helm-history-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
|
|
2268
|
+
.power-helm .helm-history-delete:not(:disabled):is(:hover, :focus-visible) { color: var(--colorError); background: color-mix(in srgb, var(--colorError) 12%, transparent); }
|
|
2269
|
+
.power-helm .helm-history-delete:disabled { opacity: .35; cursor: default; }
|
|
2270
|
+
.power-helm .helm-history-revision { display: flex; align-items: center; gap: 7px; min-height: 30px; }
|
|
2271
|
+
.power-helm .helm-revision-cell { position: relative; }
|
|
2272
|
+
.power-helm .helm-history-revision:has(.helm-revision-select) { padding-left: 24px; }
|
|
2273
|
+
.power-helm .helm-revision-select { display: inline-flex; align-items: center; justify-content: center; position: absolute; inset: 0 auto 0 0; width: 34px; cursor: pointer; }
|
|
2274
|
+
.power-helm .helm-revision-select:has(input:disabled) { cursor: default; }
|
|
2275
|
+
.power-helm .helm-history-revision .helm-current-tag { margin-left: 0; }
|
|
2276
|
+
.power-helm .helm-history-layout { display: flex; flex-direction: column; min-height: 0; width: 100%; flex: 1; }
|
|
2277
|
+
.power-helm .helm-history-layout > :not(.helm-history-frame) { flex-shrink: 0; }
|
|
2278
|
+
.power-helm .helm-history-tools { margin: 0 0 12px; gap: 8px; }
|
|
2279
|
+
.power-helm .helm-history-tools > .helm-search-field { width: 180px; min-width: 140px; flex: 1; }
|
|
2280
|
+
.power-helm .helm-history-refresh { margin-left: auto; }
|
|
2281
|
+
.power-helm .helm-history-layout > .helm-request-status { justify-content: flex-end; margin-bottom: 12px; }
|
|
2282
|
+
.power-helm .helm-history-frame { flex: 0 1 auto; min-height: 80px; overflow: auto; border: 1px solid var(--borderColor); border-radius: 6px; overscroll-behavior: contain; scrollbar-gutter: auto; }
|
|
2283
|
+
.power-helm .helm-history-frame:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
|
|
2284
|
+
.power-helm .helm-history-table { font-size: 12px; }
|
|
2285
|
+
.power-helm .helm-history-table tbody tr[aria-disabled=false] { cursor: pointer; }
|
|
2286
|
+
.power-helm .helm-history-table tbody tr:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
|
|
2287
|
+
.power-helm .helm-history-table th, .power-helm .helm-history-table td { padding: 8px 10px; white-space: nowrap; }
|
|
2288
|
+
:root .power-helm .Button.helm-rollback-button { display: inline-flex; align-items: center; gap: 6px; }
|
|
2289
|
+
:root .power-helm .Button.helm-rollback-button:not(:disabled) { color: var(--textColorAccent); border-color: var(--primary); }
|
|
2290
|
+
.power-helm .helm-history-view:not(:disabled):hover, .power-helm .helm-history-view:focus-visible { color: var(--primary); }
|
|
2291
|
+
.power-helm .helm-history-view:disabled { opacity: .45; cursor: default; background: transparent; }
|
|
2292
|
+
.power-helm .helm-history-table .helm-inline-action { white-space: nowrap; font-size: 12px; }
|
|
2293
|
+
.power-helm .helm-history-table input[type=radio] { appearance: none; flex-shrink: 0; margin: 0; width: 14px; height: 14px; border: 1px solid var(--textColorSecondary); border-radius: 50%; background: var(--mainBackground); cursor: pointer; }
|
|
2294
|
+
.power-helm .helm-history-table input[type=radio]:checked { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 3px var(--mainBackground); }
|
|
2295
|
+
.power-helm .helm-history-table input[type=radio]:disabled { opacity: .45; cursor: default; }
|
|
2296
|
+
.power-helm .helm-consent { position: relative; }
|
|
2297
|
+
.power-helm .helm-consent input[type=checkbox] { display: block; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); opacity: 0; margin: 0; z-index: 1; }
|
|
2298
|
+
.power-helm .helm-consent input:focus-visible ~ .box { outline: 2px solid var(--primary); outline-offset: 3px; }
|
|
2299
|
+
.power-helm .helm-consent-target { display: inline; line-height: 1.8; overflow-wrap: anywhere; }
|
|
2300
|
+
.power-helm .helm-consent-target strong { font-weight: 500; }
|
|
2301
|
+
.power-helm .helm-consent-revision { margin: 0 4px; }
|
|
2302
|
+
.power-helm .helm-consent-version { display: inline-block; color: var(--textColorSecondary); font-size: 11px; white-space: nowrap; }
|
|
2303
|
+
.power-helm .helm-current-tag { box-sizing: border-box; height: 22px; display: inline-flex; align-items: center; margin-left: 7px; padding: 2px 6px; border-radius: 3px; background: var(--contentColor); border: 1px solid var(--borderColor); color: var(--textColorSecondary); font-size: 11px; line-height: 16px; vertical-align: middle; }
|
|
2304
|
+
:root .power-helm .Button.helm-inline-action:not(.helm-history-view) { border-color: transparent; background: transparent; color: var(--primary); padding: 4px 6px; }
|
|
2305
|
+
.power-helm .helm-history-table label { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; margin: 0; }
|
|
2306
|
+
.power-helm .helm-rollback { margin-top: 8px; padding: 8px 12px; min-height: 0; box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--colorWarning, var(--primary)) 35%, var(--borderColor)); border-radius: 6px; }
|
|
2307
|
+
.power-helm .helm-rollback-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 4px; }
|
|
2308
|
+
.power-helm .helm-rollback-controls > .Button { min-height: 30px; white-space: nowrap; }
|
|
2309
|
+
.power-helm .helm-rollback-controls .helm-consent { margin: 0; min-height: 32px; }
|
|
2310
|
+
.power-helm .helm-restore-revision { flex-shrink: 0; margin-bottom: 8px; }
|
|
2311
|
+
.power-helm .helm-restore-revision > .helm-request-status { margin-bottom: 8px; }
|
|
2312
|
+
.power-helm .helm-restore-revision .helm-rollback { min-height: 0; margin-top: 0; padding: 8px 12px; background: color-mix(in srgb, var(--colorWarning, var(--primary)) 5%, transparent); }
|
|
2313
|
+
.power-helm .helm-restore-revision .helm-rollback-title { flex-wrap: wrap; }
|
|
2314
|
+
.power-helm .helm-restore-revision .helm-rollback-title > .helm-request-status { margin-left: auto; font-weight: 400; }
|
|
2315
|
+
.power-helm .helm-restore-revision .helm-rollback-title > .helm-request-status > .helm-icon-button { order: 1; }
|
|
2316
|
+
.power-helm .helm-restore-revision .helm-confirmation-target { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 11px; font-weight: 400; }
|
|
2317
|
+
.power-helm .helm-restore-revision .helm-rollback-controls { margin-top: 6px; }
|
|
2318
|
+
.power-helm .helm-rollback-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 500; }
|
|
2319
|
+
.power-helm .helm-rollback-hint { color: var(--textColorSecondary); font-size: 12px; font-weight: 400; }
|
|
2320
|
+
.power-helm .helm-rollback p { color: var(--textColorSecondary); margin-top: 8px; font-size: 12px; line-height: 1.5; }
|
|
2321
|
+
.power-helm .helm-consent { display: flex; margin: 16px 0; font-size: 12px; }
|
|
2322
|
+
.power-helm .helm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 42px 20px; color: var(--textColorSecondary); }
|
|
2323
|
+
.ConfirmDialog:has(.power-helm-confirmation) > .box { min-width: min(360px,calc(100vw - 32px)); max-width: min(640px,calc(100vw - 32px)); }
|
|
2324
|
+
.ConfirmDialog:has(.power-helm-confirmation) .confirm-content { gap: 12px; }
|
|
2325
|
+
.ConfirmDialog:has(.power-helm-confirmation .helm-revision-diff) > .box { width: min(1100px, calc(100vw - 64px)); max-width: min(1100px, calc(100vw - 64px)); }
|
|
2326
|
+
.ConfirmDialog:has(.power-helm-confirmation .helm-revision-diff) .confirm-content { align-items: flex-start; }
|
|
2327
|
+
.ConfirmDialog:has(.power-helm-confirmation .helm-revision-diff) .confirm-content > .Icon { align-self: flex-start; margin-top: 4px; }
|
|
2328
|
+
.ConfirmDialog .helm-rollback-confirmation p { margin: 8px 0 12px; }
|
|
2329
|
+
.ConfirmDialog .helm-confirmation-target { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; border: 1px solid var(--borderColor); border-radius: 6px; background: var(--mainBackground); }
|
|
2330
|
+
.ConfirmDialog .helm-revision-badge { min-width: 28px; }
|
|
2331
|
+
.ConfirmDialog .helm-target-version, .ConfirmDialog .helm-confirmation-explanation { color: var(--textColorSecondary); font-size: 12px; }
|
|
2332
|
+
.ConfirmDialog .helm-target-version { display: inline-flex; align-items: center; gap: 8px; }
|
|
2333
|
+
.ConfirmDialog .helm-confirmation-heading { position: sticky; top: 0; z-index: 3; background: var(--contentColor); padding-bottom: 12px; }
|
|
2334
|
+
.ConfirmDialog:has(.power-helm-confirmation .helm-revision-diff) .power-helm-confirmation { overscroll-behavior: contain; scrollbar-gutter: stable; flex: 1; min-width: 0; max-height: 66vh; overflow: auto; padding-right: 4px; }
|
|
2335
|
+
|
|
2336
|
+
.ConfirmDialog:has(.power-helm-confirmation) .confirm-content > .Icon { flex-shrink: 0; margin: 0; }
|
|
2337
|
+
.ConfirmDialog:has(.power-helm-confirmation) .power-helm-confirmation { display: block; line-height: 1.6; overflow-wrap: anywhere; color: var(--textColorPrimary); }
|
|
2338
|
+
.ConfirmDialog:has(.power-helm-confirmation) .power-helm-confirm { background: var(--colorError, #c64b4b); color: white; }
|
|
2339
|
+
.ConfirmDialog .power-helm-confirm-delete-revision { display: inline-flex; align-items: center; gap: 6px; }
|
|
2340
|
+
.ConfirmDialog .power-helm-confirm-delete-revision > .Icon { margin: 0; padding: 0; }
|
|
2341
|
+
.ConfirmDialog:has(.helm-rollback-confirmation) .confirm-content { align-items: flex-start; }
|
|
2342
|
+
.ConfirmDialog:has(.helm-rollback-confirmation) .confirm-content > .Icon { color: var(--colorError); margin-top: 2px; }
|
|
2343
|
+
.ConfirmDialog:has(.helm-rollback-confirmation) .power-helm-confirm-rollback { display: inline-flex; align-items: center; gap: 6px; background: var(--colorError); border-color: var(--colorError); color: white; }
|
|
2344
|
+
.ConfirmDialog:has(.helm-rollback-confirmation) .power-helm-confirm-rollback > .Icon { margin: 0; padding: 0; }
|
|
2345
|
+
@keyframes power-helm-spin { to { transform: rotate(360deg); } }
|
|
2346
|
+
@media (prefers-reduced-motion: reduce) { .power-helm .helm-spinner { animation: none; } }
|
|
2347
|
+
` }),
|
|
2348
|
+
/* @__PURE__ */ require_jsx_runtime.jsxs("header", {
|
|
2349
|
+
style: {
|
|
2350
|
+
display: "flex",
|
|
2351
|
+
justifyContent: "space-between",
|
|
2352
|
+
alignItems: "center",
|
|
2353
|
+
marginBottom: 16
|
|
2354
|
+
},
|
|
2355
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsxs("div", {
|
|
2356
|
+
className: "helm-page-title",
|
|
2357
|
+
children: [/* @__PURE__ */ require_jsx_runtime.jsx(Icon, { svg: "helm" }), /* @__PURE__ */ require_jsx_runtime.jsxs("div", { children: [/* @__PURE__ */ require_jsx_runtime.jsx("h2", { children: "Helm" }), /* @__PURE__ */ require_jsx_runtime.jsx("span", { children: "Releases" })] })]
|
|
2358
|
+
}), /* @__PURE__ */ require_jsx_runtime.jsx(require_native_tooltip.NativeTooltip, {
|
|
2359
|
+
title: "Native Helm",
|
|
2360
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx("button", {
|
|
2361
|
+
type: "button",
|
|
2362
|
+
className: "helm-native-button",
|
|
2363
|
+
"aria-label": "Open native Helm",
|
|
2364
|
+
onClick: () => require_extensions.Renderer.Navigation.navigate("/helm/releases?power-native=1"),
|
|
2365
|
+
children: /* @__PURE__ */ require_jsx_runtime.jsx(Icon, {
|
|
2366
|
+
material: "open_in_new",
|
|
2367
|
+
size: 16
|
|
2368
|
+
})
|
|
2369
|
+
})
|
|
2370
|
+
})]
|
|
2371
|
+
}),
|
|
2372
|
+
!enabled ? /* @__PURE__ */ require_jsx_runtime.jsx("p", { children: "Helm enhancements are disabled" }) : clusterId ? /* @__PURE__ */ require_jsx_runtime.jsx(ClusterHelm, {
|
|
2373
|
+
clusterId,
|
|
2374
|
+
partition
|
|
2375
|
+
}, partition) : /* @__PURE__ */ require_jsx_runtime.jsx("p", { children: "Select a cluster to view Helm releases" })
|
|
2376
|
+
]
|
|
2377
|
+
});
|
|
2378
|
+
});
|
|
2379
|
+
//#endregion
|
|
2380
|
+
exports.PowerHelmPage = PowerHelmPage;
|
|
2381
|
+
exports.useHelmRequest = useHelmRequest;
|
|
2382
|
+
|
|
2383
|
+
//# sourceMappingURL=helm.js.map
|