From 3845979870fc401adbfe977515f333c5f31214a0 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Sun, 12 Oct 2025 11:59:19 +0200 Subject: [PATCH] Format --- task_2_ts/package.json | 2 +- task_2_ts/ts/csv.ts | 1 + task_2_ts/ts/main.ts | 6 +++--- task_2_ts/vite.config.js | 13 +++++++------ 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/task_2_ts/package.json b/task_2_ts/package.json index e67d2e7..257a36c 100644 --- a/task_2_ts/package.json +++ b/task_2_ts/package.json @@ -11,7 +11,7 @@ "devDependencies": { "prettier": "^3.0.1", "typescript": "^5.1.6", - "vite": "^4.4.9" + "vite": "^7.1.9" }, "dependencies": { "@fortawesome/fontawesome-free": "^6.4.2", diff --git a/task_2_ts/ts/csv.ts b/task_2_ts/ts/csv.ts index d45100e..76806ac 100644 --- a/task_2_ts/ts/csv.ts +++ b/task_2_ts/ts/csv.ts @@ -6,6 +6,7 @@ export type CSV_Data = Array>; const convertCSVtoJSON = async ( csvText: string ) => { // Type cast OK, as the typing of the external library is not perfect. + // NOTE: On transpilation to JS, it will be (more or less) disregarded anyway return ( await csv2json( csvText ) ) as CSV_Data; }; diff --git a/task_2_ts/ts/main.ts b/task_2_ts/ts/main.ts index 1bb0220..610e813 100644 --- a/task_2_ts/ts/main.ts +++ b/task_2_ts/ts/main.ts @@ -1,5 +1,5 @@ -import "@fortawesome/fontawesome-free/css/all.css"; -import "../css/layout.css"; -import "@picocss/pico/css/pico.min.css"; +import '@fortawesome/fontawesome-free/css/all.css'; +import '../css/layout.css'; +import '@picocss/pico/css/pico.min.css'; // TODO start here with the first entry point diff --git a/task_2_ts/vite.config.js b/task_2_ts/vite.config.js index 4967025..6511415 100644 --- a/task_2_ts/vite.config.js +++ b/task_2_ts/vite.config.js @@ -1,7 +1,8 @@ export default { - server: { - host: '0.0.0.0', - port: 5173, - allowedHosts: true, - }, -} \ No newline at end of file + 'server': { + // host: '0.0.0.0', + // port: 5173, + // allowedHosts: true, + 'port': 8080 + }, +};