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 { Title } from '@solidjs/meta'
import { ParentComponent } from 'solid-js' import { ParentComponent } from 'solid-js'
export default (({ children }) => { export const DocumentTitle: ParentComponent = ({ children }) => {
return <Title>{children} - MetaCubeXD</Title> return <Title>{children} - MetaCubeXD</Title>
}) as ParentComponent }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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