mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Merge branch 'main' into cloudflare
This commit is contained in:
commit
822e28807b
@ -26,7 +26,7 @@ export default function ServerListClient() {
|
|||||||
const [inline, setInline] = useState<string>("0");
|
const [inline, setInline] = useState<string>("0");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const inlineState = sessionStorage.getItem("inline");
|
const inlineState = localStorage.getItem("inline");
|
||||||
if (inlineState !== null) {
|
if (inlineState !== null) {
|
||||||
console.log("inlineState", inlineState);
|
console.log("inlineState", inlineState);
|
||||||
setInline(inlineState);
|
setInline(inlineState);
|
||||||
@ -138,7 +138,7 @@ export default function ServerListClient() {
|
|||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setInline(inline === "0" ? "1" : "0");
|
setInline(inline === "0" ? "1" : "0");
|
||||||
sessionStorage.setItem("inline", inline === "0" ? "1" : "0");
|
localStorage.setItem("inline", inline === "0" ? "1" : "0");
|
||||||
}}
|
}}
|
||||||
className={cn(
|
className={cn(
|
||||||
"rounded-[50px] text-white cursor-pointer [text-shadow:_0_1px_0_rgb(0_0_0_/_20%)] bg-blue-600 p-[10px] transition-all shadow-[inset_0_1px_0_rgba(255,255,255,0.2)] ",
|
"rounded-[50px] text-white cursor-pointer [text-shadow:_0_1px_0_rgb(0_0_0_/_20%)] bg-blue-600 p-[10px] transition-all shadow-[inset_0_1px_0_rgba(255,255,255,0.2)] ",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nezha-dash",
|
"name": "nezha-dash",
|
||||||
"version": "1.6.0",
|
"version": "1.6.0-fix",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev -p 3040",
|
"dev": "next dev -p 3040",
|
||||||
|
Loading…
Reference in New Issue
Block a user