Commit Graph

111 Commits

Author SHA1 Message Date
127426ae98 Feat: Add single post GET endpoint 2025-10-02 12:36:57 -07:00
5e9e75213f Feat: Add posts API with GET/POST 2025-10-02 12:36:54 -07:00
ad7138afd8 Refactor: Enable CORS for user auth check 2025-10-02 12:12:41 -07:00
d68e62e742 Delete: Replace with server-side function 2025-10-02 12:00:07 -07:00
3082970ced Fix: Use robust JSON helper for header handling 2025-10-02 11:54:35 -07:00
daa6ec7681 Fix: Use robust JSON helper for header handling 2025-10-02 11:54:33 -07:00
33c759cec7 Fix: Use robust JSON helper for header handling 2025-10-02 11:54:25 -07:00
74b9f67b1a Fix: Correctly set multiple cookies using Headers object 2025-10-02 11:54:22 -07:00
935c297e71 Fix: Use robust JSON helper for header handling 2025-10-02 11:54:20 -07:00
3a289190ae Feat: Add /cookie page for debugging 2025-10-02 11:50:22 -07:00
683582ea8c Fix: Add missing auth-params endpoint for login 2025-10-02 11:44:49 -07:00
acc739ddb7 Feat: Display user role when logged in on main page 2025-10-02 11:39:43 -07:00
8d54c79545 Feat: Add 'mod' role and set_role API action 2025-10-02 11:29:33 -07:00
88d8710134 Feat: Add user role management UI 2025-10-02 11:29:27 -07:00
223ff68f58 Delete: Remove unused auth-params endpoint 2025-10-02 11:16:00 -07:00
6540ef33ec Feat: Verify user from pass_hash in cookie 2025-10-02 11:15:18 -07:00
1a85690bdd Feat: Clear auth cookies on logout 2025-10-02 11:15:16 -07:00
59498ccb1e Feat: Set auth cookies with username and pass_hash 2025-10-02 11:15:14 -07:00
301364400a Refactor: Revert to pass_hash auth, remove sessions 2025-10-02 11:15:11 -07:00
4513b47e95 Feat: Create signup page 2025-10-02 11:08:03 -07:00
3514cb8be1 Feat: Create login page 2025-10-02 11:08:00 -07:00
c016b74e2b Feat: Display user status and logout button 2025-10-02 11:07:56 -07:00
48cda62678 Feat: Endpoint to get current user from session 2025-10-02 11:07:54 -07:00
6c2b224326 Feat: Signup endpoint for user registration 2025-10-02 11:07:51 -07:00
9c94f66753 Feat: Logout endpoint to clear session 2025-10-02 11:07:49 -07:00
03e44dee78 Feat: Login endpoint with session cookie creation 2025-10-02 11:07:47 -07:00
52d0e04700 Feat: Endpoint to provide user's scrypt params 2025-10-02 11:07:45 -07:00
9c24781322 Feat: Add sessions table and cascade deletes 2025-10-02 11:07:40 -07:00
8c26d21842 Feat: Add password auth, delete action, and schema caches 2025-10-02 10:52:25 -07:00
81d6d6a4d7 Feat: Add password auth and delete schema button 2025-10-02 10:52:21 -07:00
ab86df1e92 Fix: Use partial indexes for votes and improve errors 2025-10-02 10:34:20 -07:00
6ee7e1cd16 Fix: Correct D1 schema creation and improve votes table 2025-10-02 10:30:59 -07:00
acba7d597c Fix: Configure wrangler.toml for Pages deployment 2025-10-02 10:26:13 -07:00
6e718fb03f Refactor: Remove name from wrangler config 2025-10-02 10:24:58 -07:00
0ae7e71be3 Fix: Configure wrangler.toml for Pages deployment 2025-10-02 10:23:49 -07:00
a8ae9cced6 Refactor: Improve API error responses with cause 2025-10-02 10:03:41 -07:00
efd62ff3a7 Fix: Use db.exec for schema creation as batch is unsupported 2025-10-02 09:59:27 -07:00
467666cf67 Refactor: Version schema definition as schemaV1 2025-10-02 09:53:28 -07:00
70fb4d3e74 Feat: Add pass_hash to users table for authentication 2025-10-02 09:44:57 -07:00
8cd486d7c2 Refactor: Rename post url column to link for clarity 2025-10-02 09:39:25 -07:00
4beae0afa2 Refactor: Simplify ban logic to use only banned_until 2025-10-02 09:33:15 -07:00
0ab28bb33a Feat: Add user roles for admin/owner powers 2025-10-02 09:07:19 -07:00
5443cde6c3 Feat: Add admin page for D1 schema management 2025-10-02 08:50:36 -07:00
be41af9e13 Feat: Add API endpoint for D1 schema management 2025-10-02 08:50:32 -07:00
76a7e3b6d5 Refactor: Update compatibility date 2025-10-02 08:42:41 -07:00
ab057f5043 Feat: Add D1 database binding 2025-10-02 08:40:29 -07:00
5664b91878 Fix: Adjust signup icon position 2025-10-02 08:30:03 -07:00
a2fd6902e6 Feat: Move signup icon to top right above box 2025-10-02 08:26:59 -07:00
9144609027 Feat: Add signup link to top right of container 2025-10-02 08:25:08 -07:00
fe42168fcc Feat: Add top right sign up button 2025-10-02 08:23:48 -07:00