Commit Graph

113 Commits

Author SHA1 Message Date
perennial 96c8609e33 ParseEmojis: fix malformed strings 2024-10-12 00:44:24 +11:00
perennial 516cb9b3fb fix improper type 2024-10-12 00:18:13 +11:00
perennial a95d344352 reanme GetUserArtwork to GetUserProfile 2024-10-11 18:35:43 +11:00
perennial c39821ddb2 rename ArtworksCount to CategoryItemCount 2024-10-11 18:11:52 +11:00
perennial 43c68f5790 draft 2024-10-11 18:11:21 +11:00
perennial 9f5faa7cf8 fix broken /proxy/i.pximg.net setting 2024-10-11 15:07:49 +11:00
perennial 4828567ed4 fix non-functional custom-image-proxy field 2024-10-11 14:53:57 +11:00
perennial 214fcbf9a7 simplify index backend logic 2024-10-10 23:13:29 +11:00
perennial 4c1bf69568 fix settings.go 2024-10-10 22:30:08 +11:00
perennial f4e1507275 prefetch testing 2024-10-09 22:27:27 +11:00
perennial 3e1175fb90 refine novel page more 2024-10-07 21:03:10 +11:00
perennial a6b430b97f formatting 2024-10-07 19:41:02 +11:00
perennial df586d9d17 Load local twbs icons + fix csp 2024-10-07 16:36:44 +11:00
perennial 0e2b434ab6 i18n.Log to i18n.Sprintf 2024-10-07 16:09:20 +11:00
perennial f4fca10481 restore CSP 2024-10-07 16:04:13 +11:00
perennial b0c2b63651 Fix rebase 2024-10-07 15:26:22 +11:00
perennial 51f3122aef Fix failing compilation + gofmt 2024-10-05 21:36:54 +10:00
perennial 7ff221fdc7 fix broken CreatePaginator + add test case 2024-10-05 20:30:58 +10:00
perennial 29a2353155 expose Query for noveldiscovery 2024-10-04 23:02:16 +10:00
perennial a20a8d5ee0 htmx for user actions properly 2024-10-04 22:01:27 +10:00
perennial 2c801bcb75 Revert "htmx for user actions"
This reverts commit fb5797262b9da4410277f491246c811e39bf8dd3.
2024-10-04 21:50:30 +10:00
perennial 07aa3390d0 htmx for user actions 2024-10-04 21:41:35 +10:00
perennial 1a7c693c68 Implement query parameter handling for index page
Add support for mode selection via query parameters on the index page.
Update the IndexPage function to include query parameters in the rendered
data and modify the index.jet.html template to use these parameters for
active mode detection.
2024-10-04 21:01:51 +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 edb19880b1 Refactor ranking calendar to use structured data
This commit introduces a significant refactoring of the ranking calendar
functionality. The main changes include:

1. Created a new `DayCalendar` struct to represent calendar data.
2. Modified `GetRankingCalendar` to return a slice of `DayCalendar`
   instead of generating HTML directly.
3. Updated the template to use the new `DayCalendar` struct for rendering.
4. Moved HTML generation from Go code to the template.
2024-10-01 20:28:53 +10:00
perennial 4ac909f1a7 add comments to rankingCalendar.go files 2024-10-01 19:12:36 +10:00
perennial c1fac56d38 Implement HTMX for asynchronous settings updates
Update settings page to use HTMX for form submissions, allowing for
asynchronous updates without page reloads. Add response divs for each
form to display success or error messages. Modify backend to support
AJAX responses and return appropriate messages.
2024-10-01 17:59:43 +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 90ebf74d88 add clear cookie route (broken styling) 2024-10-01 15:37:32 +10:00
perennial 1584dccc46 display current image proxy 2024-10-01 14:38:13 +10:00
perennial ed3e30480c switch form for pixivfe-ThumbnailToNewTab 2024-10-01 00:08:31 +10:00
perennial 28a43f2ef8 Revert "default cookies"
This reverts commit 01d46aa60b.
2024-09-30 23:30:50 +10:00
perennial 587ff1067e default cookies 2024-09-30 23:30:42 +10:00
perennial 74d60e549e ProxyCheckEnabled detection draft 2024-09-30 22:01:32 +10:00
perennial 2218bed88e switcher: move logic for determining active state to the backend 2024-09-29 21:58:00 +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
perennial e7e3bfffd8 Convert nav + about page + settings page draft
Also disable CSP
2024-09-25 22:45:37 +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 e27dc301e2 Add cookie: Locale 2024-10-08 22:55:13 +00:00
iacore 4a0bcf2f58 Translate short strings 2024-10-07 05:05:47 +00:00
jackyzy823 0b304ef8ab fix: escape external url in some template and add a fallback router. 2024-10-07 10:24:25 +08:00
jackyzy823 4098c489ad fix: get user info after checking correct id 2024-10-07 00:55:53 +08:00
jackyzy823 10dfaa477b fix: i18n error for manga routes 2024-10-06 12:00:46 +08:00