yusing
74f97a6621
refactor(homepage): reorganize icons into dedicated package structure
...
Split the monolithic `internal/homepage` icons functionality into a structured package hierarchy:
- `internal/homepage/icons/` - Core types (URL, Key, Meta, Provider, Source, Variant)
- `internal/homepage/icons/fetch/` - Icon fetching logic (content.go, fetch.go, route.go)
- `internal/homepage/icons/list/` - Icon listing and search (list_icons.go, list_icons_test.go)
Moved icon-related code from `internal/homepage/`:
- `icon_url.go` → `icons/url.go` (+ url_test.go)
- `content.go` → `icons/fetch/content.go`
- `route.go` → `icons/fetch/route.go`
- `list_icons.go` → `icons/list/list_icons.go` (+ list_icons_test.go)
Updated all consumers to use the new package structure:
- `cmd/main.go`
- `internal/api/v1/favicon.go`
- `internal/api/v1/icons.go`
- `internal/idlewatcher/handle_http.go`
- `internal/route/route.go`
2026-01-09 12:06:54 +08:00
yusing
6776f20332
refactor: move task, error and testing utils to separte repo; apply gofumpt
2025-09-27 13:41:50 +08:00
yusing
f9affba9fc
refactor(modules): replace github.com/yusing/go-proxy with github.com/yusing/godoxy
2025-09-22 16:44:59 +08:00
yusing
2c290a3916
feat(homepage): enhance homepage functionality with new item click tracking, sort methods and category management
...
- Added ItemClick endpoint to increment item click counts.
- Refactored Categories function to dynamically generate categories based on available items.
- Introduced sorting methods for homepage items and categories.
- Updated item configuration to include visibility, favorite status, and sort orders.
- Improved handling of item URLs and added support for websocket connections in item retrieval.
2025-09-13 23:52:54 +08:00
yusing
cd4c843025
feat: light/dark variant icons and selfh.st tag as default category
...
- code refactor
- reduce memory usage
2025-05-02 03:38:50 +08:00
yusing
4a65de99a8
refactor: unify json load/saving with jsonstore
2025-04-24 05:49:32 +08:00
yusing
232f720e77
refactor: use stretchr/testify, replace ExpectBytesEqual and ExpectDeepEqual with ExpectEqual in tests
2025-03-28 08:45:06 +08:00
yusing
fbb07011f1
refactor: update homepage item handling and improve JSON marshaling
2025-03-28 08:14:06 +08:00
yusing
e3e3f1dfdc
fixed some tests
2025-01-29 09:40:37 +08:00
yusing
8b1a3a31ff
simplify icon caching and homepage item override
2025-01-21 06:16:00 +08:00
yusing
64e85c3076
feat: support selfh.st icons, support homepage config overriding
2025-01-20 17:42:17 +08:00