mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-27 10:44:02 +08:00
chore: update module import paths
This commit is contained in:
parent
c397ed4dda
commit
d88641ea5e
@ -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
|
||||
}
|
||||
|
@ -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'
|
||||
|
@ -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 {
|
||||
|
@ -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'
|
||||
|
@ -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) => {
|
||||
|
@ -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'
|
||||
|
@ -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,
|
||||
|
@ -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'
|
||||
|
@ -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 {
|
||||
|
@ -1,5 +1,6 @@
|
||||
export * from './config'
|
||||
export * from './connections'
|
||||
export * from './logs'
|
||||
export * from './proxies'
|
||||
export * from './request'
|
||||
export * from './rules'
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user