Commit graph

8 commits

Author SHA1 Message Date
ccbikai
5f9cd9675d feat(test): migrate to cloudflare worker test suite
Modernizes testing infrastructure with dedicated Cloudflare Workers test pool:

- Replaces Nuxt Test Utils with @cloudflare/vitest-pool-workers
- Adds structured test organization for API endpoints
- Introduces comprehensive testing patterns and examples
- Implements schema-based test data generation with zod-mock
- Enhances test utilities with proper CF Workers environment

The new testing setup provides better isolation, more realistic worker runtime environment, and improved test data management through structured schemas and generators.
2025-05-29 20:54:44 +08:00
ccbikai
2a6b875bdb feat: consolidate time filtering and add advanced filters
Refactors time-based filtering by combining startAt/endAt into a single time object
Adds support for additional filter types in stats API queries
Implements deep watching for both time and filter changes

Improves code organization and maintainability while enabling more flexible data filtering
2025-03-02 13:40:43 +08:00
ccbikai
8d1bf6a451 feat: improve case-sensitive slug handling
Refactors URL slug case sensitivity implementation:
- Moves case conversion to creation time instead of lookup
- Updates middleware to handle case sensitivity more efficiently
- Adds configuration docs for case sensitivity and list query limits
- Simplifies nanoid implementation to always use lowercase

This change improves performance and consistency in URL handling while maintaining backwards compatibility with existing links.
2024-12-25 12:15:00 +08:00
ccbikai
af5724f3c1 feat: add configurable list query limit
Extracts list query limit into runtime configuration
Updates default pagination limit in query schema

Makes the list query limit configurable across the application rather than hardcoding it to 500, improving flexibility for different deployment scenarios.
2024-12-25 12:14:38 +08:00
ccbikai
da16f24577 style: eslint 2024-12-24 21:10:36 +08:00
ZL Asica
326939feee
feat: add config to switch case sensitivities 2024-12-02 20:24:47 -06:00
v
08ed8da522 feat: improve slug readability
(cherry picked from commit d950387f8cc87b166fd24bd75276bf34e1c5daa5)
2024-07-26 19:22:47 +08:00
ccbikai
bd47e755d5 feat: init 2024-05-25 08:09:30 +08:00