Commit Graph

25 Commits

Author SHA1 Message Date
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