Commit Graph

112 Commits

Author SHA1 Message Date
p11
58d02c86e2 Don't put the complete site info into a mutex, use atomic ints where possible 2025-04-07 01:19:14 +02:00
p11
7ad5eff063 Use rayon instead of threadpool 2025-04-07 00:35:35 +02:00
p11
eb594413d9 Use maud to write comment html 2025-04-07 00:25:15 +02:00
p11
efdc800550 Removed unnecessary semicolons 2025-04-07 00:07:23 +02:00
p11
cdbdaed362 Updated edition to 2024 2025-02-26 07:17:17 +01:00
p11
5924aa2eaa Turned unwrap-or into unwrap-or-else 2024-12-23 23:10:51 +01:00
p11
97a556d4f4 Revert "Don't collect lines"
This reverts commit 51d38ea1a5.
2024-09-25 21:19:12 +02:00
p11
51d38ea1a5 Don't collect lines 2024-09-21 12:35:04 +02:00
p11
0060fee74e Return request fields in correct order 2024-09-19 14:25:17 +02:00
p11
f4a6e33ee2 Use buffer.to_vec instead of copying buffer from iterator 2024-09-19 14:24:58 +02:00
p11
4168ba31f6 Supply methods directly instead of closures 2024-09-19 14:24:28 +02:00
p11
27d112fc59 Use map_or where possible 2024-09-19 14:23:57 +02:00
p11
e4d292ae58 Use Self type where possible 2024-09-19 14:23:23 +02:00
p11
c4b0f31dbf Use PathBuf.clone instead of to_path_buf 2024-09-19 14:22:42 +02:00
p11
c4e231c9e0 Use unwrap_or_else instead of unwrap_or 2024-09-19 14:21:52 +02:00
p11
e74cb61176 Automatically include audio if available 2024-06-24 16:49:36 +02:00
p11
15bb171066 Bugfixed description for partial text 2024-06-24 16:07:35 +02:00
p11
714477b825 If no password is specfied, grant full access 2024-05-12 01:15:39 +02:00
p11
e2d0cb79bd Added audio replies 2024-05-06 00:00:57 +02:00
p11
6fa0e14469 Changed how binary replies work 2024-05-05 23:57:41 +02:00
p11
4dc33e8c60 Use lines by ref instead of while-let 2024-05-05 23:53:27 +02:00
p11
9fc4237b60 Cookie not case sensitive 2024-02-10 02:08:51 +01:00
p11
5bd4ec7097 Added a second password for partial access 2024-02-10 00:57:14 +01:00
p11
ef1afa42fa Allow Passwords for server 2024-02-09 22:59:53 +01:00
p11
5020406acc Server cleanup: Retrieve args in main function, start server in start_server function 2024-02-09 22:12:53 +01:00
p11
c54265a6bd Moved file paths into a common struct 2023-12-07 20:03:04 +01:00
p11
bba2c0a4f0 Allow all image paths, only care about the ending 2023-12-07 19:24:33 +01:00
p11
4519c5c7ab Added a new section at the beginning 2023-11-20 22:24:03 +01:00
p11
a0f0999c8f Created a section closure 2023-11-20 22:22:50 +01:00
p11
8b84aaaf61 Updated pukram2html version, no need to add newline at end of block anymore 2023-11-12 12:11:59 +01:00
p11
43f1b0b3a8 Display count and number of story entry 2023-11-07 20:42:59 +01:00
p11
d397c7e98b Added stop button to interactive mode 2023-11-07 20:36:00 +01:00
p11
f2bb22ed6c Added interactive mode 2023-11-07 20:26:22 +01:00
p11
64e0637349 Execute the whole request in a thread 2023-09-16 17:27:30 +02:00
p11
34b8307426 Connection handling not a method of context anymore 2023-09-16 16:34:53 +02:00
p11
337ca0149e Autoformatting let-else 2023-09-16 16:34:20 +02:00
p11
85e4cb3e4a Quickfix: Clear pool if stuck for too long 2023-08-15 23:14:13 +02:00
p11
a9f605cf0e Added support to serve images and use new features from the server. 2023-07-30 00:15:34 +02:00
p11
665bfa68db If current path does not exist, fail immeditely 2023-07-29 19:33:12 +02:00
p11
18cc1c9db6 Use threadpool instead of threads directly 2023-07-21 20:38:29 +02:00
p11
1b039b0494 Added simple multithreading 2023-07-21 20:29:46 +02:00
p11
fdfeae97b2 Moved the real handling of the request to the site info struct 2023-07-21 20:06:17 +02:00
p11
b157e2c962 Simplified path creation, only keep files open as long as necessary 2023-07-21 19:45:58 +02:00
p11
a2104976ef Fixed server for chrome 2023-07-20 05:14:28 +02:00
p11
6dc1675ac3 Save site infos to their own files, never save the complete context 2023-07-19 21:40:30 +02:00
p11
8a1f94bb66 Made site infos saveable on their own 2023-07-19 21:18:28 +02:00
p11
4eb59a01b7 Always save comments 2023-07-19 21:10:56 +02:00
p11
accd37204f Added support for reactions 2023-07-19 20:05:23 +02:00
p11
7c1969fa0b Count and show views 2023-07-19 19:50:27 +02:00
p11
d0a4bbf349 Use UTF-8 2023-07-19 19:50:07 +02:00
p11
7b2961afad Refactor: Put comments into site info 2023-07-19 19:07:23 +02:00
p11
21d203431b Fixed typo in http not found message 2023-07-19 19:02:45 +02:00
p11
33b55bf4a6 Used boxed str instead of strings 2023-07-19 18:58:20 +02:00
p11
95316dc7f4 Log comments 2023-07-18 22:49:35 +02:00
p11
d58952a96e Redirect when using underscores for spaces 2023-07-18 22:39:52 +02:00
p11
24b840be87 Allow underscores for spaces 2023-07-18 22:02:29 +02:00
p11
44a244c3c1 Always debug print request 2023-07-16 17:49:55 +02:00
p11
1fdf73c6f8 Expect insetad of unwrap for initialization 2023-07-16 16:45:31 +02:00
p11
29f89fd325 Removed unwrap in request handler 2023-07-16 16:44:47 +02:00
p11
710df5f6bc Error messages, less unwrap 2023-07-16 16:43:20 +02:00
p11
f16343a93a Make address and port configurable 2023-07-16 16:35:26 +02:00
p11
c96ef60214 Initial pukram server 2023-07-16 10:15:15 +02:00