diff --git a/.prettierignore b/.prettierignore index 3897265..4c899c6 100644 --- a/.prettierignore +++ b/.prettierignore @@ -6,6 +6,7 @@ node_modules .env .env.* !.env.example +/storybook-static # Ignore files for PNPM, NPM and YARN pnpm-lock.yaml diff --git a/src/lib/components/organisms/LoginForm.svelte b/src/lib/components/organisms/LoginForm.svelte index cfb5257..a6e8a58 100644 --- a/src/lib/components/organisms/LoginForm.svelte +++ b/src/lib/components/organisms/LoginForm.svelte @@ -15,6 +15,11 @@ * Available servers for signin */ export let servers: Array = []; + + /** + * Allow for linking stories in Storybook. + */ + export let sb = '';
@@ -50,7 +55,7 @@ {$_(i18n.reset)} -
diff --git a/src/lib/components/templates/Login.svelte b/src/lib/components/templates/Login.svelte index d19f1a4..533c97c 100644 --- a/src/lib/components/templates/Login.svelte +++ b/src/lib/components/templates/Login.svelte @@ -7,6 +7,10 @@ * Form handling by SvelteKit */ export let form: unknown = null; + + /** + * Translation keys to enable reuse + */ const i18n = { fields: { account: { @@ -27,6 +31,12 @@ missing: 'page.login.form.validation.missing' } }; + + /** + * Allow for linking stories in Storybook. + */ + export let sb = ''; + const servers = { '1': 'fig.fr33domlover.site', '2': 'grape.fr33domlover.site', @@ -38,6 +48,6 @@

{$_('page.login.heading')}

{$_('page.login.intro')}

- +
diff --git a/src/lib/components/templates/Profile.svelte b/src/lib/components/templates/Profile.svelte index 912416d..883bea6 100644 --- a/src/lib/components/templates/Profile.svelte +++ b/src/lib/components/templates/Profile.svelte @@ -13,6 +13,11 @@ * Required context for populating the template. */ export let data: ProfileData = null; + + /** + * Allow for linking stories in Storybook. + */ + export let sb = '';
@@ -60,7 +65,7 @@ values: { addElementOpen: '', addElementClose: '', - importElementOpen: '', + importElementOpen: ``, importElementClose: '' } })}