Skip to content

Commit

Permalink
Commit some code
Browse files Browse the repository at this point in the history
  • Loading branch information
mengyanshou committed Jul 19, 2024
1 parent fb809f1 commit c0b5f4c
Show file tree
Hide file tree
Showing 46 changed files with 770 additions and 1,086 deletions.
6 changes: 0 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
"type": "dart",
"deviceId": "linux"
},
{
"name": "OPPO WATCH",
"request": "launch",
"type": "dart",
"deviceId": "cc004251"
},
{
"name": "小米14",
"request": "launch",
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"editor.formatOnSave": true,
"dart.lineLength": 200
"dart.lineLength": 200,
}
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## 2.2.8
- 速享也正式复活,等我处理好软著,会重新上架到各个平台。
- 增加选择文件的日志
- 开源代码整体优化
- 修复文件选择的问题
- 移除文件分类页面,这个页面重构中,后续就以一个文件管理器存在,可以快速将本地的文件发送出去
- 修复文件选择的问题
- 增加选择文件的日志
- 增加梦魇兽项目看板
- 增加清除缓存的功能
- 新增关于速享页面
-
- 完善多语言的文案

## 2.2.7
- 尝试修复布局异常,高分辨率异常的问题
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Nightmare-MY
Copyright (c) 2021 Nightmare

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions lib/app/controller/chat_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class ChatController extends GetxController with WidgetsBindingObserver {
int port = uri.port;
deviceController.onDeviceConnect(
shortHash(''),
// TODO intl
'设备',
phone,
'http://${uri.host}',
Expand Down
4 changes: 2 additions & 2 deletions lib/app/routes/app_pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:get/get.dart';
import 'package:get/get_rx/src/rx_workers/utils/debouncer.dart';
import 'package:global_repository/global_repository.dart';
import 'package:speed_share/app/bindings/home_binding.dart';
import 'package:speed_share/modules/home/adapive_entry.dart';
import 'package:speed_share/modules/adaptive/adapive_entry.dart';
import 'package:speed_share/themes/theme.dart';
import 'package:file_manager_view/file_manager_view.dart';

Expand Down Expand Up @@ -60,7 +60,7 @@ class ThemeWrapper extends StatelessWidget {
@override
Widget build(BuildContext context) {
final bool isDark = Theme.of(context).brightness == Brightness.dark;
final ThemeData theme = isDark ? DefaultThemeData.dark() : DefaultThemeData.light();
final ThemeData theme = isDark ? dark() : light();
return Theme(
data: theme,
child: child!,
Expand Down
28 changes: 26 additions & 2 deletions lib/generated/intl/messages_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,27 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'en';

static String m0(number) =>
"${Intl.plural(number, other: 'Current cache size ${number}MB')}";

static String m1(number) =>
"${Intl.plural(number, zero: 'No devices connect', other: 'have ${number} connected')}";

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"about": MessageLookupByLibrary.simpleMessage("About Speed Share"),
"aboutSpeedShare":
MessageLookupByLibrary.simpleMessage("About Speed Share"),
"apk": MessageLookupByLibrary.simpleMessage("Apk"),
"appName": MessageLookupByLibrary.simpleMessage("Speed Share"),
"autoDownload": MessageLookupByLibrary.simpleMessage("Auto Download"),
"cacheSize": m0,
"changeLog": MessageLookupByLibrary.simpleMessage("Change Log"),
"chatWindow": MessageLookupByLibrary.simpleMessage("Chat Window"),
"chatWindowNotice": MessageLookupByLibrary.simpleMessage(
"Currently no messages, click to view the message list"),
"clearCache": MessageLookupByLibrary.simpleMessage("Clear Cache"),
"clearSuccess": MessageLookupByLibrary.simpleMessage("Clear Success"),
"clipboardshare":
MessageLookupByLibrary.simpleMessage("Clipboard Share"),
"common": MessageLookupByLibrary.simpleMessage("Common"),
Expand All @@ -39,22 +53,32 @@ class MessageLookup extends MessageLookupByLibrary {
"downlaodPath": MessageLookupByLibrary.simpleMessage("Download Path"),
"downloadTip": MessageLookupByLibrary.simpleMessage(
"SpeedShare also support Windows、macOS、Linux"),
"empty": MessageLookupByLibrary.simpleMessage("Empty"),
"enableFileClassification":
MessageLookupByLibrary.simpleMessage("Enable file classification"),
"enbaleWebServer":
MessageLookupByLibrary.simpleMessage("Enable Web Server"),
"headerNotice": m1,
"image": MessageLookupByLibrary.simpleMessage("Image"),
"inputConnect": MessageLookupByLibrary.simpleMessage("Input Connect"),
"joinQQGroup": MessageLookupByLibrary.simpleMessage(
"Join Feedback Communication Group"),
"lang": MessageLookupByLibrary.simpleMessage("Language"),
"log": MessageLookupByLibrary.simpleMessage("Log"),
"messageNote": MessageLookupByLibrary.simpleMessage(
"Vibrate When Receive Message"),
"music": MessageLookupByLibrary.simpleMessage("Music"),
"noMessageTip": MessageLookupByLibrary.simpleMessage(
"Currently there are no messages, click to enter the message list"),
"nightmare": MessageLookupByLibrary.simpleMessage("Nightmare"),
"openSource": MessageLookupByLibrary.simpleMessage("Open Source"),
"otherVersion":
MessageLookupByLibrary.simpleMessage("Download The Other Version"),
"privacyAgreement":
MessageLookupByLibrary.simpleMessage("Privacy Agreement"),
"projectBoard": MessageLookupByLibrary.simpleMessage(
"Nightmare Series Project Board"),
"qrTips": MessageLookupByLibrary.simpleMessage(
"Slide left or right to switch IP addresses"),
"recentConnect": MessageLookupByLibrary.simpleMessage("Recent Connect"),
"recentFile": MessageLookupByLibrary.simpleMessage("Recent File"),
"recentImg": MessageLookupByLibrary.simpleMessage("Recent Image"),
"remoteAccessDes": MessageLookupByLibrary.simpleMessage(
Expand Down
31 changes: 29 additions & 2 deletions lib/generated/intl/messages_es.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,30 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'es';

static String m0(number) =>
"${Intl.plural(number, other: 'Tamaño de caché actual ${number}MB')}";

static String m1(number) =>
"${Intl.plural(number, zero: 'No devices connect', other: 'have ${number} connected')}";

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"about": MessageLookupByLibrary.simpleMessage("Acerca de Speed Share"),
"aboutSpeedShare":
MessageLookupByLibrary.simpleMessage("Acerca de Speed Share"),
"apk": MessageLookupByLibrary.simpleMessage("Apk"),
"appName": MessageLookupByLibrary.simpleMessage("Speed Share"),
"autoDownload":
MessageLookupByLibrary.simpleMessage("Descarga automática"),
"cacheSize": m0,
"changeLog":
MessageLookupByLibrary.simpleMessage("Registro de cambios"),
"chatWindow": MessageLookupByLibrary.simpleMessage("Ventana de chat"),
"chatWindowNotice": MessageLookupByLibrary.simpleMessage(
"Actualmente no hay mensajes, haga clic para ver la lista de mensajes"),
"clearCache": MessageLookupByLibrary.simpleMessage("Limpiar caché"),
"clearSuccess":
MessageLookupByLibrary.simpleMessage("Éxito al limpiar"),
"clipboardshare":
MessageLookupByLibrary.simpleMessage("Compartir portapapeles"),
"common": MessageLookupByLibrary.simpleMessage("Común"),
Expand All @@ -40,23 +56,34 @@ class MessageLookup extends MessageLookupByLibrary {
MessageLookupByLibrary.simpleMessage("Ruta de descarga"),
"downloadTip": MessageLookupByLibrary.simpleMessage(
"SpeedShare también es compatible con Windows, macOS y Linux"),
"empty": MessageLookupByLibrary.simpleMessage("Vacío"),
"enableFileClassification": MessageLookupByLibrary.simpleMessage(
"Habilitar clasificación de archivos"),
"enbaleWebServer":
MessageLookupByLibrary.simpleMessage("Habilitar servidor web"),
"headerNotice": m1,
"image": MessageLookupByLibrary.simpleMessage("Imagen"),
"inputConnect":
MessageLookupByLibrary.simpleMessage("Ingresar conexión"),
"joinQQGroup": MessageLookupByLibrary.simpleMessage(
"Unirse al grupo de retroalimentación de comunicación"),
"lang": MessageLookupByLibrary.simpleMessage("Idioma"),
"log": MessageLookupByLibrary.simpleMessage("Registro"),
"messageNote": MessageLookupByLibrary.simpleMessage(
"Vibrar al recibir un mensaje"),
"music": MessageLookupByLibrary.simpleMessage("Música"),
"noMessageTip": MessageLookupByLibrary.simpleMessage(
"Actualmente no hay mensajes, haga clic para entrar en la lista de mensajes"),
"nightmare": MessageLookupByLibrary.simpleMessage("Pesadilla"),
"openSource": MessageLookupByLibrary.simpleMessage("Código abierto"),
"otherVersion":
MessageLookupByLibrary.simpleMessage("Descargar otra versión"),
"privacyAgreement":
MessageLookupByLibrary.simpleMessage("Acuerdo de privacidad"),
"projectBoard": MessageLookupByLibrary.simpleMessage(
"Panel de proyecto de la serie Nightmare"),
"qrTips": MessageLookupByLibrary.simpleMessage(
"Deslice hacia un lado para cambiar de IP"),
"recentConnect":
MessageLookupByLibrary.simpleMessage("Conexión reciente"),
"recentFile":
MessageLookupByLibrary.simpleMessage("Archivos recientes"),
"recentImg": MessageLookupByLibrary.simpleMessage("Imágenes recientes"),
Expand Down
24 changes: 22 additions & 2 deletions lib/generated/intl/messages_zh_CN.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,25 @@ typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'zh_CN';

static String m0(number) =>
"${Intl.plural(number, other: '当前缓存大小${number}MB')}";

static String m1(number) =>
"${Intl.plural(number, zero: '当前未连接任何设备', other: '有${number}封未读邮件')}";

final messages = _notInlinedMessages(_notInlinedMessages);
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
"aboutSpeedShare": MessageLookupByLibrary.simpleMessage("关于速享"),
"apk": MessageLookupByLibrary.simpleMessage("安装包"),
"appName": MessageLookupByLibrary.simpleMessage("速享"),
"autoDownload": MessageLookupByLibrary.simpleMessage("自动下载"),
"cacheSize": m0,
"changeLog": MessageLookupByLibrary.simpleMessage("更新日志"),
"chatWindow": MessageLookupByLibrary.simpleMessage("消息窗口(以前点+号打开的页面)"),
"chatWindowNotice":
MessageLookupByLibrary.simpleMessage("当前没有任何消息,点击进入到消息列表"),
"clearCache": MessageLookupByLibrary.simpleMessage("缓存清理"),
"clearSuccess": MessageLookupByLibrary.simpleMessage("清理成功"),
"clipboardshare": MessageLookupByLibrary.simpleMessage("剪切板共享"),
"common": MessageLookupByLibrary.simpleMessage("常规"),
"currenVersion": MessageLookupByLibrary.simpleMessage("当前版本"),
Expand All @@ -36,18 +49,25 @@ class MessageLookup extends MessageLookupByLibrary {
"downlaodPath": MessageLookupByLibrary.simpleMessage("下载路径"),
"downloadTip":
MessageLookupByLibrary.simpleMessage("速享还支持Windows、macOS、Linux"),
"empty": MessageLookupByLibrary.simpleMessage("空"),
"enableFileClassification":
MessageLookupByLibrary.simpleMessage("开启文件分类"),
"enbaleWebServer": MessageLookupByLibrary.simpleMessage("开启Web服务器"),
"headerNotice": m1,
"image": MessageLookupByLibrary.simpleMessage("图片"),
"inputConnect": MessageLookupByLibrary.simpleMessage("输入连接"),
"joinQQGroup": MessageLookupByLibrary.simpleMessage("加入交流反馈群"),
"lang": MessageLookupByLibrary.simpleMessage("语言"),
"log": MessageLookupByLibrary.simpleMessage("日志"),
"messageNote": MessageLookupByLibrary.simpleMessage("收到消息振动提醒"),
"music": MessageLookupByLibrary.simpleMessage("音乐"),
"noMessageTip":
MessageLookupByLibrary.simpleMessage("当前没有任何消息,点击进入消息列表"),
"nightmare": MessageLookupByLibrary.simpleMessage("梦魇兽"),
"openSource": MessageLookupByLibrary.simpleMessage("开源地址"),
"otherVersion": MessageLookupByLibrary.simpleMessage("其他版本下载"),
"privacyAgreement": MessageLookupByLibrary.simpleMessage("隐私政策"),
"projectBoard": MessageLookupByLibrary.simpleMessage("魇系列项目面板"),
"qrTips": MessageLookupByLibrary.simpleMessage("左右滑动切换IP地址"),
"recentConnect": MessageLookupByLibrary.simpleMessage("最近连接"),
"recentFile": MessageLookupByLibrary.simpleMessage("最近文件"),
"recentImg": MessageLookupByLibrary.simpleMessage("最近图片"),
"remoteAccessDes":
Expand Down
Loading

0 comments on commit c0b5f4c

Please sign in to comment.