Commit graph

268 commits

Author SHA1 Message Date
ccbikai
bab8dec489 style(vue): improve motion animation formatting
Enhances code readability and maintainability by:
- Breaking v-motion directive into separate line
- Reordering motion module in Nuxt config for better dependency loading

This change maintains the same functionality while improving code organization
and module initialization order.
2025-05-18 21:52:02 +08:00
ccbikai
6a98a4b719 Merge branch 'preview' 2025-05-18 21:18:21 +08:00
ccbikai
9106881448 fix: clean up globe arcs and prevent empty stats display
- Adds cleanup timer for globe arcs to prevent accumulation
- Conditionally renders chart header when stats are available
- Improves event handling in AnimatedList by passing props
- Fixes traffic event animation by clearing previous timeouts

These changes improve visualization performance and user experience by preventing memory leaks from accumulated arcs and ensuring smoother animations.
2025-05-18 21:17:19 +08:00
ccbikai
5dbbabc9b7 Merge branch 'realtime' into preview 2025-05-18 20:53:55 +08:00
ccbikai
9ab07bc40a Merge branch 'master' into preview 2025-05-18 20:51:05 +08:00
ccbikai
852755ee1d feat: enhance globe visualization with traffic arcs
Adds real-time visualization of traffic flow between user locations and data centers on the 3D globe:

- Implements arc animations for traffic visualization
- Adjusts globe colors and atmosphere for better visibility
- Adds data center (colo) location mapping
- Centers initial view on user's current location
- Improves mobile responsiveness and layout
- Adds cleanup handling for globe resources

Performance and UX improvements:
- Optimizes globe rotation speed and controls
- Updates time picker layout with logical grouping
- Enhances responsive design for dashboard components
2025-05-18 20:50:56 +08:00
ccbikai
70d6632fd0 refactor: remove redundant watcher cleanup in Vue comps
Removes unnecessary manual watcher cleanup via stopWatchQueryChange across multiple Vue components.

Vue 3's watch() automatically handles cleanup when components are unmounted, making explicit stopWatchQueryChange calls and onBeforeUnmount handlers redundant.

This change:
- Improves code maintainability
- Reduces boilerplate code
- Follows Vue 3 best practices for reactive system cleanup
2025-05-18 19:13:04 +08:00
ccbikai
0dd263c354 feat: enhance realtime dashboard with time filters
Implements comprehensive time filtering and visualization improvements:

- Adds time range picker with presets from 5min to 24h
- Enhances chart visualization with minute-level granularity
- Updates globe visualization to respond to time/filter changes
- Implements animated event log display
- Swaps primary/secondary color scheme for better contrast

Improves realtime data handling with automatic updates and proper cleanup on unmount. Includes i18n support for new time picker UI across all supported languages.
2025-05-18 19:06:28 +08:00
ccbikai
f05393cc2e Merge branch 'master' into realtime 2025-05-16 19:03:16 +08:00
ccbikai
c76ab39538 Merge branch 'preview' 2025-05-16 19:02:40 +08:00
ccbikai
07c0b3a341 Merge branch 'nuxt-v4' into preview 2025-05-16 19:02:26 +08:00
ccbikai
507a4d9a23 feat: add COLO field to access log tracking
Add Cloudflare COLO data to the access log tracking system to capture datacenter location information. This enables better monitoring of request distribution across Cloudflare's global infrastructure.

The COLO field is mapped to blob16 in the blobs map and populated from the Cloudflare request headers.
2025-05-16 19:02:14 +08:00
ccbikai
3456e69366 feat: enhance realtime globe functionality
- Reintroduced the realtime dashboard tab in the navigation menu.
- Updated Globe component to utilize geographic coordinates for live session locations.
- Added dynamic resizing for the globe based on viewport width.
- Implemented stop rotation feature on mouse down for better user interaction.
- Cleaned up commented code and improved type definitions in event logging.
2025-05-11 21:53:23 +08:00
ccbikai
7291beafea Merge branch 'preview' into realtime 2025-05-11 18:58:02 +08:00
ccbikai
e72739e927 Merge branch 'nuxt-v4' into preview 2025-05-11 18:34:15 +08:00
ccbikai
dc23ff02a2 feat: add latitude/longitude to access logs
Extends access logging system to support geographic coordinates:
- Adds `doublesMap` for latitude/longitude data
- Updates type definitions to handle numeric values
- Implements conversion functions for double values
- Captures coordinates from Cloudflare headers

Enhances analytics capabilities for real-time globe visualization
2025-05-11 18:33:47 +08:00
ccbikai
189c52dd4d chore: remove realtime dashboard tab
Temporarily disables the realtime dashboard navigation option by commenting out its TabsTrigger component in the navigation menu. This indicates a planned feature or work in progress.
2025-05-11 17:49:27 +08:00
ccbikai
63cd5e9503 feat: add realtime log and globe 2025-05-11 17:48:46 +08:00
ccbikai
622d6351c6 refactor: replace Dashboard with DashboardAnalysis
Updates component to use more specific DashboardAnalysis component while preserving existing link-related functionality and props
2025-05-11 14:43:40 +08:00
ccbikai
cd16254dbc feat: use locale for Intl.DisplayNames rendering
Updates formatting of country and language names to respect the user's locale instead of hardcoding to English ('en').

Includes commented placeholder for future timezone support via Intl.TimeZone API.
2025-05-11 14:41:37 +08:00
ccbikai
d580a9f882 chore: Adjust the directory structure in preparation for real-time. 2025-05-11 14:17:57 +08:00
ccbikai
e4a0abdebb fix: update link schema import path
Changes import path from '@/' to '@@/' to align with
correct module resolution configuration
2025-05-11 13:46:55 +08:00
ccbikai
d774b108a5 Merge branch 'WuChenDi-master' into nuxt-v4 2025-05-11 13:40:35 +08:00
ccbikai
d4d088521a Merge branch 'master' of github.com:WuChenDi/Sink into WuChenDi-master 2025-05-11 13:40:19 +08:00
ccbikai
65f78845bf Merge branch 'master' into nuxt-v4 2025-05-11 13:37:57 +08:00
ccbikai
67fb82188a Merge branch 'master' into preview 2025-05-11 13:37:35 +08:00
ccbikai
f9d76b7562 chore: 0.1.11 2025-05-11 13:35:01 +08:00
ccbikai
54d689a901 docs: add iOS app to supported platforms
Adds iOS app link to supported platforms in README
Adjusts formatting for KV namespace setup instructions

The iOS app is now available on the App Store at id6745417598
2025-05-11 13:34:39 +08:00
面条
a166c30532
Merge pull request #126 from toeydevelopment/master
feat: Add upsert API endpoint for link management
2025-05-11 13:25:46 +08:00
面条
b018697429
Merge pull request #136 from wiresslend/master
When deploying with Cloudflare workers, sometimes the real IP address cannot be obtained
2025-05-11 13:25:23 +08:00
面条
ca41201a64
Merge pull request #137 from ygnask/fix-date-text-wrapping
Fix: Prevent date fields from wrapping on the dashboard card
2025-05-11 13:24:41 +08:00
ccbikai
a750fdac03 Merge branch 'master' of github.com:ccbikai/Sink 2025-05-11 13:16:53 +08:00
ccbikai
66fa4e6650 fix: update footer link to point to the new site
- Changes the footer logo link from the root path to the new URL "https://sink.cool" for better accessibility and branding.
2025-05-11 13:16:45 +08:00
面条
d9b0465ea0
docs: add deepwiki 2025-04-28 09:27:41 +08:00
ygnask
b07e6e348c Display creation and expiration dates on a single line 2025-04-17 16:40:08 +09:00
wiresslend
11fdaeeb19
solve not being able to correctly obtain CF IP 2025-04-15 11:12:53 +08:00
面条
d935fe7970
buy_me_a_coffee 2025-04-13 12:21:47 +08:00
面条
9446903c5b
Merge pull request #125 from Ericxpert/master
feat: add Traditional Chinese (zh-TW) translation
2025-04-11 18:40:53 +08:00
面条
1823b4fc7f
Merge branch 'master' into master 2025-04-11 18:40:44 +08:00
面条
ed7c06c58c
Merge pull request #128 from niquenen/feat/i18n/fr
feat: add french translation
2025-04-11 18:38:22 +08:00
面条
cc2e6946b2
Merge branch 'master' into feat/i18n/fr 2025-04-11 18:38:15 +08:00
面条
03399bbed7
Merge pull request #133 from lamngockhuong/feat.add-vi-lang
feat: add Vietnamese translation
2025-04-11 18:36:56 +08:00
Lam Ngoc Khuong
7594366adb feat: add Vietnamese translation 2025-03-31 10:59:51 +07:00
Cédric Hennequin
ab717a8111
refactor: add locale settings 2025-03-26 10:05:18 +01:00
Cédric Hennequin
e381570b44
refactor: add french locale 2025-03-26 10:05:00 +01:00
wudi
7cadbfe2b1 refactor: Migrate project files and directories to the app directory using the new compatibilityVersion: 4 feature
- Moved `app.config.ts` to the `app` directory
- Migrated `.vue` files and other assets to the `app` directory
- Updated import paths to reflect the new file locations
2025-03-24 11:05:59 +08:00
anirut.k
c1ac0bf9f3 feat: implement link upsert API endpoint
- Adds a new API endpoint for creating and retrieving links
- Validates link data using LinkSchema
- Supports case sensitivity for link slugs
- Handles existing links by returning the short link and status
- Creates new links with expiration metadata in Cloudflare KV store
2025-03-21 13:45:41 +07:00
羿玹/Eric
320f34cf23 feat: add Traditional Chinese (zh-TW) translation 2025-03-19 16:09:48 +00:00
ccbikai
d6b542fb9d chore: 0.1.10 2025-03-18 22:09:02 +08:00
ccbikai
2ea7b8f3c9 Merge branch 'preview' 2025-03-18 22:08:35 +08:00