combine upload files/folder button (#9643)

* combine upload files/folder button

Signed-off-by: 21pages <sunboeasy@gmail.com>

* web compress cache

Signed-off-by: 21pages <sunboeasy@gmail.com>

---------

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages 2024-10-14 15:46:21 +08:00 committed by GitHub
parent 498b8ba3d6
commit ce924cc0d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 201 additions and 42 deletions

View file

@ -1209,7 +1209,12 @@ class RustdeskImpl {
}
Future<String> mainLoadAb({dynamic hint}) {
return Future(() => js.context.callMethod('getByName', ['load_ab']));
Completer<String> completer = Completer();
js.context["onLoadAbFinished"] = (String s) {
completer.complete(s);
};
js.context.callMethod('setByName', ['load_ab']);
return completer.future;
}
Future<void> mainSaveGroup({required String json, dynamic hint}) {
@ -1222,7 +1227,12 @@ class RustdeskImpl {
}
Future<String> mainLoadGroup({dynamic hint}) {
return Future(() => js.context.callMethod('getByName', ['load_group']));
Completer<String> completer = Completer();
js.context["onLoadGroupFinished"] = (String s) {
completer.complete(s);
};
js.context.callMethod('setByName', ['load_group']);
return completer.future;
}
Future<void> sessionSendPointer(