scaffolder: move TemplateEditor components into subdirectory
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ import React, { createContext, ReactNode, useContext, useEffect } from 'react';
|
||||
import {
|
||||
TemplateDirectoryAccess,
|
||||
TemplateFileAccess,
|
||||
} from '../../lib/filesystem';
|
||||
} from '../../../lib/filesystem';
|
||||
|
||||
const MAX_SIZE = 1024 * 1024;
|
||||
const MAX_SIZE_MESSAGE = 'This file is too large to be displayed';
|
||||
+1
-1
@@ -20,7 +20,7 @@ import { useAsync } from '@react-hookz/web';
|
||||
import {
|
||||
TemplateDirectoryAccess,
|
||||
WebFileSystemAccess,
|
||||
} from '../../lib/filesystem';
|
||||
} from '../../../lib/filesystem';
|
||||
|
||||
interface DirectoryLoaderProps {
|
||||
onLoad(directory: TemplateDirectoryAccess): void;
|
||||
+2
-2
@@ -24,8 +24,8 @@ import React, {
|
||||
useRef,
|
||||
useState,
|
||||
} from 'react';
|
||||
import { scaffolderApiRef } from '../../api';
|
||||
import { ScaffolderDryRunResponse } from '../../types';
|
||||
import { scaffolderApiRef } from '../../../api';
|
||||
import { ScaffolderDryRunResponse } from '../../../types';
|
||||
|
||||
interface DryRunOptions {
|
||||
templateContent: string;
|
||||
+1
-1
@@ -23,7 +23,7 @@ import TreeItem from '@material-ui/lab/TreeItem';
|
||||
import {
|
||||
TemplateDirectoryAccess,
|
||||
TemplateFileAccess,
|
||||
} from '../../lib/filesystem';
|
||||
} from '../../../lib/filesystem';
|
||||
import { useAsync, useMountEffect } from '@react-hookz/web';
|
||||
import { ErrorPanel, Progress } from '@backstage/core-components';
|
||||
|
||||
+5
-5
@@ -39,11 +39,11 @@ import RefreshIcon from '@material-ui/icons/Refresh';
|
||||
import CloseIcon from '@material-ui/icons/Close';
|
||||
import CodeMirror from '@uiw/react-codemirror';
|
||||
import yaml from 'yaml';
|
||||
import { FieldExtensionOptions } from '../../extensions';
|
||||
import { TemplateParameterSchema } from '../../types';
|
||||
import { MultistepJsonForm } from '../MultistepJsonForm';
|
||||
import { createValidator } from '../TemplatePage';
|
||||
import { TemplateDirectoryAccess } from '../../lib/filesystem';
|
||||
import { FieldExtensionOptions } from '../../../extensions';
|
||||
import { TemplateParameterSchema } from '../../../types';
|
||||
import { MultistepJsonForm } from '../../MultistepJsonForm';
|
||||
import { createValidator } from '../../TemplatePage';
|
||||
import { TemplateDirectoryAccess } from '../../../lib/filesystem';
|
||||
import { FileBrowser } from './FileBrowser';
|
||||
import {
|
||||
DirectoryEditorProvider,
|
||||
+2
-2
@@ -47,8 +47,8 @@ import { yaml as yamlSupport } from '@codemirror/legacy-modes/mode/yaml';
|
||||
import { StreamLanguage } from '@codemirror/stream-parser';
|
||||
import { LogViewer } from '@backstage/core-components';
|
||||
import { usePrevious } from '@react-hookz/web';
|
||||
import { TaskStatusStepper } from '../TaskPage/TaskPage';
|
||||
import { TaskPageLinks } from '../TaskPage/TaskPageLinks';
|
||||
import { TaskStatusStepper } from '../../TaskPage/TaskPage';
|
||||
import { TaskPageLinks } from '../../TaskPage/TaskPageLinks';
|
||||
import ListItemIcon from '@material-ui/core/ListItemIcon';
|
||||
import { BackstageTheme } from '@backstage/theme';
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2022 The Backstage Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { TemplateEditor } from './TemplateEditor';
|
||||
Reference in New Issue
Block a user