Skip to content

Commit

Permalink
update gui version
Browse files Browse the repository at this point in the history
lindongchen committed Nov 28, 2024
1 parent 58dfc51 commit 6ed2546
Showing 6 changed files with 4 additions and 34 deletions.
2 changes: 1 addition & 1 deletion gui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ztm",
"version": "0.9.0",
"version": "1.0.0-rc.1",
"type": "module",
"private": true,
"license": "MIT",
4 changes: 2 additions & 2 deletions gui/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "ztm"
version = "0.9.0"
version = "1.0.0-rc.1"
description = "ZTM"
authors = ["lindc"]
authors = ["flomesh"]
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
2 changes: 1 addition & 1 deletion gui/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"productName": "ztm",
"version": "0.9.0",
"version": "1.0.0-rc.1",
"identifier": "com.flomesh.ztm",
"build": {
"beforeDevCommand": "npm run dev",
13 changes: 0 additions & 13 deletions gui/src/service/ChatService.js
Original file line number Diff line number Diff line change
@@ -279,8 +279,6 @@ export default class ChatService {
}
}
reqBlobSrc(file,callback) {
//'application/octet-stream'
//file.contentType
if(!!window.__TAURI_INTERNALS__){
tauriFetch(file.src, {
method: 'GET',
@@ -320,17 +318,6 @@ export default class ChatService {
})
}

// request(file.src, "GET", null, this.getHeader('application/octet-stream')).then((resp)=>{
// var blob = binaryStringToBlob(resp);
// var url = createObjectURL(blob);
// debugger
// // const _file = new File([buffer], file.name, { type: file.contentType });
// // const url = URL.createObjectURL(_file);
// store.commit('blob/setUrl', [file.src,url]);
// if(callback) {
// callback(url)
// }
// })
}
/*
message:
16 changes: 0 additions & 16 deletions gui/src/utils/file.js
Original file line number Diff line number Diff line change
@@ -257,28 +257,12 @@ const openFile = (path, contentType) => {
const getShared = (isFile, callback) => {
if(!isFile){
getSharedFilesPath("temp", 'group.com.flomesh.ztm').then((paths)=>{
if(paths && paths.length>0){
debugger
writeMobileFile('getSharedFilesPath.txt',`${paths.join(";")}`);
}else {
writeMobileFile('getSharedFilesPathAfter.txt',`empty`);
}
if(callback){
callback(paths)
}
})
} else {
getSharedFiles("temp", 'group.com.flomesh.ztm').then((files)=>{
if(files && files.length>0){
debugger
let str = "";
files.forEach((f)=>{
str+= `${f.name},${f.size},${f.mime}`;
})
writeMobileFile('getSharedFiles.txt',str);
}else{
writeMobileFile('getSharedFilesAfter.txt',`empty`);
}
if(callback){
callback(files)
}
1 change: 0 additions & 1 deletion gui/src/views/mesh/Meshes.vue
Original file line number Diff line number Diff line change
@@ -131,7 +131,6 @@ const tryMesh = () => {
});
}
}).catch((e)=>{
debugger
tryLoading.value = false;
});
}

0 comments on commit 6ed2546

Please sign in to comment.