@64mb/freelens-power 1.0.3 → 1.2.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 +9 -4
- package/THIRD_PARTY_LICENSES +1707 -0
- package/out/main/ai.js +63 -23
- package/out/main/ai.js.map +1 -1
- package/out/main/cluster-icons-catalog.js +28 -0
- package/out/main/cluster-icons-catalog.js.map +1 -0
- package/out/main/cluster-icons.js +125 -0
- package/out/main/cluster-icons.js.map +1 -0
- package/out/main/common/ai-terminal-context.js +51 -0
- package/out/main/common/ai-terminal-context.js.map +1 -0
- package/out/main/common/ai.js.map +1 -1
- package/out/main/common/cluster-icon-ipc.js +6 -0
- package/out/main/common/cluster-icon-ipc.js.map +1 -0
- package/out/main/common/cluster-icons.js +121 -0
- package/out/main/common/cluster-icons.js.map +1 -0
- package/out/main/common/dashboard.js +1 -1
- package/out/main/common/dashboard.js.map +1 -1
- package/out/main/common/monitoring-history.js +52 -0
- package/out/main/common/monitoring-history.js.map +1 -0
- package/out/main/common/settings-export.js +3 -1
- package/out/main/common/settings-export.js.map +1 -1
- package/out/main/common/store/cluster-icons-store.js +32 -0
- package/out/main/common/store/cluster-icons-store.js.map +1 -0
- package/out/main/common/store/monitoring-preferences-store.js +30 -2
- package/out/main/common/store/monitoring-preferences-store.js.map +1 -1
- package/out/main/dashboard-views.js +132 -28
- package/out/main/dashboard-views.js.map +1 -1
- package/out/main/diagnostics-menu-order.js +57 -0
- package/out/main/diagnostics-menu-order.js.map +1 -0
- package/out/main/index.js +11 -1
- package/out/main/index.js.map +1 -1
- package/out/main/monitoring-history-database.js +103 -0
- package/out/main/monitoring-history-database.js.map +1 -0
- package/out/main/monitoring-history-worker.js +61 -0
- package/out/main/monitoring-history-worker.js.map +1 -0
- package/out/main/monitoring-history.js +110 -0
- package/out/main/monitoring-history.js.map +1 -0
- package/out/renderer/_virtual/_global-external_mobx.js +2 -1
- package/out/renderer/_virtual/_global-external_react-dom.js +2 -1
- package/out/renderer/_virtual/_global-external_react.js +10 -5
- package/out/renderer/_virtual/_rolldown/runtime.js +22 -0
- package/out/renderer/ai-terminal-context.js +200 -0
- package/out/renderer/ai-terminal-context.js.map +1 -0
- package/out/renderer/ai.js +90 -9
- package/out/renderer/ai.js.map +1 -1
- package/out/renderer/appearance.js +1 -0
- package/out/renderer/appearance.js.map +1 -1
- package/out/renderer/cluster-icon-colors.js +188 -0
- package/out/renderer/cluster-icon-colors.js.map +1 -0
- package/out/renderer/cluster-icons.js +304 -0
- package/out/renderer/cluster-icons.js.map +1 -0
- package/out/renderer/dashboard.js +8 -5
- package/out/renderer/dashboard.js.map +1 -1
- package/out/renderer/details/secret-certificate-details.js +9 -2
- package/out/renderer/details/secret-certificate-details.js.map +1 -1
- package/out/renderer/diagnostics.css.js +39 -0
- package/out/renderer/diagnostics.css.js.map +1 -0
- package/out/renderer/diagnostics.js +1100 -0
- package/out/renderer/diagnostics.js.map +1 -0
- package/out/renderer/index.js +32 -0
- package/out/renderer/index.js.map +1 -1
- package/out/renderer/monitoring-collector.js +202 -0
- package/out/renderer/monitoring-collector.js.map +1 -0
- package/out/renderer/monitoring-details-chart.js +42 -0
- package/out/renderer/monitoring-details-chart.js.map +1 -0
- package/out/renderer/monitoring-history-collection.js +168 -0
- package/out/renderer/monitoring-history-collection.js.map +1 -0
- package/out/renderer/monitoring-history-view.js +227 -0
- package/out/renderer/monitoring-history-view.js.map +1 -0
- package/out/renderer/monitoring-history.js +19 -0
- package/out/renderer/monitoring-history.js.map +1 -0
- package/out/renderer/monitoring.js +153 -139
- package/out/renderer/monitoring.js.map +1 -1
- package/out/renderer/node-monitoring.js +127 -0
- package/out/renderer/node-monitoring.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +10 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +9 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +9 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createSuper.js +19 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/createSuper.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js +14 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js +19 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +15 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inherits.js +14 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +18 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +26 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +27 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +15 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +14 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +12 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +15 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +12 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +8 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +12 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +16 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +11 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/typeof.js +18 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +13 -0
- package/out/renderer/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +237 -0
- package/out/renderer/node_modules/.pnpm/@emotion_cache@11.14.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +25 -0
- package/out/renderer/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +12 -0
- package/out/renderer/node_modules/.pnpm/@emotion_memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +58 -0
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +54 -0
- package/out/renderer/node_modules/.pnpm/@emotion_react@11.14.0_@types_react@17.0.93_react@17.0.2/node_modules/@emotion/react/dist/emotion-react.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +133 -0
- package/out/renderer/node_modules/.pnpm/@emotion_serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +65 -0
- package/out/renderer/node_modules/.pnpm/@emotion_sheet@1.4.0/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +54 -0
- package/out/renderer/node_modules/.pnpm/@emotion_unitless@0.10.0/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@17.0.2/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +12 -0
- package/out/renderer/node_modules/.pnpm/@emotion_use-insertion-effect-with-fallbacks@1.2.0_react@17.0.2/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +30 -0
- package/out/renderer/node_modules/.pnpm/@emotion_utils@1.4.2/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +211 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +31 -0
- package/out/renderer/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +93 -0
- package/out/renderer/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.esm.js +38 -0
- package/out/renderer/node_modules/.pnpm/memoize-one@6.0.0/node_modules/memoize-one/dist/memoize-one.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +159 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +103 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +18 -0
- package/out/renderer/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/Select-ef7c0426.esm.js +2200 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/Select-ef7c0426.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/index-641ee5b8.esm.js +992 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/index-641ee5b8.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/react-select.esm.js +14 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/react-select.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +56 -0
- package/out/renderer/node_modules/.pnpm/react-select@5.10.2_@types_react@17.0.93_react-dom@17.0.2_react@17.0.2__react@17.0.2/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js +22 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js +30 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js +164 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js +37 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js +245 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js +120 -0
- package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js.map +1 -0
- package/out/renderer/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +6 -0
- package/out/renderer/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js.map +1 -0
- package/out/renderer/pod-monitoring.js +38 -11
- package/out/renderer/pod-monitoring.js.map +1 -1
- package/out/renderer/preferences/ai-shortcuts-preferences.js +12 -4
- package/out/renderer/preferences/ai-shortcuts-preferences.js.map +1 -1
- package/out/renderer/preferences/dashboard-preferences.js +20 -4
- package/out/renderer/preferences/dashboard-preferences.js.map +1 -1
- package/out/renderer/preferences/monitoring-preferences.js +141 -9
- package/out/renderer/preferences/monitoring-preferences.js.map +1 -1
- package/out/renderer/preferences/preferences.js +31 -7
- package/out/renderer/preferences/preferences.js.map +1 -1
- package/out/renderer/read-only.js +2 -2
- package/out/renderer/read-only.js.map +1 -1
- package/out/renderer/src/common/ai-terminal-context.js +51 -0
- package/out/renderer/src/common/ai-terminal-context.js.map +1 -0
- package/out/renderer/src/common/ai.js.map +1 -1
- package/out/renderer/src/common/cluster-icon-ipc.js +6 -0
- package/out/renderer/src/common/cluster-icon-ipc.js.map +1 -0
- package/out/renderer/src/common/cluster-icons.js +133 -0
- package/out/renderer/src/common/cluster-icons.js.map +1 -0
- package/out/renderer/src/common/dashboard.js +1 -1
- package/out/renderer/src/common/dashboard.js.map +1 -1
- package/out/renderer/src/common/date-time.js +11 -0
- package/out/renderer/src/common/date-time.js.map +1 -0
- package/out/renderer/src/common/monitoring-history.js +17 -0
- package/out/renderer/src/common/monitoring-history.js.map +1 -0
- package/out/renderer/src/common/monitoring-math.js +98 -0
- package/out/renderer/src/common/monitoring-math.js.map +1 -0
- package/out/renderer/src/common/resource-diagnostics.js +227 -0
- package/out/renderer/src/common/resource-diagnostics.js.map +1 -0
- package/out/renderer/src/common/settings-export.js.map +1 -1
- package/out/renderer/src/common/store/monitoring-preferences-store.js +30 -2
- package/out/renderer/src/common/store/monitoring-preferences-store.js.map +1 -1
- package/out/renderer/welcome.js +31 -7
- package/out/renderer/welcome.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_Enum = require("./Enum.js");
|
|
2
|
+
const require_Utility = require("./Utility.js");
|
|
3
|
+
//#region node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js
|
|
4
|
+
/**
|
|
5
|
+
* @param {object[]} children
|
|
6
|
+
* @param {function} callback
|
|
7
|
+
* @return {string}
|
|
8
|
+
*/
|
|
9
|
+
function serialize(children, callback) {
|
|
10
|
+
var output = "";
|
|
11
|
+
var length = require_Utility.sizeof(children);
|
|
12
|
+
for (var i = 0; i < length; i++) output += callback(children[i], i, children, callback) || "";
|
|
13
|
+
return output;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @param {object} element
|
|
17
|
+
* @param {number} index
|
|
18
|
+
* @param {object[]} children
|
|
19
|
+
* @param {function} callback
|
|
20
|
+
* @return {string}
|
|
21
|
+
*/
|
|
22
|
+
function stringify(element, index, children, callback) {
|
|
23
|
+
switch (element.type) {
|
|
24
|
+
case require_Enum.LAYER: if (element.children.length) break;
|
|
25
|
+
case require_Enum.IMPORT:
|
|
26
|
+
case require_Enum.DECLARATION: return element.return = element.return || element.value;
|
|
27
|
+
case require_Enum.COMMENT: return "";
|
|
28
|
+
case require_Enum.KEYFRAMES: return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
29
|
+
case require_Enum.RULESET: element.value = element.props.join(",");
|
|
30
|
+
}
|
|
31
|
+
return require_Utility.strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.serialize = serialize;
|
|
35
|
+
exports.stringify = stringify;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=Serializer.js.map
|
package/out/renderer/node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Serializer.js","names":["sizeof","LAYER","IMPORT","DECLARATION","COMMENT","KEYFRAMES","RULESET","strlen"],"sources":["../../../../../../../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js"],"sourcesContent":["import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen, sizeof} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\tvar length = sizeof(children)\n\n\tfor (var i = 0; i < length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: element.value = element.props.join(',')\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAQA,SAAgB,UAAW,UAAU,UAAU;CAC9C,IAAI,SAAS;CACb,IAAI,SAASA,gBAAAA,OAAO,QAAQ;CAE5B,KAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,KAC3B,UAAU,SAAS,SAAS,IAAI,GAAG,UAAU,QAAQ,KAAK;CAE3D,OAAO;AACR;;;;;;;;AASA,SAAgB,UAAW,SAAS,OAAO,UAAU,UAAU;CAC9D,QAAQ,QAAQ,MAAhB;EACC,KAAKC,aAAAA,OAAO,IAAI,QAAQ,SAAS,QAAQ;EACzC,KAAKC,aAAAA;EAAQ,KAAKC,aAAAA,aAAa,OAAO,QAAQ,SAAS,QAAQ,UAAU,QAAQ;EACjF,KAAKC,aAAAA,SAAS,OAAO;EACrB,KAAKC,aAAAA,WAAW,OAAO,QAAQ,SAAS,QAAQ,QAAQ,MAAM,UAAU,QAAQ,UAAU,QAAQ,IAAI;EACtG,KAAKC,aAAAA,SAAS,QAAQ,QAAQ,QAAQ,MAAM,KAAK,GAAG;CACrD;CAEA,OAAOC,gBAAAA,OAAO,WAAW,UAAU,QAAQ,UAAU,QAAQ,CAAC,IAAI,QAAQ,SAAS,QAAQ,QAAQ,MAAM,WAAW,MAAM;AAC3H"}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
const require_Utility = require("./Utility.js");
|
|
2
|
+
//#region node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js
|
|
3
|
+
var line = 1;
|
|
4
|
+
var column = 1;
|
|
5
|
+
var length = 0;
|
|
6
|
+
var position = 0;
|
|
7
|
+
var character = 0;
|
|
8
|
+
var characters = "";
|
|
9
|
+
/**
|
|
10
|
+
* @param {string} value
|
|
11
|
+
* @param {object | null} root
|
|
12
|
+
* @param {object | null} parent
|
|
13
|
+
* @param {string} type
|
|
14
|
+
* @param {string[] | string} props
|
|
15
|
+
* @param {object[] | string} children
|
|
16
|
+
* @param {number} length
|
|
17
|
+
*/
|
|
18
|
+
function node(value, root, parent, type, props, children, length) {
|
|
19
|
+
return {
|
|
20
|
+
value,
|
|
21
|
+
root,
|
|
22
|
+
parent,
|
|
23
|
+
type,
|
|
24
|
+
props,
|
|
25
|
+
children,
|
|
26
|
+
line,
|
|
27
|
+
column,
|
|
28
|
+
length,
|
|
29
|
+
return: ""
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @param {object} root
|
|
34
|
+
* @param {object} props
|
|
35
|
+
* @return {object}
|
|
36
|
+
*/
|
|
37
|
+
function copy(root, props) {
|
|
38
|
+
return require_Utility.assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @return {number}
|
|
42
|
+
*/
|
|
43
|
+
function char() {
|
|
44
|
+
return character;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @return {number}
|
|
48
|
+
*/
|
|
49
|
+
function prev() {
|
|
50
|
+
character = position > 0 ? require_Utility.charat(characters, --position) : 0;
|
|
51
|
+
if (column--, character === 10) column = 1, line--;
|
|
52
|
+
return character;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @return {number}
|
|
56
|
+
*/
|
|
57
|
+
function next() {
|
|
58
|
+
character = position < length ? require_Utility.charat(characters, position++) : 0;
|
|
59
|
+
if (column++, character === 10) column = 1, line++;
|
|
60
|
+
return character;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @return {number}
|
|
64
|
+
*/
|
|
65
|
+
function peek() {
|
|
66
|
+
return require_Utility.charat(characters, position);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @return {number}
|
|
70
|
+
*/
|
|
71
|
+
function caret() {
|
|
72
|
+
return position;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @param {number} begin
|
|
76
|
+
* @param {number} end
|
|
77
|
+
* @return {string}
|
|
78
|
+
*/
|
|
79
|
+
function slice(begin, end) {
|
|
80
|
+
return require_Utility.substr(characters, begin, end);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @param {number} type
|
|
84
|
+
* @return {number}
|
|
85
|
+
*/
|
|
86
|
+
function token(type) {
|
|
87
|
+
switch (type) {
|
|
88
|
+
case 0:
|
|
89
|
+
case 9:
|
|
90
|
+
case 10:
|
|
91
|
+
case 13:
|
|
92
|
+
case 32: return 5;
|
|
93
|
+
case 33:
|
|
94
|
+
case 43:
|
|
95
|
+
case 44:
|
|
96
|
+
case 47:
|
|
97
|
+
case 62:
|
|
98
|
+
case 64:
|
|
99
|
+
case 126:
|
|
100
|
+
case 59:
|
|
101
|
+
case 123:
|
|
102
|
+
case 125: return 4;
|
|
103
|
+
case 58: return 3;
|
|
104
|
+
case 34:
|
|
105
|
+
case 39:
|
|
106
|
+
case 40:
|
|
107
|
+
case 91: return 2;
|
|
108
|
+
case 41:
|
|
109
|
+
case 93: return 1;
|
|
110
|
+
}
|
|
111
|
+
return 0;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @param {string} value
|
|
115
|
+
* @return {any[]}
|
|
116
|
+
*/
|
|
117
|
+
function alloc(value) {
|
|
118
|
+
return line = column = 1, length = require_Utility.strlen(characters = value), position = 0, [];
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @param {any} value
|
|
122
|
+
* @return {any}
|
|
123
|
+
*/
|
|
124
|
+
function dealloc(value) {
|
|
125
|
+
return characters = "", value;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @param {number} type
|
|
129
|
+
* @return {string}
|
|
130
|
+
*/
|
|
131
|
+
function delimit(type) {
|
|
132
|
+
return require_Utility.trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @param {number} type
|
|
136
|
+
* @return {string}
|
|
137
|
+
*/
|
|
138
|
+
function whitespace(type) {
|
|
139
|
+
while (character = peek()) if (character < 33) next();
|
|
140
|
+
else break;
|
|
141
|
+
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @param {number} index
|
|
145
|
+
* @param {number} count
|
|
146
|
+
* @return {string}
|
|
147
|
+
*/
|
|
148
|
+
function escaping(index, count) {
|
|
149
|
+
while (--count && next()) if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
|
|
150
|
+
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* @param {number} type
|
|
154
|
+
* @return {number}
|
|
155
|
+
*/
|
|
156
|
+
function delimiter(type) {
|
|
157
|
+
while (next()) switch (character) {
|
|
158
|
+
case type: return position;
|
|
159
|
+
case 34:
|
|
160
|
+
case 39:
|
|
161
|
+
if (type !== 34 && type !== 39) delimiter(character);
|
|
162
|
+
break;
|
|
163
|
+
case 40:
|
|
164
|
+
if (type === 41) delimiter(type);
|
|
165
|
+
break;
|
|
166
|
+
case 92:
|
|
167
|
+
next();
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
return position;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* @param {number} type
|
|
174
|
+
* @param {number} index
|
|
175
|
+
* @return {number}
|
|
176
|
+
*/
|
|
177
|
+
function commenter(type, index) {
|
|
178
|
+
while (next()) if (type + character === 57) break;
|
|
179
|
+
else if (type + character === 84 && peek() === 47) break;
|
|
180
|
+
return "/*" + slice(index, position - 1) + "*" + require_Utility.from(type === 47 ? type : next());
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* @param {number} index
|
|
184
|
+
* @return {string}
|
|
185
|
+
*/
|
|
186
|
+
function identifier(index) {
|
|
187
|
+
while (!token(peek())) next();
|
|
188
|
+
return slice(index, position);
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
exports.alloc = alloc;
|
|
192
|
+
exports.caret = caret;
|
|
193
|
+
exports.char = char;
|
|
194
|
+
Object.defineProperty(exports, "character", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function() {
|
|
197
|
+
return character;
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
Object.defineProperty(exports, "characters", {
|
|
201
|
+
enumerable: true,
|
|
202
|
+
get: function() {
|
|
203
|
+
return characters;
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports, "column", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function() {
|
|
209
|
+
return column;
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
exports.commenter = commenter;
|
|
213
|
+
exports.copy = copy;
|
|
214
|
+
exports.dealloc = dealloc;
|
|
215
|
+
exports.delimit = delimit;
|
|
216
|
+
exports.delimiter = delimiter;
|
|
217
|
+
exports.escaping = escaping;
|
|
218
|
+
exports.identifier = identifier;
|
|
219
|
+
Object.defineProperty(exports, "length", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function() {
|
|
222
|
+
return length;
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
Object.defineProperty(exports, "line", {
|
|
226
|
+
enumerable: true,
|
|
227
|
+
get: function() {
|
|
228
|
+
return line;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
exports.next = next;
|
|
232
|
+
exports.node = node;
|
|
233
|
+
exports.peek = peek;
|
|
234
|
+
Object.defineProperty(exports, "position", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function() {
|
|
237
|
+
return position;
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
exports.prev = prev;
|
|
241
|
+
exports.slice = slice;
|
|
242
|
+
exports.token = token;
|
|
243
|
+
exports.whitespace = whitespace;
|
|
244
|
+
|
|
245
|
+
//# sourceMappingURL=Tokenizer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tokenizer.js","names":["assign","charat","substr","strlen","trim","from"],"sources":["../../../../../../../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js"],"sourcesContent":["import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js
|
|
2
|
+
/**
|
|
3
|
+
* @param {number}
|
|
4
|
+
* @return {number}
|
|
5
|
+
*/
|
|
6
|
+
var abs = Math.abs;
|
|
7
|
+
/**
|
|
8
|
+
* @param {number}
|
|
9
|
+
* @return {string}
|
|
10
|
+
*/
|
|
11
|
+
var from = String.fromCharCode;
|
|
12
|
+
/**
|
|
13
|
+
* @param {object}
|
|
14
|
+
* @return {object}
|
|
15
|
+
*/
|
|
16
|
+
var assign = Object.assign;
|
|
17
|
+
/**
|
|
18
|
+
* @param {string} value
|
|
19
|
+
* @param {number} length
|
|
20
|
+
* @return {number}
|
|
21
|
+
*/
|
|
22
|
+
function hash(value, length) {
|
|
23
|
+
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @param {string} value
|
|
27
|
+
* @return {string}
|
|
28
|
+
*/
|
|
29
|
+
function trim(value) {
|
|
30
|
+
return value.trim();
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @param {string} value
|
|
34
|
+
* @param {RegExp} pattern
|
|
35
|
+
* @return {string?}
|
|
36
|
+
*/
|
|
37
|
+
function match(value, pattern) {
|
|
38
|
+
return (value = pattern.exec(value)) ? value[0] : value;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @param {string} value
|
|
42
|
+
* @param {(string|RegExp)} pattern
|
|
43
|
+
* @param {string} replacement
|
|
44
|
+
* @return {string}
|
|
45
|
+
*/
|
|
46
|
+
function replace(value, pattern, replacement) {
|
|
47
|
+
return value.replace(pattern, replacement);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @param {string} value
|
|
51
|
+
* @param {string} search
|
|
52
|
+
* @return {number}
|
|
53
|
+
*/
|
|
54
|
+
function indexof(value, search) {
|
|
55
|
+
return value.indexOf(search);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @param {string} value
|
|
59
|
+
* @param {number} index
|
|
60
|
+
* @return {number}
|
|
61
|
+
*/
|
|
62
|
+
function charat(value, index) {
|
|
63
|
+
return value.charCodeAt(index) | 0;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @param {string} value
|
|
67
|
+
* @param {number} begin
|
|
68
|
+
* @param {number} end
|
|
69
|
+
* @return {string}
|
|
70
|
+
*/
|
|
71
|
+
function substr(value, begin, end) {
|
|
72
|
+
return value.slice(begin, end);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @param {string} value
|
|
76
|
+
* @return {number}
|
|
77
|
+
*/
|
|
78
|
+
function strlen(value) {
|
|
79
|
+
return value.length;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @param {any[]} value
|
|
83
|
+
* @return {number}
|
|
84
|
+
*/
|
|
85
|
+
function sizeof(value) {
|
|
86
|
+
return value.length;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @param {any} value
|
|
90
|
+
* @param {any[]} array
|
|
91
|
+
* @return {any}
|
|
92
|
+
*/
|
|
93
|
+
function append(value, array) {
|
|
94
|
+
return array.push(value), value;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @param {string[]} array
|
|
98
|
+
* @param {function} callback
|
|
99
|
+
* @return {string}
|
|
100
|
+
*/
|
|
101
|
+
function combine(array, callback) {
|
|
102
|
+
return array.map(callback).join("");
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
exports.abs = abs;
|
|
106
|
+
exports.append = append;
|
|
107
|
+
exports.assign = assign;
|
|
108
|
+
exports.charat = charat;
|
|
109
|
+
exports.combine = combine;
|
|
110
|
+
exports.from = from;
|
|
111
|
+
exports.hash = hash;
|
|
112
|
+
exports.indexof = indexof;
|
|
113
|
+
exports.match = match;
|
|
114
|
+
exports.replace = replace;
|
|
115
|
+
exports.sizeof = sizeof;
|
|
116
|
+
exports.strlen = strlen;
|
|
117
|
+
exports.substr = substr;
|
|
118
|
+
exports.trim = trim;
|
|
119
|
+
|
|
120
|
+
//# sourceMappingURL=Utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Utility.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js"],"sourcesContent":["/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @return {number}\n */\nexport function indexof (value, search) {\n\treturn value.indexOf(search)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAIA,IAAW,MAAM,KAAK;;;;;AAMtB,IAAW,OAAO,OAAO;;;;;AAMzB,IAAW,SAAS,OAAO;;;;;;AAO3B,SAAgB,KAAM,OAAO,QAAQ;CACpC,OAAO,OAAO,OAAO,CAAC,IAAI,QAAY,UAAU,IAAK,OAAO,OAAO,CAAC,MAAM,IAAK,OAAO,OAAO,CAAC,MAAM,IAAK,OAAO,OAAO,CAAC,MAAM,IAAK,OAAO,OAAO,CAAC,IAAI;AACvJ;;;;;AAMA,SAAgB,KAAM,OAAO;CAC5B,OAAO,MAAM,KAAK;AACnB;;;;;;AAOA,SAAgB,MAAO,OAAO,SAAS;CACtC,QAAQ,QAAQ,QAAQ,KAAK,KAAK,KAAK,MAAM,KAAK;AACnD;;;;;;;AAQA,SAAgB,QAAS,OAAO,SAAS,aAAa;CACrD,OAAO,MAAM,QAAQ,SAAS,WAAW;AAC1C;;;;;;AAOA,SAAgB,QAAS,OAAO,QAAQ;CACvC,OAAO,MAAM,QAAQ,MAAM;AAC5B;;;;;;AAOA,SAAgB,OAAQ,OAAO,OAAO;CACrC,OAAO,MAAM,WAAW,KAAK,IAAI;AAClC;;;;;;;AAQA,SAAgB,OAAQ,OAAO,OAAO,KAAK;CAC1C,OAAO,MAAM,MAAM,OAAO,GAAG;AAC9B;;;;;AAMA,SAAgB,OAAQ,OAAO;CAC9B,OAAO,MAAM;AACd;;;;;AAMA,SAAgB,OAAQ,OAAO;CAC9B,OAAO,MAAM;AACd;;;;;;AAOA,SAAgB,OAAQ,OAAO,OAAO;CACrC,OAAO,MAAM,KAAK,KAAK,GAAG;AAC3B;;;;;;AAOA,SAAgB,QAAS,OAAO,UAAU;CACzC,OAAO,MAAM,IAAI,QAAQ,CAAC,CAAC,KAAK,EAAE;AACnC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js
|
|
2
|
+
var index = require("../../../../../../_virtual/_global-external_react.js").useLayoutEffect;
|
|
3
|
+
//#endregion
|
|
4
|
+
exports.default = index;
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=use-isomorphic-layout-effect.browser.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-isomorphic-layout-effect.browser.esm.js","names":["useLayoutEffect"],"sources":["../../../../../../../../node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types+react@17.0.93_react@17.0.2/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js"],"sourcesContent":["import { useLayoutEffect } from 'react';\n\nvar index = useLayoutEffect ;\n\nexport { index as default };\n"],"x_google_ignoreList":[0],"mappings":";AAEA,IAAI,sEAAQA,CAAAA,CAAAA"}
|
|
@@ -3,7 +3,11 @@ const require__global_external_mobx = require("./_virtual/_global-external_mobx.
|
|
|
3
3
|
const require_monitoring_preferences_store = require("./src/common/store/monitoring-preferences-store.js");
|
|
4
4
|
const require__global_external_react_dom = require("./_virtual/_global-external_react-dom.js");
|
|
5
5
|
const require_jsx_runtime = require("./_virtual/_global-external_react/jsx-runtime.js");
|
|
6
|
-
const
|
|
6
|
+
const require_monitoring_math = require("./src/common/monitoring-math.js");
|
|
7
|
+
const require_monitoring_collector = require("./monitoring-collector.js");
|
|
8
|
+
const require_monitoring_history_view = require("./monitoring-history-view.js");
|
|
9
|
+
require("./monitoring.js");
|
|
10
|
+
const require_monitoring_details_chart = require("./monitoring-details-chart.js");
|
|
7
11
|
//#region src/renderer/pod-monitoring.tsx
|
|
8
12
|
var INTERVAL = 3e4;
|
|
9
13
|
function aggregatePodMetrics(metrics, identity, now = Date.now()) {
|
|
@@ -17,8 +21,8 @@ function aggregatePodMetrics(metrics, identity, now = Date.now()) {
|
|
|
17
21
|
for (const container of metrics.containers) {
|
|
18
22
|
if (!container.name || names.has(container.name)) throw new Error("Invalid container metrics");
|
|
19
23
|
names.add(container.name);
|
|
20
|
-
cpu +=
|
|
21
|
-
memory +=
|
|
24
|
+
cpu += require_monitoring_math.parseQuantity(container.usage.cpu);
|
|
25
|
+
memory += require_monitoring_math.parseQuantity(container.usage.memory, true);
|
|
22
26
|
}
|
|
23
27
|
return {
|
|
24
28
|
time,
|
|
@@ -26,6 +30,22 @@ function aggregatePodMetrics(metrics, identity, now = Date.now()) {
|
|
|
26
30
|
memory
|
|
27
31
|
};
|
|
28
32
|
}
|
|
33
|
+
function PodMonitoringChart({ clusterId, uid, samples, status, metric }) {
|
|
34
|
+
const history = require_monitoring_history_view.useMonitoringHistory(uid ? {
|
|
35
|
+
clusterId,
|
|
36
|
+
scope: "pod",
|
|
37
|
+
uid
|
|
38
|
+
} : void 0, samples);
|
|
39
|
+
return /* @__PURE__ */ require_jsx_runtime.jsx(require_monitoring_details_chart.MonitoringDetailsChart, {
|
|
40
|
+
metric,
|
|
41
|
+
samples: history.samples,
|
|
42
|
+
status,
|
|
43
|
+
scope: "pod",
|
|
44
|
+
range: history.range,
|
|
45
|
+
onRangeChange: history.setRange,
|
|
46
|
+
historyStatus: history.status
|
|
47
|
+
});
|
|
48
|
+
}
|
|
29
49
|
function selectedPod() {
|
|
30
50
|
const match = new URLSearchParams(window.location.search).get("kube-details")?.match(/^\/api\/v1\/namespaces\/([a-z0-9][a-z0-9.-]*)\/pods\/([a-z0-9][a-z0-9.-]*)$/);
|
|
31
51
|
if (match) return {
|
|
@@ -41,6 +61,7 @@ function visible(element) {
|
|
|
41
61
|
return true;
|
|
42
62
|
}
|
|
43
63
|
function startPodMonitoring() {
|
|
64
|
+
const release = require_monitoring_collector.retainMonitoringCollector();
|
|
44
65
|
const preferences = require_monitoring_preferences_store.MonitoringPreferencesStore.getInstanceOrCreate();
|
|
45
66
|
let dispose;
|
|
46
67
|
const stop = require__global_external_mobx.reaction(() => preferences.enabled, (enabled) => {
|
|
@@ -50,6 +71,7 @@ function startPodMonitoring() {
|
|
|
50
71
|
return () => {
|
|
51
72
|
stop();
|
|
52
73
|
dispose?.();
|
|
74
|
+
release();
|
|
53
75
|
};
|
|
54
76
|
}
|
|
55
77
|
function mountPodMonitoring() {
|
|
@@ -59,8 +81,10 @@ function mountPodMonitoring() {
|
|
|
59
81
|
nativeSuppression.textContent = `
|
|
60
82
|
.KubeObjectDetails:has(:is(${controllers})) .ResourceMetrics,
|
|
61
83
|
.KubeObjectDetails:has(:is(${controllers})) [data-time-range]:has(+ .ResourceMetrics),
|
|
62
|
-
.KubeObjectDetails:has(.PodDetails) [data-time-range]:has(+ .ResourceMetrics
|
|
63
|
-
.KubeObjectDetails
|
|
84
|
+
.KubeObjectDetails:has(.PodDetails) [data-time-range]:has(+ .ResourceMetrics),
|
|
85
|
+
.KubeObjectDetails:has(.PodDetails) .ResourceMetrics > .graph,
|
|
86
|
+
.KubeObjectDetails:has(.PodDetails) .ResourceMetrics > .loader,
|
|
87
|
+
.KubeObjectDetails .PodDetails .ResourceMetrics {
|
|
64
88
|
display: none !important;
|
|
65
89
|
}
|
|
66
90
|
`;
|
|
@@ -200,11 +224,12 @@ function mountPodMonitoring() {
|
|
|
200
224
|
}
|
|
201
225
|
const render = () => {
|
|
202
226
|
if (host && (renderedSamples !== samples || renderedStatus !== status || renderedMetric !== metric)) {
|
|
203
|
-
require__global_external_react_dom.default.render(/* @__PURE__ */ require_jsx_runtime.jsx(
|
|
227
|
+
require__global_external_react_dom.default.render(/* @__PURE__ */ require_jsx_runtime.jsx(PodMonitoringChart, {
|
|
228
|
+
clusterId: cluster,
|
|
229
|
+
uid: resourceUid,
|
|
204
230
|
metric,
|
|
205
231
|
samples,
|
|
206
|
-
status
|
|
207
|
-
scope: "pod"
|
|
232
|
+
status
|
|
208
233
|
}), host);
|
|
209
234
|
renderedSamples = samples;
|
|
210
235
|
renderedStatus = status;
|
|
@@ -218,7 +243,9 @@ function mountPodMonitoring() {
|
|
|
218
243
|
nextRead = Date.now() + INTERVAL;
|
|
219
244
|
const isCurrent = () => !stopped && current === generation && session === key && drawer.isConnected && visible(drawer) && document.visibilityState !== "hidden" && require_extensions.Renderer.Catalog.activeCluster.get()?.metadata.uid === cluster && JSON.stringify(selectedPod()) === JSON.stringify(identity);
|
|
220
245
|
try {
|
|
221
|
-
const
|
|
246
|
+
const collected = await require_monitoring_collector.getMonitoringSnapshot();
|
|
247
|
+
if (!isCurrent()) return;
|
|
248
|
+
const [usage, pod] = await Promise.allSettled([collected.podMetrics !== void 0 ? Promise.resolve(collected.podMetrics) : Promise.resolve().then(() => require_extensions.Renderer.K8sApi.podsMetricsApi.list({ namespace: identity.namespace }, { fieldSelector: `metadata.name=${identity.name}` })), collected.pods !== void 0 ? Promise.resolve(collected.pods.find((item) => item.metadata.name === identity.name && item.metadata.namespace === identity.namespace)) : Promise.resolve().then(() => require_extensions.Renderer.K8sApi.podsApi.get(identity))]);
|
|
222
249
|
if (!isCurrent()) return;
|
|
223
250
|
const currentPod = pod.status === "fulfilled" && pod.value?.metadata.name === identity.name && pod.value.metadata.namespace === identity.namespace ? pod.value : void 0;
|
|
224
251
|
if (currentPod) {
|
|
@@ -243,9 +270,9 @@ function mountPodMonitoring() {
|
|
|
243
270
|
try {
|
|
244
271
|
const spec = currentPod;
|
|
245
272
|
sample.resources = Object.fromEntries(["cpu", "memory"].map((resource) => {
|
|
246
|
-
const limits =
|
|
273
|
+
const limits = require_monitoring_math.effectivePodResource(spec, resource, "limits");
|
|
247
274
|
return [resource, {
|
|
248
|
-
requests:
|
|
275
|
+
requests: require_monitoring_math.effectivePodResource(spec, resource, "requests"),
|
|
249
276
|
limits: Number.isFinite(limits) ? limits : void 0,
|
|
250
277
|
unbounded: limits === Infinity
|
|
251
278
|
}];
|