Commit graph

388 commits

Author SHA1 Message Date
c6af6caec7 Fix transaction use 2022-12-10 01:40:53 -08:00
766878432b Treat NULLs as DateTime epoch 2022-12-10 01:30:17 -08:00
882ff042e2 Template compilation errors on bad switch 2022-12-10 01:30:17 -08:00
ad513d70e2 Add switch statements 2022-12-10 01:30:17 -08:00
b2007131c8 Add @isTag builtin 2022-12-10 01:30:17 -08:00
4e3450de4e Add equals operator to template engine 2022-12-10 01:30:17 -08:00
aee81e27b6 print error return traces on error 2022-12-10 01:30:17 -08:00
522b456939 Print error return traces on error 2022-12-09 22:39:19 -08:00
3cdd695948 Fix error return trace propagation 2022-12-09 22:38:52 -08:00
ee7ff9e69a create isInviteValid helper 2022-12-09 22:38:04 -08:00
eb001b39a4 split getUser into helper 2022-12-09 22:37:03 -08:00
f49e59bb47 Fix community creation 2022-12-09 22:33:39 -08:00
1c6b3aceee Fix deserialization for default values 2022-12-09 22:32:34 -08:00
1e7900d730 Basic styling on pages 2022-12-09 04:31:23 -08:00
7b16fd6390 Move PathIter to util 2022-12-09 04:30:38 -08:00
9d38aaec38 Remove logging statements 2022-12-09 03:39:49 -08:00
a035b08f83 Fix final chunk 2022-12-09 03:37:46 -08:00
466a15f3cb Use % for context instead of @ 2022-12-08 03:21:18 -08:00
ef27bb5c21 Let . refer to entire args struct 2022-12-08 02:58:18 -08:00
5924c257e0 Ignore captures with name _ 2022-12-08 02:54:36 -08:00
06b8483a8a Add support for optional unwrapping conditionals 2022-12-08 02:49:42 -08:00
86e203730c (#64) Add implicit context
Closes #64
2022-12-07 23:48:31 -08:00
8c0548fc74 (#63) Allow invoking other templates
Closes #63
2022-12-07 23:34:57 -08:00
e072b045c6 Parse template calls 2022-12-07 23:24:32 -08:00
9dabc237e0 (#62) Add elif support to template engine
Closes: #62
2022-12-07 22:47:55 -08:00
f8a799abfb Execute else branches 2022-12-07 17:30:01 -08:00
bb297a4f6e Parse else blocks 2022-12-07 17:26:36 -08:00
b0864b29d8 Return closing block from parseTemplate 2022-12-07 17:19:10 -08:00
795f7983f8 (#21) Add /users/:id/profile endpoint 2022-12-07 02:01:42 -08:00
cece277eec Add support for slices in serialization module 2022-12-07 01:57:44 -08:00
d4cd0e6618 Add execWithOptions 2022-12-07 01:57:07 -08:00
9f0cac0ed3 Add user profiles 2022-12-06 23:12:11 -08:00
03a5112036 Fix updated_at field in api 2022-12-06 21:44:53 -08:00
22f2a03308 Fix api types in drive api 2022-12-06 21:41:01 -08:00
9e66ef441b File dereference endpoint 2022-12-06 02:53:41 -08:00
6f4882794a File system api 2022-12-06 01:48:36 -08:00
b60b629b30 Allow unknown fields in some api calls 2022-12-06 01:48:17 -08:00
7ea3048027 Add boolean support to sql package 2022-12-06 01:43:03 -08:00
4103dd384a Fix migrations 2022-12-05 05:06:24 -08:00
dba9ec516d Fuck with migrations 2022-12-05 03:21:43 -08:00
3c8ac8d7d4 Add community actors 2022-12-05 02:38:31 -08:00
af7c77babf Separate drive and file apis 2022-12-05 02:12:40 -08:00
208007c0f7 Drive - Uploads & dirs 2022-12-03 07:09:29 -08:00
31f676580d Rework fs db schema 2022-12-03 07:09:03 -08:00
6cfd035883 parse content-type form header 2022-12-03 06:36:54 -08:00
e27d0064ee Fix some bugs in sql engine 2022-12-03 06:36:31 -08:00
a97850964e Stub out filesystem apis 2022-12-03 01:00:04 -08:00
a45ccfe0e4 Basic file upload 2022-12-02 23:44:27 -08:00
2bcef49e5e Add star segment support in routes 2022-12-02 23:21:49 -08:00
2206cd6ac9 Form File support 2022-12-02 22:34:12 -08:00
e6f57495c0 Cleaner multipart handling 2022-12-02 22:20:24 -08:00
6e56775d61 Multipart/form-data 2022-12-02 21:49:27 -08:00
0b13f210c7 Refactor 2022-12-02 21:49:17 -08:00
ba4f3a7bf4 Reorganize tests 2022-12-01 21:02:33 -08:00
f7bcafe1b1 Remove dead code 2022-12-01 20:52:51 -08:00
16c574bdd6 Refactoring 2022-12-01 20:41:52 -08:00
b2093128de Remove ciutf8 2022-12-01 19:46:51 -08:00
04c593ffdd add util.comptimeToCrlf 2022-12-01 19:46:07 -08:00
8400cd74fd Use deserialization utils 2022-12-01 01:56:17 -08:00
83af6a40e4 More serialization refactor 2022-11-30 21:11:54 -08:00
c7dcded04a Add tests for deserialization 2022-11-30 20:01:17 -08:00
aa632ace8b Work on deserialization refactor 2022-11-30 19:21:55 -08:00
96a46a98c9 Multipart deserialization 2022-11-27 22:33:05 -08:00
2f78490545 Add rudimentary scalar parsing 2022-11-27 06:24:41 -08:00
4a98b6a9c4 Parse form params 2022-11-27 06:11:01 -08:00
938ee61477 Start work on multipart form parser 2022-11-27 05:43:06 -08:00
b99a0095d4 Rudimentary test cases for ParseBody 2022-11-27 02:21:22 -08:00
8aa4f900f6 Use relative links on pagination 2022-11-27 01:59:37 -08:00
b2c69c2df8 queryStringify cleanup 2022-11-27 01:48:20 -08:00
abf31ea33c Flesh out test cases for unions 2022-11-27 01:07:45 -08:00
ce40448dc8 Revamp QueryString parser test 2022-11-27 00:58:56 -08:00
f7f84f0516 Add util.testing.expectDeepEqual 2022-11-27 00:21:50 -08:00
d0e08e4b04 Fix parsing for enum and boolean values 2022-11-26 23:28:00 -08:00
29a38240d9 Fix test 2022-11-26 23:14:19 -08:00
5b0505b355 Add tests for middleware.zig 2022-11-26 22:56:16 -08:00
856619b286 Finish using middleware impl 2022-11-26 17:52:30 -08:00
9c5e46ec5a Fix middleware compilation??? 2022-11-26 17:33:46 -08:00
04a95a280b use new middleware system 2022-11-25 17:43:30 -08:00
43ddc7534b debugging changes for middleware 2022-11-25 17:43:16 -08:00
a28af9e1fe Move json and query helpers 2022-11-25 17:42:58 -08:00
039377f168 Add router helper fn 2022-11-24 03:55:47 -08:00
503ab62607 Get api source from context 2022-11-24 03:50:25 -08:00
051217cdaf Use middlewares in controller endpoint helper 2022-11-24 03:31:24 -08:00
03338da307 Update server.zig to use new handlers 2022-11-24 03:30:49 -08:00
73f7022d36 Start work on middleware api 2022-11-23 20:51:30 -08:00
f457b7a0d6 Add drive files to db 2022-11-21 03:58:54 -08:00
14c75e0659 Add build flags for sqlite/postgres support 2022-11-21 02:18:46 -08:00
3544222065 Percent encode/decode header values 2022-11-21 00:54:03 -08:00
e1c0d2942c Customize allocation strategy per endpoint 2022-11-20 15:42:34 -08:00
252c12403a Add unfollow endpoint 2022-11-19 03:33:35 -08:00
4e85c0225b Sample Cluster admin page 2022-11-19 03:13:05 -08:00
1b379513f7 ugly fucking global timeline endpoint 2022-11-18 04:07:58 -08:00
6748f065ef Move api calls to /api/v0 subpath 2022-11-18 03:43:41 -08:00
37ee6f9593 Remove redundant content-type header 2022-11-18 03:37:54 -08:00
ea837f78bd Change error name on invalid cookie 2022-11-18 03:37:42 -08:00
fdf0a84593 Fix whitespace stripping after control blocks 2022-11-18 03:32:30 -08:00
229acd6d3b Refactor template code 2022-11-18 03:24:25 -08:00
802e6402bf Token -> ControlToken 2022-11-18 02:05:13 -08:00
1340862c28 Add It param to ParseResult 2022-11-18 02:02:24 -08:00
52bb8739f8 Rename statement -> ControlBlock 2022-11-18 02:00:26 -08:00