1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

feat(helm): show manifest previews/changes when installing and upgrading a helm chart [r8s-405] (#898)

This commit is contained in:
Ali 2025-07-23 10:52:58 +12:00 committed by GitHub
parent a4cff13531
commit 60bc04bc33
41 changed files with 763 additions and 157 deletions

View file

@ -1,7 +1,36 @@
export function mockCodeMirror() {
vi.mock('@uiw/react-codemirror', () => ({
__esModule: true,
default: () => <div />,
default: ({
value,
onChange,
readOnly,
placeholder,
height,
className,
id,
'data-cy': dataCy,
}: {
value?: string;
onChange?: (value: string) => void;
readOnly?: boolean;
placeholder?: string;
height?: string;
className?: string;
id?: string;
'data-cy'?: string;
}) => (
<textarea
value={value}
onChange={(e) => onChange?.(e.target.value)}
readOnly={readOnly}
placeholder={placeholder}
style={height ? { height } : undefined}
className={className}
id={id}
data-cy={dataCy}
/>
),
oneDarkHighlightStyle: {},
keymap: {
of: () => ({}),