chore: update module import paths

This commit is contained in:
kunish 2024-10-12 23:19:39 +08:00
parent c397ed4dda
commit d88641ea5e
No known key found for this signature in database
GPG Key ID: 67D3ACD788F3A7CD
11 changed files with 13 additions and 17 deletions

View File

@ -1,6 +1,6 @@
import { Title } from '@solidjs/meta'
import { ParentComponent } from 'solid-js'
export default (({ children }) => {
export const DocumentTitle: ParentComponent = ({ children }) => {
return <Title>{children} - MetaCubeXD</Title>
}) as ParentComponent
}

View File

@ -3,6 +3,7 @@ export * from './Collapse'
export * from './ConfigTitle'
export * from './ConnectionsSettingsModal'
export * from './ConnectionsTableDetailsModal'
export * from './DocumentTitle'
export * from './Header'
export * from './Latency'
export * from './LogoText'

View File

@ -23,8 +23,7 @@ import {
upgradingBackend,
upgradingUI,
} from '~/apis'
import { Button, ConfigTitle } from '~/components'
import DocumentTitle from '~/components/DocumentTitle'
import { Button, ConfigTitle, DocumentTitle } from '~/components'
import { LANG, ROUTES, themes } from '~/constants'
import { Dict, locale, setLocale, useI18n } from '~/i18n'
import {

View File

@ -34,8 +34,8 @@ import {
Button,
ConnectionsSettingsModal,
ConnectionsTableDetailsModal,
DocumentTitle,
} from '~/components'
import DocumentTitle from '~/components/DocumentTitle'
import { CONNECTIONS_TABLE_ACCESSOR_KEY } from '~/constants'
import { formatTimeFromNow } from '~/helpers'
import { useI18n } from '~/i18n'

View File

@ -18,12 +18,10 @@ import {
getSortedRowModel,
} from '@tanstack/solid-table'
import { twMerge } from 'tailwind-merge'
import { Button, LogsSettingsModal } from '~/components'
import DocumentTitle from '~/components/DocumentTitle'
import { Button, DocumentTitle, LogsSettingsModal } from '~/components'
import { LOG_LEVEL } from '~/constants'
import { useI18n } from '~/i18n'
import { endpoint, logsTableSize, tableSizeClassName } from '~/signals'
import { useLogs } from '~/signals/logs'
import { endpoint, logsTableSize, tableSizeClassName, useLogs } from '~/signals'
import { LogWithSeq } from '~/types'
const fuzzyFilter: FilterFn<LogWithSeq> = (row, columnId, value, addMeta) => {

View File

@ -4,7 +4,7 @@ import byteSize from 'byte-size'
import { merge } from 'lodash'
import { SolidApexCharts } from 'solid-apexcharts'
import type { JSX, ParentComponent } from 'solid-js'
import DocumentTitle from '~/components/DocumentTitle'
import { DocumentTitle } from '~/components'
import { CHART_MAX_XAXIS, DEFAULT_CHART_OPTIONS } from '~/constants'
import { useI18n } from '~/i18n'
import { endpoint, latestConnectionMsg, useWsRequest } from '~/signals'

View File

@ -9,12 +9,12 @@ import { twMerge } from 'tailwind-merge'
import {
Button,
Collapse,
DocumentTitle,
ProxiesSettingsModal,
ProxyNodeCard,
ProxyNodePreview,
SubscriptionInfo,
} from '~/components'
import DocumentTitle from '~/components/DocumentTitle'
import {
filterProxiesByAvailability,
formatTimeFromNow,

View File

@ -2,8 +2,7 @@ import { IconReload } from '@tabler/icons-solidjs'
import { createVirtualizer } from '@tanstack/solid-virtual'
import { matchSorter } from 'match-sorter'
import { twMerge } from 'tailwind-merge'
import { Button } from '~/components'
import DocumentTitle from '~/components/DocumentTitle'
import { Button, DocumentTitle } from '~/components'
import { formatTimeFromNow, useStringBooleanMap } from '~/helpers'
import { useI18n } from '~/i18n'
import { endpoint, useRules } from '~/signals'

View File

@ -5,8 +5,7 @@ import { toast } from 'solid-toast'
import { v4 as uuid } from 'uuid'
import { z } from 'zod'
import { checkEndpointAPI } from '~/apis'
import { Button } from '~/components'
import DocumentTitle from '~/components/DocumentTitle'
import { Button, DocumentTitle } from '~/components'
import { transformEndpointURL } from '~/helpers'
import { useI18n } from '~/i18n'
import {

View File

@ -1,5 +1,6 @@
export * from './config'
export * from './connections'
export * from './logs'
export * from './proxies'
export * from './request'
export * from './rules'

View File

@ -1,5 +1,4 @@
import { useWsRequest } from '~/signals'
import { logLevel, logMaxRows } from '~/signals/config'
import { logLevel, logMaxRows, useWsRequest } from '~/signals'
import { Log, LogWithSeq } from '~/types'
let seq = 1