Skip to content

Commit 9a36f12

Browse files
committed
chore: move app list constants to common constants
1 parent aa7eb0f commit 9a36f12

File tree

4 files changed

+26
-40
lines changed

4 files changed

+26
-40
lines changed

src/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { ReactComponent as DropDown } from '../../../../Assets/Icon/ic-dropdown-
2222
import { ReactComponent as ChartIcon } from '../../../../Assets/Icon/ic-charts.svg'
2323
import { ReactComponent as AddIcon } from '../../../../Assets/Icon/ic-add.svg'
2424
import { ReactComponent as JobIcon } from '../../../../Assets/Icon/ic-k8s-job.svg'
25-
import AppListConstants from './constants'
25+
import { AppListConstants } from '../../../constants'
2626
import './HeaderWithCreateButton.scss'
2727
import { useMainContext } from '../../../Providers'
2828

src/Shared/Components/Header/HeaderWithCreateButton/constants.ts

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/Shared/constants.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,3 +398,27 @@ export const APP_STATUS_HEADERS = ['KIND', 'NAME', 'STATUS', 'MESSAGE']
398398

399399
export const MATERIAL_EXCLUDE_TIPPY_TEXT =
400400
'Not available for build as this commit contains changes in excluded files or folders'
401+
402+
export const AppListConstants = {
403+
SAMPLE_NODE_REPO_URL: 'https://github.com/devtron-labs/getting-started-nodejs',
404+
CREATE_DEVTRON_APP_URL: 'create-d-app',
405+
AppTabs: {
406+
DEVTRON_APPS: 'Devtron Apps',
407+
HELM_APPS: 'Helm Apps',
408+
ARGO_APPS: 'ArgoCD Apps',
409+
FLUX_APPS: 'FluxCD Apps',
410+
},
411+
AppType: {
412+
DEVTRON_APPS: 'd',
413+
HELM_APPS: 'h',
414+
ARGO_APPS: 'a',
415+
FLUX_APPS: 'f',
416+
},
417+
FilterType: {
418+
PROJECT: 'team',
419+
CLUTSER: 'cluster',
420+
NAMESPACE: 'namespace',
421+
ENVIRONMENT: 'environment',
422+
APP_STATUS: 'appStatus',
423+
},
424+
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export interface customEnv {
7272
ENABLE_GITOPS_BITBUCKET_SOURCE: boolean
7373
HIDE_RESOURCE_WATCHER?: boolean
7474
ORGANIZATION_NAME: string
75+
ENABLE_EXTERNAL_FLUX_CD: boolean
7576
}
7677
declare global {
7778
interface Window {

0 commit comments

Comments
 (0)