Commit Graph

129 Commits

Author SHA1 Message Date
perennial ed2dd5061f rm audit.Logger from actions 2024-10-13 21:21:00 +11:00
perennial aad63d216a user follow: use mobile api 2024-10-13 19:55:59 +11:00
perennial db529d56c1 wip 2 2024-10-13 19:05:34 +11:00
perennial 0c5a2d7360 debug wip 2024-10-13 18:34:38 +11:00
perennial d2735f5684 user follow: backend code 2024-10-13 17:48:41 +11:00
perennial 840095d5d9 fix manga displaying incorrectly 2024-10-13 23:47:31 +11:00
perennial d41e98ab8b run gofumpt
https://github.com/mvdan/gofumpt
2024-10-13 16:31:18 +11:00
perennial 0792ad04be fix diagnostic page 2024-10-13 16:23:06 +11:00
perennial d738741918 update ServedRequestSpan to ServerRequestSpan 2024-10-13 16:17:31 +11:00
perennial dcb1e4b34a logging: renaming 2024-10-13 15:47:42 +11:00
perennial 3a3f70dc12 rename SERVER to server 2024-10-13 15:37:57 +11:00
perennial 385b7de69d rm duplicate ts 2024-10-13 15:35:43 +11:00
perennial ba76469422 logging configuration 2024-10-13 15:26:34 +11:00
perennial 9b8efff3b6 audit: rename perf variable to requestSpan 2024-10-13 15:04:24 +11:00
perennial adc226dd72 zap for logging wip 2024-10-13 14:59:39 +11:00
perennial 863df602ea logging rework wip 2024-10-13 14:29:17 +11:00
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