Commit Graph

1415 Commits

Author SHA1 Message Date
perennial 37fa48b9d2 core/index: consolidate functions 2024-10-17 17:16:54 +11:00
perennial 87aba9c0d2 requests.go: consolidate functions 2024-10-17 17:11:18 +11:00
perennial 803f2ccb0e refactor core/index.go 2024-10-17 15:50:00 +11:00
perennial 1718d1c956 refactor setImageServer 2024-10-17 14:33:30 +11:00
perennial c05a56c37f fix htmx scrolling issue 2024-10-17 14:20:03 +11:00
perennial 2e439c2383 user.go: handle both JSON objects and empty arrays correctly 2024-10-17 14:08:54 +11:00
perennial c3d47ebdd6 rename header_backup symbol to headerBackup 2024-10-17 13:40:38 +11:00
perennial 400c31cff9 proxy.go: dont tranlate server logs 2024-10-17 13:39:41 +11:00
perennial 03e38a6c43 proxy.go: dont return err on context cancellation 2024-10-17 13:38:07 +11:00
perennial 9d6086479c e 2024-10-17 13:34:56 +11:00
perennial f216c9461e add more prefetch links 2024-10-17 13:28:53 +11:00
perennial 150c9edda9 edit comments 2024-10-17 13:15:57 +11:00
perennial fd7914bc2d rm unused import 2024-10-17 13:14:47 +11:00
perennial 5fbe2c1ec9 dont i18n panics 2024-10-17 13:13:51 +11:00
perennial 9485a29377 implement excludedCachePaths + reorganise requests.go 2024-10-17 13:05:49 +11:00
perennial 610bb13108 use seeded xxhash for cache keys 2024-10-17 12:50:33 +11:00
perennial ce37b2a9d1 fix invalid URI paths on /self/followingWorks 2 2024-10-17 02:44:29 +11:00
perennial 2946fab01b fix invalid URI paths on /self/followingWorks 2024-10-17 02:43:27 +11:00
perennial 6953282962 refactor requests.go
Probably broke something but retryRequest became too big
in #130 and was unreadable
2024-10-17 02:37:09 +11:00
perennial 1106042a5e prefetch links 2024-10-17 02:23:15 +11:00
VnPower cbf406a360 Update the about section 2024-10-16 21:56:01 +07:00
VnPower f27be52862 No Javascript tab pane/settings page 2024-10-16 20:08:27 +07:00
VnPower 225a3d3e47 Merge pull request 'api-caching' (#130) from api-caching into v2
Reviewed-on: https://codeberg.org/VnPower/PixivFE/pulls/130
2024-10-16 11:43:59 +00:00
perennial af3506efe4 add PIXIVFE_CACHE_ENABLED 2024-10-16 21:58:20 +11:00
perennial d77f397bff htmx changes 2024-10-16 21:44:21 +11:00
perennial 59e047365e clean up user page markup 2024-10-16 19:34:21 +11:00
perennial b2e474419f make artworks-multi button smaller 2024-10-16 19:23:40 +11:00
perennial 7352ea5710 anchor titles for novel-tn 2024-10-16 19:06:48 +11:00
perennial ea72369268 UserNovels affordance tests 2024-10-16 19:01:22 +11:00
perennial 270c363d09 update novel metadata icons 2024-10-16 18:15:23 +11:00
perennial cec9ca0ff1 docs: update caching section 2024-10-16 15:01:55 +11:00
perennial 9e9d45e5e4 comment out debug logging in requests.go 2024-10-16 14:49:03 +11:00
perennial e998c3dc16 rename SetRedirectHeader middleware 2024-10-16 14:46:42 +11:00
perennial cbbe302ea7 invalidate API resp cache upon user action 2024-10-16 14:24:49 +11:00
perennial 31dc0d660d add support for ShortTTL 2024-10-16 02:25:03 +11:00
perennial 1e38499e40 drop default CacheSize to 100 2024-10-16 02:04:36 +11:00
perennial acec3daaa3 fix typo 2024-10-16 01:37:34 +11:00
perennial 913f72d462 implement caching configuration 2024-10-16 01:31:16 +11:00
VnPower f56165bc5b No Javascript navbar 2024-10-15 21:22:25 +07:00
VnPower a71def1dae Draft for noscript navbar 2024-10-15 21:22:25 +07:00
perennial f518805ec5 simple lru cache for API responses to GET requests 2024-10-16 01:14:35 +11:00
perennial c5ed886390 declare emojiMap globally 2024-10-16 00:52:15 +11:00
perennial f8a481fb06 refactor GetNovelGenre to use a map lookup 2024-10-16 00:49:25 +11:00
perennial d36e4c1dcc refactor createMultipartFormData 2024-10-16 00:41:19 +11:00
perennial a609bfbb84 refactor API_GET_UnwrapJson 2024-10-16 00:33:34 +11:00
perennial bc76596003 refactor proxy.go 2024-10-16 00:15:27 +11:00
perennial 1d78a2da7b move i18n/exceptions.go to crawler directory 2024-10-15 21:39:56 +11:00
perennial e174d63bdc add inline comments to i18n package 2024-10-15 21:37:34 +11:00
perennial 3e4188b49c Create http.Server instance in main() 2024-10-15 20:31:43 +11:00
perennial 5a8ce89d74 check for when both Host and UnixSocket are set 2024-10-15 19:59:00 +11:00