11// Copyright 2026, Command Line Inc.
22// SPDX-License-Identifier: Apache-2.0
33
4- import type { BlockNodeModel } from "@/app/block/blocktypes" ;
5- import type { TabModel } from "@/app/store/tab-model" ;
64import { globalStore } from "@/app/store/jotaiStore" ;
75import { makeORef } from "@/app/store/wos" ;
86import * as util from "@/util/util" ;
@@ -16,7 +14,7 @@ import * as React from "react";
1614import { useDimensionsWithExistingRef } from "@/app/hook/useDimensions" ;
1715import { waveEventSubscribeSingle } from "@/app/store/wps" ;
1816import { TabRpcClient } from "@/app/store/wshrpcutil" ;
19- import { BlockMetaKeyAtomFn , WaveEnv } from "@/app/waveenv/waveenv" ;
17+ import type { BlockMetaKeyAtomFnType , WaveEnv } from "@/app/waveenv/waveenv" ;
2018import { OverlayScrollbarsComponent , OverlayScrollbarsComponentRef } from "overlayscrollbars-react" ;
2119
2220export type SysinfoEnv = {
@@ -28,7 +26,7 @@ export type SysinfoEnv = {
2826 fullConfigAtom : WaveEnv [ "atoms" ] [ "fullConfigAtom" ] ;
2927 } ;
3028 getConnStatusAtom : WaveEnv [ "getConnStatusAtom" ] ;
31- getBlockMetaKeyAtom : BlockMetaKeyAtomFn < "graph:numpoints" | "sysinfo:type" | "connection" | "count" > ;
29+ getBlockMetaKeyAtom : BlockMetaKeyAtomFnType < "graph:numpoints" | "sysinfo:type" | "connection" | "count" > ;
3230} ;
3331
3432const DefaultNumPoints = 120 ;
@@ -106,8 +104,6 @@ function convertWaveEventToDataItem(event: Extract<WaveEvent, { event: "sysinfo"
106104
107105class SysinfoViewModel implements ViewModel {
108106 viewType : string ;
109- nodeModel : BlockNodeModel ;
110- tabModel : TabModel ;
111107 termMode : jotai . Atom < string > ;
112108 htmlElemFocusRef : React . RefObject < HTMLInputElement > ;
113109 blockId : string ;
@@ -130,9 +126,7 @@ class SysinfoViewModel implements ViewModel {
130126 plotTypeSelectedAtom : jotai . Atom < string > ;
131127 env : SysinfoEnv ;
132128
133- constructor ( { blockId, nodeModel, tabModel, waveEnv } : ViewModelInitType ) {
134- this . nodeModel = nodeModel ;
135- this . tabModel = tabModel ;
129+ constructor ( { blockId, waveEnv } : ViewModelInitType ) {
136130 this . viewType = "sysinfo" ;
137131 this . blockId = blockId ;
138132 this . env = waveEnv ;
0 commit comments