Skip to content

Commit 9a0f051

Browse files
committed
feat: add network status interface theme in code editor
1 parent dae3e96 commit 9a0f051

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/Common/CodeEditor/CodeEditor.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@ const CodeEditor: React.FC<CodeEditorInterface> & CodeEditorComposition = React.
126126
},
127127
})
128128

129+
monaco.editor.defineTheme(CodeEditorThemesKeys.networkStatusInterface, {
130+
base: 'vs-dark',
131+
inherit: true,
132+
rules: [
133+
// @ts-ignore
134+
{ background: '#1A1A1A' },
135+
],
136+
colors: {
137+
'editor.background': '#1A1A1A',
138+
},
139+
})
140+
129141
monaco.editor.defineTheme(CodeEditorThemesKeys.deleteDraft, {
130142
base: 'vs',
131143
inherit: true,

src/Common/CodeEditor/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export enum CodeEditorThemesKeys {
8484
deleteDraft = 'delete-draft',
8585
unpublished = 'unpublished',
8686
vs = 'vs',
87+
networkStatusInterface = 'network-status-interface',
8788
}
8889

8990
export interface CodeEditorInitialValueType {

src/Common/Constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ export const ROUTES = {
9696
CONFIG_CD_PIPELINE: 'config/cd-pipeline',
9797
MODULE_CONFIGURED: 'module/config',
9898
RESOURCE_HISTORY_DEPLOYMENT: 'resource/history/deployment',
99+
ATTRIBUTES: 'attributes',
100+
ATTRIBUTES_CREATE: 'attributes/create',
101+
ATTRIBUTES_UPDATE: 'attributes/update',
99102
}
100103

101104
export enum KEY_VALUE {

0 commit comments

Comments
 (0)