@devtron-labs/devtron-fe-common-lib 0.0.80 → 0.0.81-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/Common/CodeEditor/CodeEditor.d.ts +1 -44
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +36 -0
- package/dist/Common/CodeEditor/index.d.ts +2 -0
- package/dist/Common/CodeEditor/types.d.ts +81 -0
- package/dist/Common/Common.service.d.ts +4 -0
- package/dist/Common/Constants.d.ts +9 -2
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcut.d.ts +2 -0
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +3 -0
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +4 -0
- package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +2 -0
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +8 -0
- package/dist/Common/Hooks/index.d.ts +1 -0
- package/dist/Common/Markdown/MarkDown.d.ts +4 -0
- package/dist/Common/Markdown/Types.d.ts +7 -0
- package/dist/Common/Markdown/index.d.ts +1 -0
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
- package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +5 -0
- package/dist/Common/SegmentedBarChart/constants.d.ts +5 -0
- package/dist/Common/SegmentedBarChart/index.d.ts +2 -0
- package/dist/Common/SegmentedBarChart/types.d.ts +11 -0
- package/dist/Common/Types.d.ts +2 -55
- package/dist/Common/index.d.ts +3 -0
- package/dist/Pages/ResourceBrowser/Helper.d.ts +3 -0
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +20 -0
- package/dist/Pages/ResourceBrowser/index.d.ts +2 -0
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +9 -7
- package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +2 -1
- package/dist/Shared/Components/ScannedByToolModal/types.d.ts +2 -0
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
- package/dist/Shared/Components/Vulnerabilities/index.d.ts +1 -0
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +4 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/types.d.ts +67 -12
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/abap-5361cc9f.js +1314 -0
- package/dist/apex-f9413e6f.js +315 -0
- package/dist/assets/editor.worker-60ba9509.js +12 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/yaml.worker-cc1a551a.js +471 -0
- package/dist/azcli-36f2cb5e.js +74 -0
- package/dist/bat-6b05202d.js +95 -0
- package/dist/bicep-788415e3.js +108 -0
- package/dist/cameligo-4e85ec93.js +168 -0
- package/dist/clojure-40fa5799.js +754 -0
- package/dist/coffee-f557f5e0.js +228 -0
- package/dist/cpp-ebbf7759.js +390 -0
- package/dist/csharp-1616f566.js +320 -0
- package/dist/csp-5f0bc3c4.js +57 -0
- package/dist/css-2b1aec9b.js +186 -0
- package/dist/cssMode-50bd55e1.js +1446 -0
- package/dist/cypher-b12b4ba8.js +262 -0
- package/dist/dart-e0d70030.js +270 -0
- package/dist/dockerfile-f9d4b2b0.js +132 -0
- package/dist/ecl-5b91fdec.js +454 -0
- package/dist/elixir-deffd5a6.js +489 -0
- package/dist/flow9-84cd00d7.js +141 -0
- package/dist/freemarker2-88e6203b.js +643 -0
- package/dist/fsharp-d296151f.js +210 -0
- package/dist/go-7e72ff3b.js +208 -0
- package/dist/graphql-a93568a1.js +141 -0
- package/dist/handlebars-2ea4f944.js +391 -0
- package/dist/hcl-b3994d8f.js +177 -0
- package/dist/html-cd988a63.js +281 -0
- package/dist/htmlMode-1b956b46.js +1456 -0
- package/dist/index-af6b9920.js +128503 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +301 -20280
- package/dist/ini-df84509a.js +68 -0
- package/dist/java-fba3d046.js +221 -0
- package/dist/javascript-a692c6e7.js +75 -0
- package/dist/jsonMode-3d017fd1.js +1867 -0
- package/dist/julia-cefd45f6.js +496 -0
- package/dist/kotlin-b87b6942.js +245 -0
- package/dist/less-8a7f37bc.js +168 -0
- package/dist/lexon-cb95cd13.js +151 -0
- package/dist/liquid-95680278.js +238 -0
- package/dist/lua-6d5b3ea4.js +157 -0
- package/dist/m3-d0daf5d0.js +210 -0
- package/dist/markdown-48bb0c6f.js +202 -0
- package/dist/mdx-9caaf071.js +171 -0
- package/dist/mips-20dcf886.js +194 -0
- package/dist/msdax-e9759e23.js +377 -0
- package/dist/mysql-95f335b2.js +876 -0
- package/dist/objective-c-ad0cfb47.js +188 -0
- package/dist/pascal-eda19dc3.js +245 -0
- package/dist/pascaligo-b7e0c89b.js +158 -0
- package/dist/perl-bbe5d32a.js +599 -0
- package/dist/pgsql-7ebaee1c.js +847 -0
- package/dist/php-2526756d.js +471 -0
- package/dist/pla-9ebd6f68.js +131 -0
- package/dist/postiats-9ac05cf6.js +544 -0
- package/dist/powerquery-1cae399d.js +890 -0
- package/dist/powershell-093b5b87.js +233 -0
- package/dist/protobuf-37993cbc.js +422 -0
- package/dist/pug-c2a5db5f.js +393 -0
- package/dist/python-1ca8b188.js +259 -0
- package/dist/qsharp-1450aac5.js +282 -0
- package/dist/r-a0642b90.js +245 -0
- package/dist/razor-4013479d.js +512 -0
- package/dist/redis-405cb63d.js +298 -0
- package/dist/redshift-830f82de.js +806 -0
- package/dist/restructuredtext-d81f5ef4.js +162 -0
- package/dist/ruby-d607b87e.js +444 -0
- package/dist/rust-86e74dbb.js +337 -0
- package/dist/sb-b7e5010d.js +110 -0
- package/dist/scala-a4d4a3c6.js +353 -0
- package/dist/scheme-81927e94.js +114 -0
- package/dist/scss-3f112fcd.js +244 -0
- package/dist/shell-d795bcaa.js +224 -0
- package/dist/solidity-5b556d3e.js +1351 -0
- package/dist/sophia-1da55998.js +190 -0
- package/dist/sparql-ac34318e.js +193 -0
- package/dist/sql-eef6393b.js +818 -0
- package/dist/st-758b1972.js +415 -0
- package/dist/swift-63cb1847.js +315 -0
- package/dist/systemverilog-2538c608.js +556 -0
- package/dist/tcl-53e6282a.js +232 -0
- package/dist/tsMode-8513ee6c.js +811 -0
- package/dist/twig-80c3dc23.js +323 -0
- package/dist/typescript-b0a34e60.js +328 -0
- package/dist/vb-32089525.js +364 -0
- package/dist/wgsl-e681d5a0.js +420 -0
- package/dist/xml-b73004cd.js +95 -0
- package/dist/yaml-9f9fcd68.js +184 -0
- package/package.json +8 -6
|
@@ -1,48 +1,5 @@
|
|
|
1
|
+
import { CodeEditorComposition, CodeEditorInterface } from './types';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
|
|
3
|
-
interface InformationBarProps {
|
|
4
|
-
text: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
interface CodeEditorInterface {
|
|
9
|
-
value?: string;
|
|
10
|
-
lineDecorationsWidth?: number;
|
|
11
|
-
responseType?: string;
|
|
12
|
-
onChange?: (string: any) => void;
|
|
13
|
-
onBlur?: () => void;
|
|
14
|
-
onFocus?: () => void;
|
|
15
|
-
children?: any;
|
|
16
|
-
defaultValue?: string;
|
|
17
|
-
mode?: 'json' | 'yaml' | 'shell' | 'dockerfile';
|
|
18
|
-
tabSize?: number;
|
|
19
|
-
readOnly?: boolean;
|
|
20
|
-
noParsing?: boolean;
|
|
21
|
-
minHeight?: number;
|
|
22
|
-
maxHeight?: number;
|
|
23
|
-
inline?: boolean;
|
|
24
|
-
height?: number | string;
|
|
25
|
-
shebang?: string | JSX.Element;
|
|
26
|
-
diffView?: boolean;
|
|
27
|
-
loading?: boolean;
|
|
28
|
-
customLoader?: JSX.Element;
|
|
29
|
-
theme?: string;
|
|
30
|
-
original?: string;
|
|
31
|
-
focus?: boolean;
|
|
32
|
-
validatorSchema?: any;
|
|
33
|
-
isKubernetes?: boolean;
|
|
34
|
-
cleanData?: boolean;
|
|
35
|
-
chartVersion?: any;
|
|
36
|
-
}
|
|
37
|
-
interface CodeEditorComposition {
|
|
38
|
-
Header?: React.FC<any>;
|
|
39
|
-
LanguageChanger?: React.FC<any>;
|
|
40
|
-
ThemeChanger?: React.FC<any>;
|
|
41
|
-
ValidationError?: React.FC<any>;
|
|
42
|
-
Clipboard?: React.FC<any>;
|
|
43
|
-
Warning?: React.FC<InformationBarProps>;
|
|
44
|
-
ErrorBar?: React.FC<InformationBarProps>;
|
|
45
|
-
Information?: React.FC<InformationBarProps>;
|
|
46
|
-
}
|
|
47
4
|
declare const CodeEditor: React.FC<CodeEditorInterface> & CodeEditorComposition;
|
|
48
5
|
export default CodeEditor;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Action, CodeEditorState, CodeEditorThemesKeys } from './types';
|
|
2
|
+
import { MODES } from '../Constants';
|
|
3
|
+
|
|
4
|
+
export declare const CodeEditorReducer: (state: CodeEditorState, action: Action) => {
|
|
5
|
+
mode: any;
|
|
6
|
+
diffMode: boolean;
|
|
7
|
+
theme: CodeEditorThemesKeys;
|
|
8
|
+
code: string;
|
|
9
|
+
noParsing: boolean;
|
|
10
|
+
} | {
|
|
11
|
+
diffMode: any;
|
|
12
|
+
mode: MODES;
|
|
13
|
+
theme: CodeEditorThemesKeys;
|
|
14
|
+
code: string;
|
|
15
|
+
noParsing: boolean;
|
|
16
|
+
} | {
|
|
17
|
+
theme: any;
|
|
18
|
+
mode: MODES;
|
|
19
|
+
diffMode: boolean;
|
|
20
|
+
code: string;
|
|
21
|
+
noParsing: boolean;
|
|
22
|
+
} | {
|
|
23
|
+
code: any;
|
|
24
|
+
mode: MODES;
|
|
25
|
+
diffMode: boolean;
|
|
26
|
+
theme: CodeEditorThemesKeys;
|
|
27
|
+
noParsing: boolean;
|
|
28
|
+
} | {
|
|
29
|
+
height: any;
|
|
30
|
+
mode: MODES;
|
|
31
|
+
diffMode: boolean;
|
|
32
|
+
theme: CodeEditorThemesKeys;
|
|
33
|
+
code: string;
|
|
34
|
+
noParsing: boolean;
|
|
35
|
+
};
|
|
36
|
+
export declare const initialState: (mode: any, theme: any, value: any, diffView: any, noParsing: any) => CodeEditorState;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { MODES } from '../Constants';
|
|
2
|
+
|
|
3
|
+
export interface InformationBarProps {
|
|
4
|
+
text: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface CodeEditorInterface {
|
|
9
|
+
value?: string;
|
|
10
|
+
lineDecorationsWidth?: number;
|
|
11
|
+
responseType?: string;
|
|
12
|
+
onChange?: (string: any) => void;
|
|
13
|
+
onBlur?: () => void;
|
|
14
|
+
onFocus?: () => void;
|
|
15
|
+
children?: any;
|
|
16
|
+
defaultValue?: string;
|
|
17
|
+
mode?: MODES | string;
|
|
18
|
+
tabSize?: number;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
noParsing?: boolean;
|
|
21
|
+
minHeight?: number;
|
|
22
|
+
maxHeight?: number;
|
|
23
|
+
inline?: boolean;
|
|
24
|
+
height?: number | string;
|
|
25
|
+
shebang?: string | JSX.Element;
|
|
26
|
+
diffView?: boolean;
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
customLoader?: JSX.Element;
|
|
29
|
+
theme?: string;
|
|
30
|
+
original?: string;
|
|
31
|
+
focus?: boolean;
|
|
32
|
+
validatorSchema?: any;
|
|
33
|
+
isKubernetes?: boolean;
|
|
34
|
+
cleanData?: boolean;
|
|
35
|
+
chartVersion?: any;
|
|
36
|
+
}
|
|
37
|
+
export interface CodeEditorHeaderInterface {
|
|
38
|
+
children?: any;
|
|
39
|
+
className?: string;
|
|
40
|
+
hideDefaultSplitHeader?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface CodeEditorComposition {
|
|
43
|
+
Header?: React.FC<any>;
|
|
44
|
+
LanguageChanger?: React.FC<any>;
|
|
45
|
+
ThemeChanger?: React.FC<any>;
|
|
46
|
+
ValidationError?: React.FC<any>;
|
|
47
|
+
Clipboard?: React.FC<any>;
|
|
48
|
+
Warning?: React.FC<InformationBarProps>;
|
|
49
|
+
ErrorBar?: React.FC<InformationBarProps>;
|
|
50
|
+
Information?: React.FC<InformationBarProps>;
|
|
51
|
+
}
|
|
52
|
+
export interface CodeEditorHeaderComposition {
|
|
53
|
+
LanguageChanger?: React.FC<any>;
|
|
54
|
+
ThemeChanger?: React.FC<any>;
|
|
55
|
+
ValidationError?: React.FC<any>;
|
|
56
|
+
Clipboard?: React.FC<any>;
|
|
57
|
+
}
|
|
58
|
+
export type ActionTypes = 'changeLanguage' | 'setDiff' | 'setTheme' | 'setCode' | 'setHeight';
|
|
59
|
+
export interface Action {
|
|
60
|
+
type: ActionTypes;
|
|
61
|
+
value: any;
|
|
62
|
+
}
|
|
63
|
+
export declare enum CodeEditorThemesKeys {
|
|
64
|
+
vsDarkDT = "vs-dark--dt",
|
|
65
|
+
deleteDraft = "delete-draft",
|
|
66
|
+
unpublished = "unpublished",
|
|
67
|
+
vs = "vs"
|
|
68
|
+
}
|
|
69
|
+
export interface CodeEditorState {
|
|
70
|
+
mode: MODES;
|
|
71
|
+
diffMode: boolean;
|
|
72
|
+
theme: CodeEditorThemesKeys;
|
|
73
|
+
code: string;
|
|
74
|
+
noParsing: boolean;
|
|
75
|
+
}
|
|
76
|
+
export declare enum CodeEditorActionTypes {
|
|
77
|
+
reInit = "reInit",
|
|
78
|
+
submitLoading = "submitLoading",
|
|
79
|
+
overrideLoading = "overrideLoading",
|
|
80
|
+
success = "success"
|
|
81
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ApiResourceType } from '../Pages';
|
|
1
2
|
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType } from './Types';
|
|
2
3
|
|
|
3
4
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
|
@@ -19,4 +20,7 @@ export declare function extractImage(image: string): string;
|
|
|
19
20
|
export declare function createGitCommitUrl(url: string, revision: string): string;
|
|
20
21
|
export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
|
|
21
22
|
export declare const getDefaultConfig: () => Promise<ResponseType>;
|
|
23
|
+
export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
|
|
24
|
+
export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
|
25
|
+
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
|
22
26
|
export {};
|
|
@@ -25,6 +25,8 @@ export declare const URLS: {
|
|
|
25
25
|
GETTING_STARTED: string;
|
|
26
26
|
STACK_MANAGER_ABOUT: string;
|
|
27
27
|
APP_LIST_HELM: string;
|
|
28
|
+
APP_CI_DETAILS: string;
|
|
29
|
+
LOGS: string;
|
|
28
30
|
};
|
|
29
31
|
export declare const ROUTES: {
|
|
30
32
|
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
@@ -41,6 +43,10 @@ export declare const ROUTES: {
|
|
|
41
43
|
SERVER_INFO_API: string;
|
|
42
44
|
ATTRIBUTES_USER: string;
|
|
43
45
|
UPDATE: string;
|
|
46
|
+
ENVIRONMENT_LIST_MIN: string;
|
|
47
|
+
CLUSTER: string;
|
|
48
|
+
API_RESOURCE: string;
|
|
49
|
+
GVK: string;
|
|
44
50
|
};
|
|
45
51
|
export declare enum KEY_VALUE {
|
|
46
52
|
KEY = "key",
|
|
@@ -110,7 +116,8 @@ export declare enum MODES {
|
|
|
110
116
|
YAML = "yaml",
|
|
111
117
|
JSON = "json",
|
|
112
118
|
SHELL = "shell",
|
|
113
|
-
DOCKERFILE = "dockerfile"
|
|
119
|
+
DOCKERFILE = "dockerfile",
|
|
120
|
+
PLAINTEXT = "plaintext"
|
|
114
121
|
}
|
|
115
122
|
export declare enum APPROVAL_MODAL_TYPE {
|
|
116
123
|
CONFIG = "CONFIG",
|
|
@@ -220,5 +227,5 @@ export declare const POSTHOG_EVENT_ONBOARDING: {
|
|
|
220
227
|
SKIP_AND_EXPLORE_DEVTRON: string;
|
|
221
228
|
};
|
|
222
229
|
export declare const MAX_LOGIN_COUNT = 5;
|
|
223
|
-
export declare const BULK_EDIT_HEADER = "Bulk Edit";
|
|
224
230
|
export declare const LOGIN_COUNT = "login-count";
|
|
231
|
+
export declare const DEFAULT_ENV = "devtron-ci";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MarkDown } from './MarkDown';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ScanVulnerabilitiesTableProps } from '../Types';
|
|
2
2
|
|
|
3
|
-
export default function ScanVulnerabilitiesTable({ vulnerabilities }: ScanVulnerabilitiesTableProps): JSX.Element;
|
|
3
|
+
export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -467,6 +467,8 @@ export interface VulnerabilityType {
|
|
|
467
467
|
}
|
|
468
468
|
export interface ScanVulnerabilitiesTableProps {
|
|
469
469
|
vulnerabilities: VulnerabilityType[];
|
|
470
|
+
hidePolicy?: boolean;
|
|
471
|
+
shouldStick?: boolean;
|
|
470
472
|
}
|
|
471
473
|
export interface MaterialInfo {
|
|
472
474
|
revision: string;
|
|
@@ -695,61 +697,6 @@ export interface CiPipeline {
|
|
|
695
697
|
isOffendingMandatoryPlugin?: boolean;
|
|
696
698
|
pipelineType?: string;
|
|
697
699
|
}
|
|
698
|
-
export interface InformationBarProps {
|
|
699
|
-
text: string;
|
|
700
|
-
className?: string;
|
|
701
|
-
children?: React.ReactNode;
|
|
702
|
-
}
|
|
703
|
-
export interface CodeEditorInterface {
|
|
704
|
-
value?: string;
|
|
705
|
-
lineDecorationsWidth?: number;
|
|
706
|
-
responseType?: string;
|
|
707
|
-
onChange?: (string: any) => void;
|
|
708
|
-
onBlur?: () => void;
|
|
709
|
-
onFocus?: () => void;
|
|
710
|
-
children?: any;
|
|
711
|
-
defaultValue?: string;
|
|
712
|
-
mode?: 'json' | 'yaml' | 'shell' | 'dockerfile' | 'plaintext';
|
|
713
|
-
tabSize?: number;
|
|
714
|
-
readOnly?: boolean;
|
|
715
|
-
noParsing?: boolean;
|
|
716
|
-
minHeight?: number;
|
|
717
|
-
maxHeight?: number;
|
|
718
|
-
inline?: boolean;
|
|
719
|
-
height?: number | string;
|
|
720
|
-
shebang?: string | JSX.Element;
|
|
721
|
-
diffView?: boolean;
|
|
722
|
-
loading?: boolean;
|
|
723
|
-
customLoader?: JSX.Element;
|
|
724
|
-
theme?: string;
|
|
725
|
-
original?: string;
|
|
726
|
-
focus?: boolean;
|
|
727
|
-
validatorSchema?: any;
|
|
728
|
-
isKubernetes?: boolean;
|
|
729
|
-
cleanData?: boolean;
|
|
730
|
-
chartVersion?: any;
|
|
731
|
-
}
|
|
732
|
-
export interface CodeEditorComposition {
|
|
733
|
-
Header?: React.FC<any>;
|
|
734
|
-
LanguageChanger?: React.FC<any>;
|
|
735
|
-
ThemeChanger?: React.FC<any>;
|
|
736
|
-
ValidationError?: React.FC<any>;
|
|
737
|
-
Clipboard?: React.FC<any>;
|
|
738
|
-
Warning?: React.FC<InformationBarProps>;
|
|
739
|
-
ErrorBar?: React.FC<InformationBarProps>;
|
|
740
|
-
Information?: React.FC<InformationBarProps>;
|
|
741
|
-
}
|
|
742
|
-
export interface CodeEditorHeaderComposition {
|
|
743
|
-
LanguageChanger?: React.FC<any>;
|
|
744
|
-
ThemeChanger?: React.FC<any>;
|
|
745
|
-
ValidationError?: React.FC<any>;
|
|
746
|
-
Clipboard?: React.FC<any>;
|
|
747
|
-
}
|
|
748
|
-
export interface CodeEditorHeaderInterface {
|
|
749
|
-
children?: any;
|
|
750
|
-
className?: string;
|
|
751
|
-
hideDefaultSplitHeader?: boolean;
|
|
752
|
-
}
|
|
753
700
|
export interface DeploymentChartVersionType {
|
|
754
701
|
chartRefId: number;
|
|
755
702
|
chartVersion: string;
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NodeType, Nodes } from '../../Shared';
|
|
2
|
+
|
|
3
|
+
export interface GVKType {
|
|
4
|
+
Group: string;
|
|
5
|
+
Version: string;
|
|
6
|
+
Kind: Nodes | NodeType;
|
|
7
|
+
}
|
|
8
|
+
export interface ApiResourceGroupType {
|
|
9
|
+
gvk: GVKType;
|
|
10
|
+
namespaced: boolean;
|
|
11
|
+
isGrouped?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ApiResourceType {
|
|
14
|
+
apiResources: ApiResourceGroupType[];
|
|
15
|
+
allowedAll: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface K8SObjectBaseType {
|
|
18
|
+
name: string;
|
|
19
|
+
isExpanded: boolean;
|
|
20
|
+
}
|
package/dist/Pages/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PageHeaderType } from './types';
|
|
2
2
|
|
|
3
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo,
|
|
3
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, tippyProps, }: PageHeaderType) => JSX.Element;
|
|
4
4
|
export default PageHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResponseType } from '../../../Common';
|
|
1
|
+
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
|
2
2
|
|
|
3
3
|
export declare enum InstallationType {
|
|
4
4
|
OSS_KUBECTL = "oss_kubectl",
|
|
@@ -19,21 +19,23 @@ export declare enum ModuleStatus {
|
|
|
19
19
|
}
|
|
20
20
|
export interface PageHeaderType {
|
|
21
21
|
headerName?: string;
|
|
22
|
-
additionalHeaderInfo?: () => JSX.Element;
|
|
23
|
-
isTippyShown?: boolean;
|
|
24
|
-
tippyRedirectLink?: string;
|
|
25
22
|
showTabs?: boolean;
|
|
23
|
+
additionalHeaderInfo?: () => JSX.Element;
|
|
26
24
|
renderHeaderTabs?: () => JSX.Element;
|
|
27
25
|
isBreadcrumbs?: boolean;
|
|
28
26
|
breadCrumbs?: () => JSX.Element;
|
|
29
|
-
TippyIcon?: React.FunctionComponent<any>;
|
|
30
|
-
tippyMessage?: string;
|
|
31
|
-
onClickTippybutton?: () => void;
|
|
32
27
|
renderActionButtons?: () => JSX.Element;
|
|
33
28
|
showCloseButton?: boolean;
|
|
34
29
|
onClose?: () => void;
|
|
35
30
|
markAsBeta?: boolean;
|
|
36
31
|
showAnnouncementHeader?: boolean;
|
|
32
|
+
tippyProps?: Pick<TippyCustomizedProps, 'additionalContent'> & {
|
|
33
|
+
isTippyCustomized?: boolean;
|
|
34
|
+
tippyRedirectLink?: string;
|
|
35
|
+
TippyIcon?: React.FunctionComponent<any>;
|
|
36
|
+
tippyMessage?: string;
|
|
37
|
+
onClickTippyButton?: () => void;
|
|
38
|
+
};
|
|
37
39
|
}
|
|
38
40
|
export interface ServerInfo {
|
|
39
41
|
currentVersion: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ScannedByToolModalProps } from './types';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
|
|
3
|
-
declare const ScannedByToolModal:
|
|
4
|
+
declare const ScannedByToolModal: React.FC<ScannedByToolModalProps>;
|
|
4
5
|
export default ScannedByToolModal;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ScannedObjectBarProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const ScannedObjectBar: ({ criticalVulnerabilitiesCount, moderateVulnerabilitiesCount, lowVulnerabilitiesCount, objectBarClassName, removeObjectCountMargin, }: ScannedObjectBarProps) => JSX.Element;
|
|
4
|
+
export default ScannedObjectBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ScannedObjectBar } from './ScannedObjectBar';
|
|
@@ -10,6 +10,7 @@ export * from './FilterChips';
|
|
|
10
10
|
export * from './ActivityIndicator';
|
|
11
11
|
export * from './GenericSectionErrorState';
|
|
12
12
|
export * from './KeyValueList';
|
|
13
|
+
export * from './ScannedObjectBar';
|
|
13
14
|
export * from './InfoIconTippy';
|
|
14
15
|
export * from './EditableTextArea';
|
|
15
16
|
export * from './Header';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -20,4 +20,5 @@ export declare const preventBodyScroll: (lock: boolean) => void;
|
|
|
20
20
|
export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[]) => boolean;
|
|
21
21
|
export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
|
|
22
22
|
export declare const caseInsensitiveStringComparator: (a: string, b: string) => number;
|
|
23
|
+
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
23
24
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -95,9 +95,15 @@ export declare enum CIMaterialSidebarType {
|
|
|
95
95
|
CODE_SOURCE = "Code Source",
|
|
96
96
|
PARAMETERS = "Parameters"
|
|
97
97
|
}
|
|
98
|
-
interface LastExecutionResultType {
|
|
99
|
-
scanExecutionId: number;
|
|
98
|
+
export interface LastExecutionResultType {
|
|
100
99
|
lastExecution: string;
|
|
100
|
+
severityCount: {
|
|
101
|
+
critical: number;
|
|
102
|
+
moderate: number;
|
|
103
|
+
low: number;
|
|
104
|
+
};
|
|
105
|
+
vulnerabilities: VulnerabilityType[];
|
|
106
|
+
scanExecutionId?: number;
|
|
101
107
|
appId?: number;
|
|
102
108
|
appName?: string;
|
|
103
109
|
envId?: number;
|
|
@@ -105,15 +111,9 @@ interface LastExecutionResultType {
|
|
|
105
111
|
pod?: string;
|
|
106
112
|
replicaSet?: string;
|
|
107
113
|
image?: string;
|
|
108
|
-
objectType
|
|
109
|
-
scanned
|
|
110
|
-
scanEnabled
|
|
111
|
-
severityCount: {
|
|
112
|
-
critical: number;
|
|
113
|
-
moderate: number;
|
|
114
|
-
low: number;
|
|
115
|
-
};
|
|
116
|
-
vulnerabilities: VulnerabilityType[];
|
|
114
|
+
objectType?: 'app' | 'chart';
|
|
115
|
+
scanned?: boolean;
|
|
116
|
+
scanEnabled?: boolean;
|
|
117
117
|
scanToolId?: number;
|
|
118
118
|
}
|
|
119
119
|
export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
|
|
@@ -122,4 +122,59 @@ export interface MaterialSecurityInfoType {
|
|
|
122
122
|
isScanned: boolean;
|
|
123
123
|
isScanEnabled: boolean;
|
|
124
124
|
}
|
|
125
|
-
export {
|
|
125
|
+
export declare enum Nodes {
|
|
126
|
+
Service = "Service",
|
|
127
|
+
Alertmanager = "Alertmanager",
|
|
128
|
+
PodSecurity = "PodSecurityPolicy",
|
|
129
|
+
ConfigMap = "ConfigMap",
|
|
130
|
+
ServiceAccount = "ServiceAccount",
|
|
131
|
+
ClusterRoleBinding = "ClusterRoleBinding",
|
|
132
|
+
RoleBinding = "RoleBinding",
|
|
133
|
+
ClusterRole = "ClusterRole",
|
|
134
|
+
Role = "Role",
|
|
135
|
+
Prometheus = "Prometheus",
|
|
136
|
+
ServiceMonitor = "ServiceMonitor",
|
|
137
|
+
Deployment = "Deployment",
|
|
138
|
+
MutatingWebhookConfiguration = "MutatingWebhookConfiguration",
|
|
139
|
+
DaemonSet = "DaemonSet",
|
|
140
|
+
Secret = "Secret",
|
|
141
|
+
ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration",
|
|
142
|
+
Pod = "Pod",
|
|
143
|
+
Ingress = "Ingress",
|
|
144
|
+
ReplicaSet = "ReplicaSet",
|
|
145
|
+
Endpoints = "Endpoints",
|
|
146
|
+
Cluster = "ClusterRoleBinding",
|
|
147
|
+
PodSecurityPolicy = "PodSecurityPolicy",
|
|
148
|
+
CronJob = "CronJob",
|
|
149
|
+
Job = "Job",
|
|
150
|
+
ReplicationController = "ReplicationController",
|
|
151
|
+
StatefulSet = "StatefulSet",
|
|
152
|
+
Rollout = "Rollout",
|
|
153
|
+
PersistentVolumeClaim = "PersistentVolumeClaim",
|
|
154
|
+
PersistentVolume = "PersistentVolume",
|
|
155
|
+
Containers = "Containers",
|
|
156
|
+
InitContainers = "InitContainers",
|
|
157
|
+
EndpointSlice = "EndpointSlice",
|
|
158
|
+
NetworkPolicy = "NetworkPolicy",
|
|
159
|
+
StorageClass = "StorageClass",
|
|
160
|
+
VolumeSnapshot = "VolumeSnapshot",
|
|
161
|
+
VolumeSnapshotContent = "VolumeSnapshotContent",
|
|
162
|
+
VolumeSnapshotClass = "VolumeSnapshotClass",
|
|
163
|
+
PodDisruptionBudget = "PodDisruptionBudget",
|
|
164
|
+
Event = "Event",
|
|
165
|
+
Namespace = "Namespace",
|
|
166
|
+
Overview = "Overview"
|
|
167
|
+
}
|
|
168
|
+
export type NodeType = keyof typeof Nodes;
|
|
169
|
+
export declare enum AggregationKeys {
|
|
170
|
+
Workloads = "Workloads",
|
|
171
|
+
Networking = "Networking",
|
|
172
|
+
'Config & Storage' = "Config & Storage",
|
|
173
|
+
RBAC = "RBAC",
|
|
174
|
+
Administration = "Administration",
|
|
175
|
+
'Custom Resource' = "Custom Resource",
|
|
176
|
+
'Other Resources' = "Other Resources",
|
|
177
|
+
Events = "Events",
|
|
178
|
+
Namespaces = "Namespaces"
|
|
179
|
+
}
|
|
180
|
+
export type AggregationKeysType = keyof typeof AggregationKeys;
|
|
@@ -2,6 +2,7 @@ export interface ValidationResponseType {
|
|
|
2
2
|
isValid: boolean;
|
|
3
3
|
message?: string;
|
|
4
4
|
}
|
|
5
|
+
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
5
6
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
6
7
|
export declare const validateDescription: (description: string) => ValidationResponseType;
|
|
7
8
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|