mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 02:16:00 +02:00
refact: web ui (#9217)
* refact: web ui Signed-off-by: fufesou <linlong1266@gmail.com> * refact: remove AppBar shadow Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
bf390611ab
commit
ae339f039d
6 changed files with 188 additions and 126 deletions
|
@ -736,7 +736,8 @@ class RustdeskImpl {
|
|||
}
|
||||
|
||||
Future<String> mainGetLicense({dynamic hint}) {
|
||||
throw UnimplementedError();
|
||||
// TODO: implement
|
||||
return Future(() => '');
|
||||
}
|
||||
|
||||
Future<String> mainGetVersion({dynamic hint}) {
|
||||
|
@ -975,10 +976,11 @@ class RustdeskImpl {
|
|||
|
||||
Future<void> mainSetUserDefaultOption(
|
||||
{required String key, required String value, dynamic hint}) {
|
||||
return js.context.callMethod('getByName', [
|
||||
js.context.callMethod('setByName', [
|
||||
'option:user:default',
|
||||
jsonEncode({'name': key, 'value': value})
|
||||
]);
|
||||
return Future.value();
|
||||
}
|
||||
|
||||
String mainGetUserDefaultOption({required String key, dynamic hint}) {
|
||||
|
@ -1052,7 +1054,7 @@ class RustdeskImpl {
|
|||
}
|
||||
|
||||
Future<String> mainGetLangs({dynamic hint}) {
|
||||
throw UnimplementedError();
|
||||
return Future(() => js.context.callMethod('getByName', ['langs']));
|
||||
}
|
||||
|
||||
Future<String> mainGetTemporaryPassword({dynamic hint}) {
|
||||
|
@ -1064,7 +1066,8 @@ class RustdeskImpl {
|
|||
}
|
||||
|
||||
Future<String> mainGetFingerprint({dynamic hint}) {
|
||||
throw UnimplementedError();
|
||||
// TODO: implement
|
||||
return Future.value('');
|
||||
}
|
||||
|
||||
Future<String> cmGetClientsState({dynamic hint}) {
|
||||
|
@ -1106,7 +1109,7 @@ class RustdeskImpl {
|
|||
}
|
||||
|
||||
String mainSupportedHwdecodings({dynamic hint}) {
|
||||
throw UnimplementedError();
|
||||
return '{}';
|
||||
}
|
||||
|
||||
Future<bool> mainIsRoot({dynamic hint}) {
|
||||
|
@ -1295,8 +1298,7 @@ class RustdeskImpl {
|
|||
}
|
||||
|
||||
Future<String> mainGetBuildDate({dynamic hint}) {
|
||||
// TODO
|
||||
throw UnimplementedError();
|
||||
return Future(() => js.context.callMethod('getByName', ['build_date']));
|
||||
}
|
||||
|
||||
String translate(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue