Skip to content

Commit 42bad67

Browse files
authored
Merge pull request #712 from devtron-labs/rc-merge/v0.34.0
chore: merge rc-v0.34.0
2 parents a23a3c9 + bd92bff commit 42bad67

File tree

436 files changed

+1849
-1250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

436 files changed

+1849
-1250
lines changed

.eslintrc.cjs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17+
const tsconfigPath = require('./tsconfig.json')
18+
1719
module.exports = {
1820
parser: '@typescript-eslint/parser',
19-
plugins: ['@typescript-eslint', 'react', 'prettier', 'import'],
21+
plugins: ['@typescript-eslint', 'react', 'prettier', 'import', 'simple-import-sort'],
2022
env: {
2123
browser: true,
2224
es2021: true,
@@ -109,6 +111,26 @@ module.exports = {
109111
'import/prefer-default-export': 'off',
110112
'no-restricted-exports': 'off',
111113
'import/named': 'off',
114+
'simple-import-sort/imports': [
115+
'error',
116+
{
117+
groups: [
118+
// Packages `react` related packages and external packages.
119+
['^react', '^@?\\w'],
120+
// Devtron packages
121+
['^@devtron-labs'],
122+
// Internal packages.
123+
[...Object.keys(tsconfigPath.compilerOptions.paths).map((alias) => alias.replace('/*', ''))],
124+
// Side effect imports.
125+
['^\\u0000'],
126+
// Put same-folder imports, `..` and `.` last. Other relative imports.
127+
['^\\.\\.(?!/?$)', '^\\.\\./?$', '^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$',],
128+
// Style imports.
129+
[ '^.+\\.?(css|scss)$'],
130+
],
131+
},
132+
],
133+
'simple-import-sort/exports': 'error',
112134
},
113135
overrides: [
114136
{

package-lock.json

Lines changed: 16 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.11.2",
3+
"version": "1.12.0",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",
@@ -60,6 +60,7 @@
6060
"eslint-plugin-prettier": "^5.1.2",
6161
"eslint-plugin-react": "^7.33.2",
6262
"eslint-plugin-react-hooks": "^4.6.0",
63+
"eslint-plugin-simple-import-sort": "^12.1.1",
6364
"glob": "^10.3.3",
6465
"husky": "^7.0.4",
6566
"json-schema": "^0.4.0",
@@ -73,7 +74,7 @@
7374
"sharp": "^0.33.5",
7475
"svgo": "^3.3.2",
7576
"typescript": "5.5.4",
76-
"vite": "5.4.14",
77+
"vite": "5.4.17",
7778
"vite-plugin-dts": "4.0.3",
7879
"vite-plugin-image-optimizer": "^1.1.8",
7980
"vite-plugin-lib-inject-css": "2.1.1",
@@ -108,10 +109,10 @@
108109
"@replit/codemirror-indentation-markers": "6.5.3",
109110
"@replit/codemirror-vscode-keymap": "6.0.2",
110111
"@types/react-dates": "^21.8.6",
111-
"@xyflow/react": "12.4.2",
112112
"@uiw/codemirror-extensions-hyper-link": "4.23.10",
113113
"@uiw/codemirror-theme-github": "4.23.7",
114114
"@uiw/react-codemirror": "4.23.7",
115+
"@xyflow/react": "12.4.2",
115116
"ansi_up": "^5.2.1",
116117
"codemirror-json-schema": "0.8.0",
117118
"dayjs": "^1.11.13",
@@ -141,7 +142,7 @@
141142
"monaco-editor": "0.44.0"
142143
},
143144
"vite-plugin-svgr": {
144-
"vite": "5.4.14"
145+
"vite": "5.4.17"
145146
},
146147
"react-virtualized-sticky-tree": {
147148
"react": "^17.0.2",
Lines changed: 3 additions & 0 deletions
Loading

src/Assets/IconV2/ic-bg-cluster.svg

Lines changed: 6 additions & 0 deletions
Loading

src/Assets/IconV2/ic-file-key.svg

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

src/Common/API/CoreAPI.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
import { INVALID_LICENSE_KEY, ResponseHeaders } from '@Shared/index'
2-
import { API_STATUS_CODES, APIOptions, FALLBACK_REQUEST_TIMEOUT, Host, noop, ResponseType, ServerErrors } from '..'
1+
import { API_STATUS_CODES, FALLBACK_REQUEST_TIMEOUT, Host } from '@Common/Constants'
2+
import { noop } from '@Common/Helper'
3+
import { ServerErrors } from '@Common/ServerError'
4+
import { APIOptions, ResponseType } from '@Common/Types'
5+
import { INVALID_LICENSE_KEY } from '@Shared/constants'
6+
import { ResponseHeaders } from '@Shared/types'
7+
38
import { CoreAPIConstructorParamsType, FetchAPIParamsType, FetchInTimeParamsType } from './types'
49
import { handleServerError } from './utils'
510

src/Common/API/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ const dashboardAPI = new CoreAPI({
88
})
99

1010
export const { post, put, patch, get, trash } = dashboardAPI
11-
export { getIsRequestAborted, abortPreviousRequests, handleRedirectToLicenseActivation } from './utils'
1211
export { default as CoreAPI } from './CoreAPI'
12+
export { abortPreviousRequests, getIsRequestAborted, handleRedirectToLicenseActivation } from './utils'

0 commit comments

Comments
 (0)