Commit graph

69 commits

Author SHA1 Message Date
ccbikai
744f949972 fix: corrects sorting order and enhances link sorting UX
- Fixes ascending/descending sort order for newest/oldest links
- Automatically sets sort to 'newest' when creating a link
- Updates Chinese translation for A-Z/Z-A sort labels
- Shows current sort option in dropdown button
- Reduces tooltip delay for better responsiveness
- Removes unused Button import in QRCode component
2025-03-16 13:57:29 +08:00
ccbikai
ac7caf141f fix: correct link copy function and add i18n support
- Updates shortLink copy function to use .value for reactive reference
- Adds i18n translation support in Editor component

The copy function was trying to access the shortLink directly instead of its value, which would fail in Vue's reactive system. This fix ensures proper reactivity handling when copying links.
2025-03-16 13:17:30 +08:00
ccbikai
5118201911 refactor(links): extract sort menu and fix sort logic
- Extracts dropdown sort menu into separate DashboardLinksSort component
- Fixes incorrect sort order for newest/oldest links
- Adds internationalization support for sort options
- Updates QR code download button size for consistency
- Adds helpful tooltip about sort limitation for loaded links

The sort logic was reversed where newest/oldest were concerned, this fixes
that while making the sorting feature more maintainable through component
extraction.
2025-03-16 11:52:29 +08:00
ccbikai
71c726ab9b Merge branch 'dev' of github.com:ccbikai/Sink into dev 2025-03-16 11:22:55 +08:00
ccbikai
5ad0096051 refactor: remove unused vue imports
Removes unused imports from 'vue' package including onMounted, ref, and watch to keep the codebase clean and improve maintainability
2025-03-16 11:22:47 +08:00
面条
4e95c13bf0
Merge pull request #119 from MineraleYT/dev
Feat: add sort functionality for links
2025-03-16 11:22:38 +08:00
面条
f8130d731d
Merge pull request #117 from 7heMech/patch-1
Better qr styling
2025-03-16 11:19:45 +08:00
ccbikai
e7b22a497b refactor: optimize language switcher and header layout
- Extracts language switcher into separate component
- Updates locale display to use country flag emojis
- Improves header responsiveness and spacing
- Removes embedded i18n logic for better separation of concerns
- Adjusts menu items alignment and margins for better visual balance
2025-03-16 11:17:32 +08:00
ccbikai
17c1c8747e Merge branch 'master' into i18n 2025-03-16 11:02:00 +08:00
ccbikai
e909922a5a chore: decrease preview link validity to 5 minutes
Reduces the preview link time-to-live from 24 hours to 5 minutes for improved security. Updates related user-facing message in the dashboard editor to reflect this change.
2025-03-12 20:10:32 +08:00
wudi
e563d55852 feat: Add internationalization (i18n) support
Implemented multi-language support for the application:
- Added @nuxtjs/i18n plugin configuration
- Created locale files for English (en-US) and Chinese (zh-CN)
- Updated components to use translation keys
- Added language switcher in header
- Configured VSCode i18n-ally settings
- Prepared translation infrastructure for future language expansions
2025-03-03 11:21:39 +08:00
MinerAle
a68a7430f2 fix: Update sorting logic for links to use createdAt property directly 2025-03-02 22:18:21 +01:00
MinerAle
a0aa7c43bc feat: Implement sorting options for links in dashboard 2025-03-02 22:06:47 +01:00
7heMech
7bd6461814 fix styling of qr 2025-03-02 21:00:27 +00:00
MinerAle
33c2631aa7 Drop Down menu 2025-03-02 21:53:22 +01:00
MinerAle
e0b6ffd62b feat: Add sorting options for links in dashboard 2025-03-02 21:45:43 +01:00
面条
ef631b485a
feat: Add QR code download button
Add QR code download button
2025-03-02 19:13:36 +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
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
MinerAle
9a9975c6a9 refactor: remove icon toggle functionality and simplify QR code component 2025-02-27 08:29:35 +01:00
MinerAle
1d04e199ce feat: add icon toggle and color picker to QR code component 2025-02-27 08:21:51 +01:00
MinerAle
3d5c4b0dd4 feat: add color picker to customize QR code appearance 2025-02-27 08:11:31 +01:00
MinerAle
c1c84ab0f9 fix: update QR code download filename format to use slug instead of full URL 2025-02-24 21:05:56 +01:00
MinerAle
c4626101d5 feat: add download button for QR code in dashboard links 2025-02-24 21:00:47 +01: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
7heMech
8d647ce39b
Fix duplicates on edit 2025-01-12 14:38:33 +02: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
da16f24577 style: eslint 2024-12-24 21:10:36 +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
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
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
842a8ab561 feat: Add link search function 2024-12-23 20:57:16 +08:00
ccbikai
7863b76570 fix: remove the slug conversion that cannot be reached. 2024-12-15 21:04:21 +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
ZL Asica
326939feee
feat: add config to switch case sensitivities 2024-12-02 20:24:47 -06:00
Logan
04492c3813 feat: 将固定链接名称抽取到配置中 2024-10-18 11:54:16 +08:00
ccbikai
f2a2e00ce6 feat: add XIcon to dashboard metrics 2024-08-18 20:05:33 +08:00
ccbikai
53a6b5d403 refactor: remove duplicate icon mappings for clarity
Eliminated redundant entries in iconMaps to streamline the mapping process and enhance readability. This consolidation reduces clutter and ensures a more efficient and maintainable codebase.
2024-08-18 19:43:19 +08:00
ccbikai
36e7962b83 chore: update dependencies 2024-08-18 19:38:04 +08:00
ccbikai
b2e859107d chore: Update Twitter handle to reflect new username
Update Twitter URL across multiple files to point to the new username, ensuring consistency and accuracy in social media links.
2024-07-28 13:39:32 +08:00
ccbikai
8f8865801a feat: redirect dashboard to analysis and update nav link
Enhances navigation by redirecting the main dashboard to the analysis page and updating the navigation link to directly access the analysis section. This change streamlines user access to the primary dashboard functionality.
2024-07-20 18:11:38 +08:00
面条
6b3dd8d47e
Merge pull request #23 from dr-data/main
link first
2024-07-20 18:02:24 +08:00
dr-data
09a97070d3 link first 2024-07-15 00:12:12 +08:00
ccbikai
01be05c0fc chore: Update package dependencies and optimize imports 2024-07-08 20:28:38 +08:00
ccbikai
de411396e2 chore: Update Twitter profile link 2024-07-01 13:30:08 +08:00
ccbikai
036265544f chore: a11y 2024-06-08 19:17:49 +08:00