mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-15 18:55:35 +08:00
17 lines
651 B
TypeScript
17 lines
651 B
TypeScript
|
import { makePersisted } from '@solid-primitives/storage'
|
||
|
import { createSignal } from 'solid-js'
|
||
|
import { PROXIES_PREVIEW_TYPE } from '~/config/enum'
|
||
|
|
||
|
export const [proxiesPreviewType, setProxiesPreviewType] = makePersisted(
|
||
|
createSignal(PROXIES_PREVIEW_TYPE.BAR),
|
||
|
{ name: 'proxiesPreviewType', storage: localStorage },
|
||
|
)
|
||
|
export const [urlForDelayTest, setUrlForDelayTest] = makePersisted(
|
||
|
createSignal('https://www.gstatic.com/generate_204'),
|
||
|
{ name: 'urlForDelayTest', storage: localStorage },
|
||
|
)
|
||
|
export const [autoCloseConns, setAutoCloseConns] = makePersisted(
|
||
|
createSignal(false),
|
||
|
{ name: 'autoCloseConns', storage: localStorage },
|
||
|
)
|