From 6a949f113b262a55425d99e7f69ccf89b604354b Mon Sep 17 00:00:00 2001 From: Alessandro Autiero Date: Thu, 21 Sep 2023 18:01:49 +0200 Subject: [PATCH] Final version --- documentation/en/1. Info.md | 9 ++++++--- documentation/en/2. Bugs.md | 20 +++++++++++++++++++ ...PortForwarding.md => 3. PortForwarding.md} | 0 .../src/page/implementation/info_page.dart | 20 ++++++++----------- 4 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 documentation/en/2. Bugs.md rename documentation/en/{2. PortForwarding.md => 3. PortForwarding.md} (100%) diff --git a/documentation/en/1. Info.md b/documentation/en/1. Info.md index 94d3ca8..6f14092 100644 --- a/documentation/en/1. Info.md +++ b/documentation/en/1. Info.md @@ -1,6 +1,9 @@ # What is Project Reboot? +[Project Reboot](https://github.com/Milxnor/Project-Reboot-3.0) is a game server for Fortnite S3-S15 -Project Reboot is a Fortnite project started by Milxnor on Discord. -The project isn't actively maintained anymore, but the community can still contribute to its development. +### Who started the Project? +The project was started on Discord by Milxnor +[Join the discord!](https://discord.gg/reboot) -[Join the discord!](https://discord.gg/reboot) \ No newline at end of file +### Is the project being actively maintained? +The project isn't actively maintained anymore, but the community can still contribute to its development. \ No newline at end of file diff --git a/documentation/en/2. Bugs.md b/documentation/en/2. Bugs.md new file mode 100644 index 0000000..d66bfbe --- /dev/null +++ b/documentation/en/2. Bugs.md @@ -0,0 +1,20 @@ +# Where can I report bugs? + +## Game server + +### 1. Github + +Open an issue on [Github](https://github.com/Milxnor/Project-Reboot-3.0/issues) + +### 2. Discord +Ask in [#help](https://discord.gg/reboot) + +## Launcher + +### 1. Github + +Open an issue on [Github](https://github.com/Milxnor/Project-Reboot-3.0/issues) + +### 2. Discord +Tag @Auties in [#launcher-issues](https://discord.gg/reboot) + diff --git a/documentation/en/2. PortForwarding.md b/documentation/en/3. PortForwarding.md similarity index 100% rename from documentation/en/2. PortForwarding.md rename to documentation/en/3. PortForwarding.md diff --git a/gui/lib/src/page/implementation/info_page.dart b/gui/lib/src/page/implementation/info_page.dart index 9e19fa4..99b72f1 100644 --- a/gui/lib/src/page/implementation/info_page.dart +++ b/gui/lib/src/page/implementation/info_page.dart @@ -2,9 +2,7 @@ import 'dart:convert'; import 'package:fluent_ui/fluent_ui.dart'; import 'package:get/get.dart'; -import 'package:intl/intl.dart'; import 'package:markdown_widget/widget/markdown.dart'; -import 'package:reboot_common/common.dart'; import 'package:reboot_launcher/src/controller/info_controller.dart'; import 'package:reboot_launcher/src/page/abstract/page.dart'; import 'package:reboot_launcher/src/page/abstract/page_setting.dart'; @@ -13,7 +11,6 @@ import 'package:reboot_launcher/src/util/translations.dart'; import 'package:reboot_launcher/src/widget/common/setting_tile.dart'; import 'package:http/http.dart' as http; import 'package:skeletons/skeletons.dart'; -import 'package:url_launcher/url_launcher.dart'; class InfoPage extends RebootPage { const InfoPage({Key? key}) : super(key: key); @@ -52,15 +49,14 @@ class _InfoPageState extends RebootPageState { Future> _initQuery() async { var response = await http.get(Uri.parse("https://api.github.com/repos/Auties00/reboot_launcher/contents/documentation/$currentLocale")); - List results = jsonDecode(response.body) - .sort((first, second) { - var firstIndex = int.parse(first["name"][0]); - var secondIndex = int.parse(second["name"][0]); - return firstIndex > secondIndex ? 1 : firstIndex == secondIndex ? 0 : -1; - }) - .map((entry) => entry["download_url"] as String) - .toList(); - return _infoController.links = results; + List results = jsonDecode(response.body); + results.sort((first, second) { + var firstIndex = int.parse(first["name"][0]); + var secondIndex = int.parse(second["name"][0]); + return firstIndex > secondIndex ? 1 : firstIndex == secondIndex ? 0 : -1; + }); + List parsed = results.map((entry) => entry["download_url"] as String).toList(); + return _infoController.links = parsed; } Future _readLink(String url) async {