mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 20:43:58 +00:00
db sync
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import { derived, writable } from 'svelte/store';
|
import { derived, writable } from 'svelte/store';
|
||||||
import TableControl from '../elements/TableControl.svelte';
|
import TableControl from '../elements/TableControl.svelte';
|
||||||
|
import VerticalSplitter from '../elements/VerticalSplitter.svelte';
|
||||||
import FormFieldTemplateTiny from '../forms/FormFieldTemplateTiny.svelte';
|
import FormFieldTemplateTiny from '../forms/FormFieldTemplateTiny.svelte';
|
||||||
import FormProviderCore from '../forms/FormProviderCore.svelte';
|
import FormProviderCore from '../forms/FormProviderCore.svelte';
|
||||||
import FontIcon from '../icons/FontIcon.svelte';
|
import FontIcon from '../icons/FontIcon.svelte';
|
||||||
@@ -60,10 +61,17 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
|
<VerticalSplitter>
|
||||||
|
<div slot="1" class="flexcol">
|
||||||
<FormProviderCore {values}>
|
<FormProviderCore {values}>
|
||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<FormConnectionSelect name="sourceConid" label="Source server" templateProps={{ noMargin: true }} isNative />
|
<FormConnectionSelect
|
||||||
|
name="sourceConid"
|
||||||
|
label="Source server"
|
||||||
|
templateProps={{ noMargin: true }}
|
||||||
|
isNative
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<FormDatabaseSelect
|
<FormDatabaseSelect
|
||||||
@@ -78,7 +86,12 @@
|
|||||||
<FontIcon icon="icon arrow-right-bold" />
|
<FontIcon icon="icon arrow-right-bold" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<FormConnectionSelect name="targetConid" label="Target server" templateProps={{ noMargin: true }} isNative />
|
<FormConnectionSelect
|
||||||
|
name="targetConid"
|
||||||
|
label="Target server"
|
||||||
|
templateProps={{ noMargin: true }}
|
||||||
|
isNative
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
<FormDatabaseSelect
|
<FormDatabaseSelect
|
||||||
@@ -92,6 +105,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</FormProviderCore>
|
</FormProviderCore>
|
||||||
|
|
||||||
|
<div class="tableWrapper">
|
||||||
<TableControl
|
<TableControl
|
||||||
rows={diffRows}
|
rows={diffRows}
|
||||||
bind:selectedIndex={pairIndex}
|
bind:selectedIndex={pairIndex}
|
||||||
@@ -107,6 +121,11 @@
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<svelte:fragment slot="2" />
|
||||||
|
</VerticalSplitter>
|
||||||
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.wrapper {
|
.wrapper {
|
||||||
@@ -114,9 +133,15 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flexcol {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
.topbar {
|
.topbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin: 10px 0px;
|
margin: 10px 0px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.arrow {
|
.arrow {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
@@ -125,4 +150,10 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tableWrapper {
|
||||||
|
overflow-y: scroll;
|
||||||
|
width: 100%;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user