[feat] tray powerplan items and seperators

This commit is contained in:
Purp1e
2025-03-27 00:58:18 +08:00
parent 27439593b4
commit 21cdc7c32d
6 changed files with 162 additions and 86 deletions

View File

@@ -7,7 +7,7 @@ import { Key } from "@react-types/shared"
import { useToolStore } from "@/store/tool"
import { useEffect } from "react"
const PowerPlans = [
export const PowerPlans = [
{
id: "0",
title: "其他",

View File

@@ -55,7 +55,7 @@ const Avatar = () => {
<img
src={
steam.currentUser()?.avatar
? `data:image/png;base64,${steam.currentUser()?.avatar || ''}`
? `data:image/png;base64,${steam.currentUser()?.avatar || ""}`
: "/logo_square.png"
}
alt="avatar"
@@ -72,9 +72,10 @@ const Avatar = () => {
const SideBar = () => {
const app = useAppStore()
void getVersion().then((Value) => {
app.setVersion(Value)
})
if (typeof window !== "undefined")
void getVersion().then((Value) => {
app.setVersion(Value)
})
return (
<div