10 | )
11 |
12 | export default MaterialListSkeleton
13 |
--------------------------------------------------------------------------------
/src/setupTests.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
--------------------------------------------------------------------------------
/src/components/Jobs/JobList/constants.ts:
--------------------------------------------------------------------------------
1 | import { ExportToCsvProps } from '@devtron-labs/devtron-fe-common-lib'
2 |
3 | import { ExportJobDataType } from './types'
4 |
5 | export const JOB_LIST_EXPORT_HEADERS: ExportToCsvProps['headers'] = [
6 | { label: 'Job Name', key: 'jobName' },
7 | { label: 'Job ID', key: 'jobId' },
8 | { label: 'Description', key: 'description' },
9 | { label: 'Job Pipeline ID', key: 'ciPipelineId' },
10 | { label: 'Job Pipeline Name', key: 'ciPipelineName' },
11 | { label: 'Last Run Status', key: 'status' },
12 | { label: 'Last Run At', key: 'lastRunAt' },
13 | { label: 'Last Success At', key: 'lastSuccessAt' },
14 | ]
15 |
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 | name: Dashboard CI
2 |
3 | on:
4 | pull_request:
5 | types:
6 | - opened
7 | - synchronize
8 | - edited
9 | - reopened
10 | - ready_for_review
11 |
12 | jobs:
13 | ci:
14 | if: ${{ !github.event.pull_request.draft }}
15 |
16 | runs-on: ubuntu-latest
17 | steps:
18 | - name: Checkout repository
19 | uses: actions/checkout@v4
20 |
21 | - name: Use Node.js
22 | uses: actions/setup-node@v4
23 | with:
24 | node-version-file: '.nvmrc'
25 | cache: 'yarn'
26 |
27 | - name: Install dependencies
28 | run: yarn install --immutable
29 |
30 | - name: Check linting issues
31 | run: yarn lint
32 |
--------------------------------------------------------------------------------
/src/Pages/ChartStore/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './ChartDetails'
18 |
--------------------------------------------------------------------------------
/src/Pages/Applications/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './DevtronApps'
18 |
--------------------------------------------------------------------------------
/src/Pages/Shared/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './OrganizationFrame'
18 |
--------------------------------------------------------------------------------
/src/components/common/hooks/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './useOnline'
18 |
--------------------------------------------------------------------------------
/src/Pages/App/Configurations/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './WorkflowEditor'
18 |
--------------------------------------------------------------------------------
/src/Pages/Applications/DevtronApps/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './Details'
18 |
--------------------------------------------------------------------------------
/src/Pages/Releases/Detail/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './Configurations'
18 |
--------------------------------------------------------------------------------
/src/components/common/Contexts/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './AppContext'
18 |
--------------------------------------------------------------------------------
/src/components/common/SidePanel/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './SidePanel'
18 |
--------------------------------------------------------------------------------
/src/components/workflowEditor/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './constants'
18 |
--------------------------------------------------------------------------------
/src/Pages/ChartStore/ChartDetails/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './ChartDetails'
18 |
--------------------------------------------------------------------------------
/src/Pages/Releases/Detail/Configurations/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './Configurations'
18 |
--------------------------------------------------------------------------------
/src/Pages/Applications/DevtronApps/Details/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './AppConfigurations'
18 |
--------------------------------------------------------------------------------
/src/components/common/hooks/useOnline/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { useOnline } from './useOnline'
18 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.defaultFormatter": "esbenp.prettier-vscode",
3 | "[typescript]": {
4 | "editor.defaultFormatter": "esbenp.prettier-vscode"
5 | },
6 | "[typescriptreact]": {
7 | "editor.defaultFormatter": "esbenp.prettier-vscode"
8 | },
9 | "[json]": {
10 | "editor.defaultFormatter": "esbenp.prettier-vscode"
11 | },
12 | "editor.formatOnSave": false,
13 | "editor.codeActionsOnSave": [
14 | "source.fixAll.eslint"
15 | ],
16 | "eslint.validate": [
17 | "typescript",
18 | "typescriptreact"
19 | ],
20 | "prettier.requireConfig": true,
21 | "[scss]": {
22 | "editor.defaultFormatter": "vscode.css-language-features"
23 | },
24 | }
25 |
--------------------------------------------------------------------------------
/src/Pages/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './Applications'
18 | export * from './GlobalConfigurations'
19 |
--------------------------------------------------------------------------------
/.husky/pre-commit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # Copyright (c) 2024. Devtron Inc.
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | . "$(dirname "$0")/_/husky.sh"
19 |
20 | yarn tsc --noEmit
21 | yarn lint-staged
22 |
--------------------------------------------------------------------------------
/src/Pages/Applications/DevtronApps/Details/AppConfigurations/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './MainContent'
18 |
--------------------------------------------------------------------------------
/src/components/ApplicationGroup/List/LoadingShimmer/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './LoadingShimmerList'
18 |
--------------------------------------------------------------------------------
/src/components/CIPipelineN/VariableDataTable/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './VariableDataTable.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/BuildInfra/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as BuildInfra } from './BuildInfra'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './Authorization'
18 | export * from './BuildInfra'
19 |
--------------------------------------------------------------------------------
/src/Pages/App/Configurations/WorkflowEditor/CreateCICDPipeline/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './CreateCICDPipeline'
18 |
--------------------------------------------------------------------------------
/src/Pages/App/CreateAppModal/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as CreateAppModal } from './CreateAppModal.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/Shared/LinkedCIDetailsModal/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as LinkedCIDetail } from './LinkedCIDetail'
18 |
--------------------------------------------------------------------------------
/src/config/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './constants'
18 | export * from './routes'
19 | export * from './utils'
20 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/APITokens/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './ApiTokens.component'
18 |
--------------------------------------------------------------------------------
/src/components/chartRepo/chartRepo.types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface ChartRepoType {
18 | isSuperAdmin: boolean
19 | }
20 |
--------------------------------------------------------------------------------
/src/Pages/App/Configurations/WorkflowEditor/SourceMaterialsSelector/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './SourceMaterialsSelector'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/DeploymentCharts/index.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './DeploymentChartsRouter.component'
18 |
--------------------------------------------------------------------------------
/src/components/common/hooks/useVersionUpdate/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { useVersionUpdateReload } from './useVersionUpdateReload'
18 |
--------------------------------------------------------------------------------
/src/Pages/App/CreateAppModal/Workflow/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export type { WorkflowProps } from './types'
18 | export * from './Workflow'
19 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/PermissionGroups/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './PermissionGroups.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/UserPermissions/constants.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export const LAST_LOGIN_TIME_NULL_STATE = 'Never'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/UserPermissions/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './UserPermissions.component'
18 |
--------------------------------------------------------------------------------
/src/components/chartRepo/ChartRepoType.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export enum ChartFormFields {
18 | NAME = 'name',
19 | URL = 'url',
20 | }
21 |
--------------------------------------------------------------------------------
/src/components/security/AddCVEPolicy/index.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as VulnerabilityExposure } from './VulnerabilityExposure'
18 |
--------------------------------------------------------------------------------
/src/Pages/App/Configurations/WorkflowEditor/CDPipelineDeploymentAppType/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './CDPipelineDeploymentAppType'
18 |
--------------------------------------------------------------------------------
/src/Pages/Releases/Detail/Configurations/styles.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .release-configurations {
18 | grid-template-columns: 280px 1fr;
19 | }
20 |
--------------------------------------------------------------------------------
/src/components/CIPipelineN/CreatePluginModal/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as CreatePluginModal } from './CreatePluginModal.component'
18 |
--------------------------------------------------------------------------------
/src/components/common/DynamicTabs/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as DynamicTabs } from './DynamicTabs'
18 | export * from './useTabs'
19 |
--------------------------------------------------------------------------------
/src/Pages/App/Details/ExternalFlux/index.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as ExternalFluxAppDetailsRoute } from './ExternalFluxAppDetailsRoute'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/PermissionGroups/List/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './PermissionGroupList.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/UserPermissions/List/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './UserPermissionList.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/ClustersAndEnvironments/ClusterEnvironmentDrawer/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './ClusterEnvironmentDrawer'
18 |
--------------------------------------------------------------------------------
/src/components/CIPipelineN/PluginDetailHeader/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as PluginDetailHeader } from './PluginDetailHeader.component'
18 |
--------------------------------------------------------------------------------
/src/components/ResourceBrowser/ResourceList/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import ResourceList from './ResourceList'
18 |
19 | export default ResourceList
20 |
--------------------------------------------------------------------------------
/src/components/__mocks__/xterm-webfont.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export default jest.fn().mockImplementation(() => {
18 | return Promise.resolve()
19 | })
20 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/PermissionGroups/AddEdit/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './PermissionGroupAddEdit.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/UserPermissions/AddEdit/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './UserPermissionAddEdit.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/Shared/ConfigMapSecret/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './ConfigMapSecret.wrapper'
18 | export type { CMSecretWrapperProps } from './types'
19 |
--------------------------------------------------------------------------------
/src/components/app/details/triggerView/DeployImageModal/constants.ts:
--------------------------------------------------------------------------------
1 | import { CDMaterialSidebarType } from '@devtron-labs/devtron-fe-common-lib'
2 |
3 | import { FilterConditionViews } from '../types'
4 | import { DeployViewStateType } from './types'
5 |
6 | export const INITIAL_DEPLOY_VIEW_STATE: DeployViewStateType = {
7 | searchText: '',
8 | appliedSearchText: '',
9 | filterView: FilterConditionViews.ALL,
10 | showConfiguredFilters: false,
11 | currentSidebarTab: CDMaterialSidebarType.IMAGE,
12 | runtimeParamsErrorState: {
13 | isValid: true,
14 | cellError: {},
15 | },
16 | materialInEditModeMap: new Map(),
17 | showAppliedFilters: false,
18 | appliedFilterList: [],
19 | isLoadingOlderImages: false,
20 | showSearchBar: true,
21 | }
22 |
--------------------------------------------------------------------------------
/src/components/v2/appDetails/k8Resource/nodeDetail/NodeDetailTabs/constants.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export const EVENT_TABLE_ITEM_CLASS = 'dc__word-break mono'
18 |
--------------------------------------------------------------------------------
/src/Pages/App/CreateAppModal/AppClone/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './AppCloneList'
18 | export { useDevtronCloneList } from './useDevtronCloneList'
19 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/Shared/components/SuperAdminInfoBar/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './SuperAdminInfoBar.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default } from './Authorization.component'
18 | export * from './SSOLoginServices'
19 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/DeploymentCharts/List/index.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as DeploymentChartsList } from './DeploymentChartsList.component'
18 |
--------------------------------------------------------------------------------
/src/components/ApplicationGroup/List/LoadingShimmer/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface LoadingShimmerListType {
18 | hideLastColumn?: boolean
19 | }
20 |
--------------------------------------------------------------------------------
/src/components/common/edge/colors.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export const nodeColors = {
18 | strokeSolid: 'var(--N400)',
19 | arrowColor: 'var(--N600)',
20 | }
21 |
--------------------------------------------------------------------------------
/src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/DeploymentConfigCompare/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './DeploymentConfigCompare'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/ClustersAndEnvironments/CreateCluster/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as CreateClusterDrawer } from './CreateCluster.component'
18 |
--------------------------------------------------------------------------------
/src/components/AppSelector/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as AppSelector } from './AppSelector'
18 | export { default as ChartSelector } from './ChartSelector'
19 |
--------------------------------------------------------------------------------
/src/components/app/details/triggerView/PipelineConfigDiff/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './PipelineConfigDiff'
18 | export * from './usePipelineDeploymentConfig'
19 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/Shared/components/AppPermissions/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as AppPermissions } from './AppPermissions.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/Shared/components/ChartPermission/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as ChartPermission } from './ChartPermission.component'
18 |
--------------------------------------------------------------------------------
/src/components/ClusterNodes/ClusterList/ClusterStatus/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /*
18 | * Copyright (c) 2024. Devtron Inc.
19 | */
20 |
21 | export * from './ClusterStatus'
22 |
--------------------------------------------------------------------------------
/src/components/checkList/checklist.service.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { post, put, get } from '@devtron-labs/devtron-fe-common-lib'
18 | import { Routes } from '../../config'
19 |
--------------------------------------------------------------------------------
/src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/DeploymentTemplate/GUIView/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as GUIView } from './GUIView.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/PluginPolicy/OffendingPipelineModal/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as OffendingPipelineModalAppView } from './OfflinePipelineModalAppView'
18 |
--------------------------------------------------------------------------------
/.prettierrc.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | module.exports = {
18 | semi: false,
19 | trailingComma: 'all',
20 | singleQuote: true,
21 | printWidth: 120,
22 | tabWidth: 4,
23 | }
24 |
--------------------------------------------------------------------------------
/src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/DeploymentTemplate/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as DeploymentTemplate } from './DeploymentTemplate'
18 |
--------------------------------------------------------------------------------
/src/components/v2/appDetails/sourceInfo/environmentStatus/notesDrawer.type.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface NotesDrawerType {
18 | notes: string
19 | close: () => void
20 | }
21 |
--------------------------------------------------------------------------------
/src/components/security/Vulnerabilities/CVEList/types.ts:
--------------------------------------------------------------------------------
1 | import { SelectPickerOptionType, SeveritiesDTO } from '@devtron-labs/devtron-fe-common-lib'
2 |
3 | export interface CVEDetails {
4 | cveName: string
5 | severity: SeveritiesDTO
6 | appName: string
7 | appId: number
8 | envName: string
9 | envId: number
10 | discoveredAt: string
11 | package: string
12 | currentVersion: string
13 | fixedVersion: string
14 | }
15 |
16 | export interface VulnerabilityDTO {
17 | total: number
18 | list: CVEDetails[]
19 | }
20 |
21 | export type CVEListFilters =
22 | | 'application'
23 | | 'environment'
24 | | 'severity'
25 | | 'cluster'
26 | | 'fixAvailability'
27 | | 'ageOfDiscovery'
28 |
29 | export type CVEListFilterData = Record
30 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/enhancement_proposal.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Enhancement proposal
3 | about: Propose an enhancement for this project
4 | title: ''
5 | labels: 'enhancement'
6 | assignees: ''
7 | ---
8 |
9 | **Please Describe The Problem To Be Solved**
10 | (Replace This Text: Please present a concise description of the problem to be addressed by this feature request. Please be clear what parts of the problem are considered to be in-scope and out-of-scope.)
11 |
12 | **(Optional): Suggest A Solution**
13 | (Replace This Text: A concise description of your preferred solution. Things to address include:
14 | * Details of the technical implementation
15 | * Tradeoffs made in design decisions
16 | * Caveats and considerations for the future
17 |
18 | If there are multiple solutions, please present each one separately. Save comparisons for the very end.)
--------------------------------------------------------------------------------
/src/components/cdPipeline/MigrateToDevtron/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { SELECTED_FORM_STATE_KEY } from './constants'
18 | export { default as MigrateToDevtron } from './MigrateToDevtron.component'
19 |
--------------------------------------------------------------------------------
/src/components/common/TLSConnectionForm/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as TLSConnectionForm } from './TLSConnectionForm.component'
18 | export * from './types'
19 | export * from './utils'
20 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/SSOLoginServices/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './constants'
18 | export * from './ssoConfig.types'
19 | export { default } from './SSOLogin.component'
20 |
--------------------------------------------------------------------------------
/src/components/app/details/cIDetails/Readme.md:
--------------------------------------------------------------------------------
1 | ### Usage of dependencyState of useAsync hook in CIDetails.tsx and CDDetails.tsx
2 |
3 | `BuildDetails` component shows list of `BuildCard`s in left column which are paginated 20 a time. As soon as `cIPipelineId` is changed from pipeline dropdown state; data inside `useAsync` hook becomes stale and hook gets to know about this change in next render.
4 | For corrupted render we check if `dependencyState[0] === pipelineId` because ciPileineId is first dependency in `useAsync` hook.
5 |
6 | Same happens in CDDetails as well.
7 |
8 | ### Detect bottom
9 |
10 | Is a normal span element using `useIntersectionObserver` hook. As soon as span element comes into view, callback given to hook fires, and we increment the pagination. This pagination change effect is propagated to `useAsync` and new data is fetched.
11 |
--------------------------------------------------------------------------------
/src/components/common/DeploymentTypeIcon/index.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as DeploymentTypeIcon } from './DeploymentTypeIcon'
18 | export { DEPLOYMENT_TYPE_TO_TEXT_MAP } from './DeploymentTypeIcon'
19 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/Shared/components/UserPermissionGroupsSelector/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as UserPermissionGroupsSelector } from './UserPermissionGroupsSelector.component'
18 |
--------------------------------------------------------------------------------
/src/Pages/Shared/OrganizationFrame/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as OrganizationFrame } from './OrganizationFrame.component'
18 | export { default as OrganizationTextLogo } from './OrganizationTextLogo'
19 |
--------------------------------------------------------------------------------
/src/components/ApplicationGroup/List/LoadingShimmer/loadingShimmerList.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .shimmer-loading-list__row {
18 | display: grid;
19 | grid-template-columns: 24px 250px 150px auto 52px;
20 | }
21 |
--------------------------------------------------------------------------------
/src/components/cdPipeline/MigrateToDevtron/MigrateToDevtronValidationFactory.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .validation-response {
18 | &__content-container {
19 | grid-template-columns: 150px auto;
20 | }
21 | }
--------------------------------------------------------------------------------
/src/components/common/DynamicTabs/constants.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export const FALLBACK_TAB = 1
18 |
19 | export const TAB_DATA_LOCAL_STORAGE_KEY = 'persisted-tabs-data'
20 |
21 | export const TAB_DATA_VERSION = 'v2'
22 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/Shared/components/AppPermissions/roleSelectorStyles.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .base-role-selector {
18 | .form__radio-item-content {
19 | padding: 0 !important;
20 | }
21 | }
--------------------------------------------------------------------------------
/src/Pages/Shared/LinkedCIDetailsModal/linkedCIAppList.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .linked-ci-detail {
18 | &__table-row {
19 | grid-template-columns: 200px 200px 100px 1fr;
20 | column-gap: 16px;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Pages/Shared/OrganizationFrame/organizationFrame.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .organization-frame {
18 | &__logo {
19 | >path:first-child {
20 | fill: var(--bg-sidebar);
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/assets/icons/RectangleLine.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/Pages/App/Configurations/WorkflowEditor/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './CDPipelineDeploymentAppType'
18 | export * from './CreateCICDPipeline'
19 | export * from './SourceMaterialsSelector'
20 | export * from './utils'
21 |
--------------------------------------------------------------------------------
/src/components/externalArgoApps/externalArgoApp.type.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface ExternalArgoAppDetailType {
18 | appName: string
19 | clusterId: string
20 | isExternalApp: boolean
21 | namespace: string
22 | }
23 |
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "formulahendry.auto-rename-tag",
4 | "chouzz.vscode-better-align",
5 | "aaron-bond.better-comments",
6 | "streetsidesoftware.code-spell-checker",
7 | "pranaygp.vscode-css-peek",
8 | "usernamehw.errorlens",
9 | "dbaeumer.vscode-eslint",
10 | "dsznajder.es7-react-js-snippets",
11 | "naumovs.color-highlight",
12 | "github.vscode-pull-request-github",
13 | "eamodio.gitlens",
14 | "vincaslt.highlight-matching-tag",
15 | "oderwat.indent-rainbow",
16 | "davidanson.vscode-markdownlint",
17 | "esbenp.prettier-vscode",
18 | "gencer.html-slim-scss-css-class-completion",
19 | "simonsiefke.svg-preview",
20 | "shardulm94.trailing-spaces",
21 | "chakrounanas.turbo-console-log"
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/src/components/common/ClusterMetaDataBar/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface ClusterMetaDataBarProps {
18 | clusterName: string
19 | namespace: string
20 | clusterId: string
21 | isVirtualEnvironment?: boolean
22 | }
23 |
--------------------------------------------------------------------------------
/src/components/common/HiddenInput/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export default interface HiddenInputProps {
18 | handleFileUpload: (e: React.ChangeEvent) => void
19 | children?: React.ReactNode
20 | id: string
21 | }
22 |
--------------------------------------------------------------------------------
/src/components/common/helpers/isEmpty.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export function isEmpty(obj): boolean {
18 | if (obj === null || obj === undefined || obj === '' || obj === '{}') {
19 | return true
20 | }
21 | return false
22 | }
23 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-dropdown-filled.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/security/Vulnerabilities/CVEList/utils.ts:
--------------------------------------------------------------------------------
1 | import { CVEListFilters } from './types'
2 |
3 | export const parseSearchParams = (searchParams: URLSearchParams): Record => ({
4 | application: searchParams.getAll('application'),
5 | environment: searchParams.getAll('environment'),
6 | severity: searchParams.getAll('severity'),
7 | cluster: searchParams.getAll('cluster'),
8 | fixAvailability: searchParams.getAll('fixAvailability'),
9 | ageOfDiscovery: searchParams.getAll('ageOfDiscovery'),
10 | })
11 |
12 | export const getFilterChipLabel = (filterKey: CVEListFilters) => {
13 | switch (filterKey) {
14 | case 'fixAvailability':
15 | return 'Fix Availability'
16 | case 'ageOfDiscovery':
17 | return 'Age of Discovery'
18 | default:
19 | return filterKey
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-dot.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
--------------------------------------------------------------------------------
/src/assets/icons/appstatus/bg-blue.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/appstatus/bg-gray.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/appstatus/bg-white.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/chartRepo/chartRepo.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .chartRepo_form__subtitle {
18 | font-size: 13px;
19 | font-weight: 600;
20 | color: var(--N900);
21 | }
22 |
23 | .chart_repo__delete-button {
24 | margin-left: 0 !important;
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/v2/assets/icons/ic-dropdown-filled.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/DeploymentTemplate/DeploymentTemplate.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .deployment-template {
18 | &__approval-tippy {
19 | .tippy-box {
20 | top: 55px;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/Shared/components/ChartPermission/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { ChartGroup } from '../../../../../../components/charts/charts.types'
18 |
19 | export interface ChartPermissionRow {
20 | chartGroupsList: ChartGroup[]
21 | }
22 |
--------------------------------------------------------------------------------
/src/components/CIPipelineN/CreatePluginModal/CreatePluginModal.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .create-plugin-modal {
18 | .create-plugin-form {
19 | &__input-variable-container {
20 | box-shadow: 0px 1px 2px 0px rgba(1, 87, 173, 0.10);
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/components/app/list/constants.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { DevtronAppExpandedState } from './types'
18 |
19 | export const INITIAL_EXPANDED_STATE: DevtronAppExpandedState = {
20 | expandedRow: {},
21 | isAllExpanded: false,
22 | isAllExpandable: false,
23 | }
24 |
--------------------------------------------------------------------------------
/src/Pages/Shared/ApplicationDeletionInfo/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { AppConfigProps } from '@devtron-labs/devtron-fe-common-lib'
18 |
19 | export interface ApplicationDeletionInfoProps extends Pick {
20 | isPresetValue?: boolean
21 | }
22 |
--------------------------------------------------------------------------------
/src/components/login/login.service.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { post } from '@devtron-labs/devtron-fe-common-lib'
18 |
19 | import { Routes } from '../../config'
20 |
21 | export function loginAsAdmin(payload): Promise {
22 | return post(Routes.LOGIN, payload)
23 | }
24 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/BuildInfra/types.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { ReactNode } from 'react'
18 |
19 | export interface BuildInfraProps {
20 | isSuperAdmin: boolean
21 | }
22 |
23 | export interface BuildInfraUtilityProviderProps {
24 | children: ReactNode
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/app/WebWorker.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export default class WebWorker {
18 | constructor(worker) {
19 | const code = worker.toString()
20 | const blob = new Blob([`(${code})()`])
21 | return new Worker(URL.createObjectURL(blob))
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/components/common/ClusterNotReachableDialog/ClusterNotReachableDialog.type.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface ClusterNotReachableDialogType {
18 | clusterName: string
19 | onClickCancel: () => void
20 | onClickDelete: () => void
21 | isDeleting?: boolean
22 | }
23 |
--------------------------------------------------------------------------------
/nginx-default.conf:
--------------------------------------------------------------------------------
1 | server {
2 | listen 8080;
3 | listen [::]:8080;
4 | root /usr/share/nginx/html;
5 | index index.html index.htm;
6 |
7 | location / {
8 | set $fallback_file /index.html;
9 | set $cache_control_header "max-age=3600";
10 |
11 | # add the caching header for assets file and fallback to 404
12 | if ($uri ~* \.(js|js\.map|css|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot|json)$) {
13 | set $cache_control_header "public, max-age=31536000, immutable";
14 | set $fallback_file =404;
15 | }
16 |
17 | if ($uri ~* "\/(service-worker|env-config)\.js$") {
18 | set $cache_control_header "no-cache";
19 | }
20 |
21 | add_header Cache-Control $cache_control_header;
22 | try_files $uri $uri/ $fallback_file =404;
23 | }
24 |
25 | location /health {
26 | try_files $uri $uri/ /health.html =404;
27 | }
28 |
29 | include /etc/nginx/extra-conf.d/*.conf;
30 | }
31 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-stop.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/src/components/common/Banner/banner.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 |
18 | .banner {
19 | &--row {
20 | grid-template-columns: 28px 1fr 28px;
21 | }
22 |
23 | &__version-update {
24 | background: linear-gradient(92deg, #4C40BF 0%, #4084BF 72.45%, #8529A3 96.63%);
25 | }
26 | }
--------------------------------------------------------------------------------
/src/components/ApplicationGroup/Details/TriggerView/constants.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export const BULK_ERROR_MESSAGES = {
18 | CHANGE_SIDEBAR_TAB: 'Please resolve all the errors before switching tabs',
19 | CHANGE_APPLICATION: 'Please resolve all the errors before switching application',
20 | }
21 |
--------------------------------------------------------------------------------
/src/components/material/Readme.md:
--------------------------------------------------------------------------------
1 | ## Routes
2 |
3 | - app/`${appId}`/edit/materials
4 |
5 | ## Components
6 |
7 | ##### MaterialList
8 |
9 | - Root Component
10 | - API calls -> GET List of materials and GET List of providers
11 | - State is set only once in componentDidMount
12 | - Handles validation of checkout path; required by CreateMaterial and UpdateMaterial
13 | - Renders a CreateMaterial and UpdateMaterial for each saved material
14 |
15 | ##### CreateMaterial
16 |
17 | - Creates new material
18 | - Stateful component
19 | - API calls -> POST Create material
20 | - Manages all interactions of create material
21 |
22 | ##### UpdateMaterial
23 |
24 | - Updates saved material
25 | - Stateful component
26 | - API calls -> POST update material
27 | - Manages all interactions of update material
28 |
29 | ##### MaterialView
30 |
31 | - Stateless component
32 | - Used by CreateMaterial & UpdateMaterial
33 |
--------------------------------------------------------------------------------
/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | ///
18 | ///
19 | ///
20 |
21 | import 'jest-extended'
22 |
23 | declare const __BASE_URL__: string
24 | declare const __ORCHESTRATOR_ROOT__: string
25 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 | /dist
14 |
15 | # misc
16 | .DS_Store
17 | .env.local
18 | .env.development.local
19 | .env.test.local
20 | .env.production.local
21 |
22 | src/setupProxy.js
23 |
24 | npm-debug.log
25 | npm-error.log
26 | npm.lock
27 | yarn-debug.log
28 | yarn-error.log
29 | /public/env-config.js
30 | env-config.js
31 | .idea/
32 | /test-results/
33 | /playwright-report/
34 | /playwright/.cache/
35 | playwright/.auth/
36 | .npmrc
37 |
38 | package-lock.json
39 |
40 | *storybook.log
41 | storybook-static
42 |
43 | .yalc
44 | yalc.lock
45 | .build-cache
46 |
47 | .yarn/*
48 | !.yarn/cache
49 | !.yarn/patches
50 | !.yarn/plugins
51 | !.yarn/releases
52 | !.yarn/sdks
53 | !.yarn/versions
54 | .pnp.*
55 |
56 | .env.secrets
57 | scripts/
--------------------------------------------------------------------------------
/src/components/charts/list/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { ChartListType } from '../charts.types'
18 |
19 | export interface ChartSkeletonRowType {
20 | isGridView: boolean
21 | }
22 |
23 | export interface ChartsListProps {
24 | isLoading: boolean
25 | chartsList: ChartListType[]
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/common/helpers/InteractiveCellText/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface InteractiveCellTextProps {
18 | text: string
19 | onClickHandler?: () => void
20 | dataTestId?: string
21 | rootClassName?: string
22 | interactive?: boolean
23 | fontSize?: number
24 | }
25 |
--------------------------------------------------------------------------------
/src/components/v2/assets/icons/ic-stop.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-add.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/external-apps/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { APIOptions } from '@devtron-labs/devtron-fe-common-lib'
18 |
19 | export interface GetArgoAppDetailParamsType extends Pick {
20 | appName: string
21 | clusterId: string
22 | namespace: string
23 | }
24 |
--------------------------------------------------------------------------------
/src/components/security/Vulnerabilities/CVEList/CVEListTableCellComponents.tsx:
--------------------------------------------------------------------------------
1 | import {
2 | FiltersTypeEnum,
3 | getCVEUrlFromCVEName,
4 | SeverityChip,
5 | TableCellComponentProps,
6 | } from '@devtron-labs/devtron-fe-common-lib'
7 |
8 | import { CVEDetails } from './types'
9 |
10 | export const SeverityCellComponent = ({ row }: TableCellComponentProps) => {
11 | const { data } = row
12 | return (
13 |
14 |
15 |
16 | )
17 | }
18 |
19 | export const CVENameCellComponent = ({ row }: TableCellComponentProps) => {
20 | const { data } = row
21 | return (
22 |
23 | {data.cveName}
24 |
25 | )
26 | }
27 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-arrow-right.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/mdeditor/ic-code.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/NoOverrideEmptyState.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // FIXME: When issue for svg button height is fixed, remove this file
18 | .no-override-empty-state-container {
19 | .empty-state svg {
20 | height: 100%;
21 | width: 100%;
22 | }
23 | }
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/ClustersAndEnvironments/constants.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export const ADD_CLUSTER_FORM_LOCAL_STORAGE_KEY = 'global-config__add-cluster-form--v1'
18 | export const ADD_ENVIRONMENT_FORM_LOCAL_STORAGE_KEY = 'global-config__add-environment-form--v1'
19 |
20 | export const ALL_CLUSTER_VALUE = '*'
21 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-arrow-backward.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
--------------------------------------------------------------------------------
/src/components/common/hooks/useOnline/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface FetchConnectivityParamsType {
18 | url: string
19 | options: RequestInit
20 | controller: AbortController
21 | }
22 |
23 | export interface CheckConnectivityParamsType extends Pick {}
24 |
--------------------------------------------------------------------------------
/src/components/common/hooks/useVersionUpdate/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface VersionUpdateProps {
18 | toastEligibleRoutes: {
19 | path: string
20 | exact: boolean
21 | condition: boolean
22 | component: JSX.Element
23 | eligibleLocation: string
24 | }[]
25 | }
26 |
--------------------------------------------------------------------------------
/src/Pages/ChartStore/ChartDetails/chartDetails.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .chart-details {
18 | display: grid;
19 | grid-template-columns: minmax(auto, 1000px) 300px;
20 | gap: 32px;
21 | justify-content: center;
22 |
23 | &__loading-icon {
24 | width: 56px;
25 | height: 56px;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/components/app/list/expandedRow/types.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { App } from '../types'
18 |
19 | export interface ExpandedRowProps {
20 | app: App
21 | handleEdit: (appId: number) => void
22 | redirect: (app, envId: number) => string
23 | close: (event) => void
24 | isArgoInstalled: boolean
25 | }
26 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/BuildInfra/styles.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .build-infra {
18 | .pl {
19 | padding-left: 20px;
20 | }
21 | .pr {
22 | padding-right: 20px;
23 | }
24 | .pt {
25 | padding-top: 16px;
26 | }
27 | .pb {
28 | padding-bottom: 16px;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-stop-filled.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/mdeditor/ic-italic.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/ClusterNodes/ClusterList/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as ClusterList } from './ClusterList'
18 | export { default as ClusterListRow } from './ClusterListRow'
19 | export { default as ClusterListView } from './ClusterListView'
20 | export { default as ClusterSelectionBody } from './ClusterSelectionBody'
21 |
--------------------------------------------------------------------------------
/src/components/app/typing.d.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | declare module 'devtron_external_app'
18 |
19 | declare module '*.svg' {
20 | import * as React from 'react'
21 |
22 | export const ReactComponent: React.FunctionComponent>
23 |
24 | const src: string
25 | export default src
26 | }
27 |
--------------------------------------------------------------------------------
/src/Pages/Shared/EnvironmentOverviewTable/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { EnvironmentOverviewTableSortableKeys } from './EnvironmentOverview.constants'
18 | export * from './EnvironmentOverviewBulkSelectionActionWidget'
19 | export * from './EnvironmentOverviewTable.component'
20 | export * from './EnvironmentOverviewTable.types'
21 |
--------------------------------------------------------------------------------
/src/Pages/Shared/OrganizationFrame/OrganizationTextLogo.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | const OrganizationTextLogo = () => (
18 |
19 | {window._env_.ORGANIZATION_NAME}
20 |
21 | )
22 |
23 | export default OrganizationTextLogo
24 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-activity.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-arrow-up-down.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-check.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-group-filter.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/mdeditor/ic-quote.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/v2/appDetails/sourceInfo/environmentStatus/constants.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { NodeStatus } from '../../appDetails.type'
18 |
19 | export const STATUS_SORTING_ORDER = {
20 | [NodeStatus.Missing]: 1,
21 | [NodeStatus.Degraded]: 2,
22 | [NodeStatus.Progressing]: 3,
23 | [NodeStatus.Healthy]: 4,
24 | }
25 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/Authorization/Shared/components/PermissionConfigurationForm/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { default as PermissionConfigurationForm } from './PermissionConfigurationForm.component'
18 | export { PermissionConfigurationFormProvider, usePermissionConfiguration } from './PermissionConfigurationFormProvider'
19 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-arrow-down.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-checks.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/globalConfigurations/utils.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { URLS as CommonURLS } from '@devtron-labs/devtron-fe-common-lib'
18 |
19 | export const getShouldHidePageHeaderAndSidebar = (pathname: string) =>
20 | !!new RegExp(CommonURLS.APPLICATION_MANAGEMENT_TEMPLATES_DEVTRON_APP_DETAIL.replace(':appId', '')).test(pathname)
21 |
--------------------------------------------------------------------------------
/src/Pages/GlobalConfigurations/PluginPolicy/OffendingPipelineModal/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { PolicyKindType } from '@devtron-labs/devtron-fe-common-lib'
18 |
19 | export interface OffendingPipelineModalAppViewProps {
20 | appId: number
21 | appName: string
22 | policyKind: PolicyKindType
23 | policyName: string
24 | }
25 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-chevron-down.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-play.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/ClusterNodes/ClusterList/ClusterStatus/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /*
18 | * Copyright (c) 2024. Devtron Inc.
19 | */
20 |
21 | import { ClusterStatusType } from '@devtron-labs/devtron-fe-common-lib'
22 |
23 | export interface ClusterStatusProps {
24 | status: ClusterStatusType
25 | errorInNodeListing?: string
26 | }
27 |
--------------------------------------------------------------------------------
/src/components/gitProvider/gitProvider.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .modal__title__fs-16 {
18 | font-size: 16px;
19 | }
20 |
21 | .wrapper-pointer-disabled {
22 | cursor: not-allowed;
23 | }
24 |
25 | .pointer-disabled {
26 | opacity: 0.5;
27 | pointer-events: none;
28 | }
29 |
30 | .ml-0 {
31 | margin-left: 0 !important;
32 | }
33 |
--------------------------------------------------------------------------------
/src/components/login/login.types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { SSOConfigDTO, SSOProvider } from '@Pages/GlobalConfigurations'
18 |
19 | export interface SSOConfigLoginList extends Pick {
20 | name: SSOProvider
21 | }
22 |
23 | export interface LoginFormType {
24 | loginList: SSOConfigDTO[]
25 | }
26 |
--------------------------------------------------------------------------------
/src/assets/icons/appstatus/notdeployed.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-lines.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-minus.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/v2/assets/icons/ic-check.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-appstatus-cancelled.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
21 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-arrow-line-up.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-sort-arrow-down.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/ConfigHeader.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .config-header {
18 | &__tab:hover {
19 | color: var(--B500) !important;
20 |
21 | .config-header__tab--icon {
22 | path {
23 | stroke: var(--B500) !important;
24 | }
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/src/Pages/Shared/CommandBar/CommandBar.scss:
--------------------------------------------------------------------------------
1 | .command-bar {
2 | &__container {
3 | box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.04), 0 2px 8px 0 rgba(0, 0, 0, 0.04), 0 3px 17px 0 rgba(0, 0, 0, 0.04), 0 4px 30px 0 rgba(0, 0, 0, 0.13), 0 8px 48px 0 rgba(0, 0, 0, 0.15);
4 |
5 | &--selected-item {
6 | background: var(--bg-hover);
7 | }
8 |
9 | .search-bar {
10 | &:focus-within {
11 | border: none !important;
12 | }
13 |
14 | &:hover {
15 | background: transparent !important;
16 | }
17 |
18 | &__icon {
19 | height: 20px;
20 | width: 20px;
21 |
22 | svg {
23 | height: inherit;
24 | width: inherit;
25 | }
26 | }
27 |
28 | &__input {
29 | font-size: 16px;
30 | left: 8px;
31 | }
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/src/assets/icons/ic-arrow-line-down.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-exit-fullscreen-2.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/v2/assets/icons/ic-chevron-down.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/src/components/v2/assets/icons/ic-play.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/ApplicationGroup/EnvEmptyStates.tsx:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { GenericFilterEmptyState } from '@devtron-labs/devtron-fe-common-lib'
18 |
19 | import { EmptyEnvState } from './AppGroup.types'
20 |
21 | export const EnvEmptyStates = ({ actionHandler }: EmptyEnvState) => (
22 |
23 | )
24 |
--------------------------------------------------------------------------------
/src/assets/icons/appstatus/ic-check.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
22 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-arrows-left-right.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-back.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
--------------------------------------------------------------------------------
/src/components/v2/headers/appHeader.type.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface ChartHeaderComponentType {
18 | errorResponseCode?: number
19 | }
20 |
21 | export interface EAHeaderComponentType {
22 | title: string
23 | redirectURL: string
24 | showAppDetailsOnly?: boolean
25 | breadCrumbConfig?: Record
26 | }
27 |
--------------------------------------------------------------------------------
/src/assets/icons/appstatus/ic-chevron-down.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-cordon.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/components/CIPipelineN/PluginDetailHeader/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { DOCUMENTATION, PluginDetailType } from '@devtron-labs/devtron-fe-common-lib'
18 |
19 | export interface PluginDetailTypes extends Pick {
20 | isExternalLink?: boolean
21 | docLink: string | keyof typeof DOCUMENTATION
22 | }
23 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-chart-line-up.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/ic-clock.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/src/assets/icons/mdeditor/ic-checked-list.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
20 |
--------------------------------------------------------------------------------
/src/assets/icons/misc/arrow-chevron-down-black.svg:
--------------------------------------------------------------------------------
1 |
16 |
17 |
23 |
--------------------------------------------------------------------------------
/src/components/app/details/triggerView/TriggerWebhook.scss:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2024. Devtron Inc.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | .empty-payload {
18 | min-height: 186px;
19 | }
20 |
21 | .ci-trigger__webhook-wrapper{
22 | display: grid;
23 | grid-template-columns: 250px 1fr;
24 |
25 | .ci__filter-table__row{
26 | display: grid;
27 | grid-template-columns: 200px 200px auto 100px;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/linter.py:
--------------------------------------------------------------------------------
1 | import json
2 | import sys
3 |
4 | files={}
5 | warnings=0
6 | f=None
7 | try:
8 | f=open('build-log','r')
9 | except Exception as e:
10 | print('build-log file not found')
11 | sys.exit(1)
12 |
13 | currentFile=None
14 | for line in f.readlines():
15 | line=line.strip()
16 | if line.startswith('./src'):
17 | currentFile=line
18 | else:
19 | if not line.startswith('Line'):
20 | continue
21 | tokens=line.split(" ")
22 | if len(tokens) <= 1:
23 | continue
24 | line_number=tokens[1]
25 | error=tokens[-1]
26 | try:
27 | files[currentFile][error].append(line_number)
28 | except Exception as e:
29 | try:
30 | files[currentFile][error]=[line_number]
31 | except Exception as e2:
32 | files[currentFile]={error:[line_number]}
33 | finally:
34 | warnings = warnings + 1
35 | print(json.dumps({'total_warnings': warnings, 'result':files}))
36 |
--------------------------------------------------------------------------------