fix: closes #685

This commit is contained in:
kunish 2024-04-23 13:56:12 +08:00
parent 6207cc7c0f
commit 995388f74f
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430
5 changed files with 7050 additions and 3800 deletions

20
auto-imports.d.ts vendored
View File

@ -12,14 +12,14 @@ declare global {
const Assets: (typeof import('solid-js/web'))['Assets'] const Assets: (typeof import('solid-js/web'))['Assets']
const DEV: (typeof import('solid-js'))['DEV'] const DEV: (typeof import('solid-js'))['DEV']
const Dynamic: (typeof import('solid-js/web'))['Dynamic'] const Dynamic: (typeof import('solid-js/web'))['Dynamic']
const ErrorBoundary: (typeof import('solid-js/web'))['ErrorBoundary'] const ErrorBoundary: (typeof import('solid-js'))['ErrorBoundary']
const For: (typeof import('solid-js/web'))['For'] const For: (typeof import('solid-js'))['For']
const HashRouter: (typeof import('@solidjs/router'))['HashRouter'] const HashRouter: (typeof import('@solidjs/router'))['HashRouter']
const Hydration: (typeof import('solid-js/web'))['Hydration'] const Hydration: (typeof import('solid-js/web'))['Hydration']
const HydrationScript: (typeof import('solid-js/web'))['HydrationScript'] const HydrationScript: (typeof import('solid-js/web'))['HydrationScript']
const Index: (typeof import('solid-js/web'))['Index'] const Index: (typeof import('solid-js'))['Index']
const Link: (typeof import('@solidjs/router'))['Link'] const Link: (typeof import('@solidjs/router'))['Link']
const Match: (typeof import('solid-js/web'))['Match'] const Match: (typeof import('solid-js'))['Match']
const MemoryRouter: (typeof import('@solidjs/router'))['MemoryRouter'] const MemoryRouter: (typeof import('@solidjs/router'))['MemoryRouter']
const NavLink: (typeof import('@solidjs/router'))['NavLink'] const NavLink: (typeof import('@solidjs/router'))['NavLink']
const Navigate: (typeof import('@solidjs/router'))['Navigate'] const Navigate: (typeof import('@solidjs/router'))['Navigate']
@ -30,11 +30,11 @@ declare global {
const Route: (typeof import('@solidjs/router'))['Route'] const Route: (typeof import('@solidjs/router'))['Route']
const Router: (typeof import('@solidjs/router'))['Router'] const Router: (typeof import('@solidjs/router'))['Router']
const Routes: (typeof import('@solidjs/router'))['Routes'] const Routes: (typeof import('@solidjs/router'))['Routes']
const Show: (typeof import('solid-js/web'))['Show'] const Show: (typeof import('solid-js'))['Show']
const StaticRouter: (typeof import('@solidjs/router'))['StaticRouter'] const StaticRouter: (typeof import('@solidjs/router'))['StaticRouter']
const Suspense: (typeof import('solid-js/web'))['Suspense'] const Suspense: (typeof import('solid-js'))['Suspense']
const SuspenseList: (typeof import('solid-js/web'))['SuspenseList'] const SuspenseList: (typeof import('solid-js'))['SuspenseList']
const Switch: (typeof import('solid-js/web'))['Switch'] const Switch: (typeof import('solid-js'))['Switch']
const _mergeSearchString: (typeof import('@solidjs/router'))['_mergeSearchString'] const _mergeSearchString: (typeof import('@solidjs/router'))['_mergeSearchString']
const action: (typeof import('@solidjs/router'))['action'] const action: (typeof import('@solidjs/router'))['action']
const addEventListener: (typeof import('solid-js/web'))['addEventListener'] const addEventListener: (typeof import('solid-js/web'))['addEventListener']
@ -45,7 +45,7 @@ declare global {
const createAsync: (typeof import('@solidjs/router'))['createAsync'] const createAsync: (typeof import('@solidjs/router'))['createAsync']
const createAsyncStore: (typeof import('@solidjs/router'))['createAsyncStore'] const createAsyncStore: (typeof import('@solidjs/router'))['createAsyncStore']
const createBeforeLeave: (typeof import('@solidjs/router'))['createBeforeLeave'] const createBeforeLeave: (typeof import('@solidjs/router'))['createBeforeLeave']
const createComponent: (typeof import('solid-js/web'))['createComponent'] const createComponent: (typeof import('solid-js'))['createComponent']
const createComputed: (typeof import('solid-js'))['createComputed'] const createComputed: (typeof import('solid-js'))['createComputed']
const createContext: (typeof import('solid-js'))['createContext'] const createContext: (typeof import('solid-js'))['createContext']
const createDeferred: (typeof import('solid-js'))['createDeferred'] const createDeferred: (typeof import('solid-js'))['createDeferred']
@ -86,7 +86,7 @@ declare global {
const keepDepth: (typeof import('@solidjs/router'))['keepDepth'] const keepDepth: (typeof import('@solidjs/router'))['keepDepth']
const lazy: (typeof import('solid-js'))['lazy'] const lazy: (typeof import('solid-js'))['lazy']
const mapArray: (typeof import('solid-js'))['mapArray'] const mapArray: (typeof import('solid-js'))['mapArray']
const mergeProps: (typeof import('solid-js/web'))['mergeProps'] const mergeProps: (typeof import('solid-js'))['mergeProps']
const normalizeIntegration: (typeof import('@solidjs/router'))['normalizeIntegration'] const normalizeIntegration: (typeof import('@solidjs/router'))['normalizeIntegration']
const notifyIfNotBlocked: (typeof import('@solidjs/router'))['notifyIfNotBlocked'] const notifyIfNotBlocked: (typeof import('@solidjs/router'))['notifyIfNotBlocked']
const observable: (typeof import('solid-js'))['observable'] const observable: (typeof import('solid-js'))['observable']

10474
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@ import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn' import 'dayjs/locale/zh-cn'
import relativeTime from 'dayjs/plugin/relativeTime' import relativeTime from 'dayjs/plugin/relativeTime'
import { lazy } from 'solid-js' import { lazy } from 'solid-js'
import { render } from 'solid-js/web'
import { Toaster } from 'solid-toast' import { Toaster } from 'solid-toast'
import { App } from '~/App' import { App } from '~/App'
import { ROUTES } from '~/constants' import { ROUTES } from '~/constants'

View File

@ -395,7 +395,9 @@ export default () => {
if (table.getState().globalFilter) { if (table.getState().globalFilter) {
table table
.getFilteredRowModel() .getFilteredRowModel()
.rows.forEach(({ id }) => closeSingleConnectionAPI(id)) .rows.forEach(({ original }) =>
closeSingleConnectionAPI(original.id),
)
} else { } else {
closeAllConnectionsAPI() closeAllConnectionsAPI()
} }

View File

@ -16,7 +16,8 @@ export default defineConfig({
solidPlugin(), solidPlugin(),
AutoImport({ AutoImport({
packagePresets: ['solid-js', 'solid-js/web', '@solidjs/router'], imports: ['solid-js'],
packagePresets: ['@solidjs/router'],
}), }),
VitePWA({ VitePWA({