From b99f51f47481fffb18bb006453421a08a8a70ba4 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 28 Nov 2024 00:01:46 +0100 Subject: [PATCH] First commit --- .env.local | 3 + .idea/.gitignore | 6 + .idea/holycow.iml | 11 + .idea/icon.svg | 16 + .idea/inspectionProfiles/Project_Default.xml | 18 + .idea/libraries/public_abK9xQ.xml | 9 + .idea/misc.xml | 10 + .idea/modules.xml | 10 + .idea/runConfigurations/Frontend.xml | 15 + .idea/vcs.xml | 6 + .media/icon-128x128_round.png | Bin 0 -> 5616 bytes .media/icon-512x512.png | Bin 0 -> 160998 bytes .media/icon.svg | 16 + README.md | 13 + holycow_backend/.gitignore | 1 + holycow_backend/Cargo.lock | 2479 +++++++++++++++++ holycow_backend/Cargo.toml | 17 + holycow_backend/diesel.toml | 9 + holycow_backend/holycow_backend.iml | 12 + .../down.sql | 6 + .../up.sql | 36 + .../2024-11-27-175800_first/down.sql | 1 + .../migrations/2024-11-27-175800_first/up.sql | 15 + holycow_backend/src/config.rs | 4 + holycow_backend/src/get_results.sql | 7 + holycow_backend/src/main.rs | 67 + holycow_backend/src/schema.rs | 10 + holycow_frontend/.gitignore | 41 + holycow_frontend/holycow_frontend.iml | 12 + holycow_frontend/next.config.mjs | 4 + holycow_frontend/package-lock.json | 943 +++++++ holycow_frontend/package.json | 20 + holycow_frontend/src/app/favicon.ico | Bin 0 -> 25931 bytes holycow_frontend/src/app/layout.css | 12 + holycow_frontend/src/app/layout.tsx | 49 + holycow_frontend/src/app/page.tsx | 83 + holycow_frontend/src/app/report/page.tsx | 107 + .../src/components/StatPanel.module.css | 10 + holycow_frontend/src/components/StatPanel.tsx | 15 + .../src/components/useTelegram.ts | 19 + holycow_frontend/src/telegram.ts | 21 + holycow_frontend/tsconfig.json | 41 + package-lock.json | 64 + package.json | 7 + 44 files changed, 4245 insertions(+) create mode 100644 .env.local create mode 100644 .idea/.gitignore create mode 100644 .idea/holycow.iml create mode 100644 .idea/icon.svg create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/libraries/public_abK9xQ.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/runConfigurations/Frontend.xml create mode 100644 .idea/vcs.xml create mode 100644 .media/icon-128x128_round.png create mode 100644 .media/icon-512x512.png create mode 100644 .media/icon.svg create mode 100644 README.md create mode 100644 holycow_backend/.gitignore create mode 100644 holycow_backend/Cargo.lock create mode 100644 holycow_backend/Cargo.toml create mode 100644 holycow_backend/diesel.toml create mode 100644 holycow_backend/holycow_backend.iml create mode 100644 holycow_backend/migrations/0000-00-00-000000_diesel_initial_setup/down.sql create mode 100644 holycow_backend/migrations/0000-00-00-000000_diesel_initial_setup/up.sql create mode 100644 holycow_backend/migrations/2024-11-27-175800_first/down.sql create mode 100644 holycow_backend/migrations/2024-11-27-175800_first/up.sql create mode 100644 holycow_backend/src/config.rs create mode 100644 holycow_backend/src/get_results.sql create mode 100644 holycow_backend/src/main.rs create mode 100644 holycow_backend/src/schema.rs create mode 100644 holycow_frontend/.gitignore create mode 100644 holycow_frontend/holycow_frontend.iml create mode 100644 holycow_frontend/next.config.mjs create mode 100644 holycow_frontend/package-lock.json create mode 100644 holycow_frontend/package.json create mode 100644 holycow_frontend/src/app/favicon.ico create mode 100644 holycow_frontend/src/app/layout.css create mode 100644 holycow_frontend/src/app/layout.tsx create mode 100644 holycow_frontend/src/app/page.tsx create mode 100644 holycow_frontend/src/app/report/page.tsx create mode 100644 holycow_frontend/src/components/StatPanel.module.css create mode 100644 holycow_frontend/src/components/StatPanel.tsx create mode 100644 holycow_frontend/src/components/useTelegram.ts create mode 100644 holycow_frontend/src/telegram.ts create mode 100644 holycow_frontend/tsconfig.json create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.env.local b/.env.local new file mode 100644 index 0000000..d8caf9a --- /dev/null +++ b/.env.local @@ -0,0 +1,3 @@ +export RUST_LOG='holycow_api' + +export DATABASE_URL='postgres:///holycow?host=/run/postgresql/' diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..8bf4d45 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,6 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/holycow.iml b/.idea/holycow.iml new file mode 100644 index 0000000..b265ef6 --- /dev/null +++ b/.idea/holycow.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/icon.svg b/.idea/icon.svg new file mode 100644 index 0000000..36d6175 --- /dev/null +++ b/.idea/icon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..7a4b723 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/libraries/public_abK9xQ.xml b/.idea/libraries/public_abK9xQ.xml new file mode 100644 index 0000000..d45c6c1 --- /dev/null +++ b/.idea/libraries/public_abK9xQ.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..947ef84 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..259ecba --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Frontend.xml b/.idea/runConfigurations/Frontend.xml new file mode 100644 index 0000000..f783027 --- /dev/null +++ b/.idea/runConfigurations/Frontend.xml @@ -0,0 +1,15 @@ + + + + + +