Compare commits

..

No commits in common. "689dced3b68e888bf206bdd9c954a5f51cdc864d" and "5d5cbcdeb744c13183388c504d23ed8bc4d1b0f9" have entirely different histories.

7 changed files with 70 additions and 489 deletions

534
deno.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1108,8 +1108,8 @@ mod tests {
) )
.unwrap(); .unwrap();
assert_eq!(results.len(), 1); assert_eq!(results.len(), 1);
assert_eq!(results[0][0], "Buy groceries"); assert_eq!(results[0]["title"], "Buy groceries");
assert_eq!(results[0][1], "false"); assert_eq!(results[0]["completed"], "false");
// Test execute with UPDATE // Test execute with UPDATE
let (rows_affected, _) = db let (rows_affected, _) = db
@ -1127,7 +1127,7 @@ mod tests {
vec![json!(1)], vec![json!(1)],
) )
.unwrap(); .unwrap();
assert_eq!(results[0][0], "true"); assert_eq!(results[0]["completed"], "true");
// Test execute with DELETE // Test execute with DELETE
let (rows_affected, _) = db let (rows_affected, _) = db
@ -1139,7 +1139,7 @@ mod tests {
let results = db let results = db
.select("SELECT COUNT(*) as count FROM todos".to_string(), vec![]) .select("SELECT COUNT(*) as count FROM todos".to_string(), vec![])
.unwrap(); .unwrap();
assert_eq!(results[0][0], 0); assert_eq!(results[0]["count"], 0);
fs::remove_file(&db_path).unwrap(); fs::remove_file(&db_path).unwrap();
} }

View File

@ -1,4 +1,3 @@
## Permission Table ## Permission Table
<table> <table>
@ -7,7 +6,6 @@
<th>Description</th> <th>Description</th>
</tr> </tr>
<tr> <tr>
<td> <td>

View File

@ -1,3 +1,4 @@
pub struct AppState { pub struct AppState {
// pub history: Mutex<Vec<Record>>, // pub history: Mutex<Vec<Record>>,
// pub dev_extension_path: Mutex<Option<PathBuf>>, // pub dev_extension_path: Mutex<Option<PathBuf>>,

View File

@ -2,7 +2,10 @@
// use hello_world::{HelloReply, HelloRequest}; // use hello_world::{HelloReply, HelloRequest};
// use server_info«::server_info_server::ServerInfo; // use server_info«::server_info_server::ServerInfo;
// use server_info::{InfoRequest, InfoResponse}; // use server_info::{InfoRequest, InfoResponse};
use grpc::kunkun::{kunkun_server::Kunkun, Empty, ServerInfoResponse}; use grpc::kunkun::{
kunkun_server::Kunkun,
Empty, ServerInfoResponse,
};
use tauri::{AppHandle, Emitter, Manager}; use tauri::{AppHandle, Emitter, Manager};
use tonic::{Request, Response, Status}; use tonic::{Request, Response, Status};

View File

@ -6,7 +6,8 @@ use axum::routing::{get, post};
use axum_server::tls_rustls::RustlsConfig; use axum_server::tls_rustls::RustlsConfig;
use base64::prelude::*; use base64::prelude::*;
use grpc::{ use grpc::{
file_transfer::file_transfer_server::FileTransferServer, kunkun::kunkun_server::KunkunServer, file_transfer::file_transfer_server::FileTransferServer,
kunkun::kunkun_server::KunkunServer,
}; };
/// This module is responsible for controlling the main server /// This module is responsible for controlling the main server
use obfstr::obfstr as s; use obfstr::obfstr as s;

View File

@ -3,8 +3,10 @@ use super::{
model::{ServerInfo, ServerState}, model::{ServerInfo, ServerState},
}; };
use crate::{ use crate::{
constants::KUNKUN_REFRESH_WORKER_EXTENSION, models::FileTransferState, constants::KUNKUN_REFRESH_WORKER_EXTENSION,
server::model::FileTransferProgressPayload, JarvisState, models::FileTransferState,
server::model::FileTransferProgressPayload,
JarvisState,
}; };
use axum::{ use axum::{
body::StreamBody, body::StreamBody,