@devtron-labs/devtron-fe-common-lib 0.0.50-beta-1 → 0.0.50-beta-2
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/dist/CodeEditor-d59fc867.js +103675 -0
- package/dist/Common/Api.d.ts +5 -5
- package/dist/Common/Api.js +167 -0
- package/dist/Common/AppStatus/AppStatus.d.ts +3 -3
- package/dist/Common/AppStatus/AppStatus.js +37 -0
- package/dist/Common/AppStatus/constants.d.ts +51 -51
- package/dist/Common/AppStatus/constants.js +37 -0
- package/dist/Common/AppStatus/index.d.ts +1 -1
- package/dist/Common/AppStatus/index.js +4 -0
- package/dist/Common/AppStatus/types.d.ts +12 -12
- package/dist/Common/AppStatus/types.js +1 -0
- package/dist/Common/AppStatus/utils.d.ts +1 -1
- package/dist/Common/AppStatus/utils.js +8 -0
- package/dist/Common/BreadCrumb/BreadCrumb.d.ts +5 -5
- package/dist/Common/BreadCrumb/BreadCrumb.js +71 -0
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +17 -17
- package/dist/Common/BreadCrumb/BreadcrumbStore.js +22 -0
- package/dist/Common/BreadCrumb/Types.d.ts +28 -28
- package/dist/Common/BreadCrumb/Types.js +1 -0
- package/dist/Common/CIPipeline.Types.d.ts +265 -265
- package/dist/Common/CIPipeline.Types.js +10 -0
- package/dist/Common/Checkbox.d.ts +5 -5
- package/dist/Common/Checkbox.js +28 -0
- package/dist/Common/ClipboardButton/ClipboardButton.d.ts +10 -10
- package/dist/Common/ClipboardButton/ClipboardButton.js +40 -0
- package/dist/Common/ClipboardButton/__tests__/ClipboardButton.test.d.ts +1 -0
- package/dist/Common/ClipboardButton/__tests__/ClipboardButton.test.js +27 -0
- package/dist/Common/ClipboardButton/types.d.ts +8 -8
- package/dist/Common/ClipboardButton/types.js +1 -0
- package/dist/Common/CodeEditor/CodeEditor.d.ts +47 -0
- package/dist/Common/CodeEditor/CodeEditor.js +14 -0
- package/dist/Common/Common.service.d.ts +19 -20
- package/dist/Common/Common.service.js +187 -0
- package/dist/Common/Constants.d.ts +71 -66
- package/dist/Common/Constants.js +231 -0
- package/dist/Common/CustomTagSelector/PropagateTagInfo.d.ts +4 -4
- package/dist/Common/CustomTagSelector/PropagateTagInfo.js +43 -0
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +3 -3
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +58 -0
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +2 -3
- package/dist/Common/CustomTagSelector/TagDetails.js +65 -0
- package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +2 -3
- package/dist/Common/CustomTagSelector/TagLabelSelect.js +50 -0
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +2 -3
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +121 -0
- package/dist/Common/CustomTagSelector/TagSelector.utils.d.ts +12 -12
- package/dist/Common/CustomTagSelector/TagSelector.utils.js +61 -0
- package/dist/Common/CustomTagSelector/Types.d.ts +68 -68
- package/dist/Common/CustomTagSelector/Types.js +1 -0
- package/dist/Common/CustomTagSelector/ValidationRules.d.ts +10 -10
- package/dist/Common/CustomTagSelector/ValidationRules.js +35 -0
- package/dist/Common/CustomTagSelector/index.d.ts +6 -6
- package/dist/Common/CustomTagSelector/index.js +12 -0
- package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +15 -15
- package/dist/Common/DebouncedSearch/DebouncedSearch.js +7 -0
- package/dist/Common/DebouncedSearch/Types.d.ts +14 -14
- package/dist/Common/DebouncedSearch/Types.js +1 -0
- package/dist/Common/DebouncedSearch/Utils.d.ts +1 -1
- package/dist/Common/DebouncedSearch/Utils.js +19 -0
- package/dist/Common/DebouncedSearch/__tests__/DebouncedSearch.test.d.ts +1 -0
- package/dist/Common/DebouncedSearch/__tests__/DebouncedSearch.test.js +33 -0
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +4 -4
- package/dist/Common/DeleteComponentModal/DeleteComponent.js +63 -0
- package/dist/Common/DeleteComponentModal/types.d.ts +15 -15
- package/dist/Common/DeleteComponentModal/types.js +1 -0
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +9 -9
- package/dist/Common/Dialogs/ConfirmationDialog.js +24 -0
- package/dist/Common/Dialogs/DeleteDialog.d.ts +5 -5
- package/dist/Common/Dialogs/DeleteDialog.js +49 -0
- package/dist/Common/Dialogs/DialogForm.d.ts +14 -14
- package/dist/Common/Dialogs/DialogForm.js +63 -0
- package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +3 -3
- package/dist/Common/Dialogs/ForceDeleteDialog.js +23 -0
- package/dist/Common/Dialogs/Types.d.ts +44 -45
- package/dist/Common/Dialogs/Types.js +1 -0
- package/dist/Common/Dialogs/index.d.ts +4 -4
- package/dist/Common/Dialogs/index.js +11 -0
- package/dist/Common/Drawer/Drawer.d.ts +14 -16
- package/dist/Common/Drawer/Drawer.js +22 -0
- package/dist/Common/EmptyState/EmptyState.d.ts +24 -25
- package/dist/Common/EmptyState/EmptyState.js +32 -0
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +4 -5
- package/dist/Common/EmptyState/GenericEmptyState.js +52 -0
- package/dist/Common/Error.d.ts +17 -17
- package/dist/Common/Error.js +49 -0
- package/dist/Common/ErrorScreenNotFound.d.ts +3 -3
- package/dist/Common/ErrorScreenNotFound.js +23 -0
- package/dist/Common/Grid/Grid.d.ts +3 -3
- package/dist/Common/Grid/Grid.js +22 -0
- package/dist/Common/Grid/types.d.ts +10 -10
- package/dist/Common/Grid/types.js +1 -0
- package/dist/Common/Helper.d.ts +57 -60
- package/dist/Common/Helper.js +33 -0
- package/dist/Common/Hooks/UseClickOutside/UseClickOutside.d.ts +1 -1
- package/dist/Common/Hooks/UseClickOutside/UseClickOutside.js +14 -0
- package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +6 -6
- package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +16 -0
- package/dist/Common/Hooks/UseSuperAdmin/types.d.ts +3 -3
- package/dist/Common/Hooks/UseSuperAdmin/types.js +1 -0
- package/dist/Common/Hooks/index.d.ts +2 -2
- package/dist/Common/Hooks/index.js +6 -0
- package/dist/Common/ImageTags.Types.d.ts +40 -40
- package/dist/Common/ImageTags.Types.js +1 -0
- package/dist/Common/ImageTags.d.ts +3 -4
- package/dist/Common/ImageTags.js +380 -0
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +4 -5
- package/dist/Common/InfoColorBar/InfoColourbar.js +65 -0
- package/dist/Common/Modals/Modal.d.ts +3 -3
- package/dist/Common/Modals/Modal.js +48 -0
- package/dist/Common/Modals/OpaqueModal.d.ts +12 -12
- package/dist/Common/Modals/OpaqueModal.js +32 -0
- package/dist/Common/Modals/VisibleModal.d.ts +15 -15
- package/dist/Common/Modals/VisibleModal.js +31 -0
- package/dist/Common/Modals/VisibleModal2.d.ts +12 -12
- package/dist/Common/Modals/VisibleModal2.js +31 -0
- package/dist/Common/MultiSelectCustomization.d.ts +37 -37
- package/dist/Common/MultiSelectCustomization.js +4250 -0
- package/dist/Common/Policy.Types.d.ts +56 -56
- package/dist/Common/Policy.Types.js +6 -0
- package/dist/Common/PopupMenu.d.ts +8 -8
- package/dist/Common/PopupMenu.js +148 -0
- package/dist/Common/Progressing.d.ts +4 -4
- package/dist/Common/Progressing.js +52 -0
- package/dist/Common/RadioGroup/RadioGroup.d.ts +16 -17
- package/dist/Common/RadioGroup/RadioGroup.js +76 -0
- package/dist/Common/RadioGroup.d.ts +8 -8
- package/dist/Common/RadioGroup.js +47 -0
- package/dist/Common/Reload.d.ts +3 -3
- package/dist/Common/Reload.js +16 -0
- package/dist/Common/ResizableTextarea.d.ts +3 -3
- package/dist/Common/ResizableTextarea.js +60 -0
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +3 -4
- package/dist/Common/Security/ScanVulnerabilitiesTable.js +49 -0
- package/dist/Common/Select/Select.d.ts +4 -0
- package/dist/Common/Select/Select.js +131 -0
- package/dist/Common/Select/types.d.ts +29 -0
- package/dist/Common/Select/types.js +1 -0
- package/dist/Common/ServerError.d.ts +15 -15
- package/dist/Common/ServerError.js +26 -0
- package/dist/Common/TippyCustomized.d.ts +3 -4
- package/dist/Common/TippyCustomized.js +10 -0
- package/dist/Common/ToastBody.d.ts +23 -23
- package/dist/Common/ToastBody.js +41 -0
- package/dist/Common/Toggle/Toggle.d.ts +12 -14
- package/dist/Common/Toggle/Toggle.js +40 -0
- package/dist/Common/Types.d.ts +566 -677
- package/dist/Common/Types.js +20 -0
- package/dist/Common/UseWindowSize.d.ts +4 -0
- package/dist/Common/UseWindowSize.js +20 -0
- package/dist/Common/index.d.ts +44 -47
- package/dist/Common/index.js +185 -0
- package/dist/DebouncedSearch-065f3ac2.js +58 -0
- package/dist/Helper-4dc38bc2.js +8882 -0
- package/dist/TippyCustomized-549ebfaf.js +124 -0
- package/dist/abap-9f67f57a.js +1314 -0
- package/dist/apex-ff62e532.js +315 -0
- package/dist/assets/CodeEditor.css +1 -0
- package/dist/assets/Drawer.css +1 -0
- package/dist/assets/InfoColourbar.css +1 -0
- package/dist/assets/RadioGroup.css +1 -0
- package/dist/assets/ScanVulnerabilitiesTable.css +1 -0
- package/dist/assets/Select.css +1 -0
- package/dist/assets/TippyCustomized.css +1 -0
- package/dist/assets/Toggle.css +1 -0
- package/dist/assets/editor.worker-d26000ef.js +9 -0
- package/dist/assets/emptyState.css +1 -0
- package/dist/assets/json.worker-f23a4654.js +40 -0
- package/dist/assets/yaml.worker-64fecd27.js +463 -0
- package/dist/azcli-31e64a7f.js +74 -0
- package/dist/bat-0ffe897e.js +95 -0
- package/dist/bicep-3414a2b1.js +108 -0
- package/dist/cameligo-df1f3f25.js +168 -0
- package/dist/clojure-65b0f010.js +754 -0
- package/dist/coffee-437f0fba.js +228 -0
- package/dist/cpp-66843dd5.js +390 -0
- package/dist/csharp-621d9a49.js +320 -0
- package/dist/csp-de0d5244.js +57 -0
- package/dist/css-7cd5ed4c.js +186 -0
- package/dist/cssMode-518d7b58.js +1446 -0
- package/dist/cypher-70ad96fe.js +262 -0
- package/dist/dart-33ae3739.js +270 -0
- package/dist/dockerfile-f2274a50.js +132 -0
- package/dist/ecl-3b8294a3.js +454 -0
- package/dist/elixir-b9dcc73a.js +489 -0
- package/dist/extends-70f3d2a3.js +13 -0
- package/dist/flow9-bdde8316.js +141 -0
- package/dist/freemarker2-ec19a832.js +643 -0
- package/dist/fsharp-eac2e449.js +210 -0
- package/dist/go-d12ed8d4.js +208 -0
- package/dist/graphql-c7356b69.js +141 -0
- package/dist/handlebars-06e29571.js +391 -0
- package/dist/hcl-e883a0d4.js +177 -0
- package/dist/html-10fc18eb.js +281 -0
- package/dist/htmlMode-5f032666.js +1456 -0
- package/dist/ic-add-4787ded5.js +5 -0
- package/dist/ic-copy-118b83dc.js +5 -0
- package/dist/ic-cross-0e71861d.js +6 -0
- package/dist/ic-error-exclamation-5f9af461.js +5 -0
- package/dist/ic-info-filled-31a15add.js +6 -0
- package/dist/ic-info-outlined-8fa45e87.js +5 -0
- package/dist/index-ad700600.js +17444 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +184 -28496
- package/dist/ini-425ab711.js +68 -0
- package/dist/inject-tag-824bf92c.js +5 -0
- package/dist/java-2bc0fd68.js +221 -0
- package/dist/javascript-2e90f5e7.js +75 -0
- package/dist/jsonMode-36a94a3e.js +1867 -0
- package/dist/julia-1c932615.js +496 -0
- package/dist/kotlin-1ab839c8.js +245 -0
- package/dist/less-6fe856f5.js +168 -0
- package/dist/lexon-4955ac52.js +151 -0
- package/dist/liquid-57b08f3e.js +238 -0
- package/dist/lua-3cca0047.js +157 -0
- package/dist/m3-132e9cb6.js +210 -0
- package/dist/markdown-ea59a0c1.js +202 -0
- package/dist/mips-19811f4b.js +194 -0
- package/dist/msdax-69954a10.js +377 -0
- package/dist/mysql-82088e5d.js +876 -0
- package/dist/objective-c-1976eccc.js +188 -0
- package/dist/pascal-8ef177cb.js +245 -0
- package/dist/pascaligo-bc517b9e.js +158 -0
- package/dist/perl-8b93582c.js +599 -0
- package/dist/pgsql-00c11a6d.js +847 -0
- package/dist/php-4c8c276f.js +471 -0
- package/dist/pla-e9b4ffb1.js +131 -0
- package/dist/postiats-2071af8c.js +544 -0
- package/dist/powerquery-8e388ceb.js +890 -0
- package/dist/powershell-e35db398.js +233 -0
- package/dist/protobuf-a24b9176.js +422 -0
- package/dist/pug-2c94d9b8.js +393 -0
- package/dist/python-761b1908.js +259 -0
- package/dist/qsharp-d730d7fe.js +282 -0
- package/dist/r-be193556.js +245 -0
- package/dist/razor-9cd536c2.js +512 -0
- package/dist/react-toastify.esm-9a31d2e1.js +792 -0
- package/dist/react.esm-a0625832.js +13149 -0
- package/dist/redis-9690c6ac.js +298 -0
- package/dist/redshift-6bdcdeaa.js +806 -0
- package/dist/restructuredtext-a08c1d20.js +162 -0
- package/dist/ruby-2247692b.js +444 -0
- package/dist/rust-1dffb4d5.js +337 -0
- package/dist/sb-136598e9.js +110 -0
- package/dist/scala-b1100fed.js +353 -0
- package/dist/scheme-038c8094.js +114 -0
- package/dist/scss-700d1b52.js +244 -0
- package/dist/shell-86c16e0f.js +224 -0
- package/dist/solidity-c05fdf3c.js +1351 -0
- package/dist/sophia-cd645d71.js +190 -0
- package/dist/sparql-01d9ec9c.js +193 -0
- package/dist/sql-4c33df41.js +818 -0
- package/dist/st-52cf1408.js +414 -0
- package/dist/swift-13c792ba.js +315 -0
- package/dist/systemverilog-0bd8b730.js +556 -0
- package/dist/tcl-463d7c75.js +232 -0
- package/dist/tippy-react.esm-3be2e905.js +2018 -0
- package/dist/tsMode-d9dd8508.js +811 -0
- package/dist/twig-0d98f5ec.js +323 -0
- package/dist/typescript-08c1d7b6.js +328 -0
- package/dist/vb-3a2b0a51.js +364 -0
- package/dist/wgsl-b2ddb3e4.js +420 -0
- package/dist/xml-69527c9c.js +95 -0
- package/dist/yaml-eb80879d.js +184 -0
- package/package.json +45 -26
- package/.eslintrc.js +0 -41
- package/.github/workflows/release-package.yml +0 -49
- package/.prettierrc.js +0 -7
- package/dist/Common/AddCDButton/AddCDButton.d.ts +0 -3
- package/dist/Common/AddCDButton/index.d.ts +0 -2
- package/dist/Common/AddCDButton/types.d.ts +0 -26
- package/dist/Common/AddCDButton/utils.d.ts +0 -2
- package/dist/Common/ChartVersionAndTypeSelector.d.ts +0 -4
- package/dist/Common/CustomInput/CustomInput.d.ts +0 -3
- package/dist/Common/CustomInput/Types.d.ts +0 -29
- package/dist/Common/CustomInput/index.d.ts +0 -2
- package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +0 -3
- package/dist/Common/DevtronProgressing/index.d.ts +0 -1
- package/dist/Common/DevtronProgressing/types.d.ts +0 -4
- package/dist/Common/RJSF/Form.d.ts +0 -4
- package/dist/Common/RJSF/common/FieldRow.d.ts +0 -6
- package/dist/Common/RJSF/common/types.d.ts +0 -8
- package/dist/Common/RJSF/config.d.ts +0 -4
- package/dist/Common/RJSF/constants.d.ts +0 -7
- package/dist/Common/RJSF/index.d.ts +0 -3
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/BaseInput.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +0 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +0 -3
- package/dist/Common/RJSF/templates/Description.d.ts +0 -3
- package/dist/Common/RJSF/templates/Field.d.ts +0 -3
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/TitleField.d.ts +0 -3
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +0 -3
- package/dist/Common/RJSF/templates/index.d.ts +0 -10
- package/dist/Common/RJSF/types.d.ts +0 -3
- package/dist/Common/RJSF/utils.d.ts +0 -26
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +0 -3
- package/dist/Common/RJSF/widgets/Select.d.ts +0 -3
- package/dist/Common/RJSF/widgets/index.d.ts +0 -2
- package/rollup.config.js +0 -31
- package/src/Assets/Icon/ic-add.svg +0 -3
- package/src/Assets/Icon/ic-appstatus-cancelled.svg +0 -6
- package/src/Assets/Icon/ic-arrow-counter-clockwise.svg +0 -5
- package/src/Assets/Icon/ic-check.svg +0 -5
- package/src/Assets/Icon/ic-chevron-down.svg +0 -5
- package/src/Assets/Icon/ic-copy.svg +0 -3
- package/src/Assets/Icon/ic-cross.svg +0 -3
- package/src/Assets/Icon/ic-enter.svg +0 -3
- package/src/Assets/Icon/ic-error-cross.svg +0 -8
- package/src/Assets/Icon/ic-error-exclamation.svg +0 -6
- package/src/Assets/Icon/ic-error-medium.svg +0 -6
- package/src/Assets/Icon/ic-help-outline.svg +0 -3
- package/src/Assets/Icon/ic-help.svg +0 -3
- package/src/Assets/Icon/ic-info-filled.svg +0 -7
- package/src/Assets/Icon/ic-info-outlined.svg +0 -13
- package/src/Assets/Icon/ic-minus.svg +0 -3
- package/src/Assets/Icon/ic-pencil.svg +0 -3
- package/src/Assets/Icon/ic-progressing.svg +0 -6
- package/src/Assets/Icon/ic-rotate-devtron.svg +0 -103
- package/src/Assets/Icon/ic-warning.svg +0 -7
- package/src/Assets/Icon/inject-tag.svg +0 -5
- package/src/Assets/Img/app-not-deployed.png +0 -0
- package/src/Assets/Img/delete-medium.svg +0 -15
- package/src/Assets/Img/ic-empty-error@2x.png +0 -0
- package/src/Assets/Img/ic-loading-failure.png +0 -0
- package/src/Assets/Img/ic-not-authorized.svg +0 -62
- package/src/Common/AddCDButton/AddCDButton.tsx +0 -68
- package/src/Common/AddCDButton/index.ts +0 -2
- package/src/Common/AddCDButton/types.ts +0 -38
- package/src/Common/AddCDButton/utils.tsx +0 -35
- package/src/Common/Api.ts +0 -228
- package/src/Common/AppStatus/AppStatus.tsx +0 -64
- package/src/Common/AppStatus/constants.ts +0 -53
- package/src/Common/AppStatus/index.ts +0 -1
- package/src/Common/AppStatus/types.ts +0 -12
- package/src/Common/AppStatus/utils.ts +0 -14
- package/src/Common/BreadCrumb/BreadCrumb.tsx +0 -105
- package/src/Common/BreadCrumb/BreadcrumbStore.tsx +0 -25
- package/src/Common/BreadCrumb/Types.ts +0 -30
- package/src/Common/CIPipeline.Types.ts +0 -277
- package/src/Common/ChartVersionAndTypeSelector.tsx +0 -78
- package/src/Common/Checkbox.tsx +0 -36
- package/src/Common/ClipboardButton/ClipboardButton.tsx +0 -61
- package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +0 -43
- package/src/Common/ClipboardButton/types.ts +0 -7
- package/src/Common/Common.service.ts +0 -315
- package/src/Common/Constants.ts +0 -243
- package/src/Common/CustomInput/CustomInput.tsx +0 -131
- package/src/Common/CustomInput/Types.ts +0 -30
- package/src/Common/CustomInput/index.ts +0 -2
- package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +0 -46
- package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +0 -84
- package/src/Common/CustomTagSelector/TagDetails.tsx +0 -76
- package/src/Common/CustomTagSelector/TagLabelSelect.tsx +0 -61
- package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +0 -198
- package/src/Common/CustomTagSelector/TagSelector.utils.ts +0 -71
- package/src/Common/CustomTagSelector/Types.ts +0 -72
- package/src/Common/CustomTagSelector/ValidationRules.ts +0 -58
- package/src/Common/CustomTagSelector/index.ts +0 -6
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +0 -76
- package/src/Common/DebouncedSearch/Types.ts +0 -13
- package/src/Common/DebouncedSearch/Utils.ts +0 -19
- package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +0 -61
- package/src/Common/DeleteComponentModal/DeleteComponent.tsx +0 -95
- package/src/Common/DeleteComponentModal/types.ts +0 -15
- package/src/Common/DevtronProgressing/DevtronProgressing.tsx +0 -11
- package/src/Common/DevtronProgressing/index.ts +0 -1
- package/src/Common/DevtronProgressing/types.ts +0 -4
- package/src/Common/Dialogs/ConfirmationDialog.tsx +0 -34
- package/src/Common/Dialogs/DeleteDialog.tsx +0 -69
- package/src/Common/Dialogs/DialogForm.tsx +0 -86
- package/src/Common/Dialogs/ForceDeleteDialog.tsx +0 -19
- package/src/Common/Dialogs/Types.ts +0 -47
- package/src/Common/Dialogs/index.ts +0 -4
- package/src/Common/Drawer/Drawer.scss +0 -40
- package/src/Common/Drawer/Drawer.tsx +0 -49
- package/src/Common/EmptyState/EmptyState.tsx +0 -42
- package/src/Common/EmptyState/GenericEmptyState.tsx +0 -49
- package/src/Common/EmptyState/emptyState.scss +0 -74
- package/src/Common/Error.tsx +0 -61
- package/src/Common/ErrorScreenNotFound.tsx +0 -31
- package/src/Common/Grid/Grid.tsx +0 -39
- package/src/Common/Grid/types.ts +0 -9
- package/src/Common/Helper.tsx +0 -561
- package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +0 -15
- package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +0 -24
- package/src/Common/Hooks/UseSuperAdmin/types.ts +0 -3
- package/src/Common/Hooks/index.ts +0 -2
- package/src/Common/ImageTags.Types.ts +0 -44
- package/src/Common/ImageTags.tsx +0 -586
- package/src/Common/InfoColorBar/InfoColourbar.tsx +0 -80
- package/src/Common/InfoColorBar/infoColourBar.scss +0 -28
- package/src/Common/Modals/Modal.tsx +0 -68
- package/src/Common/Modals/OpaqueModal.tsx +0 -36
- package/src/Common/Modals/VisibleModal.tsx +0 -55
- package/src/Common/Modals/VisibleModal2.tsx +0 -35
- package/src/Common/MultiSelectCustomization.tsx +0 -148
- package/src/Common/Policy.Types.ts +0 -63
- package/src/Common/PopupMenu.tsx +0 -199
- package/src/Common/Progressing.tsx +0 -53
- package/src/Common/RJSF/Form.tsx +0 -29
- package/src/Common/RJSF/common/FieldRow.tsx +0 -35
- package/src/Common/RJSF/common/types.ts +0 -9
- package/src/Common/RJSF/config.ts +0 -37
- package/src/Common/RJSF/constants.ts +0 -10
- package/src/Common/RJSF/index.ts +0 -3
- package/src/Common/RJSF/rjsfForm.scss +0 -18
- package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +0 -31
- package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +0 -78
- package/src/Common/RJSF/templates/BaseInput.tsx +0 -16
- package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +0 -18
- package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +0 -10
- package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +0 -18
- package/src/Common/RJSF/templates/ButtonTemplates/index.ts +0 -3
- package/src/Common/RJSF/templates/Description.tsx +0 -12
- package/src/Common/RJSF/templates/Field.tsx +0 -30
- package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +0 -25
- package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +0 -105
- package/src/Common/RJSF/templates/TitleField.tsx +0 -9
- package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +0 -51
- package/src/Common/RJSF/templates/index.ts +0 -10
- package/src/Common/RJSF/types.ts +0 -4
- package/src/Common/RJSF/utils.ts +0 -123
- package/src/Common/RJSF/widgets/Checkbox.tsx +0 -44
- package/src/Common/RJSF/widgets/Select.tsx +0 -77
- package/src/Common/RJSF/widgets/index.ts +0 -2
- package/src/Common/RadioGroup/RadioGroup.tsx +0 -105
- package/src/Common/RadioGroup/radioGroup.scss +0 -46
- package/src/Common/RadioGroup.tsx +0 -53
- package/src/Common/Reload.tsx +0 -23
- package/src/Common/ResizableTextarea.tsx +0 -73
- package/src/Common/Security/ScanVulnerabilitiesTable.tsx +0 -55
- package/src/Common/Security/scanVulnerabilities.css +0 -69
- package/src/Common/ServerError.ts +0 -31
- package/src/Common/TippyCustomized.tsx +0 -172
- package/src/Common/ToastBody.tsx +0 -62
- package/src/Common/Toggle/Toggle.scss +0 -78
- package/src/Common/Toggle/Toggle.tsx +0 -50
- package/src/Common/Types.ts +0 -750
- package/src/Common/index.ts +0 -47
- package/src/custom.d.ts +0 -13
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -40
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export default interface ClipboardProps {
|
|
3
|
-
content: string;
|
|
4
|
-
copiedTippyText: string;
|
|
5
|
-
duration: number;
|
|
6
|
-
trigger: boolean;
|
|
7
|
-
setTrigger: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default interface ClipboardProps {
|
|
3
|
+
content: string;
|
|
4
|
+
copiedTippyText: string;
|
|
5
|
+
duration: number;
|
|
6
|
+
trigger: boolean;
|
|
7
|
+
setTrigger: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface InformationBarProps {
|
|
3
|
+
text: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
interface CodeEditorInterface {
|
|
8
|
+
value?: string;
|
|
9
|
+
lineDecorationsWidth?: number;
|
|
10
|
+
responseType?: string;
|
|
11
|
+
onChange?: (string: any) => void;
|
|
12
|
+
onBlur?: () => void;
|
|
13
|
+
onFocus?: () => void;
|
|
14
|
+
children?: any;
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
mode?: 'json' | 'yaml' | 'shell' | 'dockerfile';
|
|
17
|
+
tabSize?: number;
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
noParsing?: boolean;
|
|
20
|
+
minHeight?: number;
|
|
21
|
+
maxHeight?: number;
|
|
22
|
+
inline?: boolean;
|
|
23
|
+
height?: number | string;
|
|
24
|
+
shebang?: string | JSX.Element;
|
|
25
|
+
diffView?: boolean;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
customLoader?: JSX.Element;
|
|
28
|
+
theme?: string;
|
|
29
|
+
original?: string;
|
|
30
|
+
focus?: boolean;
|
|
31
|
+
validatorSchema?: any;
|
|
32
|
+
isKubernetes?: boolean;
|
|
33
|
+
cleanData?: boolean;
|
|
34
|
+
chartVersion?: any;
|
|
35
|
+
}
|
|
36
|
+
interface CodeEditorComposition {
|
|
37
|
+
Header?: React.FC<any>;
|
|
38
|
+
LanguageChanger?: React.FC<any>;
|
|
39
|
+
ThemeChanger?: React.FC<any>;
|
|
40
|
+
ValidationError?: React.FC<any>;
|
|
41
|
+
Clipboard?: React.FC<any>;
|
|
42
|
+
Warning?: React.FC<InformationBarProps>;
|
|
43
|
+
ErrorBar?: React.FC<InformationBarProps>;
|
|
44
|
+
Information?: React.FC<InformationBarProps>;
|
|
45
|
+
}
|
|
46
|
+
declare const CodeEditor: React.FC<CodeEditorInterface> & CodeEditorComposition;
|
|
47
|
+
export default CodeEditor;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { C as u } from "../../CodeEditor-d59fc867.js";
|
|
4
|
+
import "../../ic-copy-118b83dc.js";
|
|
5
|
+
import "../../ic-info-filled-31a15add.js";
|
|
6
|
+
import "../../ic-error-exclamation-5f9af461.js";
|
|
7
|
+
import "../../Helper-4dc38bc2.js";
|
|
8
|
+
import "../Progressing.js";
|
|
9
|
+
import "../UseWindowSize.js";
|
|
10
|
+
import "../Select/Select.js";
|
|
11
|
+
import "../RadioGroup/RadioGroup.js";
|
|
12
|
+
export {
|
|
13
|
+
u as default
|
|
14
|
+
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType } from './Types';
|
|
2
|
-
export declare const getTeamListMin: () => Promise<TeamList>;
|
|
3
|
-
interface UserRole extends ResponseType {
|
|
4
|
-
result?: {
|
|
5
|
-
roles: string[];
|
|
6
|
-
superAdmin: boolean;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export declare const SourceTypeMap: {
|
|
10
|
-
BranchFixed: string;
|
|
11
|
-
WEBHOOK: string;
|
|
12
|
-
BranchRegex: string;
|
|
13
|
-
};
|
|
14
|
-
export declare function getUserRole(appName?: string): Promise<UserRole>;
|
|
15
|
-
export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType>;
|
|
16
|
-
export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
|
|
17
|
-
export declare function extractImage(image: string): string;
|
|
18
|
-
export declare function createGitCommitUrl(url: string, revision: string): string;
|
|
19
|
-
export
|
|
20
|
-
export {};
|
|
1
|
+
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType } from './Types';
|
|
2
|
+
export declare const getTeamListMin: () => Promise<TeamList>;
|
|
3
|
+
interface UserRole extends ResponseType {
|
|
4
|
+
result?: {
|
|
5
|
+
roles: string[];
|
|
6
|
+
superAdmin: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const SourceTypeMap: {
|
|
10
|
+
BranchFixed: string;
|
|
11
|
+
WEBHOOK: string;
|
|
12
|
+
BranchRegex: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function getUserRole(appName?: string): Promise<UserRole>;
|
|
15
|
+
export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType>;
|
|
16
|
+
export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
|
|
17
|
+
export declare function extractImage(image: string): string;
|
|
18
|
+
export declare function createGitCommitUrl(url: string, revision: string): string;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { a as y, w as C } from "../Helper-4dc38bc2.js";
|
|
2
|
+
import { get as g, post as O } from "./Api.js";
|
|
3
|
+
import { ROUTES as p } from "./Constants.js";
|
|
4
|
+
import { CDMaterialServiceEnum as S, DeploymentNodeType as E, CDMaterialFilterQuery as _, FilterStates as u, CDModalTab as b } from "./Types.js";
|
|
5
|
+
const M = () => {
|
|
6
|
+
const e = `${p.PROJECT_LIST_MIN}`;
|
|
7
|
+
return g(e).then((r) => {
|
|
8
|
+
let n = [];
|
|
9
|
+
return r && r.result && Array.isArray(r.result) && (n = r.result), n = n.sort((o, i) => y("name", o, i)), {
|
|
10
|
+
code: r.code,
|
|
11
|
+
status: r.status,
|
|
12
|
+
result: n
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
}, L = {
|
|
16
|
+
PRECD: "PRE",
|
|
17
|
+
CD: "DEPLOY",
|
|
18
|
+
POSTCD: "POST",
|
|
19
|
+
APPROVAL: "APPROVAL"
|
|
20
|
+
}, v = {
|
|
21
|
+
BranchFixed: "SOURCE_TYPE_BRANCH_FIXED",
|
|
22
|
+
WEBHOOK: "WEBHOOK",
|
|
23
|
+
BranchRegex: "SOURCE_TYPE_BRANCH_REGEX"
|
|
24
|
+
};
|
|
25
|
+
function Y(e) {
|
|
26
|
+
return g(`${p.USER_CHECK_ROLE}${e ? `?appName=${e}` : ""}`);
|
|
27
|
+
}
|
|
28
|
+
function w(e, r, n) {
|
|
29
|
+
return O(`${p.IMAGE_TAGGING}/${r}/${n}`, e);
|
|
30
|
+
}
|
|
31
|
+
const T = (e, r) => {
|
|
32
|
+
const n = Object.keys(r).filter((i) => r[i] != null);
|
|
33
|
+
if (!n.length)
|
|
34
|
+
return e;
|
|
35
|
+
const o = n.map((i) => Array.isArray(r[i]) ? `${i}=${r[i].join(",")}` : `${i}=${r[i]}`).join("&");
|
|
36
|
+
return `${e}?${o}`;
|
|
37
|
+
}, I = (e, r, n, o) => {
|
|
38
|
+
if (!e || !e.length)
|
|
39
|
+
return [];
|
|
40
|
+
const i = r === 0, l = r;
|
|
41
|
+
let a = !1;
|
|
42
|
+
return e.map((t, D) => {
|
|
43
|
+
let f = "";
|
|
44
|
+
const c = t.filterState ?? u.ALLOWED;
|
|
45
|
+
n && o && t.id === n && (f = o);
|
|
46
|
+
const m = !a && i && c === u.ALLOWED ? !t.vulnerable : !1;
|
|
47
|
+
return m && (a = !0), {
|
|
48
|
+
index: l + D,
|
|
49
|
+
id: t.id,
|
|
50
|
+
deployedTime: t.deployed_time ? C(t.deployed_time).format("ddd, DD MMM YYYY, hh:mm A") : "Not Deployed",
|
|
51
|
+
deployedBy: t.deployedBy,
|
|
52
|
+
wfrId: t.wfrId,
|
|
53
|
+
tab: b.Changes,
|
|
54
|
+
image: U(t.image),
|
|
55
|
+
showChanges: !1,
|
|
56
|
+
vulnerabilities: [],
|
|
57
|
+
buildTime: t.build_time || "",
|
|
58
|
+
isSelected: m,
|
|
59
|
+
showSourceInfo: !1,
|
|
60
|
+
deployed: t.deployed || !1,
|
|
61
|
+
latest: t.latest || !1,
|
|
62
|
+
vulnerabilitiesLoading: !0,
|
|
63
|
+
scanned: t.scanned,
|
|
64
|
+
scanEnabled: t.scanEnabled,
|
|
65
|
+
vulnerable: t.vulnerable,
|
|
66
|
+
runningOnParentCd: t.runningOnParentCd,
|
|
67
|
+
artifactStatus: f,
|
|
68
|
+
userApprovalMetadata: t.userApprovalMetadata,
|
|
69
|
+
triggeredBy: t.triggeredBy,
|
|
70
|
+
isVirtualEnvironment: t.isVirtualEnvironment,
|
|
71
|
+
imageComment: t.imageComment,
|
|
72
|
+
imageReleaseTags: t.imageReleaseTags,
|
|
73
|
+
// It is going to be null but required in type so can't remove
|
|
74
|
+
lastExecution: t.lastExecution,
|
|
75
|
+
materialInfo: t.material_info ? t.material_info.map((s) => ({
|
|
76
|
+
modifiedTime: s.modifiedTime ? C(s.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : "",
|
|
77
|
+
commitLink: F(s.url, s.revision),
|
|
78
|
+
author: s.author || "",
|
|
79
|
+
message: s.message || "",
|
|
80
|
+
revision: s.revision || "",
|
|
81
|
+
tag: s.tag || "",
|
|
82
|
+
webhookData: s.webhookData || "",
|
|
83
|
+
url: s.url || "",
|
|
84
|
+
branch: (t.ciConfigureSourceType === v.WEBHOOK ? t.ciConfigureSourceValue : s.branch) || "",
|
|
85
|
+
type: t.ciConfigureSourceType || ""
|
|
86
|
+
})) : [],
|
|
87
|
+
filterState: c,
|
|
88
|
+
appliedFiltersTimestamp: t.appliedFiltersTimestamp ?? "",
|
|
89
|
+
appliedFilters: t.appliedFilters ?? [],
|
|
90
|
+
appliedFiltersState: t.appliedFiltersState ?? u.ALLOWED,
|
|
91
|
+
createdTime: t.createdTime ?? "",
|
|
92
|
+
dataSource: t.data_source ?? "",
|
|
93
|
+
registryType: t.registryType ?? "",
|
|
94
|
+
imagePath: t.image ?? "",
|
|
95
|
+
registryName: t.registryName ?? ""
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
}, A = (e, r) => e ? {
|
|
99
|
+
approvalUsers: r.approvalUsers,
|
|
100
|
+
userApprovalConfig: r.userApprovalConfig,
|
|
101
|
+
requestedUserId: r.requestedUserId
|
|
102
|
+
} : {
|
|
103
|
+
approvalUsers: [],
|
|
104
|
+
userApprovalConfig: null,
|
|
105
|
+
requestedUserId: 0
|
|
106
|
+
}, h = (e) => e ? {
|
|
107
|
+
appReleaseTagNames: e.appReleaseTagNames,
|
|
108
|
+
tagsEditable: e.tagsEditable,
|
|
109
|
+
hideImageTaggingHardDelete: e.hideImageTaggingHardDelete,
|
|
110
|
+
resourceFilters: e.resourceFilters ?? [],
|
|
111
|
+
totalCount: e.totalCount ?? 0,
|
|
112
|
+
canApproverDeploy: e.canApproverDeploy ?? !1
|
|
113
|
+
} : {
|
|
114
|
+
tagsEditable: !1,
|
|
115
|
+
appReleaseTagNames: [],
|
|
116
|
+
hideImageTaggingHardDelete: !1,
|
|
117
|
+
resourceFilters: [],
|
|
118
|
+
totalCount: 0,
|
|
119
|
+
canApproverDeploy: e.canApproverDeploy ?? !1
|
|
120
|
+
}, P = (e, r, n, o) => {
|
|
121
|
+
if (!e)
|
|
122
|
+
return {
|
|
123
|
+
materials: [],
|
|
124
|
+
...h(e),
|
|
125
|
+
...A(!1, e)
|
|
126
|
+
};
|
|
127
|
+
const i = I(
|
|
128
|
+
e.ci_artifacts,
|
|
129
|
+
n ?? 0,
|
|
130
|
+
e.latest_wf_artifact_id,
|
|
131
|
+
e.latest_wf_artifact_status
|
|
132
|
+
), l = A(
|
|
133
|
+
r === E.CD || r === E.APPROVAL,
|
|
134
|
+
e
|
|
135
|
+
), a = h(e);
|
|
136
|
+
return {
|
|
137
|
+
materials: o && o === _.RESOURCE ? i.filter((t) => t.filterState === u.ALLOWED) : i,
|
|
138
|
+
...l,
|
|
139
|
+
...a
|
|
140
|
+
};
|
|
141
|
+
}, $ = (e) => {
|
|
142
|
+
const { filter: r, ...n } = e;
|
|
143
|
+
return n;
|
|
144
|
+
}, H = (e, r, n, o, i = {}) => {
|
|
145
|
+
const l = $(i);
|
|
146
|
+
let a;
|
|
147
|
+
switch (e) {
|
|
148
|
+
case S.ROLLBACK:
|
|
149
|
+
a = T(`${p.CD_MATERIAL_GET}/${r}/material/rollback`, l);
|
|
150
|
+
break;
|
|
151
|
+
default:
|
|
152
|
+
a = T(`${p.CD_MATERIAL_GET}/${r}/material`, { ...l, stage: L[n] });
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
return g(a, { signal: o }).then((d) => P(d.result, n, i.offset, i.filter));
|
|
156
|
+
};
|
|
157
|
+
function U(e) {
|
|
158
|
+
return e ? e.split(":").pop() : "";
|
|
159
|
+
}
|
|
160
|
+
function F(e, r) {
|
|
161
|
+
if (!e || !r)
|
|
162
|
+
return "NA";
|
|
163
|
+
if (e.indexOf("gitlab") > 0 || e.indexOf("github") > 0 || e.indexOf("azure") > 0) {
|
|
164
|
+
let n = e.split("@");
|
|
165
|
+
if (n.length > 1)
|
|
166
|
+
return "https://" + n[1].split(".git")[0] + "/commit/" + r;
|
|
167
|
+
if (n.length == 1)
|
|
168
|
+
return n[0].split(".git")[0] + "/commit/" + r;
|
|
169
|
+
}
|
|
170
|
+
if (e.indexOf("bitbucket") > 0) {
|
|
171
|
+
let n = e.split("@");
|
|
172
|
+
if (n.length > 1)
|
|
173
|
+
return "https://" + n[1].split(".git")[0] + "/commits/" + r;
|
|
174
|
+
if (n.length == 1)
|
|
175
|
+
return n[0].split(".git")[0] + "/commits/" + r;
|
|
176
|
+
}
|
|
177
|
+
return "NA";
|
|
178
|
+
}
|
|
179
|
+
export {
|
|
180
|
+
v as SourceTypeMap,
|
|
181
|
+
F as createGitCommitUrl,
|
|
182
|
+
U as extractImage,
|
|
183
|
+
H as genericCDMaterialsService,
|
|
184
|
+
M as getTeamListMin,
|
|
185
|
+
Y as getUserRole,
|
|
186
|
+
w as setImageTags
|
|
187
|
+
};
|
|
@@ -1,66 +1,71 @@
|
|
|
1
|
-
import { RegistryTypeDetailType } from "./Types";
|
|
2
|
-
export declare const RequestTimeout = 60000;
|
|
3
|
-
export declare const Host:
|
|
4
|
-
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
|
5
|
-
export declare const DOCUMENTATION: {
|
|
6
|
-
APP_TAGS: string;
|
|
7
|
-
APP_OVERVIEW_TAGS: string;
|
|
8
|
-
};
|
|
9
|
-
export declare const PATTERNS: {
|
|
10
|
-
KUBERNETES_KEY_PREFIX: RegExp;
|
|
11
|
-
KUBERNETES_KEY_NAME: RegExp;
|
|
12
|
-
START_END_ALPHANUMERIC: RegExp;
|
|
13
|
-
ALPHANUMERIC_WITH_SPECIAL_CHAR: RegExp;
|
|
14
|
-
};
|
|
15
|
-
export declare const URLS: {
|
|
16
|
-
LOGIN_SSO: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const ROUTES: {
|
|
19
|
-
PROJECT_LIST_MIN: string;
|
|
20
|
-
USER_CHECK_ROLE: string;
|
|
21
|
-
IMAGE_TAGGING: string;
|
|
22
|
-
CD_MATERIAL_GET: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export declare const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
export declare const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
import { RegistryTypeDetailType } from "./Types";
|
|
2
|
+
export declare const RequestTimeout = 60000;
|
|
3
|
+
export declare const Host: any;
|
|
4
|
+
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
|
5
|
+
export declare const DOCUMENTATION: {
|
|
6
|
+
APP_TAGS: string;
|
|
7
|
+
APP_OVERVIEW_TAGS: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const PATTERNS: {
|
|
10
|
+
KUBERNETES_KEY_PREFIX: RegExp;
|
|
11
|
+
KUBERNETES_KEY_NAME: RegExp;
|
|
12
|
+
START_END_ALPHANUMERIC: RegExp;
|
|
13
|
+
ALPHANUMERIC_WITH_SPECIAL_CHAR: RegExp;
|
|
14
|
+
};
|
|
15
|
+
export declare const URLS: {
|
|
16
|
+
LOGIN_SSO: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const ROUTES: {
|
|
19
|
+
PROJECT_LIST_MIN: string;
|
|
20
|
+
USER_CHECK_ROLE: string;
|
|
21
|
+
IMAGE_TAGGING: string;
|
|
22
|
+
CD_MATERIAL_GET: string;
|
|
23
|
+
};
|
|
24
|
+
export declare enum KEY_VALUE {
|
|
25
|
+
KEY = "key",
|
|
26
|
+
VALUE = "value"
|
|
27
|
+
}
|
|
28
|
+
export declare const DEFAULT_TAG_DATA: {
|
|
29
|
+
key: string;
|
|
30
|
+
value: string;
|
|
31
|
+
propagate: boolean;
|
|
32
|
+
isInvalidKey: boolean;
|
|
33
|
+
isInvalidValue: boolean;
|
|
34
|
+
isSuggested: boolean;
|
|
35
|
+
};
|
|
36
|
+
export declare const TOAST_ACCESS_DENIED: {
|
|
37
|
+
TITLE: string;
|
|
38
|
+
SUBTITLE: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const ERROR_EMPTY_SCREEN: {
|
|
41
|
+
PAGE_NOT_FOUND: string;
|
|
42
|
+
PAGE_NOT_EXIST: string;
|
|
43
|
+
TAKE_BACK_HOME: string;
|
|
44
|
+
ONLY_FOR_SUPERADMIN: string;
|
|
45
|
+
NOT_AUTHORIZED: string;
|
|
46
|
+
UNAUTHORIZED: string;
|
|
47
|
+
FORBIDDEN: string;
|
|
48
|
+
REQUIRED_MANAGER_ACCESS: string;
|
|
49
|
+
};
|
|
50
|
+
export declare const TOKEN_COOKIE_NAME = "argocd.token";
|
|
51
|
+
export declare const TriggerTypeMap: {
|
|
52
|
+
automatic: string;
|
|
53
|
+
manual: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const BuildStageVariable: {
|
|
56
|
+
PreBuild: string;
|
|
57
|
+
Build: string;
|
|
58
|
+
PostBuild: string;
|
|
59
|
+
};
|
|
60
|
+
export declare const REGISTRY_TYPE_MAP: Record<string, RegistryTypeDetailType>;
|
|
61
|
+
export declare const RepositoryAction: {
|
|
62
|
+
CONTAINER: string;
|
|
63
|
+
CHART_PULL: string;
|
|
64
|
+
CHART_PUSH: string;
|
|
65
|
+
};
|
|
66
|
+
export declare enum MODES {
|
|
67
|
+
YAML = "yaml",
|
|
68
|
+
JSON = "json",
|
|
69
|
+
SHELL = "shell",
|
|
70
|
+
DOCKERFILE = "dockerfile"
|
|
71
|
+
}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
const l = 6e4, o = import.meta.env.REACT_APP_ORCHESTRATOR_ROOT ?? "/orchestrator", a = "https://docs.devtron.ai", s = {
|
|
2
|
+
APP_TAGS: `${a}/v/v0.6/usage/applications/create-application#tags`,
|
|
3
|
+
APP_OVERVIEW_TAGS: `${a}/v/v0.6/usage/applications/overview#manage-tags`
|
|
4
|
+
}, d = {
|
|
5
|
+
KUBERNETES_KEY_PREFIX: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,
|
|
6
|
+
KUBERNETES_KEY_NAME: /^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$/,
|
|
7
|
+
START_END_ALPHANUMERIC: /^([Az09].*[A-Za-z0-9])$|[A-Za-z0-9]$/,
|
|
8
|
+
ALPHANUMERIC_WITH_SPECIAL_CHAR: /^[A-Za-z0-9._-]+$/
|
|
9
|
+
// allow alphanumeric,(.) ,(-),(_)
|
|
10
|
+
}, i = {
|
|
11
|
+
LOGIN_SSO: "/login/sso"
|
|
12
|
+
}, c = {
|
|
13
|
+
PROJECT_LIST_MIN: "team/autocomplete",
|
|
14
|
+
USER_CHECK_ROLE: "user/check/roles",
|
|
15
|
+
IMAGE_TAGGING: "app/image-tagging",
|
|
16
|
+
CD_MATERIAL_GET: "app/cd-pipeline"
|
|
17
|
+
};
|
|
18
|
+
var t = /* @__PURE__ */ ((e) => (e.KEY = "key", e.VALUE = "value", e))(t || {});
|
|
19
|
+
const n = {
|
|
20
|
+
key: "",
|
|
21
|
+
value: "",
|
|
22
|
+
propagate: !1,
|
|
23
|
+
isInvalidKey: !1,
|
|
24
|
+
isInvalidValue: !1,
|
|
25
|
+
isSuggested: !0
|
|
26
|
+
}, u = {
|
|
27
|
+
TITLE: "Access denied",
|
|
28
|
+
SUBTITLE: "You do not have required access to perform this action"
|
|
29
|
+
}, g = {
|
|
30
|
+
PAGE_NOT_FOUND: "We could not find this page",
|
|
31
|
+
PAGE_NOT_EXIST: "This page doesn’t exist or was removed. We suggest you go back to home",
|
|
32
|
+
TAKE_BACK_HOME: "Take me home",
|
|
33
|
+
ONLY_FOR_SUPERADMIN: "Information on this page is available only to superadmin users.",
|
|
34
|
+
NOT_AUTHORIZED: "Not authorized",
|
|
35
|
+
UNAUTHORIZED: "unauthorized",
|
|
36
|
+
FORBIDDEN: "forbidden",
|
|
37
|
+
REQUIRED_MANAGER_ACCESS: "Looks like you don’t have access to information on this page. Please contact your manager to request access."
|
|
38
|
+
}, p = "argocd.token", R = {
|
|
39
|
+
automatic: "Auto",
|
|
40
|
+
manual: "Manual"
|
|
41
|
+
}, E = {
|
|
42
|
+
PreBuild: "preBuildStage",
|
|
43
|
+
Build: "buildStage",
|
|
44
|
+
PostBuild: "postBuildStage"
|
|
45
|
+
}, m = {
|
|
46
|
+
ecr: {
|
|
47
|
+
value: "ecr",
|
|
48
|
+
label: "ECR",
|
|
49
|
+
desiredFormat: "(desired format: repo-name)",
|
|
50
|
+
placeholderText: "Eg. repo_name",
|
|
51
|
+
gettingStartedLink: "https://docs.aws.amazon.com/AmazonECR/latest/userguide/get-set-up-for-amazon-ecr.html",
|
|
52
|
+
defaultRegistryURL: "",
|
|
53
|
+
registryURL: {
|
|
54
|
+
label: "Registry URL",
|
|
55
|
+
defaultValue: "",
|
|
56
|
+
placeholder: "Eg. xxxxxxxxxxxx.dkr.ecr.region.amazonaws.com"
|
|
57
|
+
},
|
|
58
|
+
id: {
|
|
59
|
+
label: "Access key ID",
|
|
60
|
+
defaultValue: "",
|
|
61
|
+
placeholder: ""
|
|
62
|
+
},
|
|
63
|
+
password: {
|
|
64
|
+
label: "Secret access key",
|
|
65
|
+
defaultValue: "",
|
|
66
|
+
placeholder: ""
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"docker-hub": {
|
|
70
|
+
value: "docker-hub",
|
|
71
|
+
label: "Docker",
|
|
72
|
+
desiredFormat: "(desired format: username/repo-name)",
|
|
73
|
+
placeholderText: "Eg. username/repo_name",
|
|
74
|
+
gettingStartedLink: "https://docs.docker.com/docker-hub/",
|
|
75
|
+
defaultRegistryURL: "docker.io",
|
|
76
|
+
registryURL: {
|
|
77
|
+
label: "Registry URL",
|
|
78
|
+
defaultValue: "",
|
|
79
|
+
placeholder: ""
|
|
80
|
+
},
|
|
81
|
+
id: {
|
|
82
|
+
label: "Username",
|
|
83
|
+
defaultValue: "",
|
|
84
|
+
placeholder: ""
|
|
85
|
+
},
|
|
86
|
+
password: {
|
|
87
|
+
label: "Password/Token (Recommended: Token)",
|
|
88
|
+
defaultValue: "",
|
|
89
|
+
placeholder: ""
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
acr: {
|
|
93
|
+
value: "acr",
|
|
94
|
+
label: "Azure",
|
|
95
|
+
desiredFormat: "(desired format: repo-name)",
|
|
96
|
+
placeholderText: "Eg. repo_name",
|
|
97
|
+
gettingStartedLink: "https://docs.microsoft.com/en-us/azure/container-registry/container-registry-get-started-portal",
|
|
98
|
+
defaultRegistryURL: "",
|
|
99
|
+
registryURL: {
|
|
100
|
+
label: "Registry URL/Login Server",
|
|
101
|
+
defaultValue: "",
|
|
102
|
+
placeholder: "Eg. xxx.azurecr.io"
|
|
103
|
+
},
|
|
104
|
+
id: {
|
|
105
|
+
label: "Username/Registry Name",
|
|
106
|
+
defaultValue: "",
|
|
107
|
+
placeholder: ""
|
|
108
|
+
},
|
|
109
|
+
password: {
|
|
110
|
+
label: "Password",
|
|
111
|
+
defaultValue: "",
|
|
112
|
+
placeholder: ""
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"artifact-registry": {
|
|
116
|
+
value: "artifact-registry",
|
|
117
|
+
label: "Artifact Registry (GCP)",
|
|
118
|
+
desiredFormat: "(desired format: project-id/artifacts-repo/repo-name)",
|
|
119
|
+
placeholderText: "Eg. project-id/artifacts-repo/repo-name",
|
|
120
|
+
gettingStartedLink: "https://cloud.google.com/artifact-registry/docs/manage-repos?hl=en_US",
|
|
121
|
+
defaultRegistryURL: "",
|
|
122
|
+
registryURL: {
|
|
123
|
+
label: "Registry URL",
|
|
124
|
+
defaultValue: "",
|
|
125
|
+
placeholder: "Eg. region-docker.pkg.dev"
|
|
126
|
+
},
|
|
127
|
+
id: {
|
|
128
|
+
label: "Username",
|
|
129
|
+
defaultValue: "_json_key",
|
|
130
|
+
placeholder: ""
|
|
131
|
+
},
|
|
132
|
+
password: {
|
|
133
|
+
label: "Service Account JSON File",
|
|
134
|
+
defaultValue: "",
|
|
135
|
+
placeholder: "Paste json file content here"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
gcr: {
|
|
139
|
+
value: "gcr",
|
|
140
|
+
label: "GCR",
|
|
141
|
+
desiredFormat: "(desired format: project-id/repo-name)",
|
|
142
|
+
placeholderText: "Eg. project-id/repo_name",
|
|
143
|
+
gettingStartedLink: "https://cloud.google.com/container-registry/docs/quickstart",
|
|
144
|
+
defaultRegistryURL: "gcr.io",
|
|
145
|
+
registryURL: {
|
|
146
|
+
label: "Registry URL",
|
|
147
|
+
defaultValue: "gcr.io",
|
|
148
|
+
placeholder: ""
|
|
149
|
+
},
|
|
150
|
+
id: {
|
|
151
|
+
label: "Username",
|
|
152
|
+
defaultValue: "_json_key",
|
|
153
|
+
placeholder: ""
|
|
154
|
+
},
|
|
155
|
+
password: {
|
|
156
|
+
label: "Service Account JSON File",
|
|
157
|
+
defaultValue: "",
|
|
158
|
+
placeholder: "Paste json file content here"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
quay: {
|
|
162
|
+
value: "quay",
|
|
163
|
+
label: "Quay",
|
|
164
|
+
desiredFormat: "(desired format: username/repo-name)",
|
|
165
|
+
placeholderText: "Eg. username/repo_name",
|
|
166
|
+
gettingStartedLink: "",
|
|
167
|
+
defaultRegistryURL: "quay.io",
|
|
168
|
+
registryURL: {
|
|
169
|
+
label: "Registry URL",
|
|
170
|
+
defaultValue: "",
|
|
171
|
+
placeholder: ""
|
|
172
|
+
},
|
|
173
|
+
id: {
|
|
174
|
+
label: "Username",
|
|
175
|
+
defaultValue: "",
|
|
176
|
+
placeholder: ""
|
|
177
|
+
},
|
|
178
|
+
password: {
|
|
179
|
+
label: "Token",
|
|
180
|
+
defaultValue: "",
|
|
181
|
+
placeholder: ""
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
other: {
|
|
185
|
+
value: "other",
|
|
186
|
+
label: "Other",
|
|
187
|
+
desiredFormat: "",
|
|
188
|
+
placeholderText: "",
|
|
189
|
+
gettingStartedLink: "",
|
|
190
|
+
defaultRegistryURL: "",
|
|
191
|
+
registryURL: {
|
|
192
|
+
label: "Registry URL",
|
|
193
|
+
defaultValue: "",
|
|
194
|
+
placeholder: ""
|
|
195
|
+
},
|
|
196
|
+
id: {
|
|
197
|
+
label: "Username",
|
|
198
|
+
defaultValue: "",
|
|
199
|
+
placeholder: ""
|
|
200
|
+
},
|
|
201
|
+
password: {
|
|
202
|
+
label: "Password/Token",
|
|
203
|
+
defaultValue: "",
|
|
204
|
+
placeholder: ""
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}, T = {
|
|
208
|
+
CONTAINER: "CONTAINER",
|
|
209
|
+
CHART_PULL: "CHART_PULL",
|
|
210
|
+
CHART_PUSH: "CHART_PUSH"
|
|
211
|
+
};
|
|
212
|
+
var r = /* @__PURE__ */ ((e) => (e.YAML = "yaml", e.JSON = "json", e.SHELL = "shell", e.DOCKERFILE = "dockerfile", e))(r || {});
|
|
213
|
+
export {
|
|
214
|
+
E as BuildStageVariable,
|
|
215
|
+
n as DEFAULT_TAG_DATA,
|
|
216
|
+
s as DOCUMENTATION,
|
|
217
|
+
a as DOCUMENTATION_HOME_PAGE,
|
|
218
|
+
g as ERROR_EMPTY_SCREEN,
|
|
219
|
+
o as Host,
|
|
220
|
+
t as KEY_VALUE,
|
|
221
|
+
r as MODES,
|
|
222
|
+
d as PATTERNS,
|
|
223
|
+
m as REGISTRY_TYPE_MAP,
|
|
224
|
+
c as ROUTES,
|
|
225
|
+
T as RepositoryAction,
|
|
226
|
+
l as RequestTimeout,
|
|
227
|
+
u as TOAST_ACCESS_DENIED,
|
|
228
|
+
p as TOKEN_COOKIE_NAME,
|
|
229
|
+
R as TriggerTypeMap,
|
|
230
|
+
i as URLS
|
|
231
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export default function PropagateTagInfo({ isCreateApp }: {
|
|
3
|
-
isCreateApp: boolean;
|
|
4
|
-
}): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export default function PropagateTagInfo({ isCreateApp }: {
|
|
3
|
+
isCreateApp: boolean;
|
|
4
|
+
}): JSX.Element;
|