-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
优化了一些网络逻辑,修复了一个可能导致无法获取信息的问题 修复:未点击清除或直接退出侧边栏后,未提交的过滤选项不会回退而是保持退出前状态 添加了人物关于游戏版本的过滤和排序功能
- Loading branch information
jay
committed
Jan 28, 2022
1 parent
7a6de0b
commit c72c1dd
Showing
15 changed files
with
238 additions
and
43 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
enum GameVersion { | ||
v1, | ||
v2, | ||
v3, | ||
v4, | ||
v5, | ||
v6, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// abstract class CloudObject { | ||
// late String objectId; | ||
// late DateTime createdAt; | ||
// late DateTime updatedAt; | ||
// ACL? acl; | ||
// } | ||
|
||
// class ACL { | ||
// Iterable acls; | ||
// ACL({ | ||
// required this.acls, | ||
// }) { | ||
// if (acls.isEmpty) { | ||
// // 默认全部只读 | ||
// // acls = Iterable.generate( | ||
// // 1, | ||
// // (index) => AclItem( | ||
// // object: "*", | ||
// // permission: Permission( | ||
// // read: false, | ||
// // write: false, | ||
// // ), | ||
// // ), | ||
// // ); | ||
// } | ||
// } | ||
|
||
// factory ACL.fromJson(Map<String, dynamic> json) { | ||
// // json.forEach((key, value) { | ||
// // AclItem.fromJson({key: value}); | ||
// // }); | ||
// return ACL( | ||
// acls: Iterable.generate( | ||
// json.length, | ||
// (index) => AclItem.fromJson( | ||
// json.entries.elementAt(index), | ||
// ), | ||
// ), | ||
// ); | ||
// } | ||
|
||
// // Map<String, dynamic> toJson() => Map.fromEntries(acls); | ||
// } | ||
|
||
// class AclItem { | ||
// String object; | ||
// Permission permission; | ||
// AclItem({ | ||
// required this.object, | ||
// required this.permission, | ||
// }); | ||
// factory AclItem.fromJson(MapEntry<String, dynamic> json) => AclItem( | ||
// object: json.key, | ||
// permission: Permission.fromJson(json.value), | ||
// ); | ||
|
||
// Map<String, dynamic> toJson() => { | ||
// object: permission.toJson(), | ||
// }; | ||
// } | ||
|
||
// class Permission { | ||
// bool read; | ||
// bool write; | ||
|
||
// Permission({ | ||
// required this.read, | ||
// required this.write, | ||
// }); | ||
// factory Permission.fromJson(Map<String, dynamic> json) => | ||
// Permission(read: json["read"], write: json["write"]); | ||
|
||
// Map<String, dynamic> toJson() => { | ||
// "read": read, | ||
// "write": write, | ||
// }; | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.