1
1
mirror of https://github.com/neosubhamoy/pytubepp-helper.git synced 2026-02-04 11:22:22 +05:30

(refactor): migrated tauri project to v2

This commit is contained in:
2025-02-10 09:27:09 +05:30
Verified
parent 5d3a01cc65
commit 8a7c0a1946
20 changed files with 2471 additions and 1798 deletions

View File

@@ -1,8 +1,8 @@
import React from "react"
import { useEffect } from "react";
import { invoke } from "@tauri-apps/api/tauri";
import { invoke } from "@tauri-apps/api/core";
import { listen } from "@tauri-apps/api/event";
import { appWindow } from '@tauri-apps/api/window';
import { getCurrentWebviewWindow } from "@tauri-apps/api/webviewWindow";
import { ThemeProvider } from "@/components/theme-provider";
import { WebSocketMessage } from "@/types";
import { sendStreamInfo } from "@/lib/utils";
@@ -10,6 +10,8 @@ import { Toaster } from "@/components/ui/toaster";
import { TooltipProvider } from "@/components/ui/tooltip";
function App({ children }: { children: React.ReactNode }) {
const appWindow = getCurrentWebviewWindow()
useEffect(() => {
const handleCloseRequested = (event: any) => {
event.preventDefault();