Final version

This commit is contained in:
Alessandro Autiero
2023-09-21 18:01:49 +02:00
parent c9ce65c711
commit 6a949f113b
4 changed files with 34 additions and 15 deletions

View File

@@ -1,6 +1,9 @@
# What is Project Reboot? # 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. ### Who started the Project?
The project isn't actively maintained anymore, but the community can still contribute to its development. The project was started on Discord by Milxnor
[Join the discord!](https://discord.gg/reboot)
[Join the discord!](https://discord.gg/reboot) ### Is the project being actively maintained?
The project isn't actively maintained anymore, but the community can still contribute to its development.

View File

@@ -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)

View File

@@ -2,9 +2,7 @@ import 'dart:convert';
import 'package:fluent_ui/fluent_ui.dart'; import 'package:fluent_ui/fluent_ui.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:intl/intl.dart';
import 'package:markdown_widget/widget/markdown.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/controller/info_controller.dart';
import 'package:reboot_launcher/src/page/abstract/page.dart'; import 'package:reboot_launcher/src/page/abstract/page.dart';
import 'package:reboot_launcher/src/page/abstract/page_setting.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:reboot_launcher/src/widget/common/setting_tile.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'package:skeletons/skeletons.dart'; import 'package:skeletons/skeletons.dart';
import 'package:url_launcher/url_launcher.dart';
class InfoPage extends RebootPage { class InfoPage extends RebootPage {
const InfoPage({Key? key}) : super(key: key); const InfoPage({Key? key}) : super(key: key);
@@ -52,15 +49,14 @@ class _InfoPageState extends RebootPageState<InfoPage> {
Future<List<String>> _initQuery() async { Future<List<String>> _initQuery() async {
var response = await http.get(Uri.parse("https://api.github.com/repos/Auties00/reboot_launcher/contents/documentation/$currentLocale")); var response = await http.get(Uri.parse("https://api.github.com/repos/Auties00/reboot_launcher/contents/documentation/$currentLocale"));
List<String> results = jsonDecode(response.body) List results = jsonDecode(response.body);
.sort((first, second) { results.sort((first, second) {
var firstIndex = int.parse(first["name"][0]); var firstIndex = int.parse(first["name"][0]);
var secondIndex = int.parse(second["name"][0]); var secondIndex = int.parse(second["name"][0]);
return firstIndex > secondIndex ? 1 : firstIndex == secondIndex ? 0 : -1; return firstIndex > secondIndex ? 1 : firstIndex == secondIndex ? 0 : -1;
}) });
.map<String>((entry) => entry["download_url"] as String) List<String> parsed = results.map<String>((entry) => entry["download_url"] as String).toList();
.toList(); return _infoController.links = parsed;
return _infoController.links = results;
} }
Future<String> _readLink(String url) async { Future<String> _readLink(String url) async {