[fix] stores other than app cannot be saved + build linting

This commit is contained in:
Purp1e
2025-03-12 22:17:12 +08:00
parent 91a003d016
commit a78b63259a
7 changed files with 8 additions and 34 deletions

6
.vscode/tasks.json vendored
View File

@@ -6,7 +6,7 @@
{
"label": "Dev Tauri",
"type": "shell",
"command": "pnpm tauri dev",
"command": "bun tauri dev",
"problemMatcher": [
"$vite"
],
@@ -14,7 +14,7 @@
{
"label": "Build Tauri to nsis installer",
"type": "shell",
"command": "pnpm tauri build -b nsis",
"command": "bun tauri build -b nsis",
"problemMatcher": [
"$vite"
],
@@ -22,7 +22,7 @@
{
"label": "Build Tauri",
"type": "shell",
"command": "pnpm tauri build",
"command": "bun tauri build",
"problemMatcher": [
"$vite"
],

View File

@@ -4,11 +4,7 @@ import { useEffect } from "react"
import { useSnapshot } from "valtio"
export default function Page() {
useEffect(() => {
;async () => {
appStore.start()
}
}, [])
appStore.start()
const app = useSnapshot(appStore.state)
return (

View File

@@ -4,11 +4,7 @@ import { useEffect } from "react"
import { useSnapshot } from "valtio"
export default function Page() {
useEffect(() => {
;async () => {
steamStore.start()
}
}, [])
steamStore.start()
const steam = useSnapshot(steamStore.state)
return (

View File

@@ -4,11 +4,7 @@ import { steamStore, setDir, setCsDir, currentUser } from "@/store/steam"
import { useEffect } from "react"
import { useSnapshot } from "valtio"
export default function Page() {
useEffect(() => {
;async () => {
steamStore.start()
}
}, [])
steamStore.start()
const steam = useSnapshot(steamStore.state)
return (
<div

View File

@@ -6,12 +6,7 @@ import { useSnapshot } from "valtio"
import { use, useEffect, useState } from "react"
const LaunchOption = () => {
useEffect(() => {
;async () => {
toolStore.start()
}
}, [])
toolStore.start()
const { launchOptions, launchIndex } = useSnapshot(toolStore.state)
return (

View File

@@ -6,11 +6,6 @@ import { useSnapshot } from "valtio"
import { useEffect } from "react"
const Notice = () => {
useEffect(() => {
;async () => {
appStore.start()
}
}, [])
appStore.start()
const app = useSnapshot(appStore.state)

View File

@@ -63,11 +63,7 @@ const Avatar = () => {
}
const SideBar = () => {
useEffect(() => {
;async () => {
appStore.start()
}
}, [])
appStore.start()
const { version } = useSnapshot(appStore.state)
return (