feat: update routing and API handling, improve query functionality, and enhance UI components

- Changed import path for routes in next-env.d.ts
- Updated dependencies in package.json, including @kevisual/api and @kevisual/query
- Added delete functionality in QueryView component
- Modified run function in studio to accept a custom type
- Enhanced searchRoutes function in studio store with Fuse.js for better filtering
- Updated DataItemForm to use QueryRouterServer from the browser
- Added dynamic URL handling in query module
- Improved proxy request handling based on app key
- Adjusted TypeScript configuration for stricter checks
- Created a new page component for dynamic routing
- Introduced a new Toaster component for notifications
This commit is contained in:
2026-01-21 18:51:03 +08:00
parent 8ba90c00be
commit 8e29fe4545
12 changed files with 1502 additions and 41 deletions

View File

@@ -1,8 +1,9 @@
'use client';
import { QueryClient } from '@kevisual/query'
const getUrl = () => {
const _url = new URL(window.location.href)
export const getUrl = () => {
if (typeof window === 'undefined') return '/client/router';
const _url = new URL(location.href)
const pathname = _url.pathname
const [user, repo] = pathname.split('/').filter(Boolean)
if (repo === 'v1') {