Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
51b02353
Commit
51b02353
authored
Sep 22, 2022
by
csf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. mobile ab login.
2. typos 3. del rename dialog body padding
parent
00077676
Changes
27
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
64 additions
and
53 deletions
+64
-53
address_book.dart
flutter/lib/common/widgets/address_book.dart
+11
-5
peer_card.dart
flutter/lib/common/widgets/peer_card.dart
+0
-2
desktop_home_page.dart
flutter/lib/desktop/pages/desktop_home_page.dart
+4
-3
desktop_setting_page.dart
flutter/lib/desktop/pages/desktop_setting_page.dart
+16
-14
settings_page.dart
flutter/lib/mobile/pages/settings_page.dart
+1
-1
dialog.dart
flutter/lib/mobile/widgets/dialog.dart
+11
-7
cn.rs
src/lang/cn.rs
+1
-1
cs.rs
src/lang/cs.rs
+1
-1
da.rs
src/lang/da.rs
+1
-1
de.rs
src/lang/de.rs
+1
-1
eo.rs
src/lang/eo.rs
+1
-1
es.rs
src/lang/es.rs
+1
-1
fr.rs
src/lang/fr.rs
+1
-1
hu.rs
src/lang/hu.rs
+1
-1
id.rs
src/lang/id.rs
+1
-1
it.rs
src/lang/it.rs
+1
-1
ja.rs
src/lang/ja.rs
+1
-1
ko.rs
src/lang/ko.rs
+1
-1
pl.rs
src/lang/pl.rs
+1
-1
pt_PT.rs
src/lang/pt_PT.rs
+1
-1
ptbr.rs
src/lang/ptbr.rs
+1
-1
ru.rs
src/lang/ru.rs
+1
-1
sk.rs
src/lang/sk.rs
+1
-1
template.rs
src/lang/template.rs
+1
-1
tr.rs
src/lang/tr.rs
+1
-1
tw.rs
src/lang/tw.rs
+1
-1
vn.rs
src/lang/vn.rs
+1
-1
No files found.
flutter/lib/common/widgets/address_book.dart
View file @
51b02353
...
...
@@ -7,6 +7,7 @@ import 'package:provider/provider.dart';
import
'../../common.dart'
;
import
'../../desktop/pages/desktop_home_page.dart'
;
import
'../../mobile/pages/settings_page.dart'
;
import
'../../models/platform_model.dart'
;
class
AddressBook
extends
StatefulWidget
{
...
...
@@ -37,11 +38,16 @@ class _AddressBookState extends State<AddressBook> {
});
handleLogin
()
{
// TODO refactor login dialog for desktop and mobile
if
(
isDesktop
)
{
loginDialog
().
then
((
success
)
{
if
(
success
)
{
setState
(()
{});
}
});
}
else
{
showLogin
(
gFFI
.
dialogManager
);
}
}
Future
<
Widget
>
buildAddressBook
(
BuildContext
context
)
async
{
...
...
flutter/lib/common/widgets/peer_card.dart
View file @
51b02353
...
...
@@ -590,8 +590,6 @@ abstract class BasePeerCard extends StatelessWidget {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
padding:
const
EdgeInsets
.
symmetric
(
horizontal:
16.0
,
vertical:
8.0
),
child:
Form
(
child:
TextFormField
(
controller:
controller
,
...
...
flutter/lib/desktop/pages/desktop_home_page.dart
View file @
51b02353
...
...
@@ -331,7 +331,7 @@ Future<bool> loginDialog() async {
var
userNameMsg
=
""
;
String
pass
=
""
;
var
passMsg
=
""
;
var
userCont
ont
roller
=
TextEditingController
(
text:
userName
);
var
userController
=
TextEditingController
(
text:
userName
);
var
pwdController
=
TextEditingController
(
text:
pass
);
var
isInProgress
=
false
;
...
...
@@ -349,7 +349,7 @@ Future<bool> loginDialog() async {
});
}
userName
=
userCont
ont
roller
.
text
;
userName
=
userController
.
text
;
pass
=
pwdController
.
text
;
if
(
userName
.
isEmpty
)
{
userNameMsg
=
translate
(
"Username missed"
);
...
...
@@ -385,6 +385,7 @@ Future<bool> loginDialog() async {
close
();
}
// 登录dialog
return
CustomAlertDialog
(
title:
Text
(
translate
(
"Login"
)),
content:
ConstrainedBox
(
...
...
@@ -411,7 +412,7 @@ Future<bool> loginDialog() async {
decoration:
InputDecoration
(
border:
const
OutlineInputBorder
(),
errorText:
userNameMsg
.
isNotEmpty
?
userNameMsg
:
null
),
controller:
userCont
ont
roller
,
controller:
userController
,
focusNode:
FocusNode
()..
requestFocus
(),
),
),
...
...
flutter/lib/desktop/pages/desktop_setting_page.dart
View file @
51b02353
...
...
@@ -48,7 +48,7 @@ class _DesktopSettingPageState extends State<DesktopSettingPage>
_TabInfo
(
'Security'
,
Icons
.
enhanced_encryption_outlined
,
Icons
.
enhanced_encryption
),
_TabInfo
(
'Network'
,
Icons
.
link_outlined
,
Icons
.
link
),
_TabInfo
(
'Acount'
,
Icons
.
person_outline
,
Icons
.
person
),
_TabInfo
(
'Ac
c
ount'
,
Icons
.
person_outline
,
Icons
.
person
),
_TabInfo
(
'About'
,
Icons
.
info_outline
,
Icons
.
info
)
];
...
...
@@ -92,7 +92,7 @@ class _DesktopSettingPageState extends State<DesktopSettingPage>
_General
(),
_Safety
(),
_Network
(),
_Acount
(),
_Ac
c
ount
(),
_About
(),
],
)),
...
...
@@ -641,14 +641,14 @@ class _NetworkState extends State<_Network> with AutomaticKeepAliveClientMixin {
}
}
class
_Acount
extends
StatefulWidget
{
const
_Acount
({
Key
?
key
})
:
super
(
key:
key
);
class
_Ac
c
ount
extends
StatefulWidget
{
const
_Ac
c
ount
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
_Ac
ount
>
createState
()
=>
_A
countState
();
State
<
_Ac
count
>
createState
()
=>
_Ac
countState
();
}
class
_Ac
ountState
extends
State
<
_A
count
>
{
class
_Ac
countState
extends
State
<
_Ac
count
>
{
@override
Widget
build
(
BuildContext
context
)
{
final
scrollController
=
ScrollController
();
...
...
@@ -658,12 +658,12 @@ class _AcountState extends State<_Acount> {
physics:
NeverScrollableScrollPhysics
(),
controller:
scrollController
,
children:
[
_Card
(
title:
'Ac
ount'
,
children:
[
logi
n
()]),
_Card
(
title:
'Ac
count'
,
children:
[
accountActio
n
()]),
],
).
marginOnly
(
bottom:
_kListViewBottomMargin
));
}
Widget
logi
n
()
{
Widget
accountActio
n
()
{
return
_futureBuilder
(
future:
()
async
{
return
await
gFFI
.
userModel
.
getUserName
();
}(),
hasData:
(
data
)
{
...
...
@@ -671,12 +671,14 @@ class _AcountState extends State<_Acount> {
return
_Button
(
username
.
isEmpty
?
'Login'
:
'Logout'
,
()
=>
{
loginDialog
().
then
((
success
)
{
username
.
isEmpty
?
loginDialog
().
then
((
success
)
{
if
(
success
)
{
// refresh frame
setState
(()
{});
}
})
:
gFFI
.
userModel
.
logOut
()
});
});
}
...
...
flutter/lib/mobile/pages/settings_page.dart
View file @
51b02353
...
...
@@ -451,7 +451,7 @@ void showLogin(OverlayDialogManager dialogManager) {
),
controller:
nameController
,
),
PasswordWidget
(
controller:
passwordController
),
PasswordWidget
(
controller:
passwordController
,
autoFocus:
false
),
]),
actions:
(
loading
?
<
Widget
>[
CircularProgressIndicator
()]
...
...
flutter/lib/mobile/widgets/dialog.dart
View file @
51b02353
...
...
@@ -6,8 +6,7 @@ import '../../models/model.dart';
import
'../../models/platform_model.dart'
;
void
clientClose
(
OverlayDialogManager
dialogManager
)
{
msgBox
(
''
,
'Close'
,
'Are you sure to close the connection?'
,
dialogManager
);
msgBox
(
''
,
'Close'
,
'Are you sure to close the connection?'
,
dialogManager
);
}
void
showSuccess
(
)
{
...
...
@@ -131,7 +130,7 @@ void setTemporaryPasswordLengthDialog(
if
(
index
<
0
)
index
=
0
;
length
=
lengths
[
index
];
dialogManager
.
show
((
setState
,
close
)
{
final
setLength
=
(
newValue
)
{
setLength
(
newValue
)
{
final
oldValue
=
length
;
if
(
oldValue
==
newValue
)
return
;
setState
(()
{
...
...
@@ -143,7 +142,8 @@ void setTemporaryPasswordLengthDialog(
close
();
showSuccess
();
});
};
}
return
CustomAlertDialog
(
title:
Text
(
translate
(
"Set temporary password length"
)),
content:
Column
(
...
...
@@ -230,12 +230,14 @@ void wrongPasswordDialog(String id, OverlayDialogManager dialogManager) {
}
class
PasswordWidget
extends
StatefulWidget
{
PasswordWidget
({
Key
?
key
,
required
this
.
controller
})
:
super
(
key:
key
);
PasswordWidget
({
Key
?
key
,
required
this
.
controller
,
this
.
autoFocus
=
true
})
:
super
(
key:
key
);
final
TextEditingController
controller
;
final
bool
autoFocus
;
@override
_PasswordWidgetState
createState
()
=>
_PasswordWidgetState
();
State
<
PasswordWidget
>
createState
()
=>
_PasswordWidgetState
();
}
class
_PasswordWidgetState
extends
State
<
PasswordWidget
>
{
...
...
@@ -245,8 +247,10 @@ class _PasswordWidgetState extends State<PasswordWidget> {
@override
void
initState
()
{
super
.
initState
();
if
(
widget
.
autoFocus
)
{
Timer
(
Duration
(
milliseconds:
50
),
()
=>
_focusNode
.
requestFocus
());
}
}
@override
void
dispose
()
{
...
...
src/lang/cn.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"适应窗口"
),
(
"General"
,
"常规"
),
(
"Security"
,
"安全"
),
(
"Acount"
,
"账户"
),
(
"Ac
c
ount"
,
"账户"
),
(
"Theme"
,
"主题"
),
(
"Dark Theme"
,
"暗黑主题"
),
(
"Enable hardware codec"
,
"使用硬件编解码"
),
...
...
src/lang/cs.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Měřítko adaptivní"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/da.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Skala adaptiv"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/de.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Adaptiv skalieren"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/eo.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Skalo adapta"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/es.rs
View file @
51b02353
...
...
@@ -337,7 +337,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Adaptable a escala"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/fr.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Échelle adaptative"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/hu.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Skála adaptív"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/id.rs
View file @
51b02353
...
...
@@ -337,7 +337,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Skala adaptif"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/it.rs
View file @
51b02353
...
...
@@ -323,7 +323,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Translate mode"
,
""
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/ja.rs
View file @
51b02353
...
...
@@ -321,7 +321,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"フィットウィンドウ"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/ko.rs
View file @
51b02353
...
...
@@ -318,7 +318,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"맞는 창"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/pl.rs
View file @
51b02353
...
...
@@ -322,7 +322,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Skala adaptacyjna"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/pt_PT.rs
View file @
51b02353
...
...
@@ -318,7 +318,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Escala adaptável"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/ptbr.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
""
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/ru.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Масштаб адаптивный"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/sk.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Prispôsobivá mierka"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/template.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
""
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/tr.rs
View file @
51b02353
...
...
@@ -337,7 +337,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Ölçek uyarlanabilir"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
src/lang/tw.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"適應窗口"
),
(
"General"
,
"常規"
),
(
"Security"
,
"安全"
),
(
"Acount"
,
"賬戶"
),
(
"Ac
c
ount"
,
"賬戶"
),
(
"Theme"
,
"主題"
),
(
"Dark Theme"
,
"暗黑主題"
),
(
"Enable hardware codec"
,
"使用硬件編解碼"
),
...
...
src/lang/vn.rs
View file @
51b02353
...
...
@@ -324,7 +324,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
(
"Scale adaptive"
,
"Quy mô thích ứng"
),
(
"General"
,
""
),
(
"Security"
,
""
),
(
"Acount"
,
""
),
(
"Ac
c
ount"
,
""
),
(
"Theme"
,
""
),
(
"Dark Theme"
,
""
),
(
"Enable hardware codec"
,
""
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment