MCPcopy Create free account
hub / github.com/xpf0000/FlyEnv / refreshStats

Method refreshStats

src/render/components/OpenCode/setup.ts:300–309  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298 // ========== Stats ==========
299
300 refreshStats() {
301 this.statsLoading = true
302 IPC.send('app-fork:openCode', 'getStats', this.statsDays).then((key: string, res: any) => {
303 IPC.off(key)
304 if (res?.code === 0) {
305 this.stats = res?.data ?? []
306 }
307 this.statsLoading = false
308 })
309 }
310
311 taskConfirm() {
312 this.installing = false

Callers

nothing calls this directly

Calls 3

offMethod · 0.80
thenMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected