Skip to content

Commit 3b5da2d

Browse files
committed
Merge branch 'develop' into feat/onboard-argo-apps
2 parents 59a76a7 + 7bc3ec4 commit 3b5da2d

Some content is hidden

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

43 files changed

+1224
-350
lines changed

package-lock.json

Lines changed: 14 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: 5 additions & 3 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.8.2-beta-3",
3+
"version": "1.8.5",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",
@@ -103,6 +103,8 @@
103103
"@codemirror/legacy-modes": "6.4.2",
104104
"@codemirror/lint": "6.8.4",
105105
"@codemirror/search": "6.5.8",
106+
"@lezer/highlight": "1.2.1",
107+
"@replit/codemirror-indentation-markers": "6.5.3",
106108
"@replit/codemirror-vscode-keymap": "6.0.2",
107109
"@types/react-dates": "^21.8.6",
108110
"@uiw/codemirror-theme-github": "^4.23.7",
@@ -118,11 +120,11 @@
118120
"react-codemirror-merge": "4.23.6",
119121
"react-dates": "^21.8.0",
120122
"react-diff-viewer-continued": "^3.4.0",
123+
"react-draggable": "^4.4.5",
121124
"react-monaco-editor": "^0.54.0",
122125
"react-virtualized-sticky-tree": "^3.0.0-beta18",
123126
"sass": "^1.69.7",
124-
"tslib": "2.7.0",
125-
"react-draggable": "^4.4.5"
127+
"tslib": "2.7.0"
126128
},
127129
"overrides": {
128130
"cross-spawn": "^7.0.5",

src/Assets/IconV2/ic-arrow-right.svg

Lines changed: 3 additions & 0 deletions
Loading

src/Assets/IconV2/ic-google.svg

Lines changed: 6 additions & 0 deletions
Loading

src/Assets/IconV2/ic-ldap.svg

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

src/Assets/IconV2/ic-microsoft.svg

Lines changed: 6 additions & 0 deletions
Loading

src/Assets/IconV2/ic-oidc.svg

Lines changed: 4 additions & 0 deletions
Loading

src/Assets/IconV2/ic-openshift.svg

Lines changed: 10 additions & 0 deletions
Loading

src/Common/CodeEditor/CodeEditor.tsx

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ const CodeEditor: React.FC<CodeEditorInterface> & CodeEditorComposition = React.
355355
<CodeEditorPlaceholder customLoader={customLoader} />
356356
) : (
357357
<>
358-
{shebang && <div className="code-editor__shebang">{shebang}</div>}
358+
{shebang && <div className="code-editor-shebang">{shebang}</div>}
359359
{state.diffMode ? (
360360
<MonacoDiffEditor
361361
original={state.defaultCode}
@@ -392,11 +392,18 @@ const Header: React.FC<CodeEditorHeaderInterface> & CodeEditorHeaderComposition
392392
className,
393393
hideDefaultSplitHeader,
394394
}) => {
395-
const { defaultValue } = useCodeEditorContext()
395+
const { defaultValue, state } = useCodeEditorContext()
396396
return (
397-
<div className={className || 'code-editor__header flex right'}>
398-
{children}
399-
{!hideDefaultSplitHeader && defaultValue && <SplitPane />}
397+
<div className="flexbox w-100 dc__border-bottom ">
398+
<div
399+
data-code-editor-header
400+
className={`code-editor__header flex-grow-1 bg__secondary ${className || 'px-16 pt-6 pb-5'} ${state.diffMode ? 'dc__grid-half vertical-divider' : ''}`}
401+
402+
>
403+
{children}
404+
{!hideDefaultSplitHeader && defaultValue && <SplitPane />}
405+
</div>
406+
{state.diffMode ? <div className="bg__secondary px-15 dc__align-self-stretch" /> : null}
400407
</div>
401408
)
402409
}
@@ -518,6 +525,24 @@ const CodeEditorPlaceholder = ({ className = '', style = {}, customLoader }): JS
518525
)
519526
}
520527

528+
const Container = ({
529+
children,
530+
flexExpand,
531+
overflowHidden,
532+
}: {
533+
children: React.ReactNode
534+
flexExpand?: boolean
535+
overflowHidden?: boolean
536+
}) => (
537+
<div
538+
data-code-editor-container
539+
className={`code-editor__container w-100 dc__border br-4
540+
${flexExpand ? 'flex-grow-1 flexbox-col' : ''} ${overflowHidden ? 'dc__overflow-hidden' : ''}`}
541+
>
542+
{children}
543+
</div>
544+
)
545+
521546
CodeEditor.LanguageChanger = LanguageChanger
522547
CodeEditor.ThemeChanger = ThemeChanger
523548
CodeEditor.ValidationError = ValidationError
@@ -526,5 +551,6 @@ CodeEditor.Header = Header
526551
CodeEditor.Warning = Warning
527552
CodeEditor.ErrorBar = ErrorBar
528553
CodeEditor.Information = Information
554+
CodeEditor.Container = Container
529555

530556
export default CodeEditor

0 commit comments

Comments
 (0)