mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 19:56:00 +00:00
added links from duplicator
This commit is contained in:
@@ -113,7 +113,9 @@ class DuplicatorItemHolder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const doCopy = async () => {
|
const doCopy = async () => {
|
||||||
|
// console.log('chunk', this.name, JSON.stringify(chunk));
|
||||||
const insertedObj = this.createInsertObject(chunk);
|
const insertedObj = this.createInsertObject(chunk);
|
||||||
|
// console.log('insertedObj', this.name, JSON.stringify(insertedObj));
|
||||||
if (insertedObj == null) {
|
if (insertedObj == null) {
|
||||||
skipped += 1;
|
skipped += 1;
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
import CheckboxField from '../forms/CheckboxField.svelte';
|
import CheckboxField from '../forms/CheckboxField.svelte';
|
||||||
import FormFieldTemplateLarge from '../forms/FormFieldTemplateLarge.svelte';
|
import FormFieldTemplateLarge from '../forms/FormFieldTemplateLarge.svelte';
|
||||||
import SelectField from '../forms/SelectField.svelte';
|
import SelectField from '../forms/SelectField.svelte';
|
||||||
|
import FontIcon from '../icons/FontIcon.svelte';
|
||||||
import { extractShellConnection } from '../impexp/createImpExpScript';
|
import { extractShellConnection } from '../impexp/createImpExpScript';
|
||||||
import SocketMessageView from '../query/SocketMessageView.svelte';
|
import SocketMessageView from '../query/SocketMessageView.svelte';
|
||||||
import useEditorData from '../query/useEditorData';
|
import useEditorData from '../query/useEditorData';
|
||||||
@@ -47,6 +48,7 @@
|
|||||||
import { changeTab } from '../utility/common';
|
import { changeTab } from '../utility/common';
|
||||||
import createActivator, { getActiveComponent } from '../utility/createActivator';
|
import createActivator, { getActiveComponent } from '../utility/createActivator';
|
||||||
import { useArchiveFiles, useArchiveFolders, useConnectionInfo, useDatabaseInfo } from '../utility/metadataLoaders';
|
import { useArchiveFiles, useArchiveFolders, useConnectionInfo, useDatabaseInfo } from '../utility/metadataLoaders';
|
||||||
|
import openNewTab from '../utility/openNewTab';
|
||||||
import useEffect from '../utility/useEffect';
|
import useEffect from '../utility/useEffect';
|
||||||
import useTimerLabel from '../utility/useTimerLabel';
|
import useTimerLabel from '../utility/useTimerLabel';
|
||||||
|
|
||||||
@@ -188,8 +190,10 @@
|
|||||||
isChecked,
|
isChecked,
|
||||||
operation,
|
operation,
|
||||||
matchColumn1,
|
matchColumn1,
|
||||||
file: `${name}.jsonl`,
|
file: name,
|
||||||
table: tableInfo?.schemaName ? `${tableInfo?.schemaName}.${tableInfo?.pureName}` : tableInfo?.pureName,
|
table: tableInfo?.schemaName ? `${tableInfo?.schemaName}.${tableInfo?.pureName}` : tableInfo?.pureName,
|
||||||
|
schemaName: tableInfo?.schemaName,
|
||||||
|
pureName: tableInfo?.pureName,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -292,8 +296,8 @@
|
|||||||
rows={tableRows}
|
rows={tableRows}
|
||||||
columns={[
|
columns={[
|
||||||
{ header: '', fieldName: 'isChecked', slot: 1 },
|
{ header: '', fieldName: 'isChecked', slot: 1 },
|
||||||
{ header: 'Source file', fieldName: 'file' },
|
{ header: 'Source file', fieldName: 'file', slot: 4 },
|
||||||
{ header: 'Target table', fieldName: 'table' },
|
{ header: 'Target table', fieldName: 'table', slot: 5 },
|
||||||
{ header: 'Operation', fieldName: 'operation', slot: 2 },
|
{ header: 'Operation', fieldName: 'operation', slot: 2 },
|
||||||
{ header: 'Match column', fieldName: 'matchColumn1', slot: 3 },
|
{ header: 'Match column', fieldName: 'matchColumn1', slot: 3 },
|
||||||
]}
|
]}
|
||||||
@@ -339,6 +343,40 @@
|
|||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
|
<svelte:fragment slot="4" let:row>
|
||||||
|
<Link
|
||||||
|
onClick={() => {
|
||||||
|
openNewTab({
|
||||||
|
title: row.file,
|
||||||
|
icon: 'img archive',
|
||||||
|
tooltip: `${$editorState.value?.archiveFolder}\n${row.file}`,
|
||||||
|
tabComponent: 'ArchiveFileTab',
|
||||||
|
props: {
|
||||||
|
archiveFile: row.file,
|
||||||
|
archiveFolder: $editorState.value?.archiveFolder,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}}><FontIcon icon="img archive" /> {row.file}</Link
|
||||||
|
>
|
||||||
|
</svelte:fragment>
|
||||||
|
<svelte:fragment slot="5" let:row>
|
||||||
|
<Link
|
||||||
|
onClick={() => {
|
||||||
|
openNewTab({
|
||||||
|
title: row.pureName,
|
||||||
|
icon: 'img table',
|
||||||
|
tabComponent: 'TableDataTab',
|
||||||
|
props: {
|
||||||
|
schemaName: row.schemaName,
|
||||||
|
pureName: row.pureName,
|
||||||
|
conid,
|
||||||
|
database,
|
||||||
|
objectTypeField: 'tables',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}}><FontIcon icon="img table" /> {row.table}</Link
|
||||||
|
>
|
||||||
|
</svelte:fragment>
|
||||||
</TableControl>
|
</TableControl>
|
||||||
</ObjectConfigurationControl>
|
</ObjectConfigurationControl>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user