mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-26 00:45:58 +00:00
editor data
This commit is contained in:
@@ -12,10 +12,13 @@
|
|||||||
import FontIcon from '../icons/FontIcon.svelte';
|
import FontIcon from '../icons/FontIcon.svelte';
|
||||||
import FormConnectionSelect from '../impexp/FormConnectionSelect.svelte';
|
import FormConnectionSelect from '../impexp/FormConnectionSelect.svelte';
|
||||||
import FormDatabaseSelect from '../impexp/FormDatabaseSelect.svelte';
|
import FormDatabaseSelect from '../impexp/FormDatabaseSelect.svelte';
|
||||||
|
import useEditorData from '../query/useEditorData';
|
||||||
import { extensions } from '../stores';
|
import { extensions } from '../stores';
|
||||||
import { computeDiffRows } from '../utility/computeDiffRows';
|
import { computeDiffRows } from '../utility/computeDiffRows';
|
||||||
import { useConnectionInfo, useDatabaseInfo } from '../utility/metadataLoaders';
|
import { useConnectionInfo, useDatabaseInfo } from '../utility/metadataLoaders';
|
||||||
|
|
||||||
|
export let tabid;
|
||||||
|
|
||||||
let values = writable({
|
let values = writable({
|
||||||
sourceConid: null,
|
sourceConid: null,
|
||||||
sourceDatabase: null,
|
sourceDatabase: null,
|
||||||
@@ -46,6 +49,14 @@
|
|||||||
|
|
||||||
$: targetDbPaired = matchPairedObjects($sourceDb, $targetDb, dbDiffOptions);
|
$: targetDbPaired = matchPairedObjects($sourceDb, $targetDb, dbDiffOptions);
|
||||||
$: diffRows = computeDiffRows($sourceDb, targetDbPaired, dbDiffOptions, driver);
|
$: diffRows = computeDiffRows($sourceDb, targetDbPaired, dbDiffOptions, driver);
|
||||||
|
|
||||||
|
const { editorState, editorValue, setEditorData } = useEditorData({
|
||||||
|
tabid,
|
||||||
|
// onInitialData: value => {
|
||||||
|
// dispatchModel({ type: 'reset', value });
|
||||||
|
// },
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
|||||||
Reference in New Issue
Block a user