+2
-2
.github/workflows/docker-image.yml
+2
-2
.github/workflows/docker-image.yml
···
+9
-39
Cargo.lock
+9
-39
Cargo.lock
·····················
+1
-1
Cargo.toml
+1
-1
Cargo.toml
···
+1
-1
Dockerfile
+1
-1
Dockerfile
+29
-13
README.md
+29
-13
README.md
···-A very performant and light (6mb in memory) link shortener and tracker. Written in Rust and React and uses Postgres.+A very performant and light (2MB in memory) link shortener and tracker. Written in Rust and React and uses Postgres or SQLite.···-Find the admin-setup-token pasted into the terminal output, or in admin-setup-token.txt in the container's root.+- `SIMPLELINK_USER`: Optional. If set along with SIMPLELINK_PASS, creates an admin user on first run+- `INITIAL_LINKS`: Optional. Semicolon-separated list of initial links in format "url,code;url2,code2"+If `SIMPLELINK_USER` and `SIMPLELINK_PASS` are not passed, an admin-setup-token is pasted to the console and as a text file in the project root.···-If DATABASE_URL is set, it will connect to a Postgres DB. If blank, it will use an sqlite db in /data-On an empty database, an admin-setup-token.txt is created as well as pasted into the terminal output. This is needed to make the admin account.······
+1
-3
docker-compose.yml
+1
-3
docker-compose.yml
+6
frontend/src/api/client.ts
+6
frontend/src/api/client.ts
···
+139
frontend/src/components/EditModal.tsx
+139
frontend/src/components/EditModal.tsx
···+'Custom code must be 1-32 characters and contain only letters, numbers, underscores, and hyphens',
+44
-19
frontend/src/components/LinkList.tsx
+44
-19
frontend/src/components/LinkList.tsx
···import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"······························
+20
-8
frontend/src/components/StatisticsModal.tsx
+20
-8
frontend/src/components/StatisticsModal.tsx
··················
+28
-15
frontend/vite.config.ts
+28
-15
frontend/vite.config.ts
···
+3
migrations/20250219000000_extend_short_code.sql
+3
migrations/20250219000000_extend_short_code.sql
+8
-7
src/auth.rs
+8
-7
src/auth.rs
·········
+139
-6
src/handlers.rs
+139
-6
src/handlers.rs
··················
+159
-1
src/main.rs
+159
-1
src/main.rs
············