@devtron-labs/devtron-fe-common-lib 0.0.71 → 0.0.72-beta-1
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/ClipboardButton/ClipboardButton.d.ts +7 -5
- package/dist/Common/ClipboardButton/types.d.ts +6 -4
- package/dist/Common/Constants.d.ts +33 -0
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +6 -0
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +1 -0
- package/dist/Shared/Components/ButtonWithLoader/ButtonWithLoader.d.ts +15 -0
- package/dist/Shared/Components/ButtonWithLoader/index.d.ts +1 -0
- package/dist/Shared/Components/EditableTextArea/EditableTextArea.d.ts +3 -0
- package/dist/Shared/Components/EditableTextArea/index.d.ts +1 -0
- package/dist/Shared/Components/EditableTextArea/types.d.ts +25 -0
- package/dist/Shared/Components/GettingStartedCard/GettingStarted.d.ts +3 -0
- package/dist/Shared/Components/GettingStartedCard/service.d.ts +3 -0
- package/dist/Shared/Components/GettingStartedCard/types.d.ts +15 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +5 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +22 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/index.d.ts +1 -0
- package/dist/Shared/Components/Header/HelpNav.d.ts +3 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +3 -0
- package/dist/Shared/Components/Header/constants.d.ts +3 -0
- package/dist/Shared/Components/Header/index.d.ts +2 -0
- package/dist/Shared/Components/Header/service.d.ts +4 -0
- package/dist/Shared/Components/Header/types.d.ts +60 -0
- package/dist/Shared/Components/Header/utils.d.ts +3 -0
- package/dist/Shared/Components/LogoutCard.d.ts +9 -0
- package/dist/Shared/Components/index.d.ts +4 -0
- package/dist/Shared/Providers/MainContextProvider.d.ts +3 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +29 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +52 -0
- package/dist/index.js +7457 -6786
- package/package.json +7 -2
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
import ClipboardProps from './types';
|
|
3
3
|
/**
|
|
4
4
|
* @param content - Content to be copied
|
|
5
|
-
* @param copiedTippyText - Text to be shown in the tippy when the content is copied
|
|
6
|
-
* @param duration - Duration for which the tippy should be shown
|
|
7
|
-
* @param trigger - To trigger the copy action, if set to true the content will be copied, use case being triggering the copy action from outside the component
|
|
8
|
-
* @param setTrigger - Callback function to set the trigger
|
|
5
|
+
* @param copiedTippyText - Text to be shown in the tippy when the content is copied, default 'Copied!'
|
|
6
|
+
* @param duration - Duration for which the tippy should be shown, default 1000
|
|
7
|
+
* @param trigger - To trigger the copy action outside the button, if set to true the content will be copied, use case being triggering the copy action from outside the component
|
|
8
|
+
* @param setTrigger - Callback function to set the trigger outside the button
|
|
9
|
+
* @param rootClassName - additional classes to add to button
|
|
10
|
+
* @param iconSize - size of svg icon to be shown, default 16 (icon-dim-16)
|
|
9
11
|
*/
|
|
10
|
-
export default function ClipboardButton({ content, copiedTippyText, duration, trigger, setTrigger }: ClipboardProps): JSX.Element;
|
|
12
|
+
export default function ClipboardButton({ content, copiedTippyText, duration, trigger, setTrigger, rootClassName, iconSize, }: ClipboardProps): JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export default interface ClipboardProps {
|
|
3
3
|
content: string;
|
|
4
|
-
copiedTippyText
|
|
5
|
-
duration
|
|
6
|
-
trigger
|
|
7
|
-
setTrigger
|
|
4
|
+
copiedTippyText?: string;
|
|
5
|
+
duration?: number;
|
|
6
|
+
trigger?: boolean;
|
|
7
|
+
setTrigger?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
+
rootClassName?: string;
|
|
9
|
+
iconSize?: number;
|
|
8
10
|
}
|
|
@@ -15,6 +15,14 @@ export declare const PATTERNS: {
|
|
|
15
15
|
export declare const URLS: {
|
|
16
16
|
LOGIN_SSO: string;
|
|
17
17
|
PERMISSION_GROUPS: string;
|
|
18
|
+
APP: string;
|
|
19
|
+
APP_LIST: string;
|
|
20
|
+
CHARTS_DISCOVER: string;
|
|
21
|
+
JOB: string;
|
|
22
|
+
CREATE_JOB: string;
|
|
23
|
+
GETTING_STARTED: string;
|
|
24
|
+
STACK_MANAGER_ABOUT: string;
|
|
25
|
+
APP_LIST_HELM: string;
|
|
18
26
|
};
|
|
19
27
|
export declare const ROUTES: {
|
|
20
28
|
PROJECT_LIST_MIN: string;
|
|
@@ -23,6 +31,10 @@ export declare const ROUTES: {
|
|
|
23
31
|
CD_MATERIAL_GET: string;
|
|
24
32
|
DEPLOYMENT_TEMPLATE_LIST: string;
|
|
25
33
|
INFRA_CONFIG_PROFILE: string;
|
|
34
|
+
TELEMETRY_EVENT: string;
|
|
35
|
+
SERVER_INFO_API: string;
|
|
36
|
+
ATTRIBUTES_USER: string;
|
|
37
|
+
UPDATE: string;
|
|
26
38
|
};
|
|
27
39
|
export declare enum KEY_VALUE {
|
|
28
40
|
KEY = "key",
|
|
@@ -102,3 +114,24 @@ export declare enum ReactSelectInputAction {
|
|
|
102
114
|
removeValue = "remove-value"
|
|
103
115
|
}
|
|
104
116
|
export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
|
|
117
|
+
export declare enum SERVER_MODE {
|
|
118
|
+
EA_ONLY = "EA_ONLY",
|
|
119
|
+
FULL = "FULL"
|
|
120
|
+
}
|
|
121
|
+
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
122
|
+
export declare const POSTHOG_EVENT_ONBOARDING: {
|
|
123
|
+
PREVIEW: string;
|
|
124
|
+
DEPLOY_CUSTOM_APP_CI_CD: string;
|
|
125
|
+
INSTALL_CUSTOM_CI_CD: string;
|
|
126
|
+
VIEW_APPLICATION: string;
|
|
127
|
+
BROWSE_HELM_CHART: string;
|
|
128
|
+
CONNECT_CLUSTER: string;
|
|
129
|
+
CONNECT_CHART_REPOSITORY: string;
|
|
130
|
+
TOOLTIP_OKAY: string;
|
|
131
|
+
TOOLTIP_DONT_SHOW_AGAIN: string;
|
|
132
|
+
HELP: string;
|
|
133
|
+
SKIP_AND_EXPLORE_DEVTRON: string;
|
|
134
|
+
};
|
|
135
|
+
export declare const MAX_LOGIN_COUNT = 5;
|
|
136
|
+
export declare const BULK_EDIT_HEADER = "Bulk Edit";
|
|
137
|
+
export declare const LOGIN_COUNT = "login-count";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AnnouncementBanner } from './AnnouncementBanner';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
export interface ButtonProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
rootClassName: string;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
onClick?: (event: any) => void;
|
|
7
|
+
dataTestId?: string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
type?: 'submit' | 'reset' | 'button';
|
|
10
|
+
}
|
|
11
|
+
export declare class ButtonWithLoader extends Component<ButtonProps> {
|
|
12
|
+
constructor(props: any);
|
|
13
|
+
clickHandler(event: any): void;
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ButtonWithLoader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EditableTextArea } from './EditableTextArea';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface ValidationRule<T> {
|
|
2
|
+
/**
|
|
3
|
+
* Value against which the input should be validated
|
|
4
|
+
*/
|
|
5
|
+
value: T;
|
|
6
|
+
/**
|
|
7
|
+
* Validation message when the validation fails
|
|
8
|
+
*/
|
|
9
|
+
message: string;
|
|
10
|
+
}
|
|
11
|
+
export interface EditableTextAreaProps {
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
rows: number;
|
|
14
|
+
updateContent: (value: string) => Promise<void>;
|
|
15
|
+
initialText?: string;
|
|
16
|
+
validations?: {
|
|
17
|
+
maxLength?: ValidationRule<number>;
|
|
18
|
+
};
|
|
19
|
+
emptyState: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Error {
|
|
22
|
+
isValid: boolean;
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ResponseType } from '../../../Common';
|
|
2
|
+
export interface LoginCount {
|
|
3
|
+
emailId: string;
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LoginCountType extends ResponseType {
|
|
8
|
+
result?: LoginCount;
|
|
9
|
+
}
|
|
10
|
+
export interface GettingStartedType {
|
|
11
|
+
className: string;
|
|
12
|
+
showHelpCard: boolean;
|
|
13
|
+
hideGettingStartedCard: (count?: string) => void;
|
|
14
|
+
loginCount: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const AppListConstants: {
|
|
2
|
+
SAMPLE_NODE_REPO_URL: string;
|
|
3
|
+
CREATE_DEVTRON_APP_URL: string;
|
|
4
|
+
AppTabs: {
|
|
5
|
+
DEVTRON_APPS: string;
|
|
6
|
+
HELM_APPS: string;
|
|
7
|
+
ARGO_APPS: string;
|
|
8
|
+
};
|
|
9
|
+
AppType: {
|
|
10
|
+
DEVTRON_APPS: string;
|
|
11
|
+
HELM_APPS: string;
|
|
12
|
+
ARGO_APPS: string;
|
|
13
|
+
};
|
|
14
|
+
FilterType: {
|
|
15
|
+
PROJECT: string;
|
|
16
|
+
CLUTSER: string;
|
|
17
|
+
NAMESPACE: string;
|
|
18
|
+
ENVIRONMENT: string;
|
|
19
|
+
APP_STATUS: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default AppListConstants;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HeaderWithCreateButon';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PageHeaderType } from './types';
|
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, isTippyShown, tippyRedirectLink, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, TippyIcon, tippyMessage, onClickTippybutton, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, }: PageHeaderType) => JSX.Element;
|
|
3
|
+
export default PageHeader;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ResponseType } from '../../../Common';
|
|
2
|
+
import { ServerInfoResponse } from './types';
|
|
3
|
+
export declare const updatePostHogEvent: (payload: any) => Promise<ResponseType>;
|
|
4
|
+
export declare const getServerInfo: (withoutStatus: boolean, isFormHeader: boolean) => Promise<ServerInfoResponse>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ResponseType } from '../../../Common';
|
|
3
|
+
export declare enum InstallationType {
|
|
4
|
+
OSS_KUBECTL = "oss_kubectl",
|
|
5
|
+
OSS_HELM = "oss_helm",
|
|
6
|
+
ENTERPRISE = "enterprise"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ModuleStatus {
|
|
9
|
+
HEALTHY = "healthy",
|
|
10
|
+
NONE = "none",
|
|
11
|
+
UNKNOWN = "unknown",
|
|
12
|
+
UPGRADING = "upgrading",
|
|
13
|
+
UPGRADE_FAILED = "upgradeFailed",
|
|
14
|
+
INSTALLED = "installed",
|
|
15
|
+
INSTALLING = "installing",
|
|
16
|
+
INSTALL_FAILED = "installFailed",
|
|
17
|
+
NOT_INSTALLED = "notInstalled",
|
|
18
|
+
TIMEOUT = "timeout"
|
|
19
|
+
}
|
|
20
|
+
export interface PageHeaderType {
|
|
21
|
+
headerName?: string;
|
|
22
|
+
additionalHeaderInfo?: () => JSX.Element;
|
|
23
|
+
isTippyShown?: boolean;
|
|
24
|
+
tippyRedirectLink?: string;
|
|
25
|
+
showTabs?: boolean;
|
|
26
|
+
renderHeaderTabs?: () => JSX.Element;
|
|
27
|
+
isBreadcrumbs?: boolean;
|
|
28
|
+
breadCrumbs?: () => JSX.Element;
|
|
29
|
+
TippyIcon?: React.FunctionComponent<any>;
|
|
30
|
+
tippyMessage?: string;
|
|
31
|
+
onClickTippybutton?: () => void;
|
|
32
|
+
renderActionButtons?: () => JSX.Element;
|
|
33
|
+
showCloseButton?: boolean;
|
|
34
|
+
onClose?: () => void;
|
|
35
|
+
markAsBeta?: boolean;
|
|
36
|
+
showAnnouncementHeader?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ServerInfo {
|
|
39
|
+
currentVersion: string;
|
|
40
|
+
status: ModuleStatus;
|
|
41
|
+
releaseName: string;
|
|
42
|
+
installationType: InstallationType;
|
|
43
|
+
}
|
|
44
|
+
export interface ServerInfoResponse extends ResponseType {
|
|
45
|
+
result?: ServerInfo;
|
|
46
|
+
}
|
|
47
|
+
export interface HelpNavType {
|
|
48
|
+
className: string;
|
|
49
|
+
setShowHelpCard: React.Dispatch<React.SetStateAction<boolean>>;
|
|
50
|
+
serverInfo: ServerInfo;
|
|
51
|
+
fetchingServerInfo: boolean;
|
|
52
|
+
setGettingStartedClicked: (isClicked: boolean) => void;
|
|
53
|
+
showHelpCard: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface HelpOptionType {
|
|
56
|
+
name: string;
|
|
57
|
+
link: string;
|
|
58
|
+
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
59
|
+
showSeparator?: boolean;
|
|
60
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface LogoutCardType {
|
|
3
|
+
className: string;
|
|
4
|
+
userFirstLetter: string;
|
|
5
|
+
setShowLogOutCard: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
+
showLogOutCard: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const LogoutCard: ({ className, userFirstLetter, setShowLogOutCard, showLogOutCard }: LogoutCardType) => JSX.Element;
|
|
9
|
+
export default LogoutCard;
|
|
@@ -4,3 +4,7 @@ export * from './BulkSelection';
|
|
|
4
4
|
export * from './FilterChips';
|
|
5
5
|
export * from './GenericSectionErrorState';
|
|
6
6
|
export * from './KeyValueList';
|
|
7
|
+
export * from './EditableTextArea';
|
|
8
|
+
export * from './Header';
|
|
9
|
+
export * from './AnnouncementBanner';
|
|
10
|
+
export * from './ButtonWithLoader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MainContextProvider';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MutableRefObject, ReactNode } from 'react';
|
|
2
|
+
import { ServerInfo } from '../Components/Header/types';
|
|
3
|
+
import { SERVER_MODE } from '../../Common';
|
|
4
|
+
export interface MainContext {
|
|
5
|
+
serverMode: SERVER_MODE;
|
|
6
|
+
setServerMode: (serverMode: SERVER_MODE) => void;
|
|
7
|
+
isHelpGettingStartedClicked: boolean;
|
|
8
|
+
setPageOverflowEnabled: (isPageOverflowEnabled: boolean) => void;
|
|
9
|
+
showCloseButtonAfterGettingStartedClicked: () => void;
|
|
10
|
+
loginCount: number;
|
|
11
|
+
setLoginCount: (loginCount: number) => void;
|
|
12
|
+
showGettingStartedCard: boolean;
|
|
13
|
+
setShowGettingStartedCard: (showGettingStartedCard: boolean) => void;
|
|
14
|
+
isGettingStartedClicked: boolean;
|
|
15
|
+
setGettingStartedClicked: (isGettingStartedClicked: boolean) => void;
|
|
16
|
+
moduleInInstallingState: string;
|
|
17
|
+
setModuleInInstallingState: (moduleInInstallingState: string) => void;
|
|
18
|
+
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
|
19
|
+
currentServerInfo: {
|
|
20
|
+
serverInfo: ServerInfo;
|
|
21
|
+
fetchingServerInfo: boolean;
|
|
22
|
+
};
|
|
23
|
+
isAirgapped: boolean;
|
|
24
|
+
isSuperAdmin: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface MainContextProviderProps {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
value: MainContext;
|
|
29
|
+
}
|
package/dist/Shared/index.d.ts
CHANGED
package/dist/assets/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.empty-state{height:100%}.empty-state img{height:40%;max-height:200px;width:auto;max-width:250px}.empty-state svg{height:40%;max-height:200px;width:auto}.empty-state h1,.empty-state h2,.empty-state h3,.empty-state h4,.empty-state h5,.empty-state h6{color:var(--N900)}.empty-state .subtitle{font-size:13px;font-weight:400;text-align:center;line-height:1.5;margin-bottom:6px}.empty-state .subtitle--text-start{text-align:start}.empty-state .cta{height:36px}.empty-state p{text-align:center;font-size:13px;color:var(--N700)}.empty-state strong{font-size:16px;margin-bottom:4px;color:var(--N900);font-weight:400}.empty-state .select-popup{height:min-content;max-height:250px;overflow:auto;padding:8px 0}.empty-state .empty-state__loader{width:34px;height:34px;margin-bottom:16px}.empty-state .empty-state__loading-text{font-size:12px;width:200px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:var(--N900)}.empty-state .button__icon{width:16px;height:16px;margin-left:8px}.drawer{position:absolute;overflow:hidden}.drawer.left,.drawer.right{top:0;bottom:0;width:0;transition:width .2s}.drawer.left.show,.drawer.right.show{min-width:var(--minWidth);width:var(--width);max-width:var(--maxWidth)}.drawer.top,.drawer.bottom{left:0;right:0;height:0;transition:height .2s}.drawer.top.show,.drawer.bottom.show{height:var(--height)}.drawer.right{right:0}.drawer.left{left:0}.drawer.top{top:0}.drawer.bottom{bottom:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=top][data-state=hidden]{transform:translateY(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=bottom][data-state=hidden]{transform:translateY(5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=left][data-state=hidden]{transform:translate(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=right][data-state=hidden]{transform:translate(5px)}.info-bar-container .info_text .success{background-color:var(--G100)}.info-bar-container .warn{background:var(--Y100);border:solid var(--Y200)}.info-bar-container .warn .warning-icon path:nth-child(2){fill:var(--Y700)}.info-bar-container .info_bar{background-color:var(--B100);border:1px solid var(--B200)}.info-bar-container .error_bar{background-color:var(--R100);border:1px solid var(--R200)}.info-bar-container .question-bar{background-color:var(--V100);border:1px solid var(--V200)}.search-bar:focus,.search-bar:focus-within{outline:none;border:solid 1px var(--B500)!important}.search-bar__input:focus,.search-bar__input:focus-visible{border:none;outline:none}.search-bar__icon{z-index:1;top:50%;left:8px;transform:translateY(-50%)}.search-bar__clear-button{right:0;top:50%;transform:translateY(-50%);z-index:1}.toggle__switch{position:relative;display:inline-block;width:100%;height:100%}.toggle__switch.disabled,.toggle__switch.disabled .toggle__slider{cursor:not-allowed}.toggle__switch input{opacity:0;width:0;height:0}.toggle__slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:all .4s ease}.toggle__slider.round{border-radius:34px}.toggle__slider.round:before{border-radius:50%}.toggle__slider:before{position:absolute;content:"";height:calc(100% - 8px);width:calc(50% - 4px);left:4px;bottom:4px;background-color:#fff;transition:all .4s ease}.toggle__slider.with-icon{background-color:var(--N000)!important}.toggle__slider.with-icon svg{position:absolute;content:"";top:-1px;left:-1px;background-color:var(--N300);transition:all .4s ease}input:checked+.toggle__slider{background-color:var(--color)}input:checked+.toggle__slider:before{transform:translate(100%)}input:checked+.toggle__slider.with-icon svg{transform:translate(100%);background-color:var(--color)}input:focus+.toggle__slider{box-shadow:0 0 1px var(--color)}.modal-body--scan-details{position:fixed;top:0;right:0;background:var(--N000);width:800px}.security-tab__table{width:100%}.security-tab__table-header{border-bottom:solid 1px var(--N200)}.security-cell-header{font-size:12px;font-weight:600;line-height:1.5;letter-spacing:normal;text-transform:uppercase;color:var(--N500)}.dc__security-tab__table-row{font-size:13px;font-weight:400;line-height:1.54;letter-spacing:normal;color:var(--N900);box-shadow:inset 0 -1px #f5f5f5}.security-tab__cell-cve,.security-tab__cell-severity,.security-tab__cell-package,.security-tab__cell-current-ver,.security-tab__cell-fixed-ver,.security-tab__cell-policy{padding:10px;max-width:120px;word-wrap:break-word}.security-tab__cell-cve{padding-left:0;text-align:left;width:20%}.security-tab__cell-policy{padding-right:0}.security-tab__cell-policy--whitelist,.security-tab__cell-policy--whitelisted{color:var(--G500);text-transform:capitalize}.security-tab__cell-policy--block{color:var(--R500);text-transform:capitalize}.scanned-object__results{margin:0 20px}.radio-group{height:30px;background:white;display:flex;justify-content:center;align-items:center;padding:4px;border-radius:4px}.radio-group .label,.radio-group .radio,.radio-group .checkbox{margin:0}.radio-group .radio{height:100%;width:auto;color:var(--N400);display:flex;align-items:center}.radio-group .radio+.radio{margin-top:0}.radio-group input[type=checkbox]{display:contents;overflow:hidden;max-width:0px;height:0;opacity:0;margin:unset}.radio-group input+.radio__item-label{padding:4px 6px;height:100%;width:100%;display:flex;align-items:center;transition:all .5s;cursor:pointer}.radio-group input[type=checkbox]:checked+.radio__item-label{background:#2c3354;color:#fff;border-radius:4px}.select-button__arrow{position:absolute;right:5px}.select-button{border-radius:4px;justify-content:space-between}.select-button.default{height:40px;padding:12px 10px;background-color:#fff}.select-button:disabled{background-color:var(--N100)}.select-button--default{padding:8px 8px 8px 10px;width:100%;font-weight:500;background-color:var(--N000)}.select__label-container{display:inline-block;margin-left:auto}.select__options-container{max-height:220px;overflow:auto;color:var(--N900)}.select__option-with-subtitle{padding:9px 12px;margin-top:2px;display:flex;cursor:pointer;align-items:center}.select__option-with-subtitle--empty-state{color:var(--N500)}.select-popup{max-height:220px;overflow:auto;padding:4px 0;border-radius:4px;border:1px solid var(--N100)}.select__option{padding:10px 12px;line-height:1.5;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;background-color:var(--N000)}.select__option.selected{color:var(--B500);background-color:var(--B100)}.select-button__selected-option{display:inline-block;white-space:nowrap;text-align:left}.select__check-icon{width:16px;height:16px;margin-right:12px}.option-with-subtitle__subtitle{font-size:10px;font-weight:400;font-stretch:normal;line-height:1.33;letter-spacing:normal;color:#404040}.option-group__label{padding:8px 16px;font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:var(--N400);text-transform:uppercase}.select__sticky-bottom{position:sticky;bottom:-8px;margin-bottom:-8px;box-shadow:0 -1px 0 0 var(--N200);background-color:inherit;padding:11px 12px;width:100%;display:flex;align-items:center;cursor:pointer;color:var(--B500);font-size:13px}.select__sticky-bottom svg path{fill:var(--B500)}.select__all{height:36px;padding:4px 12px 4px 40px;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;background-color:#f5f5f5}.popup-button:disabled .select-button{background-color:var(--N100)}.select__option-with-subtitle:hover,.select__option:hover{background-color:var(--window-bg)}.select__option-with-subtitle--empty-state:hover{background-color:unset}.rjsf-form-template__field{grid-template-columns:250px 1fr}.rjsf-form-template__additional-fields{grid-template-columns:1fr 1fr minmax(20px,auto)}.rjsf-form-template__array-field-item{grid-template-columns:1fr auto}.rjsf-form-template__array-field-item>:first-child{margin:0}.pagination-wrapper{display:flex;align-items:center;padding:0 24px;justify-content:space-between;margin:0;background-color:var(--white)}.pagination{margin-top:16px;margin-bottom:16px;padding:0}.select{display:flex;align-items:center;position:relative}.select__placeholder{font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.5;letter-spacing:normal;color:var(--N700);margin-right:8px}.pagination__select-menu{padding:0;list-style:none;overflow:hidden;border:solid 1px var(--N200);border-radius:4px;width:64px;position:absolute;bottom:31px;background-color:var(--white)}.select__button{width:64px;background-color:transparent;border-radius:4px;border:solid 1px var(--N200);padding:5px 10px;text-align:left}.select__item{padding:5px 10px;cursor:pointer}.select__icon{margin-left:18px}.page{margin:0 8px;display:inline-block}.page-number{font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.5;letter-spacing:normal;color:var(--N700)}.page__button{width:24px;height:24px;border-radius:8px;color:var(--B500);background-color:var(--white);padding:0;user-select:none}.page__button--icon{background-color:var(--white);color:var(--B500)}.page__button--selected{color:var(--white);background-color:var(--B500)}.page__button:disabled{opacity:.5}.select__item:hover{background-color:var(--N50)}.page__button:hover~:disabled{background-color:var(--B100)}.page__button--selected:hover{color:var(--white);background-color:var(--B500)}@media (min-width: 1024px){.pagination{margin:16px auto}}.user-role-groups__table-row{grid-template-rows:36px}.user-role-groups__table-header,.user-role-groups__table-row{grid-template-columns:20px 200px minmax(300px,1fr);column-gap:16px}.user-role-groups__table-header--with-status,.user-role-groups__table-row--with-status{grid-template-columns:20px 200px minmax(300px,1fr) 185px}.user-role-groups__table-header--with-delete,.user-role-groups__table-row--with-delete{grid-template-columns:20px 200px minmax(300px,1fr) 24px}.user-role-groups__table-header--with-status-and-delete,.user-role-groups__table-row--with-status-and-delete{grid-template-columns:20px 200px minmax(300px,1fr) 185px 24px}
|
|
1
|
+
.empty-state{height:100%}.empty-state img{height:40%;max-height:200px;width:auto;max-width:250px}.empty-state svg{height:40%;max-height:200px;width:auto}.empty-state h1,.empty-state h2,.empty-state h3,.empty-state h4,.empty-state h5,.empty-state h6{color:var(--N900)}.empty-state .subtitle{font-size:13px;font-weight:400;text-align:center;line-height:1.5;margin-bottom:6px}.empty-state .subtitle--text-start{text-align:start}.empty-state .cta{height:36px}.empty-state p{text-align:center;font-size:13px;color:var(--N700)}.empty-state strong{font-size:16px;margin-bottom:4px;color:var(--N900);font-weight:400}.empty-state .select-popup{height:min-content;max-height:250px;overflow:auto;padding:8px 0}.empty-state .empty-state__loader{width:34px;height:34px;margin-bottom:16px}.empty-state .empty-state__loading-text{font-size:12px;width:200px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:var(--N900)}.empty-state .button__icon{width:16px;height:16px;margin-left:8px}.drawer{position:absolute;overflow:hidden}.drawer.left,.drawer.right{top:0;bottom:0;width:0;transition:width .2s}.drawer.left.show,.drawer.right.show{min-width:var(--minWidth);width:var(--width);max-width:var(--maxWidth)}.drawer.top,.drawer.bottom{left:0;right:0;height:0;transition:height .2s}.drawer.top.show,.drawer.bottom.show{height:var(--height)}.drawer.right{right:0}.drawer.left{left:0}.drawer.top{top:0}.drawer.bottom{bottom:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=top][data-state=hidden]{transform:translateY(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=bottom][data-state=hidden]{transform:translateY(5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=left][data-state=hidden]{transform:translate(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=right][data-state=hidden]{transform:translate(5px)}.info-bar-container .info_text .success{background-color:var(--G100)}.info-bar-container .warn{background:var(--Y100);border:solid var(--Y200)}.info-bar-container .warn .warning-icon path:nth-child(2){fill:var(--Y700)}.info-bar-container .info_bar{background-color:var(--B100);border:1px solid var(--B200)}.info-bar-container .error_bar{background-color:var(--R100);border:1px solid var(--R200)}.info-bar-container .question-bar{background-color:var(--V100);border:1px solid var(--V200)}.search-bar:focus,.search-bar:focus-within{outline:none;border:solid 1px var(--B500)!important}.search-bar__input:focus,.search-bar__input:focus-visible{border:none;outline:none}.search-bar__icon{z-index:1;top:50%;left:8px;transform:translateY(-50%)}.search-bar__clear-button{right:0;top:50%;transform:translateY(-50%);z-index:1}.toggle__switch{position:relative;display:inline-block;width:100%;height:100%}.toggle__switch.disabled,.toggle__switch.disabled .toggle__slider{cursor:not-allowed}.toggle__switch input{opacity:0;width:0;height:0}.toggle__slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:all .4s ease}.toggle__slider.round{border-radius:34px}.toggle__slider.round:before{border-radius:50%}.toggle__slider:before{position:absolute;content:"";height:calc(100% - 8px);width:calc(50% - 4px);left:4px;bottom:4px;background-color:#fff;transition:all .4s ease}.toggle__slider.with-icon{background-color:var(--N000)!important}.toggle__slider.with-icon svg{position:absolute;content:"";top:-1px;left:-1px;background-color:var(--N300);transition:all .4s ease}input:checked+.toggle__slider{background-color:var(--color)}input:checked+.toggle__slider:before{transform:translate(100%)}input:checked+.toggle__slider.with-icon svg{transform:translate(100%);background-color:var(--color)}input:focus+.toggle__slider{box-shadow:0 0 1px var(--color)}.modal-body--scan-details{position:fixed;top:0;right:0;background:var(--N000);width:800px}.security-tab__table{width:100%}.security-tab__table-header{border-bottom:solid 1px var(--N200)}.security-cell-header{font-size:12px;font-weight:600;line-height:1.5;letter-spacing:normal;text-transform:uppercase;color:var(--N500)}.dc__security-tab__table-row{font-size:13px;font-weight:400;line-height:1.54;letter-spacing:normal;color:var(--N900);box-shadow:inset 0 -1px #f5f5f5}.security-tab__cell-cve,.security-tab__cell-severity,.security-tab__cell-package,.security-tab__cell-current-ver,.security-tab__cell-fixed-ver,.security-tab__cell-policy{padding:10px;max-width:120px;word-wrap:break-word}.security-tab__cell-cve{padding-left:0;text-align:left;width:20%}.security-tab__cell-policy{padding-right:0}.security-tab__cell-policy--whitelist,.security-tab__cell-policy--whitelisted{color:var(--G500);text-transform:capitalize}.security-tab__cell-policy--block{color:var(--R500);text-transform:capitalize}.scanned-object__results{margin:0 20px}.radio-group{height:30px;background:white;display:flex;justify-content:center;align-items:center;padding:4px;border-radius:4px}.radio-group .label,.radio-group .radio,.radio-group .checkbox{margin:0}.radio-group .radio{height:100%;width:auto;color:var(--N400);display:flex;align-items:center}.radio-group .radio+.radio{margin-top:0}.radio-group input[type=checkbox]{display:contents;overflow:hidden;max-width:0px;height:0;opacity:0;margin:unset}.radio-group input+.radio__item-label{padding:4px 6px;height:100%;width:100%;display:flex;align-items:center;transition:all .5s;cursor:pointer}.radio-group input[type=checkbox]:checked+.radio__item-label{background:#2c3354;color:#fff;border-radius:4px}.select-button__arrow{position:absolute;right:5px}.select-button{border-radius:4px;justify-content:space-between}.select-button.default{height:40px;padding:12px 10px;background-color:#fff}.select-button:disabled{background-color:var(--N100)}.select-button--default{padding:8px 8px 8px 10px;width:100%;font-weight:500;background-color:var(--N000)}.select__label-container{display:inline-block;margin-left:auto}.select__options-container{max-height:220px;overflow:auto;color:var(--N900)}.select__option-with-subtitle{padding:9px 12px;margin-top:2px;display:flex;cursor:pointer;align-items:center}.select__option-with-subtitle--empty-state{color:var(--N500)}.select-popup{max-height:220px;overflow:auto;padding:4px 0;border-radius:4px;border:1px solid var(--N100)}.select__option{padding:10px 12px;line-height:1.5;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;background-color:var(--N000)}.select__option.selected{color:var(--B500);background-color:var(--B100)}.select-button__selected-option{display:inline-block;white-space:nowrap;text-align:left}.select__check-icon{width:16px;height:16px;margin-right:12px}.option-with-subtitle__subtitle{font-size:10px;font-weight:400;font-stretch:normal;line-height:1.33;letter-spacing:normal;color:#404040}.option-group__label{padding:8px 16px;font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:var(--N400);text-transform:uppercase}.select__sticky-bottom{position:sticky;bottom:-8px;margin-bottom:-8px;box-shadow:0 -1px 0 0 var(--N200);background-color:inherit;padding:11px 12px;width:100%;display:flex;align-items:center;cursor:pointer;color:var(--B500);font-size:13px}.select__sticky-bottom svg path{fill:var(--B500)}.select__all{height:36px;padding:4px 12px 4px 40px;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;background-color:#f5f5f5}.popup-button:disabled .select-button{background-color:var(--N100)}.select__option-with-subtitle:hover,.select__option:hover{background-color:var(--window-bg)}.select__option-with-subtitle--empty-state:hover{background-color:unset}.rjsf-form-template__field{grid-template-columns:250px 1fr}.rjsf-form-template__additional-fields{grid-template-columns:1fr 1fr minmax(20px,auto)}.rjsf-form-template__array-field-item{grid-template-columns:1fr auto}.rjsf-form-template__array-field-item>:first-child{margin:0}.pagination-wrapper{display:flex;align-items:center;padding:0 24px;justify-content:space-between;margin:0;background-color:var(--white)}.pagination{margin-top:16px;margin-bottom:16px;padding:0}.select{display:flex;align-items:center;position:relative}.select__placeholder{font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.5;letter-spacing:normal;color:var(--N700);margin-right:8px}.pagination__select-menu{padding:0;list-style:none;overflow:hidden;border:solid 1px var(--N200);border-radius:4px;width:64px;position:absolute;bottom:31px;background-color:var(--white)}.select__button{width:64px;background-color:transparent;border-radius:4px;border:solid 1px var(--N200);padding:5px 10px;text-align:left}.select__item{padding:5px 10px;cursor:pointer}.select__icon{margin-left:18px}.page{margin:0 8px;display:inline-block}.page-number{font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.5;letter-spacing:normal;color:var(--N700)}.page__button{width:24px;height:24px;border-radius:8px;color:var(--B500);background-color:var(--white);padding:0;user-select:none}.page__button--icon{background-color:var(--white);color:var(--B500)}.page__button--selected{color:var(--white);background-color:var(--B500)}.page__button:disabled{opacity:.5}.select__item:hover{background-color:var(--N50)}.page__button:hover~:disabled{background-color:var(--B100)}.page__button--selected:hover{color:var(--white);background-color:var(--B500)}@media (min-width: 1024px){.pagination{margin:16px auto}}.help-card__more-option{top:42px;right:56px}.help-card__more-option.k8s-client-view{right:20px;grid-template-rows:36px 1px 36px 1px 36px 1px 36px auto}.logout-card__more-option{top:42px;right:20px}.getting-started-card{background-color:var(--tippy-card-black-bg);position:fixed;z-index:6;right:20px;top:54px}.arrow-up{width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid var(--tippy-card-black-bg);right:64px;position:fixed;top:42px}.getting_tippy__position{position:fixed}.create-modal-wrapper{position:fixed;right:24px;top:50px;overflow:hidden}.create-modal-wrapper .create-modal-child{padding:10px 15px;display:flex}.create-modal-wrapper .create-modal-child:first-child{border-bottom:1px solid var(--N100)}.create-modal-wrapper .create-modal-child:hover{background-color:var(--N100)}.user-role-groups__table-row{grid-template-rows:36px}.user-role-groups__table-header,.user-role-groups__table-row{grid-template-columns:20px 200px minmax(300px,1fr);column-gap:16px}.user-role-groups__table-header--with-status,.user-role-groups__table-row--with-status{grid-template-columns:20px 200px minmax(300px,1fr) 185px}.user-role-groups__table-header--with-delete,.user-role-groups__table-row--with-delete{grid-template-columns:20px 200px minmax(300px,1fr) 24px}.user-role-groups__table-header--with-status-and-delete,.user-role-groups__table-row--with-status-and-delete{grid-template-columns:20px 200px minmax(300px,1fr) 185px 24px}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,59 @@
|
|
|
1
|
+
interface customEnv {
|
|
2
|
+
SENTRY_ENV?: string;
|
|
3
|
+
SENTRY_ERROR_ENABLED?: boolean;
|
|
4
|
+
SENTRY_PERFORMANCE_ENABLED?: boolean;
|
|
5
|
+
SENTRY_DSN?: string;
|
|
6
|
+
SENTRY_TRACES_SAMPLE_RATE?: number;
|
|
7
|
+
HOTJAR_ENABLED?: boolean;
|
|
8
|
+
CLUSTER_NAME?: boolean;
|
|
9
|
+
APPLICATION_METRICS_ENABLED?: boolean;
|
|
10
|
+
GA_ENABLED?: boolean;
|
|
11
|
+
GA_TRACKING_ID?: string;
|
|
12
|
+
GTM_ENABLED?: boolean;
|
|
13
|
+
GTM_ID?: string;
|
|
14
|
+
RECOMMEND_SECURITY_SCANNING?: boolean;
|
|
15
|
+
FORCE_SECURITY_SCANNING?: boolean;
|
|
16
|
+
ENABLE_CI_JOB?: boolean;
|
|
17
|
+
HIDE_DISCORD?: boolean;
|
|
18
|
+
POSTHOG_ENABLED?: boolean;
|
|
19
|
+
POSTHOG_TOKEN?: string;
|
|
20
|
+
DEVTRON_APP_DETAILS_POLLING_INTERVAL?: number;
|
|
21
|
+
HELM_APP_DETAILS_POLLING_INTERVAL?: number;
|
|
22
|
+
EA_APP_DETAILS_POLLING_INTERVAL?: number;
|
|
23
|
+
CENTRAL_API_ENDPOINT?: string;
|
|
24
|
+
HIDE_DEPLOYMENT_GROUPS?: boolean;
|
|
25
|
+
HIDE_GITOPS_OR_HELM_OPTION?: boolean;
|
|
26
|
+
CONFIGURABLE_TIMEOUT?: string;
|
|
27
|
+
HIDE_APPLICATION_GROUPS?: boolean;
|
|
28
|
+
K8S_CLIENT?: boolean;
|
|
29
|
+
CLUSTER_TERMINAL_CONNECTION_POLLING_INTERVAL?: number;
|
|
30
|
+
CLUSTER_TERMINAL_CONNECTION_RETRY_COUNT?: number;
|
|
31
|
+
ENABLE_CHART_SEARCH_IN_HELM_DEPLOY?: boolean;
|
|
32
|
+
HIDE_EXCLUDE_INCLUDE_GIT_COMMITS?: boolean;
|
|
33
|
+
ENABLE_BUILD_CONTEXT?: boolean;
|
|
34
|
+
CLAIR_TOOL_VERSION?: string;
|
|
35
|
+
ENABLE_RESTART_WORKLOAD?: boolean;
|
|
36
|
+
ENABLE_SCOPED_VARIABLES?: boolean;
|
|
37
|
+
DEFAULT_CI_TRIGGER_TYPE_MANUAL: boolean;
|
|
38
|
+
ANNOUNCEMENT_BANNER_MSG?: string;
|
|
39
|
+
LOGIN_PAGE_IMAGE?: string;
|
|
40
|
+
LOGIN_PAGE_IMAGE_BG?: string;
|
|
41
|
+
HIDE_DEFAULT_CLUSTER?: boolean;
|
|
42
|
+
GLOBAL_API_TIMEOUT?: number;
|
|
43
|
+
TRIGGER_API_TIMEOUT?: number;
|
|
44
|
+
NODE_REACT_APP_GIT_SHA?: string;
|
|
45
|
+
REACT_APP_GIT_SHA?: string;
|
|
46
|
+
NODE_ENV?: string;
|
|
47
|
+
LOGIN_DT_LOGO?: string;
|
|
48
|
+
SIDEBAR_DT_LOGO?: string;
|
|
49
|
+
ENABLE_EXTERNAL_ARGO_CD: boolean;
|
|
50
|
+
API_BATCH_SIZE: number;
|
|
51
|
+
}
|
|
1
52
|
declare global {
|
|
2
53
|
interface Window {
|
|
3
54
|
__BASE_URL__: string;
|
|
4
55
|
__ORCHESTRATOR_ROOT__: string;
|
|
56
|
+
_env_: customEnv;
|
|
5
57
|
}
|
|
6
58
|
}
|
|
7
59
|
export * from './Common';
|