[cfg_attr(not(debug_assertions), windows_subsystem = "windows")]use tauri_plugin_log::{LogTarget}; //## 添加此 use 语句#[tauri::command]fn greet(name: &str) -> String {format!("Hello, {}! You've been greeted from Rust!", name)}fn main() {tauri::Builder::default()//## 添...
CodeEditorLand / TauriPluginLog Star 1 Code Issues Pull requests [READ ONLY] This repository is a mirror, for issue tracking and development head to: https:⁄⁄githubcom⁄tauri-apps⁄plugins-workspace — land tauri-plugin-log-api Updated Dec 15...
tauri-plugin UpdatedDec 9, 2024 Rust ahkohd/tauri-nspanel Tauri plugin to convert a window to panel macosrustobjcective-ctauritauri-plugin UpdatedOct 23, 2024 Rust tauri-apps/tauri-plugin-log [READ ONLY] This repository is a mirror, for issue tracking and development head to:https://gith...
配置tauri-plugin-sql插件 fnmain(){tauri::Builder::default()// highlight-next-line.plugin(tauri_plugin_sql::Builder::default().build()).run(tauri::generate_context!()).expect("error while running tauri application");} 这里,在Rust的main函数中,使用plugin方法注册tauri-plugin-sql插件 使用JavaScr...
import { allSysInfo, memoryInfo, staticInfo, cpuInfo, AllSystemInfo, StaticInfo, MemoryInfo, CpuInfo, batteries, Batteries, } from "tauri-plugin-system-info-api"; console.log(AllSystemInfo.parse(await allSysInfo())); console.log(MemoryInfo.parse(await memoryInfo())); console.log(StaticInfo....
Watch 1 Star 0 Fork 0 璨/tauri-plugin-log 代码 Issues 0 Pull Requests 0 Wiki 统计 流水线 服务 Gitee Pages JavaDoc PHPDoc 质量分析 Jenkins for Gitee 腾讯云托管 腾讯云 Serverless 悬镜安全 阿里云 SAE Codeblitz 我知道了,不再自动展开 统计 搜索 Watchers (1) 璨 关注 ...
.plugin(tauri_plugin_shell::init()) .invoke_handler(tauri::generate_handler![greet]) .run(tauri::generate_context!()) .expect("error while running tauri application"); } 后端通知前端 我们接下来看如何从后端通过事件来通知前端。我们仿照这个greet重新写一个命令,这次我叫做greet2吧。我们在前面添加...
async function MY_COMMAND() { greetMsg.value = await invoke("greet", { name: name.value }); console.log(await invoke.length); // 有几种可使用的自定义命令 console.log(await invoke('plugin:PLUGIN_NAME|COMMAND_NAME',{my_msg: "可爱幽灵在线秃头👻"})); }另...
This plugin allows you to execute any shell commands freely without any restrictions. Docs JS/TS API Documentation:https://huakunshen.github.io/tauri-plugin-shellx/ Installation NPM Package:https://www.npmjs.com/package/tauri-plugin-shellx-api ...
console.log('接收到的推送消息', e.data); }); }); return ()=>{ // 离开界面,需要断开连接 wsInstance && wsInstance.disconnect(); }; }, []); return ( 测试消息推送界面 ); }; 说明:使用tauri-plugin-websocket-api插件,ws和wss协议都支持,此处仅展示了ws协议的使用。