refactoring

This commit is contained in:
vcoppe committed 2026-10-11 11:18:36 +02:00
1 parent 4795513344
commit 890bcd765a
169 files changed
+263 -256

No files matched your search

@@ -1,6 +1,6 @@
/**
* Computes the statistics of `assets/example.gpx` with the engine, and writes them to
* `assets/example-data.ts`, where the pages that show an example (the home page, the
* Computes the statistics of `data/example/example.gpx` with the engine, and writes them to
* `data/example/example-data.ts`, where the pages that show an example (the home page, the
* documentation) take them from. Run it when the example, or the way the engine computes the
* statistics, changes:
*
@@ -15,11 +15,11 @@ import { fileURLToPath, pathToFileURL } from 'url';
import prettier from 'prettier';
const here = path.dirname(fileURLToPath(import.meta.url));
const assets = path.resolve(here, '../assets');
const example = path.resolve(here, '../data/example');
const packageDirectory = path.resolve(here, '../../../../gpx-rs/pkg');
export const exampleGPX = path.join(assets, 'example.gpx');
export const exampleData = path.join(assets, 'example-data.ts');
export const exampleGPX = path.join(example, 'example.gpx');
export const exampleData = path.join(example, 'example-data.ts');
/** Whether the engine is built. */
export function engineIsBuilt() {
+1 -1
View File
@@ -1,5 +1,5 @@
import fs from 'fs';
import { languages } from '../languages';
import { languages } from '$lib/i18n/languages';
function localizeManifest(manifestTemplateData: any, language: string) {
const localizedManifestFile = `static/${language}.manifest.webmanifest`;
+1 -1
View File
@@ -1,6 +1,6 @@
import fs from 'fs';
import { glob } from 'glob';
import { languages } from '$lib/languages';
import { languages } from '$lib/i18n/languages';
function getURLForLanguage(lang: string, path: string): string {
return `https://gpx.studio${lang === 'en' ? '' : `/${lang}`}${path}`;