mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 17:46:00 +00:00
quick login buttons
This commit is contained in:
@@ -10,10 +10,9 @@
|
|||||||
import FormSelectField from './forms/FormSelectField.svelte';
|
import FormSelectField from './forms/FormSelectField.svelte';
|
||||||
import { writable } from 'svelte/store';
|
import { writable } from 'svelte/store';
|
||||||
import FormProviderCore from './forms/FormProviderCore.svelte';
|
import FormProviderCore from './forms/FormProviderCore.svelte';
|
||||||
import { openWebLink } from './utility/exportFileTools';
|
|
||||||
import FontIcon from './icons/FontIcon.svelte';
|
import FontIcon from './icons/FontIcon.svelte';
|
||||||
import createRef from './utility/createRef';
|
import createRef from './utility/createRef';
|
||||||
|
|
||||||
export let isAdminPage;
|
export let isAdminPage;
|
||||||
|
|
||||||
const config = useConfig();
|
const config = useConfig();
|
||||||
@@ -259,6 +258,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</FormProviderCore>
|
</FormProviderCore>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="loginButtonWrapper">
|
||||||
|
{#each availableProviders.filter(x => x.workflowType == 'anonymous' || x.workflowType == 'redirect') as provider}
|
||||||
|
<div class="loginButton" on:click={() => processSingleProvider(provider)}>
|
||||||
|
{provider.name}
|
||||||
|
</div>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -323,4 +330,28 @@
|
|||||||
margin: 1em;
|
margin: 1em;
|
||||||
font-size: xx-large;
|
font-size: xx-large;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.loginButton {
|
||||||
|
padding: 10px;
|
||||||
|
width: 300px;
|
||||||
|
margin: 20px;
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
border: 1px solid var(--theme-bg-button-inv-3);
|
||||||
|
background-color: var(--theme-bg-button-inv-2);
|
||||||
|
color: var(--theme-font-inv-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginButton:hover {
|
||||||
|
background-color: var(--theme-bg-button-inv-3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.loginButtonWrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
width: 600px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user