Add svelte as a view engine to swaf #33

Merged
ashpie merged 97 commits from svelte into develop 2021-11-09 19:31:22 +01:00
Showing only changes of commit 5336940dc3 - Show all commits

View File

@ -32,7 +32,7 @@
{#if !loginUsingMagicLink} {#if !loginUsingMagicLink}
<Field type="password" name="password" placeholder="Your password" icon="key" required/> <Field type="password" name="password" placeholder="Your password" icon="key" required/>
<button on:click={() => loginUsingMagicLink=true} type="button"><Icon name="link"/> Use magic link</button> <button on:click={() => loginUsingMagicLink=true} type="button"><Icon name="mail"/> Use magic link</button>
{:else} {:else}
<button on:click={() => loginUsingMagicLink=false} type="button"><Icon name="key"/> Use password</button> <button on:click={() => loginUsingMagicLink=false} type="button"><Icon name="key"/> Use password</button>
{/if} {/if}
@ -48,7 +48,7 @@
{#if $locals.has_username} {#if $locals.has_username}
<Field type="text" name={registerUsingMagicLink ? 'name' : 'identifier'} icon="user" <Field type="text" name={registerUsingMagicLink ? 'name' : 'identifier'} icon="user"
placeholder="Choose your username" hint="This cannot be changed later." placeholder="Choose your username"
pattern="[0-9a-z_-]+" required/> pattern="[0-9a-z_-]+" required/>
{/if} {/if}