diff --git a/packages/web/src/impexp/createImpExpScript.ts b/packages/web/src/impexp/createImpExpScript.ts index 5ea6c3b4d..cb001994f 100644 --- a/packages/web/src/impexp/createImpExpScript.ts +++ b/packages/web/src/impexp/createImpExpScript.ts @@ -192,7 +192,7 @@ export function normalizeExportColumnMap(colmap) { return null; } -export default async function createImpExpScript(extensions, values, addEditorInfo = true, forceScript = false) { +export default async function createImpExpScript(extensions, values, forceScript = false) { const config = getCurrentConfig(); const script = config.allowShellScripting || forceScript @@ -233,10 +233,6 @@ export default async function createImpExpScript(extensions, values, addEditorIn script.copyStream(sourceVar, targetVar, colmapVar); script.endLine(); } - if (addEditorInfo) { - script.comment('@ImportExportConfigurator'); - script.comment(JSON.stringify(values)); - } return script.getScript(values.schedule); } diff --git a/packages/web/src/tabs/ShellTab.svelte b/packages/web/src/tabs/ShellTab.svelte index e8bba0bc7..6a8100067 100644 --- a/packages/web/src/tabs/ShellTab.svelte +++ b/packages/web/src/tabs/ShellTab.svelte @@ -23,15 +23,6 @@ onClick: () => getCurrentEditor().copyNodeScript(), }); - registerCommand({ - id: 'shell.openWizard', - category: 'Shell', - name: 'Open wizard', - // testEnabled: () => getCurrentEditor()?.openWizardEnabled(), - onClick: () => getCurrentEditor().openWizard(), - }); - - const configRegex = /\s*\/\/\s*@ImportExportConfigurator\s*\n\s*\/\/\s*(\{[^\n]+\})\n/; const requireRegex = /\s*(\/\/\s*@require\s+[^\n]+)\n/g; const initRegex = /([^\n]+\/\/\s*@init)/g; @@ -58,8 +49,7 @@ import { showSnackbarError } from '../utility/snackbar'; import useEffect from '../utility/useEffect'; import useTimerLabel from '../utility/useTimerLabel'; - import { openImportExportTab } from '../utility/importExportTools'; - + export let tabid; const tabVisible: any = getContext('tabVisible'); @@ -148,20 +138,6 @@ copyTextToClipboard(resp); } - // export function openWizardEnabled() { - // return ($editorValue || '').match(configRegex); - // } - - export function openWizard() { - const jsonTextMatch = ($editorValue || '').match(configRegex); - if (jsonTextMatch) { - openImportExportTab(JSON.parse(jsonTextMatch[1])); - // showModal(ImportExportModal, { initialValues: JSON.parse(jsonTextMatch[1]) }); - } else { - showSnackbarError('No wizard info found'); - } - } - function getActiveScript() { const selectedText = domEditor.getEditor().getSelectedText(); const editorText = $editorValue; @@ -208,7 +184,6 @@ return [ { command: 'shell.execute' }, { command: 'shell.kill' }, - { command: 'shell.openWizard' }, { divider: true }, { command: 'shell.toggleComment' }, { divider: true },