Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MrChenhtlss committed Oct 30, 2024
1 parent 0b8cccd commit 2e9e290
Show file tree
Hide file tree
Showing 10 changed files with 680 additions and 756 deletions.
2 changes: 1 addition & 1 deletion flutter/lib/desktop/pages/desktop_home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
"Status",
"There is a newer version of ${bind.mainGetAppNameSync()} ${bind.mainGetNewVersion()} available.",
"Click to download", () async {
final Uri url = Uri.parse('https://rustdesk.com/download');
final Uri url = Uri.parse('https://rustdesk.htlss.cn/download/latest');
await launchUrl(url);
}, closeButton: true);
}
Expand Down
6 changes: 3 additions & 3 deletions flutter/lib/desktop/pages/desktop_setting_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1921,15 +1921,15 @@ class _AboutState extends State<_About> {
.marginSymmetric(vertical: 4.0)),
InkWell(
onTap: () {
launchUrlString('https://rustdesk.com/privacy.html');
launchUrlString('https://rustdesk.com');
},
child: Text(
translate('Privacy Statement'),
style: linkStyle,
).marginSymmetric(vertical: 4.0)),
InkWell(
onTap: () {
launchUrlString('https://rustdesk.com');
launchUrlString('https://pan.htlss.cn');
},
child: Text(
translate('Website'),
Expand All @@ -1947,7 +1947,7 @@ class _AboutState extends State<_About> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Copyright © ${DateTime.now().toString().substring(0, 4)} Purslane Ltd.\n$license',
'Email: chen1350962574@Gmail.com | 1350962574@QQ.com',
style: const TextStyle(color: Colors.white),
),
Text(
Expand Down
2 changes: 1 addition & 1 deletion flutter/lib/mobile/pages/connection_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class _ConnectionPageState extends State<ConnectionPage> {
? const SizedBox(height: 0)
: InkWell(
onTap: () async {
final url = 'https://rustdesk.com/download';
final url = 'https://rustdesk.htlss.cn/download/latest';
if (await canLaunchUrl(Uri.parse(url))) {
await launchUrl(Uri.parse(url));
}
Expand Down
8 changes: 4 additions & 4 deletions flutter/lib/mobile/pages/settings_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
title: Text(translate("Version: ") + version),
value: Padding(
padding: EdgeInsets.symmetric(vertical: 8),
child: Text('rustdesk.com',
child: Text('灰太狼叔叔定制',
style: TextStyle(
decoration: TextDecoration.underline,
)),
Expand All @@ -789,7 +789,7 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
SettingsTile(
title: Text(translate("Privacy Statement")),
onPressed: (context) =>
launchUrlString('https://rustdesk.com/privacy.html'),
launchUrlString('https://pan.htlss.cn'),
leading: Icon(Icons.privacy_tip),
)
],
Expand Down Expand Up @@ -907,14 +907,14 @@ void showAbout(OverlayDialogManager dialogManager) {
Text('Version: $version'),
InkWell(
onTap: () async {
const url = 'https://rustdesk.com/';
const url = '';
if (await canLaunchUrl(Uri.parse(url))) {
await launchUrl(Uri.parse(url));
}
},
child: Padding(
padding: EdgeInsets.symmetric(vertical: 8),
child: Text('rustdesk.com',
child: Text('灰太狼叔叔定制',
style: TextStyle(
decoration: TextDecoration.underline,
)),
Expand Down
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ pub fn check_software_update() {

#[tokio::main(flavor = "current_thread")]
async fn check_software_update_() -> hbb_common::ResultType<()> {
let url = "https://github.com/rustdesk/rustdesk/releases/latest";
let url = "https://rustdesk.htlss.cn/download/latest/";
let latest_release_response = create_http_client_async().get(url).send().await?;
let latest_release_version = latest_release_response
.url()
Expand Down
43 changes: 2 additions & 41 deletions src/lang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,48 +45,9 @@ mod uk;
mod vn;

pub const LANGS: &[(&str, &str)] = &[
("en", "English"),
("it", "Italiano"),
("fr", "Français"),
("de", "Deutsch"),
("nl", "Nederlands"),
("nb", "Norsk bokmål"),

("zh-cn", "简体中文"),
("zh-tw", "繁體中文"),
("pt", "Português"),
("es", "Español"),
("et", "Eesti keel"),
("eu", "Euskara"),
("hu", "Magyar"),
("bg", "Български"),
("be", "Беларуская"),
("ru", "Русский"),
("sk", "Slovenčina"),
("id", "Indonesia"),
("cs", "Čeština"),
("da", "Dansk"),
("eo", "Esperanto"),
("tr", "Türkçe"),
("vn", "Tiếng Việt"),
("pl", "Polski"),
("ja", "日本語"),
("ko", "한국어"),
("kz", "Қазақ"),
("uk", "Українська"),
("fa", "فارسی"),
("ca", "Català"),
("el", "Ελληνικά"),
("sv", "Svenska"),
("sq", "Shqip"),
("sr", "Srpski"),
("th", "ภาษาไทย"),
("sl", "Slovenščina"),
("ro", "Română"),
("lt", "Lietuvių"),
("lv", "Latviešu"),
("ar", "العربية"),
("he", "עברית"),
("hr", "Hrvatski"),

];

#[cfg(not(any(target_os = "android", target_os = "ios")))]
Expand Down
Loading

0 comments on commit 2e9e290

Please sign in to comment.