wip

fix
This commit is contained in:
2025-04-26 16:21:57 +01:00
parent 151142fa9b
commit 7f7a2975af
7 changed files with 6 additions and 4 deletions

View File

@ -355,6 +355,8 @@ func main() {
Refresh: refresh,
}
fmt.Println(codeReturn)
json, err := json.Marshal(codeReturn)
if err != nil {
log.Println(err)

View File

@ -6,6 +6,7 @@ platforms = ["linux", "macOS", "windows"]
permissions = [
"core:default",
"core:window:allow-start-dragging",
"core:window:allow-show",
"fs:default",
"http:default",
{ identifier = "http:default", allow = [

View File

@ -19,9 +19,6 @@ pub fn desktop() {
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_store::Builder::new().build())
.plugin(tauri_plugin_http::init())
.plugin(tauri_plugin_sharetarget::init())
// .plugin(tauri_plugin_dialog::init())
// .plugin(tauri_plugin_opener::init())
.manage(watcher_state)
.invoke_handler(tauri::generate_handler![
commands::handle_selected_folder,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 B

View File

@ -63,7 +63,6 @@ export const App = () => {
</button>
<ImageViewer onSendImage={setProcessingImage} />
<ImageStatus processingImage={processingImage} />
<ShareTarget />
<Router>
<Route path="/login" component={Login} />

View File

@ -32,6 +32,8 @@ export const Login: Component = () => {
code.toString(),
);
console.log(access, refresh);
localStorage.setItem("access", access);
localStorage.setItem("refresh", refresh);

View File

@ -1,4 +1,5 @@
import { listen } from "@tauri-apps/api/event";
import { getCurrentWindow } from "@tauri-apps/api/window";
import { type Component, createEffect } from "solid-js";
import { sendImage } from "../network";