From edfbcce5a2a2e167e254d29123f42b66bd7b0314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Jaenisch?= Date: Fri, 15 Mar 2024 10:49:30 +0100 Subject: [PATCH] refactor: drop lang="ts" from script elements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I noticed that tooling isn't capable of handling it. Signed-off-by: André Jaenisch --- src/lib/components/atoms/Avatar.svelte | 6 ++--- src/lib/components/atoms/BlockOrReport.svelte | 2 +- src/lib/components/atoms/Created.svelte | 17 +++++++----- src/lib/components/atoms/DisplayName.svelte | 20 +++++++++----- src/lib/components/organisms/LoginForm.svelte | 27 ++++++++++++++++--- src/lib/components/pages/ImportProject.svelte | 4 +-- src/lib/components/pages/Login.svelte | 6 ++--- src/lib/components/pages/Profile.svelte | 4 +-- .../components/templates/ImportProject.svelte | 4 +-- src/lib/components/templates/Login.svelte | 6 ++--- src/lib/components/templates/Profile.svelte | 24 ++++++++++------- 11 files changed, 78 insertions(+), 42 deletions(-) diff --git a/src/lib/components/atoms/Avatar.svelte b/src/lib/components/atoms/Avatar.svelte index 0852233..f6fb609 100644 --- a/src/lib/components/atoms/Avatar.svelte +++ b/src/lib/components/atoms/Avatar.svelte @@ -11,18 +11,18 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> - diff --git a/src/lib/components/atoms/BlockOrReport.svelte b/src/lib/components/atoms/BlockOrReport.svelte index 2bf70a9..c81ad55 100644 --- a/src/lib/components/atoms/BlockOrReport.svelte +++ b/src/lib/components/atoms/BlockOrReport.svelte @@ -11,7 +11,7 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> - diff --git a/src/lib/components/atoms/Created.svelte b/src/lib/components/atoms/Created.svelte index b7e1944..a271166 100644 --- a/src/lib/components/atoms/Created.svelte +++ b/src/lib/components/atoms/Created.svelte @@ -11,16 +11,19 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> - {#if created_at && created_at_formatted} diff --git a/src/lib/components/atoms/DisplayName.svelte b/src/lib/components/atoms/DisplayName.svelte index 6ee7e11..5b4ab26 100644 --- a/src/lib/components/atoms/DisplayName.svelte +++ b/src/lib/components/atoms/DisplayName.svelte @@ -11,23 +11,31 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> -

- - {$_('page.profile.heading')} + {$_(i18n.heading)} {displayName}

-

({pronoun})

+{#if pronoun} +

({pronoun})

+{/if} diff --git a/src/lib/components/organisms/LoginForm.svelte b/src/lib/components/organisms/LoginForm.svelte index 69c0a08..b1fc810 100644 --- a/src/lib/components/organisms/LoginForm.svelte +++ b/src/lib/components/organisms/LoginForm.svelte @@ -11,25 +11,44 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> - diff --git a/src/lib/components/pages/Login.svelte b/src/lib/components/pages/Login.svelte index 84524a0..30d5b0a 100644 --- a/src/lib/components/pages/Login.svelte +++ b/src/lib/components/pages/Login.svelte @@ -11,20 +11,20 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> - diff --git a/src/lib/components/pages/Profile.svelte b/src/lib/components/pages/Profile.svelte index c4b42ae..7105b4e 100644 --- a/src/lib/components/pages/Profile.svelte +++ b/src/lib/components/pages/Profile.svelte @@ -11,13 +11,13 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> - diff --git a/src/lib/components/templates/ImportProject.svelte b/src/lib/components/templates/ImportProject.svelte index 78ed87d..f86db68 100644 --- a/src/lib/components/templates/ImportProject.svelte +++ b/src/lib/components/templates/ImportProject.svelte @@ -11,14 +11,14 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> -
diff --git a/src/lib/components/templates/Login.svelte b/src/lib/components/templates/Login.svelte index a7be89b..c701bca 100644 --- a/src/lib/components/templates/Login.svelte +++ b/src/lib/components/templates/Login.svelte @@ -11,7 +11,7 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> -