+5
-15
.github/workflows/docker-image.yml
+5
-15
.github/workflows/docker-image.yml
······
-80
.github/workflows/main.yml
-80
.github/workflows/main.yml
···
+9
-39
Cargo.lock
+9
-39
Cargo.lock
·····················
+1
-1
Cargo.toml
+1
-1
Cargo.toml
···
+2
-2
Dockerfile
+2
-2
Dockerfile
······
+48
-8
README.md
+48
-8
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.+- `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-#set api-domain to where you will be deploying the link shortener, eg: link.example.com, default is localhost:8080-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.
+7
-7
build.sh
+7
-7
build.sh
············
+1
-5
docker-compose.yml
+1
-5
docker-compose.yml
+21
-4
frontend/src/api/client.ts
+21
-4
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',
+45
-14
frontend/src/components/LinkList.tsx
+45
-14
frontend/src/components/LinkList.tsx
···import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"······························
+160
-98
frontend/src/components/StatisticsModal.tsx
+160
-98
frontend/src/components/StatisticsModal.tsx
···
+1
frontend/src/types/api.ts
+1
frontend/src/types/api.ts
+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
·········
+168
-43
src/handlers.rs
+168
-43
src/handlers.rs
·····················
+11
-5
src/lib.rs
+11
-5
src/lib.rs
············
+159
-1
src/main.rs
+159
-1
src/main.rs
············
+3
-3
src/models.rs
+3
-3
src/models.rs
·········