From 1535d450f31e9a53acaedaa85eb701d47120dc66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?krzysztof=20P=C5=82aczek?= Date: Thu, 1 Jan 2026 10:34:28 +0100 Subject: [PATCH] Better darkmode and chart.js start --- Dockerfile | 19 + README.md | 0 bin/build | 2 + bin/dev | 2 + bin/tailwindbuild | 2 + docker-compose.yml | 10 + download_posts.php | 26 +- index.html | 237 +++++++++--- package-lock.json | 848 +++++------------------------------------- package.json | 6 +- src/chart.js | 34 ++ src/darkmodetoggle.js | 6 + src/generated.css | 844 +---------------------------------------- src/main.js | 200 ++++++++-- src/style.css | 1 + tailwind.config.js | 1 + 16 files changed, 553 insertions(+), 1685 deletions(-) create mode 100755 Dockerfile mode change 100644 => 100755 README.md create mode 100755 bin/build create mode 100755 bin/dev create mode 100755 bin/tailwindbuild create mode 100755 docker-compose.yml mode change 100644 => 100755 download_posts.php mode change 100644 => 100755 index.html mode change 100644 => 100755 package-lock.json mode change 100644 => 100755 package.json create mode 100755 src/chart.js create mode 100755 src/darkmodetoggle.js mode change 100644 => 100755 src/generated.css mode change 100644 => 100755 src/main.js mode change 100644 => 100755 src/style.css mode change 100644 => 100755 tailwind.config.js diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 0000000..994e1cf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM node:20 + +# Set working directory inside container +WORKDIR /app + +# Copy package files first (better layer caching) +COPY package*.json ./ + +# Install dependencies +RUN npm install + +# Copy the rest of the project +COPY . . + +# Expose Vite dev server port +EXPOSE 5173 + +# Default command +CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"] diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/bin/build b/bin/build new file mode 100755 index 0000000..75e04d8 --- /dev/null +++ b/bin/build @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +docker compose run --rm node npm run build \ No newline at end of file diff --git a/bin/dev b/bin/dev new file mode 100755 index 0000000..0583458 --- /dev/null +++ b/bin/dev @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +docker compose run --rm node npm run dev -- --host 0.0.0.0 \ No newline at end of file diff --git a/bin/tailwindbuild b/bin/tailwindbuild new file mode 100755 index 0000000..5c5bdc9 --- /dev/null +++ b/bin/tailwindbuild @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +docker compose run --rm node npm run tailwind:build diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100755 index 0000000..a6509d1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +services: + node: + build: . + working_dir: /app + volumes: + - .:/app + - /app/node_modules + ports: + - "5173:5173" + command: npm run dev -- --host 0.0.0.0 diff --git a/download_posts.php b/download_posts.php old mode 100644 new mode 100755 index 7f3b7e4..98157d9 --- a/download_posts.php +++ b/download_posts.php @@ -1,9 +1,29 @@ - + + + bookmeterplus Project - - + +
+ + + + + + + + +
-
- -
-
@@ -45,46 +82,63 @@
- -
- -
- -
- -
-
@@ -94,45 +148,103 @@
+ - - - - - - - - + + + + + + + +
#UzytkownikTytułAutorWydawcaStronFormatOcena +
+ Użytkownik +
+
+
+
+ Tytuł +
+
+
+
+ Autor +
+
+
+
+ Wydawca +
+
+
+
+ Stron +
+
+
+
+ Format +
+
+
+
+ Ocena +
+
+
+
+ +
+
+
Link