Commit graph

101 commits

Author SHA1 Message Date
755f23dbb9 Set page title properly 2023-08-05 21:33:46 +02:00
52e2d74b96 Make current tab bold 2023-08-05 21:17:46 +02:00
db814b6d40 Use <dl> for tracked refs 2023-08-05 21:08:01 +02:00
3b4d8dab72 List tracked refs on index page 2023-08-05 21:03:18 +02:00
2b4a5d4021 Add somehow::Error wrapping anyhow::Error 2023-08-05 20:42:08 +02:00
a5c0552341 Exclude hyper from normal-verbosity logs 2023-08-05 20:34:28 +02:00
5d62a2891c Update and document scripts 2023-08-05 19:42:59 +02:00
ca463b023e Fix project not compiling without dev.db
After this fix, rust-analyzer used via vscode still requires a dev.db
file, but this can easily be generated via ./meta/update_sqlx_data.
2023-08-05 16:20:32 +02:00
ed404f302e Style nav bar 2023-08-05 16:01:35 +02:00
e17483b4d6 Set up base template 2023-08-05 14:22:31 +02:00
feb73c96c4 Create basic logo 2023-08-05 14:11:11 +02:00
6d93e3bd70 Move web code to web module 2023-08-05 12:58:38 +02:00
3bfeb89686 Add indices for slightly better performance
With the linux kernel commits, this reduced the time to update commit
tracked flags from >60s to 44s, but this requires further testing before
committing to the indices.
2023-08-05 12:31:20 +02:00
523b82632f Rename migration according to sqlx convention 2023-08-05 12:21:07 +02:00
1f66fe0299 Add "tracked" column to table "commits" 2023-08-05 11:52:51 +02:00
b56d0df142 Refactor repo update code again 2023-08-05 11:51:34 +02:00
488ae76c72 Set up DATABASE_URL via .env file 2023-08-05 02:51:04 +02:00
5dbd8e886b Initialize repo and update tracked refs 2023-08-05 02:51:04 +02:00
5871b19f8e Fix repo update choking on duplicated parents 2023-08-05 01:55:40 +02:00
b26ab8feff Fix repo update choking on non-commit refs 2023-08-05 01:39:00 +02:00
1b8f3c9bc1 Reorganize config file 2023-08-05 01:23:12 +02:00
380756df16 Refactor repo update code 2023-08-05 01:23:12 +02:00
087416bf38 Improve performance by reordering inserts 2023-08-05 00:32:40 +02:00
6651c72ea3 Insert new commits from repo 2023-08-05 00:32:40 +02:00
56dd74b65f Improve verbosity levels 2023-08-05 00:32:40 +02:00
980e84b0f6 Update repo repeatedly 2023-08-04 20:05:44 +02:00
0a555dd9b4 Optimize db regularly 2023-08-04 19:17:14 +02:00
a1d48f6fd3 Use more tracing features 2023-08-04 18:51:12 +02:00
4f7d4f3204 Load config from file 2023-08-04 17:21:59 +02:00
6f95d58e11 Include repo in AppState 2023-08-04 16:44:53 +02:00
4914b03fcd Gracefully shut down on SIGINT/SIGTERM 2023-08-04 16:44:53 +02:00
e76c94a57c Use --verbose instead of RUST_LOG 2023-08-04 16:44:53 +02:00
de767121be Switch to plain commit hash in version number 2023-08-04 16:09:55 +02:00
ed3600a79a Open db from path specified as cl arg 2023-08-04 15:53:15 +02:00
9b55cd1ce2 Include git hash in version 2023-08-04 15:44:29 +02:00
6a64bd2e47 Parse args with clap 2023-08-04 15:40:38 +02:00
a8a58eb103 Set up logging with tracing crate 2023-08-04 15:09:56 +02:00
6d6e25f991 Document building instructions 2023-08-04 14:46:56 +02:00
037f076475 Set up global app state 2023-08-04 14:21:33 +02:00
4028c3eea2 Set up sqlx query* macros 2023-08-04 13:27:23 +02:00
a96af0d6ea Watch migration and template dirs 2023-08-04 01:47:44 +02:00
79667c15b8 Set up sqlx 2023-08-04 01:30:32 +02:00
12ec8ac217 Write down some design notes 2023-08-03 23:06:05 +02:00
8b0e6fe268 Refactor build script 2023-08-03 19:14:58 +02:00
8b5bfdd231 Use askama to render test template 2023-08-03 19:14:58 +02:00
3f5ad25f9e Fail build if tsc errors 2023-08-03 18:34:21 +02:00
6cf1b662ae Serve static files if no other endpoints match 2023-08-03 17:36:44 +02:00
c4f1cd2201 Set up basic axum server 2023-08-03 17:35:34 +02:00
2dc13cc841 Create target/static before compiling 2023-08-03 17:35:34 +02:00
658c523e9c Set up typescript project 2023-08-03 14:32:49 +02:00