Skip to content

Commit 621d8c9

Browse files
authored
Merge pull request #241 from devtron-labs/refactor/move-config-diff-common-lib
refactor: move config-diff compare utils, types, services to common-lib
2 parents 0bebe55 + 903fd95 commit 621d8c9

File tree

13 files changed

+722
-24
lines changed

13 files changed

+722
-24
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "0.2.2",
3+
"version": "0.2.2-beta-3",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Assets/Icon/ic-stamp.svg

Lines changed: 9 additions & 0 deletions
Loading

src/Common/CodeEditor/CodeEditor.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,6 @@ import {
4444
import { CodeEditorReducer, initialState } from './CodeEditor.reducer'
4545
import { MODES } from '../Constants'
4646

47-
self.MonacoEnvironment = {
48-
getWorker(_, label) {
49-
const getWorkerModule = (moduleUrl: string) => {
50-
return new Worker(self.MonacoEnvironment.getWorkerUrl(moduleUrl, label), {
51-
name: label,
52-
type: 'module',
53-
})
54-
}
55-
56-
if (label === MODES.YAML) {
57-
return getWorkerModule('../../yaml.worker.js?worker')
58-
}
59-
60-
return getWorkerModule('/monaco-editor/esm/vs/editor/editor.worker?worker')
61-
},
62-
}
63-
6447
const CodeEditorContext = React.createContext(null)
6548

6649
function useCodeEditorContext() {

src/Common/Constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export const ROUTES = {
101101
PLUGIN_GLOBAL_LIST_DETAIL_V2: 'plugin/global/list/detail/v2',
102102
PLUGIN_GLOBAL_LIST_V2: 'plugin/global/list/v2',
103103
PLUGIN_GLOBAL_LIST_TAGS: 'plugin/global/list/tags',
104+
CONFIG_DATA: 'config/data',
104105
}
105106

106107
export enum KEY_VALUE {

0 commit comments

Comments
 (0)