Merge branch 'main' into fix/test-datasetItem

This commit is contained in:
Coding On Star 2026-03-23 18:33:23 +08:00 committed by GitHub
commit b3fba902db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 11 deletions

View File

@ -28,6 +28,7 @@ http_access deny manager
http_access allow localhost
include /etc/squid/conf.d/*.conf
http_access deny all
tcp_outgoing_address 0.0.0.0
################################## Proxy Server ################################
http_port ${HTTP_PORT}

View File

@ -9795,11 +9795,6 @@
"count": 6
}
},
"hooks/use-breakpoints.ts": {
"erasable-syntax-only/enums": {
"count": 1
}
},
"hooks/use-format-time-from-now.spec.ts": {
"regexp/no-dupe-disjunctions": {
"count": 5

View File

@ -1,13 +1,15 @@
'use client'
import * as React from 'react'
export enum MediaType {
mobile = 'mobile',
tablet = 'tablet',
pc = 'pc',
}
export const MediaType = {
mobile: 'mobile',
tablet: 'tablet',
pc: 'pc',
} as const
const useBreakpoints = () => {
type MediaTypeValue = (typeof MediaType)[keyof typeof MediaType]
const useBreakpoints = (): MediaTypeValue => {
const [width, setWidth] = React.useState(globalThis.innerWidth)
const media = (() => {
if (width <= 640)