Commit graph

310 commits

Author SHA1 Message Date
ccbikai
225579ba68 chore: eslint & ai rules 2025-07-20 11:34:36 +08:00
ccbikai
ebd69c074f Merge branch 'test' 2025-07-20 11:19:42 +08:00
ccbikai
dea3f992be Merge branch 'Elliot-32-master' 2025-07-20 11:19:28 +08:00
ccbikai
c499a9f17c Merge branch 'master' of github.com:Elliot-32/Sink into Elliot-32-master 2025-07-20 11:19:24 +08:00
ccbikai
c3d7e4ab36 chore: remove unused @faker-js/faker dependency from package.json and pnpm-lock.yaml 2025-07-20 11:17:55 +08:00
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
a6ea1391f2 feat(test): add comprehensive testing guidelines
Establishes clear testing standards and best practices:

- Mandates unit testing for all API endpoints
- Defines test organization and file structure
- Introduces testing scope and strategy
- Documents best practices for writing tests
- Sets minimum coverage requirements (80%)
- Adds test data management guidelines

Updates project documentation to reflect testing requirements and development workflow. Includes practical examples of good testing patterns and proper test organization.
2025-05-28 19:50:56 +08:00
ccbikai
3438170d95 docs: Add project overview, development guidelines, API design patterns, and component design pattern documentation. 2025-05-27 20:07:03 +08:00
ccbikai
643df5c6de feat: add vue-sonner styles import
Import required CSS styles for vue-sonner toast component to ensure proper styling and visual consistency of notifications.nr
2025-05-25 20:38:28 +08:00
面条
d111b85d53
Merge pull request #145 from yannickkordel/german-translation
feat: add German translation
2025-05-25 20:33:00 +08:00
Yannick
89ce335915
feat: add German translation 2025-05-24 15:11:34 +02:00
ccbikai
03f32297fd Merge branch 'master' of github.com:ccbikai/Sink 2025-05-24 18:51:23 +08:00
ccbikai
970f9474fb feat: enhance SEO and mobile app meta properties
Improves SEO optimization and mobile app integration by:
- Adding ogSiteName meta property for better social sharing
- Including apple-touch-icon for iOS device support
- Updating documentation for Worker deployment configuration
- Clarifying preview mode duration (5 minutes) in documentation
2025-05-24 18:51:11 +08:00
面条
f157560435
Merge pull request #144 from andesco/master
fix link in new .md files
2025-05-24 09:55:29 +08:00
Andrew E.
f2803851b6
update link to include anchor in pages.md 2025-05-23 13:05:18 -04:00
Andrew E.
8b802c3095
update link to include anchor in workers.md 2025-05-23 13:04:59 -04:00
Andrew E.
ba35e610e7
update link to include anchor in pages.md 2025-05-23 13:01:38 -04:00
Andrew E.
7ca5d028b3
update link to include anchor in workers.md 2025-05-23 13:01:02 -04:00
ccbikai
1f213a1798 chore: 0.2.0 2025-05-23 12:14:36 +08:00
ccbikai
7e62455c62 Merge branch 'worker' 2025-05-23 12:13:05 +08:00
ccbikai
5c558fb094 docs: update deployment and add MCP instructions
Simplifies deployment documentation by moving platform-specific instructions to separate files. Adds new section for MCP (Multi-Cloud Platform) integration with OpenAPI configuration example.

Key changes:
- Fixes shadcn-vue capitalization in tech stack
- Removes "Support for Other Deployment Platforms" from roadmap
- Adds documentation for MCP server configuration
- Reorganizes deployment instructions into platform-specific guides
2025-05-23 12:12:56 +08:00
ccbikai
d33837a056 chore: Update dependencies 2025-05-22 19:46:54 +08:00
ccbikai
3b793fc489 Merge branch 'master' into worker 2025-05-22 19:43:16 +08:00
ccbikai
76e4022852 style: eslint 2025-05-22 19:43:00 +08:00
ccbikai
cf7751a392 Merge branch 'openapi' into worker 2025-05-22 19:41:38 +08:00
ccbikai
0b9960b5d8 chore: update project configuration and dependencies
- Adds new path aliases for improved code organization
- Updates dependencies to latest versions including vue-sonner v2.0.0
- Removes sourcemap configuration from Nuxt config
- Enhances API documentation with OpenAPI schemas
- Removes unused security schemes and Wrangler configuration

These changes modernize the project setup while improving documentation and removing unnecessary configurations.
2025-05-22 19:41:25 +08:00
ccbikai
e933a6cfd5 feat: update security scheme references in OpenAPI metadata 2025-05-21 20:34:02 +08:00
ccbikai
7ddbbbbca4 feat: add OpenAPI metadata to endpoints
Enhances API documentation by adding OpenAPI metadata to location and verify endpoints. Includes:

- Security requirements for both endpoints
- Detailed description of endpoint purposes
- Response documentation for verify endpoint with success/error cases
2025-05-21 20:31:12 +08:00
ccbikai
61fec839e4 chore: eslint 2025-05-21 19:54:54 +08:00
ccbikai
988657c30a fix: disable SSR for the root route in nuxt.config 2025-05-21 12:19:02 +08:00
ccbikai
efbd6c7994 chore: update Node.js version and optimize build configuration 2025-05-21 12:15:04 +08:00
ccbikai
5fae865fbe Merge branch 'master' into worker 2025-05-20 22:00:38 +08:00
ccbikai
2bbb905ac8 perf: optimize dashboard components and lazy loading
Enhances dashboard performance through strategic component optimizations:

- Removes redundant v-if condition from chart component
- Implements lazy loading for the resource-intensive globe component
- Bumps package version to 0.1.12

These changes improve initial load time and runtime performance while maintaining functionality.
2025-05-20 21:46:49 +08:00
ccbikai
f215c58eae chore: disable sourcemaps and update build configs
- Disables sourcemap generation in Nuxt for production optimization
- Adds esbuild to pnpm workspace built dependencies
- Updates Cloudflare Worker configuration to use Node.js compatibility mode
- Removes source map upload from worker configuration

These changes optimize the production build process and enhance worker compatibility.v
2025-05-20 21:32:27 +08:00
ccbikai
13b3f5a8ea feat: configure workers env and enforce compatibility
Enhances Cloudflare Workers configuration and compatibility settings:

- Enables worker execution based on provider/runtime conditions
- Sets compatibility date specifically for Cloudflare to 2025-05-08
- Enforces module compatibility through experimental flag
- Configures Wrangler with proper asset bindings and server entry point

This update improves deployment reliability and ensures consistent behavior across different environments.
2025-05-20 21:12:19 +08:00
ccbikai
125af3a567 Merge branch 'master' into preview 2025-05-20 19:27:33 +08:00
ccbikai
55753ec8bc feat: update dependencies and enhance API documentation in Nuxt configuration 2025-05-20 19:27:27 +08:00
ccbikai
1d28494d6b feat(globe): enhance traffic visualization effects
Improves the visual representation of traffic events on the globe:
- Optimizes arc animation parameters for smoother transitions
- Adds source and target ring animations for better event tracking
- Skips visualization for nearby locations to reduce visual clutter
- Updates color scheme to dark orange for better visibility
- Synchronizes animation timings with event delays
2025-05-19 20:39:17 +08:00
ccbikai
06fb1562eb docs: add HelloGitHub badge and standardize widths
Adds a new featured badge from HelloGitHub and improves visual consistency by:
- Adding HelloGitHub recommendation badge with link
- Standardizing image widths to 250px for better alignment
- Maintaining consistent height of 55px across all badges
2025-05-19 20:16:34 +08:00
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