mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 07:16:00 +00:00
SYNC: diagram style
This commit is contained in:
committed by
Diflow
parent
fc7e96feb9
commit
c99ca9edcc
@@ -195,12 +195,12 @@
|
|||||||
{#if designer?.style?.showNullability || designer?.style?.showDataType}
|
{#if designer?.style?.showNullability || designer?.style?.showDataType}
|
||||||
<div class="space" />
|
<div class="space" />
|
||||||
{#if designer?.style?.showDataType && column?.dataType}
|
{#if designer?.style?.showDataType && column?.dataType}
|
||||||
<div class="ml-2">
|
<div class="ml-2 data-type">
|
||||||
{(column?.displayedDataType || column?.dataType).toLowerCase()}
|
{(column?.displayedDataType || column?.dataType).toLowerCase()}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if designer?.style?.showNullability}
|
{#if designer?.style?.showNullability}
|
||||||
<div class="ml-2">
|
<div class="ml-2 nullability">
|
||||||
{column?.notNull ? 'NOT NULL' : 'NULL'}
|
{column?.notNull ? 'NOT NULL' : 'NULL'}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -238,4 +238,12 @@
|
|||||||
background: var(--theme-bg-2);
|
background: var(--theme-bg-2);
|
||||||
color: var(--theme-font-hover);
|
color: var(--theme-font-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nullability {
|
||||||
|
color: var(--theme-font-4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-type {
|
||||||
|
color: var(--theme-font-4);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
defaultValue=""
|
defaultValue=""
|
||||||
name="filterColumns"
|
name="filterColumns"
|
||||||
label="Show columns"
|
label="Show columns"
|
||||||
|
data-testid="DiagramSettings_filterColumns"
|
||||||
isNative
|
isNative
|
||||||
options={[
|
options={[
|
||||||
{
|
{
|
||||||
@@ -36,33 +37,13 @@
|
|||||||
value: 'keysAndNotNull',
|
value: 'keysAndNotNull',
|
||||||
label: 'Keys And Not Null',
|
label: 'Keys And Not Null',
|
||||||
},
|
},
|
||||||
|
|
||||||
// {
|
|
||||||
// text: 'All',
|
|
||||||
// onClick: changeStyleFunc('filterColumns', ''),
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// text: 'Primary Key',
|
|
||||||
// onClick: changeStyleFunc('filterColumns', 'primaryKey'),
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// text: 'All Keys',
|
|
||||||
// onClick: changeStyleFunc('filterColumns', 'allKeys'),
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// text: 'Not Null',
|
|
||||||
// onClick: changeStyleFunc('filterColumns', 'notNull'),
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// text: 'Keys And Not Null',
|
|
||||||
// onClick: changeStyleFunc('filterColumns', 'keysAndNotNull'),
|
|
||||||
// },
|
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FormSelectField
|
<FormSelectField
|
||||||
defaultValue="1"
|
defaultValue="1"
|
||||||
name="zoomKoef"
|
name="zoomKoef"
|
||||||
|
data-testid="DiagramSettings_zoomKoef"
|
||||||
label="Zoom"
|
label="Zoom"
|
||||||
isNative
|
isNative
|
||||||
options={[
|
options={[
|
||||||
@@ -117,6 +98,6 @@
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FormCheckboxField name="showNullability" label="Show NULL/NOT NULL" />
|
<FormCheckboxField name="showNullability" label="Show NULL/NOT NULL" data-testid="DiagramSettings_showNullability" />
|
||||||
<FormCheckboxField name="showDataType" label="Show data type" />
|
<FormCheckboxField name="showDataType" label="Show data type" data-testid="DiagramSettings_showDataType" />
|
||||||
</FormProviderCore>
|
</FormProviderCore>
|
||||||
|
|||||||
Reference in New Issue
Block a user