46 Commits

Author SHA1 Message Date
perennial 352ab0ce90 wip: rm PIXIVFE_TZ and replace with pixivfe-TZ cookie 2024-12-05 10:56:50 +11:00
perennial 905b0379ef add PIXIVFE_TZ env var 2024-12-05 09:22:49 +11:00
perennial 1f29cacb5c pretty print numbers on artwork page 2024-12-05 07:35:32 +11:00
perennial cdf121aaa0 extend RelativeTime function 2024-12-05 07:07:43 +11:00
perennial 81dd0b4e27 pretty print dates on artworks + add _hyperscript 2024-12-04 21:32:54 +11:00
perennial b4a0c7444a 'fix' render_test.go 2024-12-04 02:05:55 +11:00
perennial 5df477a718 run gofumpt 2024-12-04 02:05:54 +11:00
perennial 3ac20187ea set strong ETag for responses 2024-12-04 02:05:54 +11:00
VnPower 5b9d95bc58 Unescape HTML entities in pixivision articles 2024-11-18 20:29:12 +07:00
perennial 841a2fbb3b rename PartialURL.go to partial_url.go 2024-11-08 22:19:02 +11:00
perennial ff55e7a4ad documentation for package template 2024-11-08 22:17:51 +11:00
perennial 77d7d86973 rm hardcoded "/" in UnfinishedQuery 2024-11-08 22:08:48 +11:00
perennial 3c576b9565 fix broken IsLastPathPart 2024-10-28 21:29:59 +11:00
perennial ae0b44b5cd fix bookmarks styling 2024-10-28 16:33:10 +11:00
perennial 7a10cd6277 dont display username in small-tn on user page 2024-10-22 19:38:51 +11:00
perennial 46cd5876a4 rename PageURL to CurrentPath 2024-10-18 14:09:00 +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 d41e98ab8b run gofumpt
https://github.com/mvdan/gofumpt
2024-10-13 16:31:18 +11:00
perennial adc226dd72 zap for logging wip 2024-10-13 14:59:39 +11:00
perennial 96c8609e33 ParseEmojis: fix malformed strings 2024-10-12 00:44:24 +11:00
perennial 7ff221fdc7 fix broken CreatePaginator + add test case 2024-10-05 20:30:58 +10:00
perennial 9e8c115643 CreatePaginator: validation for users that don't have any artworks 2024-10-02 15:46:15 +10:00
perennial 389eefeb8a Improve CreatePaginator with flexible margins and validation
This commit improves the CreatePaginator function by adding support for
customisable page margins and dropdown offsets. It also introduces
input validation and error handling to ensure proper usage.
2024-10-02 01:16:45 +10:00
perennial cfe80ec359 Revert "broken anti-csrf implementation"
This reverts commit 60d76ab40e.
2024-10-01 16:45:12 +10:00
perennial d371dba844 broken anti-csrf implementation 2024-10-01 16:44:57 +10:00
perennial 4392b0442f add pagination dropdown 2024-09-29 20:57:14 +10:00
perennial 287055ccc6 document templateFunctions 2024-09-29 19:15:49 +10:00
perennial 12603caa90 Run gofmt 2024-09-29 19:08:16 +10:00
perennial e3c4bfe7ae Create pagination.jet.html 2024-09-29 19:06:20 +10:00
iacore 4fc57b1d26 Cleanup cookie settings page 2024-10-09 14:40:38 +00:00
iacore 0ea2ec816f [i18n] fix jet template rewriter 2024-10-09 14:31:15 +00:00
iacore 02938b2f3f [i18n] rewrite jet template
it's a stupid string rewriter that hopefully works
2024-10-09 11:21:00 +00:00
iacore 4a0bcf2f58 Translate short strings 2024-10-07 05:05:47 +00:00
VnPower 317c1dac71 Merge pull request 'feat: implement manga series' (#120) from jackyzy823/PixivFE:manga-series into v2
Reviewed-on: https://codeberg.org/VnPower/PixivFE/pulls/120
2024-10-06 03:38:31 +00:00
jackyzy823 d912a78f3a feat: implement manga series 2024-10-05 22:59:45 +08:00
iacore 546f83df20 make regex constructions global 2024-10-05 14:58:32 +00:00
iacore 91c2a7a0ba Restore user Atom page support 2024-10-02 14:36:26 +00:00
VnPower c78b207231 Fix: don't use urlx for pagination
goware/urlx fails if the supplied URL doesn't contain a host?
(The URL passed to the CreatePaginator() template function was actually a path,
which did not contain a host or a scheme.)
2024-10-02 19:54:44 +07:00
iacore 5f8b659b49 use urlx.Parse 2024-09-28 23:12:00 +00:00
jackyzy823 517fef6e78 Support special marks for novel
1. `rb` mark for furigana
2. `jumpuri` mark to open link externally
3. `chapter` mark
4. `jump` to jump to page num anchor
5. Refactor `newpage` mark
2024-09-22 18:28:48 +08:00
perennial a8aaefef37 Restore user token precedence and rename GetPixivToken
This commit restores the ability to use a user-provided token when
making API requests and gives it precedence over the default token
provided by tokenManager.

Additionally, the function GetPixivToken has been renamed to
GetUserToken for clarity.
2024-09-22 02:27:32 +10:00
jackyzy823 b1526fc751 Add novel series to render test 2024-09-21 18:17:17 +08:00
jackyzy823 87b3656818 Fix render test 2024-09-21 18:16:59 +08:00
iacore 09c09099d8 rename templates (clean up) 2024-09-06 16:22:35 +00:00
iacore 51dad4eb74 move most go files to server/ 2024-09-05 16:08:08 +00:00