commit 416695b81509e2fb6a52b08bd4bc19c470c6a9dd
parent 8e0b9e8bec58ac80ba1ff6513af81299ddef3aa0
Author: Katja (ctucx) <git@ctu.cx>
Date: Thu, 17 Apr 2025 16:17:37 +0200
parent 8e0b9e8bec58ac80ba1ff6513af81299ddef3aa0
Author: Katja (ctucx) <git@ctu.cx>
Date: Thu, 17 Apr 2025 16:17:37 +0200
update repourl, change package name, set author
3 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/package.json b/package.json @@ -1,7 +1,7 @@ { - "name": "trainsearch", + "name": "oeffisearch", "version": "1.0.0", - "description": "", + "description": "fast and simple tripplanner", "type": "module", "scripts": { "build": "rollup -c", @@ -9,7 +9,7 @@ "dev": "concurrently --kill-others 'pnpm run watch' 'pnpm run start'", "start": "nginx -c $(pwd)/nginx.conf" }, - "author": "", + "author": "Katja(ctucx), yuka", "license": "AGPL-3.0", "dependencies": { "buffer": "^6.0.3",
diff --git a/rollup.config.js b/rollup.config.js @@ -19,6 +19,9 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); const appName = 'Öffisearch'; +const appRepoUrl = 'https://git.ctu.cx/oeffisearch'; +const appImprintUrl = 'https://ctu.cx/imprint.html'; + const isDevServer = process.env.ROLLUP_WATCH; const gitVersion = process.env.GIT_VERSION; const gitCommit = process.env.GIT_COMMIT; @@ -57,6 +60,8 @@ export default { 'cross-fetch': path.resolve(__dirname, 'src/shim/cross-fetch.js'), 'isDevServer': isDevServer, 'APP_NAME': JSON.stringify(appName), + 'APP_REPOURL': JSON.stringify(appRepoUrl), + 'APP_IMPRINTURL': JSON.stringify(appImprintUrl), 'APP_VERSION': JSON.stringify(gitVersion ? gitVersion : `0.0.0-${isDevServer ? 'dev' : 'prod'}`), 'APP_COMMIT': JSON.stringify(gitCommit ? gitCommit : 'unknown'), 'APP_COMMITDATE': JSON.stringify(gitCommitDate ? gitCommitDate : (new Date).toString()),
diff --git a/src/footerComponent.js b/src/footerComponent.js @@ -12,8 +12,8 @@ class FooterElement extends LitElement { render() { return html` <footer class="center"> - <a href="https://git.ctu.cx/trainsearch" title="commit ${APP_COMMIT} from ${APP_COMMITDATE}">Source-Code (${APP_VERSION})</a> - <a href="https://ctu.cx/imprint.html">Imprint</a> + <a href="${APP_REPOURL}" title="commit ${APP_COMMIT} from ${APP_COMMITDATE}">Source-Code (${APP_VERSION})</a> + <a href="${APP_IMPRINTURL}">Imprint</a> </footer> `; }