mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-07 19:28:44 +01:00
fix runtime errs
This commit is contained in:
parent
8916d7d3cc
commit
30007a67b2
@ -26,8 +26,8 @@
|
|||||||
"@waveterm/docusaurus-og": "https://github.com/wavetermdev/docusaurus-og",
|
"@waveterm/docusaurus-og": "https://github.com/wavetermdev/docusaurus-og",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"prism-react-renderer": "^2.3.0",
|
"prism-react-renderer": "^2.3.0",
|
||||||
"react": "^19.0.0",
|
"react": "^18.3.1",
|
||||||
"react-dom": "^19.0.0",
|
"react-dom": "^18.3.1",
|
||||||
"remark-gfm": "^4.0.0",
|
"remark-gfm": "^4.0.0",
|
||||||
"remark-typescript-code-import": "^1.0.1",
|
"remark-typescript-code-import": "^1.0.1",
|
||||||
"ua-parser-js": "^2.0.0"
|
"ua-parser-js": "^2.0.0"
|
||||||
@ -57,7 +57,9 @@
|
|||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"path-to-regexp@npm:2.2.1": "^3",
|
"path-to-regexp@npm:2.2.1": "^3",
|
||||||
"cookie@0.6.0": "^0.7.0"
|
"cookie@0.6.0": "^0.7.0",
|
||||||
|
"react": "18.3.1",
|
||||||
|
"react-dom": "18.3.1"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
|
@ -9,7 +9,7 @@ import "./input.scss";
|
|||||||
interface InputGroupProps {
|
interface InputGroupProps {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
className?: string;
|
className?: string;
|
||||||
ref: React.RefObject<HTMLDivElement>;
|
ref?: React.RefObject<HTMLDivElement>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const InputGroup = memo(({ children, className, ref }: InputGroupProps) => {
|
const InputGroup = memo(({ children, className, ref }: InputGroupProps) => {
|
||||||
|
@ -4,7 +4,11 @@ import { useAtomValue } from "jotai";
|
|||||||
import { memo, useEffect, useState } from "react";
|
import { memo, useEffect, useState } from "react";
|
||||||
import "./updatebanner.scss";
|
import "./updatebanner.scss";
|
||||||
|
|
||||||
const UpdateStatusBannerComponent = (ref: React.RefObject<HTMLButtonElement>) => {
|
type UpdateStatusBannerProps = {
|
||||||
|
ref: React.RefObject<HTMLButtonElement>;
|
||||||
|
};
|
||||||
|
|
||||||
|
const UpdateStatusBannerComponent = ({ ref }: UpdateStatusBannerProps) => {
|
||||||
const appUpdateStatus = useAtomValue(atoms.updaterStatusAtom);
|
const appUpdateStatus = useAtomValue(atoms.updaterStatusAtom);
|
||||||
let [updateStatusMessage, setUpdateStatusMessage] = useState<string>();
|
let [updateStatusMessage, setUpdateStatusMessage] = useState<string>();
|
||||||
const [dismissBannerTimeout, setDismissBannerTimeout] = useState<NodeJS.Timeout>();
|
const [dismissBannerTimeout, setDismissBannerTimeout] = useState<NodeJS.Timeout>();
|
||||||
|
@ -30,11 +30,15 @@ type WorkspaceListEntry = {
|
|||||||
workspace: Workspace;
|
workspace: Workspace;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
type WorkspaceSwitcherProps = {
|
||||||
|
ref: React.RefObject<HTMLDivElement>;
|
||||||
|
};
|
||||||
|
|
||||||
type WorkspaceList = WorkspaceListEntry[];
|
type WorkspaceList = WorkspaceListEntry[];
|
||||||
const workspaceMapAtom = atom<WorkspaceList>([]);
|
const workspaceMapAtom = atom<WorkspaceList>([]);
|
||||||
const workspaceSplitAtom = splitAtom(workspaceMapAtom);
|
const workspaceSplitAtom = splitAtom(workspaceMapAtom);
|
||||||
const editingWorkspaceAtom = atom<string>();
|
const editingWorkspaceAtom = atom<string>();
|
||||||
const WorkspaceSwitcher = (ref: React.RefObject<HTMLDivElement>) => {
|
const WorkspaceSwitcher = ({ ref }: WorkspaceSwitcherProps) => {
|
||||||
const setWorkspaceList = useSetAtom(workspaceMapAtom);
|
const setWorkspaceList = useSetAtom(workspaceMapAtom);
|
||||||
const activeWorkspace = useAtomValueSafe(atoms.workspace);
|
const activeWorkspace = useAtomValueSafe(atoms.workspace);
|
||||||
const workspaceList = useAtomValue(workspaceSplitAtom);
|
const workspaceList = useAtomValue(workspaceSplitAtom);
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
"postinstall": "electron-builder install-app-deps"
|
"postinstall": "electron-builder install-app-deps"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@chromatic-com/storybook": "^3.2.2",
|
"@chromatic-com/storybook": "^3.2.3",
|
||||||
"@eslint/js": "^9.16.0",
|
"@eslint/js": "^9.16.0",
|
||||||
"@rollup/plugin-node-resolve": "^16.0.0",
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
||||||
"@storybook/addon-essentials": "^8.4.7",
|
"@storybook/addon-essentials": "^8.4.7",
|
||||||
|
18
yarn.lock
18
yarn.lock
@ -1644,9 +1644,9 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@chromatic-com/storybook@npm:^3.2.2":
|
"@chromatic-com/storybook@npm:^3.2.3":
|
||||||
version: 3.2.2
|
version: 3.2.3
|
||||||
resolution: "@chromatic-com/storybook@npm:3.2.2"
|
resolution: "@chromatic-com/storybook@npm:3.2.3"
|
||||||
dependencies:
|
dependencies:
|
||||||
chromatic: "npm:^11.15.0"
|
chromatic: "npm:^11.15.0"
|
||||||
filesize: "npm:^10.0.12"
|
filesize: "npm:^10.0.12"
|
||||||
@ -1655,7 +1655,7 @@ __metadata:
|
|||||||
strip-ansi: "npm:^7.1.0"
|
strip-ansi: "npm:^7.1.0"
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0
|
storybook: ^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0
|
||||||
checksum: 10c0/7b8da1ddb399c804337ff28a28594b548392b7bead52f66615b98e201cdeb4d31184b9e355791ba5d0d8cfdd2bea7d38355ecd0058f26f4790f9a887107bde0f
|
checksum: 10c0/23c59b7d225347d4af8cb6a7596da3417dc3abc2d5036c4ef5cee2852b994a16b5996a1bd1a584bb56e97266d85ce9ae7daeeac296b3060d6b80b14cad10d9d1
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -18065,7 +18065,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"react-dom@npm:^16.8.0 || ^17.0.0 || ^18.0.0":
|
"react-dom@npm:^16.8.0 || ^17.0.0 || ^18.0.0, react-dom@npm:^18.3.1":
|
||||||
version: 18.3.1
|
version: 18.3.1
|
||||||
resolution: "react-dom@npm:18.3.1"
|
resolution: "react-dom@npm:18.3.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -18290,7 +18290,7 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"react@npm:^16.8.0 || ^17.0.0 || ^18.0.0":
|
"react@npm:^16.8.0 || ^17.0.0 || ^18.0.0, react@npm:^18.3.1":
|
||||||
version: 18.3.1
|
version: 18.3.1
|
||||||
resolution: "react@npm:18.3.1"
|
resolution: "react@npm:18.3.1"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -22208,8 +22208,8 @@ __metadata:
|
|||||||
prettier-plugin-jsdoc: "npm:^1.3.0"
|
prettier-plugin-jsdoc: "npm:^1.3.0"
|
||||||
prettier-plugin-organize-imports: "npm:^4.1.0"
|
prettier-plugin-organize-imports: "npm:^4.1.0"
|
||||||
prism-react-renderer: "npm:^2.3.0"
|
prism-react-renderer: "npm:^2.3.0"
|
||||||
react: "npm:^19.0.0"
|
react: "npm:^18.3.1"
|
||||||
react-dom: "npm:^19.0.0"
|
react-dom: "npm:^18.3.1"
|
||||||
remark-cli: "npm:^12.0.1"
|
remark-cli: "npm:^12.0.1"
|
||||||
remark-frontmatter: "npm:^5.0.0"
|
remark-frontmatter: "npm:^5.0.0"
|
||||||
remark-gfm: "npm:^4.0.0"
|
remark-gfm: "npm:^4.0.0"
|
||||||
@ -22227,7 +22227,7 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "waveterm@workspace:."
|
resolution: "waveterm@workspace:."
|
||||||
dependencies:
|
dependencies:
|
||||||
"@chromatic-com/storybook": "npm:^3.2.2"
|
"@chromatic-com/storybook": "npm:^3.2.3"
|
||||||
"@eslint/js": "npm:^9.16.0"
|
"@eslint/js": "npm:^9.16.0"
|
||||||
"@floating-ui/react": "npm:^0.27.2"
|
"@floating-ui/react": "npm:^0.27.2"
|
||||||
"@monaco-editor/loader": "npm:^1.4.0"
|
"@monaco-editor/loader": "npm:^1.4.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user