Commit graph

181 commits

Author SHA1 Message Date
ccbikai
8169f8a973 Merge branch 'dev' into preview 2025-03-02 18:12:04 +08:00
ccbikai
77988a5381 Merge branch 'filter' into dev 2025-03-02 18:11:45 +08:00
ccbikai
9b6f33de88 feat: add viewport meta and enhance filter styling
Adds viewport meta tag with mobile-specific settings to improve responsive behavior

- Disables user scaling for better mobile experience
- Adjusts filter component padding and text styles
- Removes redundant font-normal class
2025-03-02 18:10:50 +08:00
ccbikai
67c588eb12 feat: add mobile-responsive drawer for search & filters
Replaces desktop-only popover components with responsive alternatives:
- Adds drawer component for mobile view using vaul-vue
- Extracts shared templates for reusability
- Adjusts layout and height based on viewport size
- Maintains desktop popover behavior on larger screens

Improves mobile user experience while preserving desktop functionality
2025-03-02 15:56:20 +08:00
ccbikai
6070f2f5c3 feat: add virtual scroll to links dropdown
Enhances dropdown performance by implementing virtual scrolling with VList from virtua/vue library. This optimization improves rendering efficiency for large link lists by only rendering visible items.
2025-03-02 14:33:47 +08:00
ccbikai
dd7b898a11 feat: implement URL state persistence for dashboard
Adds URL search params synchronization for dashboard filters and date range
- Stores selected date range in URL for restoration on page reload
- Removes old Filter component in favor of new implementation
- Preserves filter state across page navigation

This change improves user experience by maintaining dashboard state through browser navigation and page reloads.
2025-03-02 14:19:40 +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
ab4fc66da9 Merge branch 'preview' 2025-02-08 21:05:21 +08:00
ccbikai
4eba7cc37d Merge branch 'dev' into preview 2025-02-08 20:24:40 +08:00
ccbikai
466e259de9 Merge branch 'dev' of github.com:ccbikai/Sink into dev 2025-02-08 20:22:37 +08:00
ccbikai
16ca5a1f06 fix: correct link creation event emission
Differentiates between 'edit' and 'create' events in link editor.
Updates the emit event to properly handle new link creation scenarios.
2025-02-08 20:22:21 +08:00
面条
c7321a1af2
Merge pull request #108 from dpi0/patch-1
docs: update KV Namespace setting path & add docs URL
2025-02-08 20:21:47 +08:00
面条
dbba560750
Merge pull request #105 from 7heMech/patch-1
Fix duplicates on edit
2025-02-08 20:18:30 +08:00
divyansh
093a9f7e41
docs: update KV Namespace setting path & add docs URL 2025-01-20 14:21:36 +05:30
7heMech
8d647ce39b
Fix duplicates on edit 2025-01-12 14:38:33 +02:00
面条
8731baa302
docs: Uneed 1st 2025-01-10 19:00:11 +08:00
ccbikai
8beff2ea7d 0.1.8 2024-12-29 21:12:55 +08:00
ccbikai
111af7b008 Merge remote-tracking branch 'origin/preview' 2024-12-29 21:11:53 +08:00
面条
d4ffda21b0
docs: add uneed badge 2024-12-26 18:40:15 +08:00
ccbikai
97e154dd0e Merge branch 'dev' into preview 2024-12-25 12:47:53 +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
5abc4af3f5 fix: updates image resources and fixes metrics
- Changes fallback image path from sink.png to icon.png
- Adds lazy loading attribute to improve performance
- Fixes v-slot syntax in metrics list component
- Updates "No more" text to "No more links" for clarity
2024-12-25 12:13:50 +08:00
ccbikai
480824f36f chore: update dependencies and lockfile
- Downgrade @nuxthub/core from ^0.8.10 to 0.7.11 for compatibility.
- Upgrade nuxt from ~3.12.4 to ~3.13.2 to incorporate recent improvements.
- Update rollup version in various dependencies to 4.18.0 for better performance and stability.
- Adjust pnpm-lock.yaml to reflect changes in package versions and dependencies.

These updates aim to enhance stability and performance while ensuring compatibility across the project.
2024-12-25 12:12:06 +08:00
ccbikai
ff0c2ad1eb fix(deps): downgrade nuxt to v3.12.4
Reverts nuxt to a more stable version by downgrading from 3.14.1592 to 3.12.4 to avoid potential breaking changes and instability issues with the beta release.

Adjusts pnpm lockfile to reflect version change and dependencies.
2024-12-24 22:26:49 +08:00
ccbikai
2a172494e7 Merge branch 'vercel' into dev 2024-12-24 22:00:39 +08:00
ccbikai
da16f24577 style: eslint 2024-12-24 21:10:36 +08:00
ccbikai
df9f13fe3a chore: 升级到最新包 2024-12-24 21:09:21 +08:00
ccbikai
60904b752f Merge branch 'master' into dev 2024-12-24 12:53:49 +08:00
ccbikai
0dc65bc64a chore: 0.1.7 2024-12-24 12:43:57 +08:00
ccbikai
b7c8ebd045 feat: replace counters with animated number flows
Integrates @number-flow/vue for smoother counter animations
Improves visibility state with opacity and blur adjustments
Removes unused static increment comments
2024-12-24 12:43:35 +08:00
ccbikai
651dcabdb1 feat: add error handling for link loading
Improves reliability of link loading functionality:
- Adds error state and handling for failed API requests
- Implements retry mechanism with user-facing error message
- Prevents infinite loading when errors occur
- Defers search API call to mounted hook

These changes enhance user experience by providing clear feedback and recovery options when link loading fails.
2024-12-24 12:43:19 +08:00
ccbikai
d6ce2730c9 Merge branch 'preview' 2024-12-23 21:22:09 +08:00
ccbikai
f01224d04d fix: update width constraint for comment badge
Changes width constraint from fixed `w-24` to `max-w-24` to prevent content overflow while maintaining maximum width limit for comment badges
2024-12-23 21:15:42 +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
45745f1d8f fix: Replaces search component with lazy-loading variant
Substitutes the existing search component with a lazy-loading version to improve performance and loading times.

Enhances user experience by ensuring that search functionality loads only when needed.
2024-12-23 21:08:31 +08:00
ccbikai
3f5c6ceb59 Merge branch 'dev' into preview 2024-12-23 20:57:47 +08:00
ccbikai
b520d4006c Merge branch 'search' into dev 2024-12-23 20:57:24 +08:00
ccbikai
842a8ab561 feat: Add link search function 2024-12-23 20:57:16 +08:00
ccbikai
4e3da1f36a Merge branch 'master' into preview 2024-12-15 21:05:29 +08:00
ccbikai
7863b76570 fix: remove the slug conversion that cannot be reached. 2024-12-15 21:04:21 +08:00
ccbikai
e995d5063f chore: v0.1.6 2024-12-15 20:54:50 +08:00
ccbikai
96795aa36d Merge branch 'preview' 2024-12-15 20:47:56 +08:00
面条
f6642ee436
docs: Update code, refer to the official GitHub documentation 2024-12-15 20:43:55 +08:00
ccbikai
fdf7a01e5f Merge branch 'dev' into preview 2024-12-15 20:40:26 +08:00
ccbikai
973d51d4ed docs: consolidate slug customization features
Merges the case sensitivity feature description into the customizable slug feature section for better organization and clarity. This consolidation simplifies the feature list while maintaining all functionality information
2024-12-15 20:39:34 +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
b26b036833 Merge remote-tracking branch 'origin/master' into dev 2024-12-15 20:31:20 +08:00