diff --git a/src/lib/components/atoms/CommitBody.svelte b/src/lib/components/atoms/CommitBody.svelte index 03b5b68..7caf637 100644 --- a/src/lib/components/atoms/CommitBody.svelte +++ b/src/lib/components/atoms/CommitBody.svelte @@ -31,11 +31,11 @@ You should have received a copy of the GNU Affero General Public License along w }; -
+
- {commit.name} - {commit.name} + {$_(i18n.relative_time, { values: { relativeTime: $date(new Date(commit.committed)) } })}
-
- diff --git a/src/lib/components/atoms/CommitDate.svelte b/src/lib/components/atoms/CommitDate.svelte index c1e90dc..45b9232 100644 --- a/src/lib/components/atoms/CommitDate.svelte +++ b/src/lib/components/atoms/CommitDate.svelte @@ -36,7 +36,7 @@ You should have received a copy of the GNU Affero General Public License along w
- + diff --git a/src/lib/components/atoms/MainMenuActions.svelte b/src/lib/components/atoms/MainMenuActions.svelte index 85303a3..f6b2185 100644 --- a/src/lib/components/atoms/MainMenuActions.svelte +++ b/src/lib/components/atoms/MainMenuActions.svelte @@ -17,15 +17,21 @@ You should have received a copy of the GNU Affero General Public License along w
-
+
{$_('page.profile.menu.actions.fork')}
-
+
{$_('page.profile.menu.actions.star')}
-
+
{$_('page.profile.menu.actions.watch')} diff --git a/src/lib/components/atoms/MainMenuSummary.svelte b/src/lib/components/atoms/MainMenuSummary.svelte index e6da269..555db75 100644 --- a/src/lib/components/atoms/MainMenuSummary.svelte +++ b/src/lib/components/atoms/MainMenuSummary.svelte @@ -28,14 +28,14 @@ You should have received a copy of the GNU Affero General Public License along w
-
-
+
+
-
+
-
+
-
+
- {$_('overlay.avatar.dark_mode')} - Slider missing + {$_('overlay.avatar.dark_mode')} +
-
+
- {$_('overlay.avatar.about_anvil')} + {$_('overlay.avatar.about_anvil')}
-
+
- {$_('overlay.avatar.sign_out')} + {$_('overlay.avatar.sign_out')}
diff --git a/src/lib/components/atoms/SettingsSidebar.svelte b/src/lib/components/atoms/SettingsSidebar.svelte index c121fdf..7e860d8 100644 --- a/src/lib/components/atoms/SettingsSidebar.svelte +++ b/src/lib/components/atoms/SettingsSidebar.svelte @@ -28,7 +28,7 @@ You should have received a copy of the GNU Affero General Public License along w {$_('settings.headline')} @@ -37,8 +37,8 @@ You should have received a copy of the GNU Affero General Public License along w name="profile" value="profile" on:change={onTileChanged} - regionLabel="float-start ps-2 py-1 font-normal text-surface-500 !text-xl" - regionLead="float-start ps-8 text-surface-500" + regionLabel="float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl" + regionLead="float-start ps-8 text-surface-500-400-token" title={$_('settings.profile.label')} > @@ -51,8 +51,8 @@ You should have received a copy of the GNU Affero General Public License along w name="account" value="account" on:change={onTileChanged} - regionLabel="float-start ps-2 py-1 font-normal text-surface-500 !text-xl" - regionLead="float-start ps-8 text-surface-500" + regionLabel="float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl" + regionLead="float-start ps-8 text-surface-500-400-token" title={$_('settings.account.label')} > @@ -65,8 +65,8 @@ You should have received a copy of the GNU Affero General Public License along w name="ssh_gpg_keys" value="ssh_gpg_keys" on:change={onTileChanged} - regionLabel="float-start ps-2 py-1 font-normal text-surface-500 !text-xl" - regionLead="float-start ps-8 text-surface-500" + regionLabel="float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl" + regionLead="float-start ps-8 text-surface-500-400-token" title={$_('settings.ssh_gpg_keys.label')} > @@ -79,8 +79,8 @@ You should have received a copy of the GNU Affero General Public License along w name="appearance" value="appearance" on:change={onTileChanged} - regionLabel="float-start ps-2 py-1 font-normal text-surface-500 !text-xl" - regionLead="float-start ps-8 text-surface-500" + regionLabel="float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl" + regionLead="float-start ps-8 text-surface-500-400-token" title={$_('settings.appearance.label')} > @@ -93,8 +93,8 @@ You should have received a copy of the GNU Affero General Public License along w name="notifications" value="notifications" on:change={onTileChanged} - regionLabel="float-start ps-2 py-1 font-normal text-surface-500 !text-xl" - regionLead="float-start ps-8 text-surface-500" + regionLabel="float-start ps-2 py-1 font-normal text-surface-500-400-token !text-xl" + regionLead="float-start ps-8 text-surface-500-400-token" title={$_('settings.notifications.label')} > diff --git a/src/lib/components/molecules/MainMenu.svelte b/src/lib/components/molecules/MainMenu.svelte index 485b009..f4246da 100644 --- a/src/lib/components/molecules/MainMenu.svelte +++ b/src/lib/components/molecules/MainMenu.svelte @@ -18,7 +18,9 @@ You should have received a copy of the GNU Affero General Public License along w import MainMenuDetails from './MainMenuDetails.svelte'; -
+
diff --git a/src/lib/components/molecules/MainMenuDetails.svelte b/src/lib/components/molecules/MainMenuDetails.svelte index eeb2f76..a9c1e9a 100644 --- a/src/lib/components/molecules/MainMenuDetails.svelte +++ b/src/lib/components/molecules/MainMenuDetails.svelte @@ -32,73 +32,96 @@ You should have received a copy of the GNU Affero General Public License along w
-
+
Project Name
-
-
+
+
- {$_('page.profile.menu.details.repository')}{$_('page.profile.menu.details.repository')}
-
+
- {$_('page.profile.menu.details.files')} -
-
- - {$_('page.profile.menu.details.branches')}{$_('page.profile.menu.details.files')}
-
+
+ + {$_('page.profile.menu.details.branches')} +
+
- {$_('page.profile.menu.details.commits')} + {$_('page.profile.menu.details.commits')}
-
+
- {$_('page.profile.menu.details.tags')} + {$_('page.profile.menu.details.tags')}
-
+
- {$_('page.profile.menu.details.issues')} - 2 -
-
- - {$_('page.profile.menu.details.merge_requests')}{$_('page.profile.menu.details.issues')} - 2
-
+
+ + {$_('page.profile.menu.details.merge_requests')} + 2 +
+
- {$_('page.profile.menu.details.people')} + {$_('page.profile.menu.details.people')}
-
+
- {$_('page.profile.menu.details.roles')} + {$_('page.profile.menu.details.roles')}
-
+
- {$_('page.profile.menu.details.moderation')}
-
+
- {$_('page.profile.menu.details.overview')} + {$_('page.profile.menu.details.overview')}
diff --git a/src/lib/components/molecules/MoreFilters.svelte b/src/lib/components/molecules/MoreFilters.svelte index 1251c4b..819780f 100644 --- a/src/lib/components/molecules/MoreFilters.svelte +++ b/src/lib/components/molecules/MoreFilters.svelte @@ -23,8 +23,8 @@ You should have received a copy of the GNU Affero General Public License along w }; -
- diff --git a/src/lib/components/molecules/Pagination.svelte b/src/lib/components/molecules/Pagination.svelte index d3a2bff..f477d4c 100644 --- a/src/lib/components/molecules/Pagination.svelte +++ b/src/lib/components/molecules/Pagination.svelte @@ -29,20 +29,20 @@ You should have received a copy of the GNU Affero General Public License along w {$_(i18n.previous)} - 1 - 2 - 3 + 1 + 2 + 3 4 - 5 - 6 + 5 + 6 - 17 - 18 + 17 + 18 {$_(i18n.next)} diff --git a/src/lib/components/molecules/Project.svelte b/src/lib/components/molecules/Project.svelte index af68bb5..afba4ab 100644 --- a/src/lib/components/molecules/Project.svelte +++ b/src/lib/components/molecules/Project.svelte @@ -47,7 +47,7 @@ You should have received a copy of the GNU Affero General Public License along w }; -
+
@@ -58,7 +58,7 @@ You should have received a copy of the GNU Affero General Public License along w
    {#each collaborators as member}
  • -
    +
  • diff --git a/src/lib/components/molecules/Projects.svelte b/src/lib/components/molecules/Projects.svelte index a13f1ad..bc2bec8 100644 --- a/src/lib/components/molecules/Projects.svelte +++ b/src/lib/components/molecules/Projects.svelte @@ -24,7 +24,7 @@ You should have received a copy of the GNU Affero General Public License along w - diff --git a/src/lib/components/molecules/Search.svelte b/src/lib/components/molecules/Search.svelte index 158e357..527fcf7 100644 --- a/src/lib/components/molecules/Search.svelte +++ b/src/lib/components/molecules/Search.svelte @@ -31,10 +31,10 @@ You should have received a copy of the GNU Affero General Public License along w id="search" name="search" type="search" - class="bg-surface-200 border-none" + class="bg-surface-200-700-token border-none" placeholder={$_(i18n.placeholder)} /> -
diff --git a/src/lib/components/molecules/Settings.svelte b/src/lib/components/molecules/Settings.svelte index 7f1a104..9d3a627 100644 --- a/src/lib/components/molecules/Settings.svelte +++ b/src/lib/components/molecules/Settings.svelte @@ -19,31 +19,13 @@ You should have received a copy of the GNU Affero General Public License along w import SettingsProfile from './SettingsProfile.svelte'; let activeSetting = 'profile'; - let activeTheme = 'auto'; function onTileChanged(ev) { activeSetting = ev.detail; } - - function onThemeSwitched(ev) { - activeTheme = ev.detail; - // This is a hack. - // Skeleton relies on Cookies and a hook: - // https://github.com/skeletonlabs/skeleton/blob/%40skeletonlabs/skeleton%402.10.2/sites/skeleton.dev/src/hooks.server.ts#L16 - // Svelte itself features a svelte:document special element that must - // only be used at the top level - except SvelteKit has app.html - // as a static file :[] - // Ideas welcome! - if (window?.document?.documentElement) { - window.document.documentElement.classList.remove('auto'); - window.document.documentElement.classList.remove('dark'); - window.document.documentElement.classList.remove('light'); - window.document.documentElement.classList.add(activeTheme); - } - } -
+
{#if activeSetting === 'profile'} @@ -53,6 +35,6 @@ You should have received a copy of the GNU Affero General Public License along w {:else if activeSetting === 'ssh_gpg_keys'} {:else if activeSetting === 'appearance'} - + {/if}
diff --git a/src/lib/components/molecules/SettingsAccount.svelte b/src/lib/components/molecules/SettingsAccount.svelte index 3cc0c5d..b7ff8b1 100644 --- a/src/lib/components/molecules/SettingsAccount.svelte +++ b/src/lib/components/molecules/SettingsAccount.svelte @@ -15,26 +15,32 @@ You should have received a copy of the GNU Affero General Public License along w import { _ } from 'svelte-i18n'; -
-
{$_('settings.account.headline')}
+
+
+ {$_('settings.account.headline')} +
- {$_('settings.account.f2.label')} + {$_('settings.account.f2.label')}
- {$_('settings.account.verification.label')}{$_('settings.account.verification.label')} - +
diff --git a/src/lib/components/molecules/SettingsAppearance.svelte b/src/lib/components/molecules/SettingsAppearance.svelte index ffa45bf..3354158 100644 --- a/src/lib/components/molecules/SettingsAppearance.svelte +++ b/src/lib/components/molecules/SettingsAppearance.svelte @@ -12,31 +12,53 @@ You should have received a copy of the GNU Affero General Public License along w -->
-
+
{$_('settings.appearance.headline')}
-
+
{$_('settings.appearance.theme.headline')}
-
+
{$_('settings.appearance.tab_indent.headline')}

{$_('settings.appearance.tab_indent.intro')}

diff --git a/src/lib/components/molecules/SettingsKeys.svelte b/src/lib/components/molecules/SettingsKeys.svelte index d7aac85..1455f90 100644 --- a/src/lib/components/molecules/SettingsKeys.svelte +++ b/src/lib/components/molecules/SettingsKeys.svelte @@ -35,13 +35,13 @@ You should have received a copy of the GNU Affero General Public License along w ]; -
-
+
+
{$_('settings.ssh_gpg_keys.headline')}
-
+
{$_('settings.ssh_gpg_keys.ssh.headline')}
@@ -51,8 +51,8 @@ You should have received a copy of the GNU Affero General Public License along w class="flex border-b border-surface-200 last:border-b-0 items-center justify-between gap-4 pb-2" > - {key.title} - {key.fingerprint} + {key.title} + {key.fingerprint} @@ -61,21 +61,23 @@ You should have received a copy of the GNU Affero General Public License along w
-
-
+
{$_('settings.ssh_gpg_keys.gpg.headline')}
@@ -85,8 +87,10 @@ You should have received a copy of the GNU Affero General Public License along w class="flex border-b border-surface-200 last:border-b-0 items-center justify-between gap-4 pb-2" > - {key.title} - {key.fingerprint} + {key.title} + {key.fingerprint} @@ -95,15 +99,17 @@ You should have received a copy of the GNU Affero General Public License along w
-
diff --git a/src/lib/components/molecules/SettingsProfile.svelte b/src/lib/components/molecules/SettingsProfile.svelte index 9cb2570..17ee515 100644 --- a/src/lib/components/molecules/SettingsProfile.svelte +++ b/src/lib/components/molecules/SettingsProfile.svelte @@ -16,16 +16,23 @@ You should have received a copy of the GNU Affero General Public License along w import { Person24, Upload16, XCircleFill12 } from 'svelte-octicons'; -
-
{$_('settings.profile.headline')}
+
+
+ {$_('settings.profile.headline')} +
-
{$_('settings.profile.avatar.headline')}
+
+ {$_('settings.profile.avatar.headline')} +
- + diff --git a/src/lib/components/molecules/Welcome.svelte b/src/lib/components/molecules/Welcome.svelte index 1dd4e81..5f8c07b 100644 --- a/src/lib/components/molecules/Welcome.svelte +++ b/src/lib/components/molecules/Welcome.svelte @@ -48,11 +48,11 @@ You should have received a copy of the GNU Affero General Public License along w
-

{$_(i18n.headline)}

-

{$_(i18n.intro)}

+

{$_(i18n.headline)}

+

{$_(i18n.intro)}

- {$_(i18n.reset)}{$_(i18n.reset)}
diff --git a/src/lib/components/organisms/FileTable.svelte b/src/lib/components/organisms/FileTable.svelte index b625919..c518b71 100644 --- a/src/lib/components/organisms/FileTable.svelte +++ b/src/lib/components/organisms/FileTable.svelte @@ -43,19 +43,19 @@ You should have received a copy of the GNU Affero General Public License along w - - + - {#each projects as project} - +
+
{$_(i18n.heading.name)} + {$_(i18n.heading.lastUpdated)}
@@ -67,7 +67,7 @@ You should have received a copy of the GNU Affero General Public License along w {/each}
-
+
{project.description}
@@ -82,18 +82,27 @@ You should have received a copy of the GNU Affero General Public License along w
- - -
-
+
{$_(i18n.table.updated, { values: { relativeTime: project.lastUpdated.toISOString() diff --git a/src/lib/components/templates/ImportProject.svelte b/src/lib/components/templates/ImportProject.svelte index f6c1dbe..b5065df 100644 --- a/src/lib/components/templates/ImportProject.svelte +++ b/src/lib/components/templates/ImportProject.svelte @@ -61,13 +61,13 @@ You should have received a copy of the GNU Affero General Public License along w
-

{$_(i18n.heading)}

-

{$_(i18n.intro)}

+

{$_(i18n.heading)}

+

{$_(i18n.intro)}

-

+