minor fixes

This commit is contained in:
vcoppe
2025-10-20 19:53:42 +02:00
parent 2ca53c1004
commit a78bd8d7ca
32 changed files with 40 additions and 48 deletions

View File

@@ -3,22 +3,19 @@
import { Moon, Sun } from '@lucide/svelte'; import { Moon, Sun } from '@lucide/svelte';
import { mode, setMode } from 'mode-watcher'; import { mode, setMode } from 'mode-watcher';
import { i18n } from '$lib/i18n.svelte'; import { i18n } from '$lib/i18n.svelte';
export let size = '20';
</script> </script>
<Button <Button
variant="ghost" variant="ghost"
size="icon" size="icon"
class="h-8 px-1.5 {$$props.class ?? ''}"
onclick={() => { onclick={() => {
setMode(mode.current === 'light' ? 'dark' : 'light'); setMode(mode.current === 'light' ? 'dark' : 'light');
}} }}
aria-label={i18n._('menu.mode')} aria-label={i18n._('menu.mode')}
> >
{#if mode.current === 'light'} {#if mode.current === 'light'}
<Sun {size} /> <Sun />
{:else} {:else}
<Moon {size} /> <Moon />
{/if} {/if}
</Button> </Button>

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Barra d'eines
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Panel nástrojů
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Werkzeugleiste
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Barra de herramientas
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Tresna-barra
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Barre d'outils
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Eszköztár
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Barra degli strumenti
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Werkbalk
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Barra de ferramentas
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Панель инструментов
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Traka sa alatkama
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Araç çubuğu
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: Toolbar
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -4,7 +4,7 @@ title: 工具栏
<script lang="ts"> <script lang="ts">
import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/stores'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onMount, onDestroy } from 'svelte'; import { onMount, onDestroy } from 'svelte';
onMount(() => { onMount(() => {

View File

@@ -2,9 +2,9 @@
import { Button } from '$lib/components/ui/button'; import { Button } from '$lib/components/ui/button';
import DocsContainer from '$lib/components/docs/DocsContainer.svelte'; import DocsContainer from '$lib/components/docs/DocsContainer.svelte';
import Logo from '$lib/components/Logo.svelte'; import Logo from '$lib/components/Logo.svelte';
// import ElevationProfile from '$lib/components/ElevationProfile.svelte'; import ElevationProfile from '$lib/components/ElevationProfile.svelte';
import GPXStatistics from '$lib/components/GPXStatistics.svelte'; import GPXStatistics from '$lib/components/GPXStatistics.svelte';
// import Routing from '$lib/components/toolbar/tools/routing/Routing.svelte'; import Routing from '$lib/components/toolbar/tools/routing/Routing.svelte';
import { import {
BookOpenText, BookOpenText,
Heart, Heart,
@@ -19,7 +19,7 @@
import { getURLForLanguage } from '$lib/utils'; import { getURLForLanguage } from '$lib/utils';
import { exampleGPXFile } from '$lib/assets/example'; import { exampleGPXFile } from '$lib/assets/example';
import { writable } from 'svelte/store'; import { writable } from 'svelte/store';
// import Toolbar from '$lib/components/toolbar/Toolbar.svelte'; import Toolbar from '$lib/components/toolbar/Toolbar.svelte';
import { currentTool, Tool } from '$lib/components/toolbar/tools'; import { currentTool, Tool } from '$lib/components/toolbar/tools';
import { onDestroy, onMount } from 'svelte'; import { onDestroy, onMount } from 'svelte';
@@ -102,7 +102,7 @@
<p class="text-muted-foreground">{i18n._('homepage.route_planning_description')}</p> <p class="text-muted-foreground">{i18n._('homepage.route_planning_description')}</p>
</div> </div>
<div class="p-3 w-fit rounded-md border shadow-xl md:shrink-0"> <div class="p-3 w-fit rounded-md border shadow-xl md:shrink-0">
<!-- <Routing minimizable={false} /> --> <Routing minimizable={false} />
</div> </div>
</div> </div>
</div> </div>
@@ -120,7 +120,7 @@
</p> </p>
</div> </div>
<div class="relative md:shrink-0 max-w-[400px]"> <div class="relative md:shrink-0 max-w-[400px]">
<!-- <Toolbar /> --> <Toolbar />
</div> </div>
<div class="markdown text-center hidden md:block"> <div class="markdown text-center hidden md:block">
<h1> <h1>
@@ -190,12 +190,12 @@
</p> </p>
</div> </div>
<div class="h-48 w-full"> <div class="h-48 w-full">
<!-- <ElevationProfile <ElevationProfile
{gpxStatistics} {gpxStatistics}
{slicedGPXStatistics} {slicedGPXStatistics}
additionalDatasets={$additionalDatasets} additionalDatasets={$additionalDatasets}
elevationFill={$elevationFill} elevationFill={$elevationFill}
/> --> />
</div> </div>
<div class="flex flex-col items-center"> <div class="flex flex-col items-center">
<div class="h-10 w-fit"> <div class="h-10 w-fit">
@@ -250,12 +250,7 @@
<DocsContainer module={fundingModule.default} /> <DocsContainer module={fundingModule.default} />
{/await} {/await}
<Button href="https://ko-fi.com/gpxstudio" target="_blank" class="text-base"> <Button href="https://ko-fi.com/gpxstudio" target="_blank" class="text-base">
<Heart <Heart size="16" class="mr-1" fill="var(--support)" color="var(--support)" />
size="16"
class="mr-1"
fill="rgb(var(--support))"
color="rgb(var(--support))"
/>
<span>{i18n._('homepage.support_button')}</span> <span>{i18n._('homepage.support_button')}</span>
</Button> </Button>
</div> </div>