migrate: v2 basically working

This commit is contained in:
Purp1e
2024-09-20 10:14:36 +08:00
parent 7229e79cd4
commit b12c6279d5
18 changed files with 16950 additions and 1259 deletions

View File

@@ -3,7 +3,7 @@ import {
isRegistered,
register,
unregister,
} from "@tauri-apps/api/globalShortcut"
} from "@tauri-apps/plugin-global-shortcut"
import { useEffect } from "react"
/**

View File

@@ -1,7 +1,7 @@
import { Card } from "@/components/Card"
import { CardButton } from "@/components/CardButton"
import { useGlobalShortcut } from "@/hooks/tauri/shortcuts"
import { invoke } from "@tauri-apps/api/tauri"
import { invoke } from "@tauri-apps/api/core"
import type { NextPage } from "next"
import Head from "next/head"
import Image from "next/image"

View File

@@ -8,6 +8,7 @@ body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu,
Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
background: transparent;
}
a {