feat: add SchedulesPageRoute.tsx
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
import { useScriptWorkspaceStore } from "../platform/state/scriptWorkspaceStore";
|
||||||
|
import { useUiStore } from "../platform/state/uiStore";
|
||||||
|
import SchedulePage from "./SchedulePage";
|
||||||
|
|
||||||
|
export default function SchedulesPageRoute() {
|
||||||
|
const setApiOnline = useScriptWorkspaceStore((s) => s.setApiOnline);
|
||||||
|
const pushToast = useUiStore((s) => s.pushToast);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<SchedulePage
|
||||||
|
onNotify={pushToast}
|
||||||
|
onConnectionChange={setApiOnline}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -9,11 +9,11 @@ export default defineConfig({
|
|||||||
port: 5173,
|
port: 5173,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: process.env.VITE_GATEWAY_URL || "http://127.0.0.1:8890",
|
target: "http://8.153.151.51:8890",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
"/jupyter": {
|
"/jupyter": {
|
||||||
target: process.env.VITE_GATEWAY_URL || "http://127.0.0.1:8890",
|
target: "http://8.153.151.51:8890",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
ws: true,
|
ws: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user