mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
feat: add formlist where need
This commit is contained in:
1 parent
c58220aeeb
commit
b6562d3875
8 files changed
+310
-241
No files matched your search
@@ -1,7 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { Modal, Copy, Alert } from '$lib/components';
|
||||
import { Button, InputText, InputTextarea, InputSwitch, Form } from '$lib/elements/forms';
|
||||
import {
|
||||
Button,
|
||||
InputText,
|
||||
InputTextarea,
|
||||
InputSwitch,
|
||||
Form,
|
||||
FormList
|
||||
} from '$lib/elements/forms';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForConsole } from '$lib/stores/sdk';
|
||||
import type { Provider } from './auth';
|
||||
@@ -34,46 +41,50 @@
|
||||
<Form on:submit={update}>
|
||||
<Modal bind:show={showModal}>
|
||||
<svelte:fragment slot="header">{provider.name} OAuth2 Settings</svelte:fragment>
|
||||
<p>
|
||||
To use {provider.name} authentication in your application, first fill in this form. For more
|
||||
info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="bundleID"
|
||||
label="Bundle ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="com.company.appname"
|
||||
bind:value={provider.id} />
|
||||
<InputText
|
||||
id="keyID"
|
||||
label="key ID"
|
||||
autocomplete={false}
|
||||
placeholder="SHAB13ROFN"
|
||||
bind:value={keyID} />
|
||||
<InputText
|
||||
id="teamID"
|
||||
label="team ID"
|
||||
autocomplete={false}
|
||||
placeholder="ELA2CD3AED"
|
||||
bind:value={teamID} />
|
||||
<InputTextarea id="p8" label="P8 File" placeholder="" bind:value={p8} />
|
||||
<Alert type="info">
|
||||
<FormList>
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
To use {provider.name} authentication in your application, first fill in this form. For
|
||||
more info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
</Alert>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="bundleID"
|
||||
label="Bundle ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="com.company.appname"
|
||||
bind:value={provider.id} />
|
||||
<InputText
|
||||
id="keyID"
|
||||
label="Key ID"
|
||||
autocomplete={false}
|
||||
placeholder="SHAB13ROFN"
|
||||
bind:value={keyID} />
|
||||
<InputText
|
||||
id="teamID"
|
||||
label="Team ID"
|
||||
autocomplete={false}
|
||||
placeholder="ELA2CD3AED"
|
||||
bind:value={teamID} />
|
||||
<InputTextarea id="p8" label="P8 File" placeholder="" bind:value={p8} />
|
||||
<Alert type="info">
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
</p>
|
||||
</Alert>
|
||||
<div>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
</div>
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button secondary on:click={() => (showModal = false)}>Cancel</Button>
|
||||
<Button submit>Update</Button>
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { Modal, Copy, Alert } from '$lib/components';
|
||||
import { Button, InputPassword, InputText, InputSwitch, Form } from '$lib/elements/forms';
|
||||
import {
|
||||
Button,
|
||||
InputPassword,
|
||||
InputText,
|
||||
InputSwitch,
|
||||
Form,
|
||||
FormList
|
||||
} from '$lib/elements/forms';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForConsole } from '$lib/stores/sdk';
|
||||
import type { Provider } from './auth';
|
||||
@@ -34,45 +41,49 @@
|
||||
<Form on:submit={update}>
|
||||
<Modal bind:show={showModal}>
|
||||
<svelte:fragment slot="header">{provider.name} OAuth2 Settings</svelte:fragment>
|
||||
<p>
|
||||
To use {provider.name} authentication in your application, first fill in this form. For more
|
||||
info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="clientID"
|
||||
label="Client ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="Enter ID"
|
||||
bind:value={provider.id} />
|
||||
<InputPassword
|
||||
id="secret"
|
||||
label="Client Secret"
|
||||
placeholder="Enter Client Secret"
|
||||
meter={false}
|
||||
bind:value={clientSecret} />
|
||||
<InputText
|
||||
id="domain"
|
||||
label="Auth0 Domain"
|
||||
autocomplete={false}
|
||||
placeholder="Your Auth0 domain"
|
||||
bind:value={auth0Domain} />
|
||||
<Alert type="info">
|
||||
<FormList>
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
To use {provider.name} authentication in your application, first fill in this form. For
|
||||
more info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
</Alert>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="clientID"
|
||||
label="Client ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="Enter ID"
|
||||
bind:value={provider.id} />
|
||||
<InputPassword
|
||||
id="secret"
|
||||
label="Client Secret"
|
||||
placeholder="Enter Client Secret"
|
||||
meter={false}
|
||||
bind:value={clientSecret} />
|
||||
<InputText
|
||||
id="domain"
|
||||
label="Auth0 Domain"
|
||||
autocomplete={false}
|
||||
placeholder="Your Auth0 domain"
|
||||
bind:value={auth0Domain} />
|
||||
<Alert type="info">
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
</p>
|
||||
</Alert>
|
||||
<div>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
</div>
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button secondary on:click={() => (showModal = false)}>Cancel</Button>
|
||||
<Button submit>Update</Button>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { Modal } from '$lib/components';
|
||||
import { InputText, Button, Form } from '$lib/elements/forms';
|
||||
import { InputText, Button, Form, FormList } from '$lib/elements/forms';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForProject } from '$lib/stores/sdk';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
@@ -29,12 +29,14 @@
|
||||
<Form on:submit={create}>
|
||||
<Modal bind:show={showCreate}>
|
||||
<svelte:fragment slot="header">Create Team</svelte:fragment>
|
||||
<InputText
|
||||
id="name"
|
||||
label="Name"
|
||||
placeholder="John Doe"
|
||||
autofocus={true}
|
||||
bind:value={name} />
|
||||
<FormList>
|
||||
<InputText
|
||||
id="name"
|
||||
label="Name"
|
||||
placeholder="John Doe"
|
||||
autofocus={true}
|
||||
bind:value={name} />
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button submit>Create</Button>
|
||||
<Button secondary on:click={() => (showCreate = false)}>Cancel</Button>
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { Modal } from '$lib/components';
|
||||
import { Pill } from '$lib/elements/';
|
||||
import { Button, InputPassword, InputEmail, InputText, Form } from '$lib/elements/forms';
|
||||
import {
|
||||
Button,
|
||||
InputPassword,
|
||||
InputEmail,
|
||||
InputText,
|
||||
Form,
|
||||
FormList
|
||||
} from '$lib/elements/forms';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForProject } from '$lib/stores/sdk';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
@@ -31,34 +38,37 @@
|
||||
<Form on:submit={create}>
|
||||
<Modal bind:show={showCreate}>
|
||||
<svelte:fragment slot="header">Create User</svelte:fragment>
|
||||
<InputText
|
||||
id="name"
|
||||
label="Name"
|
||||
placeholder="John Doe"
|
||||
autofocus={true}
|
||||
bind:value={name} />
|
||||
<InputEmail
|
||||
id="email"
|
||||
label="E-Mail"
|
||||
placeholder="test@example.com"
|
||||
required={true}
|
||||
bind:value={mail} />
|
||||
<InputPassword
|
||||
id="password"
|
||||
label="Password"
|
||||
placeholder="*****"
|
||||
required={true}
|
||||
bind:value={pass} />
|
||||
<FormList>
|
||||
<InputText
|
||||
id="name"
|
||||
label="Name"
|
||||
placeholder="John Doe"
|
||||
autofocus={true}
|
||||
bind:value={name} />
|
||||
<InputEmail
|
||||
id="email"
|
||||
label="E-Mail"
|
||||
placeholder="test@example.com"
|
||||
required={true}
|
||||
bind:value={mail} />
|
||||
<InputPassword
|
||||
id="password"
|
||||
label="Password"
|
||||
placeholder="*****"
|
||||
required={true}
|
||||
bind:value={pass} />
|
||||
|
||||
<Pill button on:click={() => (idModal = !idModal)}>User ID <i class="icon-pencil" /></Pill>
|
||||
|
||||
{#if idModal}
|
||||
<div class="common-section">
|
||||
<p>Enter a custom user ID. Leave blank for a randomly generated user ID.</p>
|
||||
<InputText id="id" label="" placeholder="" bind:value={id} />
|
||||
<div>
|
||||
<Pill button on:click={() => (idModal = !idModal)}
|
||||
>User ID <i class="icon-pencil" /></Pill>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if idModal}
|
||||
<div class="common-section">
|
||||
<p>Enter a custom user ID. Leave blank for a randomly generated user ID.</p>
|
||||
<InputText id="id" label="" placeholder="" bind:value={id} />
|
||||
</div>
|
||||
{/if}
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button text on:click={() => (showCreate = false)}>Cancel</Button>
|
||||
<Button submit>Create</Button>
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { Modal, Copy, Alert } from '$lib/components';
|
||||
import { Button, InputPassword, InputText, InputSwitch, Form } from '$lib/elements/forms';
|
||||
import {
|
||||
Button,
|
||||
InputPassword,
|
||||
InputText,
|
||||
InputSwitch,
|
||||
Form,
|
||||
FormList
|
||||
} from '$lib/elements/forms';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForConsole } from '$lib/stores/sdk';
|
||||
import type { Provider } from './auth';
|
||||
@@ -31,39 +38,43 @@
|
||||
<Form on:submit={update}>
|
||||
<Modal bind:show={showModal}>
|
||||
<svelte:fragment slot="header">{provider.name} OAuth2 Settings</svelte:fragment>
|
||||
<p>
|
||||
To use {provider.name} authentication in your application, first fill in this form. For more
|
||||
info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="appID"
|
||||
label="App ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="Enter ID"
|
||||
bind:value={provider.id} />
|
||||
<InputPassword
|
||||
id="secret"
|
||||
label="App Secret"
|
||||
placeholder="Enter App Secret"
|
||||
meter={false}
|
||||
bind:value={provider.secret} />
|
||||
<Alert type="info">
|
||||
<FormList>
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
To use {provider.name} authentication in your application, first fill in this form. For
|
||||
more info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
</Alert>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="appID"
|
||||
label="App ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="Enter ID"
|
||||
bind:value={provider.id} />
|
||||
<InputPassword
|
||||
id="secret"
|
||||
label="App Secret"
|
||||
placeholder="Enter App Secret"
|
||||
meter={false}
|
||||
bind:value={provider.secret} />
|
||||
<Alert type="info">
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
</p>
|
||||
</Alert>
|
||||
<div>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
</div>
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button secondary on:click={() => (showModal = false)}>Cancel</Button>
|
||||
<Button submit>Update</Button>
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { Modal, Copy, Alert } from '$lib/components';
|
||||
import { Button, InputPassword, InputText, InputSwitch, Form } from '$lib/elements/forms';
|
||||
import {
|
||||
Button,
|
||||
InputPassword,
|
||||
InputText,
|
||||
InputSwitch,
|
||||
Form,
|
||||
FormList
|
||||
} from '$lib/elements/forms';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForConsole } from '$lib/stores/sdk';
|
||||
import type { Provider } from './auth';
|
||||
@@ -34,45 +41,49 @@
|
||||
<Form on:submit={update}>
|
||||
<Modal bind:show={showModal}>
|
||||
<svelte:fragment slot="header">{provider.name} OAuth2 Settings</svelte:fragment>
|
||||
<p>
|
||||
To use {provider.name} authentication in your application, first fill in this form. For more
|
||||
info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="appID"
|
||||
label="Application (client) ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="Enter ID"
|
||||
bind:value={provider.id} />
|
||||
<InputPassword
|
||||
id="secret"
|
||||
label="Client Secret"
|
||||
placeholder="Enter Client Secret"
|
||||
meter={false}
|
||||
bind:value={clientSecret} />
|
||||
<InputText
|
||||
id="tenant"
|
||||
label="Target Tenant"
|
||||
autocomplete={false}
|
||||
placeholder="'common','organizations','consumers' or your TenantID"
|
||||
bind:value={tenantID} />
|
||||
<Alert type="info">
|
||||
<FormList>
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
To use {provider.name} authentication in your application, first fill in this form. For
|
||||
more info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
</Alert>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="appID"
|
||||
label="Application (client) ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="Enter ID"
|
||||
bind:value={provider.id} />
|
||||
<InputPassword
|
||||
id="secret"
|
||||
label="Client Secret"
|
||||
placeholder="Enter Client Secret"
|
||||
meter={false}
|
||||
bind:value={clientSecret} />
|
||||
<InputText
|
||||
id="tenant"
|
||||
label="Target Tenant"
|
||||
autocomplete={false}
|
||||
placeholder="'common','organizations','consumers' or your TenantID"
|
||||
bind:value={tenantID} />
|
||||
<Alert type="info">
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
</p>
|
||||
</Alert>
|
||||
<div>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
</div>
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button secondary on:click={() => (showModal = false)}>Cancel</Button>
|
||||
<Button submit>Update</Button>
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { Modal, Copy, Alert } from '$lib/components';
|
||||
import { Button, InputPassword, InputText, InputSwitch, Form } from '$lib/elements/forms';
|
||||
import {
|
||||
Button,
|
||||
InputPassword,
|
||||
InputText,
|
||||
InputSwitch,
|
||||
Form,
|
||||
FormList
|
||||
} from '$lib/elements/forms';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForConsole } from '$lib/stores/sdk';
|
||||
import type { Provider } from './auth';
|
||||
@@ -35,52 +42,56 @@
|
||||
<Form on:submit={update}>
|
||||
<Modal bind:show={showModal}>
|
||||
<svelte:fragment slot="header">{provider.name} OAuth2 Settings</svelte:fragment>
|
||||
<p>
|
||||
To use {provider.name} authentication in your application, first fill in this form. For more
|
||||
info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="appID"
|
||||
label="Client ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="Enter ID"
|
||||
bind:value={provider.id} />
|
||||
<InputPassword
|
||||
id="secret"
|
||||
label="Client Secret"
|
||||
placeholder="Enter Client Secret"
|
||||
meter={false}
|
||||
bind:value={clientSecret} />
|
||||
<InputText
|
||||
id="domain"
|
||||
label="Okta Domain"
|
||||
autocomplete={false}
|
||||
placeholder="dev-1337.okta.com"
|
||||
bind:value={oktaDomain} />
|
||||
<InputText
|
||||
id="serverID"
|
||||
label="Authorization Server ID"
|
||||
autocomplete={false}
|
||||
placeholder="default"
|
||||
bind:value={authorizationServerId} />
|
||||
|
||||
<Alert type="info">
|
||||
<FormList>
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
To use {provider.name} authentication in your application, first fill in this form. For
|
||||
more info you can
|
||||
<a class="link" href={provider.docs} target="_blank" rel="noopener noreferrer"
|
||||
>visit the docs.</a>
|
||||
</p>
|
||||
</Alert>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
<InputSwitch
|
||||
id="state"
|
||||
bind:value={provider.active}
|
||||
label={provider.active ? 'Enabled' : 'Disabled'} />
|
||||
<InputText
|
||||
id="appID"
|
||||
label="Client ID"
|
||||
autofocus={true}
|
||||
autocomplete={false}
|
||||
placeholder="Enter ID"
|
||||
bind:value={provider.id} />
|
||||
<InputPassword
|
||||
id="secret"
|
||||
label="Client Secret"
|
||||
placeholder="Enter Client Secret"
|
||||
meter={false}
|
||||
bind:value={clientSecret} />
|
||||
<InputText
|
||||
id="domain"
|
||||
label="Okta Domain"
|
||||
autocomplete={false}
|
||||
placeholder="dev-1337.okta.com"
|
||||
bind:value={oktaDomain} />
|
||||
<InputText
|
||||
id="serverID"
|
||||
label="Authorization Server ID"
|
||||
autocomplete={false}
|
||||
placeholder="default"
|
||||
bind:value={authorizationServerId} />
|
||||
|
||||
<Alert type="info">
|
||||
<p>
|
||||
To complete set up, add this OAuth2 redirect URI to your {provider.name} app configuration.
|
||||
</p>
|
||||
</Alert>
|
||||
<div>
|
||||
<p>URI</p>
|
||||
<Copy
|
||||
value={`${
|
||||
sdkForConsole.config.endpoint
|
||||
}/account/session/oauth2/callback/${provider.name.toLocaleLowerCase()}/${projectId}`} />
|
||||
</div>
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button secondary on:click={() => (showModal = false)}>Cancel</Button>
|
||||
<Button submit>Update</Button>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import { Modal, Alert } from '$lib/components';
|
||||
import { Button, InputEmail, InputText, InputTags, Form } from '$lib/elements/forms';
|
||||
import { Button, InputEmail, InputText, InputTags, Form, FormList } from '$lib/elements/forms';
|
||||
import { addNotification } from '$lib/stores/notifications';
|
||||
import { sdkForProject } from '$lib/stores/sdk';
|
||||
import { createEventDispatcher } from 'svelte';
|
||||
@@ -43,21 +43,23 @@
|
||||
<Form on:submit={create}>
|
||||
<Modal bind:show={showCreate}>
|
||||
<svelte:fragment slot="header">Create User</svelte:fragment>
|
||||
<FormList>
|
||||
<InputEmail
|
||||
id="email"
|
||||
label="E-Mail"
|
||||
placeholder="test@example.com"
|
||||
required={true}
|
||||
autofocus={true}
|
||||
bind:value={email} />
|
||||
<InputText id="name" label="Name(optional)" placeholder="John Doe" bind:value={name} />
|
||||
<Alert type="info">
|
||||
<p>
|
||||
Roles are used to manage access permissions. You can create any role you want.
|
||||
</p>
|
||||
</Alert>
|
||||
|
||||
<InputEmail
|
||||
id="email"
|
||||
label="E-Mail"
|
||||
placeholder="test@example.com"
|
||||
required={true}
|
||||
autofocus={true}
|
||||
bind:value={email} />
|
||||
<InputText id="name" label="Name(optional)" placeholder="John Doe" bind:value={name} />
|
||||
<Alert type="info">
|
||||
<p>Roles are used to manage access permissions. You can create any role you want.</p>
|
||||
</Alert>
|
||||
|
||||
<InputTags id="tags" label="Roles" placeholder="Add roles" bind:tags={roles} />
|
||||
|
||||
<InputTags id="tags" label="Roles" placeholder="Add roles" bind:tags={roles} />
|
||||
</FormList>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button text on:click={() => (showCreate = false)}>Cancel</Button>
|
||||
<Button submit>Create</Button>
|
||||
|
||||
Reference in new issue
Block a user