Some checks failed
Test / frontend-tests (pull_request) Successful in 1m48s
Test / frontend-typecheck (pull_request) Successful in 1m55s
PR Review Automation / review (pull_request) Successful in 4m9s
Test / rust-fmt-check (pull_request) Failing after 12m32s
Test / rust-clippy (pull_request) Has been cancelled
Test / rust-tests (pull_request) Has been cancelled
Monaco: install monaco-editor and configure @monaco-editor/react loader to use the locally bundled module in main.tsx instead of the CDN, resolving the perpetual spinner in YamlEditor under Tauri's offline WebView. Added worker format and optimizeDeps entries to vite.config.ts. Pod columns: extend PodInfo struct with ip, node, and restarts fields; extract podIP, nodeName, and restartCount from kubectl JSON output in parse_pods_json so the IP, Node columns render real data instead of blanks. Also fix ref-during-render lint error in useKeyboardShortcuts.
20 lines
615 B
TypeScript
20 lines
615 B
TypeScript
import React from "react";
|
|
import ReactDOM from "react-dom/client";
|
|
import { BrowserRouter } from "react-router-dom";
|
|
import { loader } from "@monaco-editor/react";
|
|
import * as monaco from "monaco-editor";
|
|
import App from "./App";
|
|
import "./styles/globals.css";
|
|
|
|
// Use the locally bundled Monaco instead of loading from CDN.
|
|
// Tauri's WebView has no internet access so the default CDN loader never resolves.
|
|
loader.config({ monaco });
|
|
|
|
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
|
<React.StrictMode>
|
|
<BrowserRouter>
|
|
<App />
|
|
</BrowserRouter>
|
|
</React.StrictMode>
|
|
);
|