feat: add commands

This commit is contained in:
reya
2024-07-23 15:11:17 +07:00
parent 7cd5f06122
commit 9b1edf7f62
14 changed files with 850 additions and 153 deletions

View File

@@ -1,4 +1,5 @@
import { RouterProvider, createRouter } from "@tanstack/react-router";
import { type } from "@tauri-apps/plugin-os";
import { StrictMode } from "react";
import ReactDOM from "react-dom/client";
import "./app.css";
@@ -9,10 +10,12 @@ import { routeTree } from "./routes.gen";
// Create a new router instance
const queryClient = new QueryClient();
const platform = type();
const router = createRouter({
routeTree,
context: {
queryClient,
platform,
},
});