Commit graph

26 commits

Author SHA1 Message Date
ccbikai
71654dcbc8 feat: add bot traffic filtering for access logs
Adds configuration option NUXT_DISABLE_BOT_ACCESS_LOG to exclude bot/crawler traffic from access statistics

- Updates ua-parser-js to stable v2.0.3
- Detects bots via CloudFlare bot management and user agent analysis
- Documents new config option in configuration.md and FAQs
2025-03-16 12:57:05 +08:00
ccbikai
1eb22503e6 fix: enable multiple filter values via comma separator
Updates query filter to support multiple values by splitting on commas.
Removes debug logging statement for cleaner code.

The change allows for more flexible query filtering by accepting
comma-separated values instead of single values only.
2025-03-02 13:47:50 +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
da16f24577 style: eslint 2024-12-24 21:10:36 +08:00
ccbikai
465aa3292a fix: Increases KV list limit for better data retrieval
Expands the limit of the KV.list call from 1 to 1000.

This enhancement allows for more efficient data retrieval, reducing the number of requests needed to fetch all relevant entries.

Improves performance in scenarios with a large number of links.
2024-12-23 21:09:00 +08:00
ccbikai
842a8ab561 feat: Add link search function 2024-12-23 20:57:16 +08:00
ccbikai
7ab62c6a07 feat: add debug log for case-insensitive slug fallback
Adds logging when a case-insensitive URL slug fallback is attempted. This helps track when and how often the fallback mechanism is used.

Also improves code readability by renaming variable to match camelCase convention.
2024-12-15 20:38:32 +08:00
面条
8941fe3962
Merge pull request #88 from ZL-Asica/feature/case-sensitive
feat: add case sensitivity configuration for slugs
2024-12-15 20:35:57 +08:00
ccbikai
e7d71b35d3 feat: add short link to edit link response
Enhances link edit endpoint by including a fully-qualified short link URL in the response, constructed from request protocol and host alongside the slug
2024-12-08 14:44:03 +08:00
ccbikai
337f8f174c fix: refine link creation response structure
Returns link object separately from shortLink in response to maintain clearer API structure and prevent unnecessary data duplication in the response payload
2024-12-08 12:01:17 +08:00
ccbikai
172956b532 feat: add short link to create endpoint response
Enhances the link creation API response by including a formatted short link URL
Combines protocol, host, and slug to create a complete, ready-to-use short URL
2024-12-08 11:56:03 +08:00
ccbikai
19e18546de fix: adjust cursor handling for KV pagination
Moves undefined fallback from client to server side for cursor parameter
Ensures consistent pagination behavior when fetching links from KV storage

This prevents potential edge cases where undefined cursor values could be handled differently between client and server.
2024-12-08 11:37:04 +08:00
ZL Asica
899323faf6
chore: pre-check if slug is same before and after lowercase. 2024-12-06 15:11:07 -06:00
ZL Asica
902fc1bef5
fix: forward compability for case sensitive 2024-12-06 10:19:40 -06:00
ZL Asica
326939feee
feat: add config to switch case sensitivities 2024-12-02 20:24:47 -06:00
Manuel Osorio
cae1828da1
feat: remove leading and trailing slash from slug 2024-09-29 15:10:17 -04:00
ccbikai
b116d4c007 feat: enable AI integration and update dependencies
- Activated AI functionality in Nuxt configuration
- Updated AI model to a newer version for enhanced performance
- Bumped @nuxthub/core to 0.7.3 for critical bug fixes and improvements
2024-08-18 19:01:14 +08:00
ccbikai
52187d1ff6 feat: disable query string redirection by default
Enhances security and performance by preventing query strings from being carried over during redirection, aligning with best practices.
2024-07-20 18:34:49 +08:00
ccbikai
2876385f20 feat: add link cache TTL for performance optimization
Improves response times by introducing a configurable link cache TTL, defaulting to 60 seconds, to ensure quick access to frequently requested links while maintaining responsiveness to updates.
2024-07-20 18:21:40 +08:00
ccbikai
3c0a7be6eb style: remove unnecessary newline for cleaner code 2024-07-20 18:13:05 +08:00
面条
6b3dd8d47e
Merge pull request #23 from dr-data/main
link first
2024-07-20 18:02:24 +08:00
dr-data
ca12fdd876 link first 2024-07-15 00:20:15 +08:00
dr-data
21d8352de0 link first 2024-07-15 00:16:45 +08:00
ccbikai
01be05c0fc chore: Update package dependencies and optimize imports 2024-07-08 20:28:38 +08:00
ccbikai
bd47e755d5 feat: init 2024-05-25 08:09:30 +08:00