Commit Graph
136 Commits
Author SHA1 Message Date
Zef Hemel bf2e0cdb87 Refactor: Merging common/ into web/ 2025-06-04 14:01:59 +02:00
Zef Hemel a7191d540a Expose htmlEscape function for external use and integrate it into the HTTP server response handling to sanitize DESCRIPTION values. 2025-03-31 16:03:35 +02:00
Zef Hemel f429e1f7b2 Attempt to address /.config auth issues 2025-03-29 19:20:11 +01:00
Zef Hemel 1703020a8a feat: Add logout option to client wipe functionality
- Add optional logout parameter to system.wipeClient

- Add new 'Clear Local Storage & Logout' command

- Update API to support logout parameter

- Clean up server code comments
2025-03-28 13:45:39 +01:00
Zef Hemel 96f299bf8a Shell streaming support (Lua) 2025-03-27 17:04:15 +01:00
Zef Hemel 254d6e6379 Ripped out use of Deno KV and other unstable features 2025-03-24 20:21:17 +01:00
Zef Hemel ac5a839ea8 Moving some endpoints 2025-03-22 07:32:27 +01:00
Zef Hemel dbfc5995f3 More thorough removal of federation 2025-03-21 16:12:10 +01:00
Zef Hemel fa8f07a123 Kinda working 2025-03-21 16:12:10 +01:00
Zef Hemel ac5c0d676e Fix typecheck 2025-03-20 09:24:04 +01:00
stagandGitHub 66e4498159 Content-Type header in HTTP custom endpoint response handlers are now respected (#1300)
Before the commit, adding a Content-Type header in the reponse from the handler of a http:request:foobar event would be ignored and set to text/plain because of using ctx.text to return the request. ctx.text will set Content-Type to text/plain.

Now, if a Content-Type header is detected it will use a plain ctx.body response which does not alter Content-Type.
2025-03-20 09:19:53 +01:00
Zef Hemel 418138f9c9 Lint fixes 2025-03-14 10:37:30 +01:00
Zef Hemel def7bf6a2f Hono dependency upgrade 2025-03-14 10:02:25 +01:00
Zef Hemel 977f87864d Dependency bumps 2025-03-14 10:02:25 +01:00
Zef Hemel 29076afe95 Fix lint issues 2025-03-13 09:21:03 +01:00
Zef Hemel 808fdd13c0 Restrict sending CORS headers to non-dangerous HTTP methods 2025-03-13 09:10:20 +01:00
Zef Hemel 0a80c5c537 Collapse PageRef, DocumentRef and LocationRef into a single Ref type 2025-03-07 13:49:20 +01:00
Zef Hemel f0ed003066 Moved spaceIgnore to be a environment variable as well 2025-03-07 11:12:49 +01:00
Zef Hemel 1dc1103b2a Moved indexPage configuration to SB_INDEX_PAGE env variable instead
Added /.config endpoint to more dynamically influence the configuration
2025-03-07 10:56:45 +01:00
MrMugameandGitHub e61a447d98 Implementing #913 (#1230)
Implemented custom editors
2025-03-06 15:11:17 +01:00
Zef Hemel 9e0925beff Fix lint issues 2025-02-22 11:50:44 +01:00
Zef Hemel 5ca0e98300 Upgrade to deno 2.2 2025-02-20 07:53:14 +01:00
Zef Hemel 5111b5a380 http.request Lua syscall 2025-02-13 21:12:00 +01:00
Zef Hemel 9f8ac92464 Fix federation proxy to IP 2025-02-06 21:02:57 +01:00
Zef Hemel e44b2776df Fix to federation proxy for non-GET requests 2025-02-06 08:36:06 +01:00
Martin MauchandGitHub 6e421ca20e Fix passing URL parameters when proxying (#1168) 2024-12-14 09:58:41 +01:00
Zef Hemel 51fc5952bc Some enhancement of the lockout mechanism 2024-11-15 16:56:54 +01:00
Peter WestonandGitHub 046a0df868 Simple protection against brute force attacks (#1152) 2024-11-15 16:51:18 +01:00
aekaisatoandGitHub 64bbe67912 Create "remember me" functionality for basic auth, which sets an unexpiring jwt and refreshes the cookie during requests (#1132)
* Create "remember me" functionality for basic auth, which sets an unexpiring jwt and refreshes the cookie during requests
2024-10-28 14:09:32 +01:00
Zef Hemel cb88eae885 Attempt to fix auth proxies by making redirects manual #1028 2024-09-25 13:25:15 +02:00
Zef Hemel f7fe7cadbc Revert "Attempt to fix auth proxies by making redirects manual #1028"
This reverts commit d6fb5e0c29.
2024-09-11 21:18:27 +02:00
Zef Hemel d6fb5e0c29 Attempt to fix auth proxies by making redirects manual #1028 2024-09-09 18:36:54 +02:00
Zef Hemel b8081d970c Fixes #1049 centralizes page URL encoding and decoding 2024-08-20 09:38:56 +02:00
Zef Hemel cf054fa186 Should fix #1019 and #1035 2024-08-18 10:39:04 +02:00
Justyn ShullandGitHub 67f997258d Fallback to index page if unable to parse the indexPage config option (#1034) 2024-08-14 22:27:55 +02:00
Zef Hemel cafd001214 Added a ton of JS Doc 2024-08-07 13:27:25 +02:00
Zef HemelandGitHub 6b69449d05 More JSR (#1027)
* Move all syscalls to JSR-style package naming
* Eliminating some prefixes in import maps
2024-08-06 20:11:38 +02:00
Justyn ShullandGitHub 4af100b7b7 Add simple /ping endpoint instead of /index.json, change default fetch timeout to 30s (#1017) 2024-08-04 08:24:38 +02:00
Zef HemelandGitHub 64b6d9e2df Space config (#1011)
Space config + a whole bunch of other tweaks
2024-08-02 16:47:36 +02:00
Zef Hemel 9f353f7de1 More JSR dependency moves 2024-07-30 17:24:17 +02:00
Zef Hemel 64e116f75e lint cleanup 2024-07-30 15:17:34 +02:00
Zef Hemel c80976d10e Change event pattern for custom HTTP endpoints 2024-07-27 09:26:55 +02:00
Zef Hemel 0ad47987f5 Added http:request event enabling custom http endpoints 2024-07-26 19:12:10 +02:00
Zef Hemel 161cd004a7 Cleaning e2e encryption stuff 2024-07-25 20:29:13 +02:00
Zef Hemel f3a84e35c0 Cleaned up path file extension checking and handling conflicting copies 2024-07-13 13:51:49 +02:00
onespacemanandGitHub be8c3303a4 fix serving files with numbers in extension (#931) 2024-07-11 22:37:58 +02:00
MrMugameandGitHub b6d95ec632 Redirect to initial url after authentication (#893) 2024-06-22 12:45:23 +02:00
Zef Hemel 3e1322de66 Fixes #883 2024-06-08 13:44:41 +02:00
FlorentandGitHub 827b08c21f Support size for images (#833)
* Support size for images

* Also support dimensions while rendering markdown

* Parser - ImageWithSize: Comment regexp with examples
2024-05-19 11:05:48 +02:00
FlorentandGitHub 5a6d7ecae1 Fix space on end of page name creates two pages, one shadowed #615 (#817) 2024-03-23 20:02:16 +01:00