This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the hash vector much smaller fixed #10 Implemented dictionary for pb (Progress bar) #7 Edit ReadMe Add many tracies (debug, trace, info) change some errors make 'de toml erros more pretty
- Loading branch information
Showing
30 changed files
with
759 additions
and
376 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,22 @@ | ||
calculate_hash = "Calculate hash..." | ||
delete_exist_version = "Delete exist version!" | ||
doest_need_to_update = "Does't need to update!" | ||
done = "Done!" | ||
download_file = "Download file..." | ||
file_downloaded = "File downloaded!" | ||
restart = "Restart..." | ||
saving_file = "Saving file..." | ||
start_new_iteration = "Start new iteration!" | ||
stop_iteration = "Stop iteration!" | ||
waiting_new_iteration = "Waiting new iteration..." | ||
write_to_lock = "Write to lock!" | ||
find_changes_in_settings = "Find some changes in settings!" | ||
settings_changed = "Settings changed" | ||
settings_has_rewrited = "Settings has rewrited" | ||
settings_same = "Settings same" | ||
intro = "MAC ready to work!" | ||
init_work = "Generating link..." | ||
finding_version = "Finding version..." | ||
make_link = "Make link..." | ||
start_remove_nonexist = "Start remove nonexist" | ||
remove_nonexist = "Remove nonexist" |
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,22 @@ | ||
calculate_hash = "Вычисление хеша..." | ||
delete_exist_version = "Удаление существующей версии!" | ||
doest_need_to_update = "Не требует обновления!" | ||
done = "Готово!" | ||
download_file = "Загрузка файла..." | ||
file_downloaded = "Файл загружен!" | ||
restart = "Перезапуск..." | ||
saving_file = "Сохранение файла..." | ||
start_new_iteration = "Начало новой итерации!" | ||
stop_iteration = "Остановка итерации!" | ||
waiting_new_iteration = "Ожидание новой итерации..." | ||
write_to_lock = "Логирование файла!" | ||
find_changes_in_settings = "Найдены изменения в настройках!" | ||
settings_changed = "Настройки изменены" | ||
settings_has_rewrited = "Настройки перезаписаны" | ||
settings_same = "Настройки те же" | ||
intro = "МАК готов к работе!" | ||
init_work = "Генерация ссылки..." | ||
finding_version = "Поиск версии..." | ||
make_link = "Создание ссылки..." | ||
start_remove_nonexist = "Удаление не логируемых файлов" | ||
remove_nonexist = "Удаление не существующего:" |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[core] | ||
provider = "paper" | ||
version = "1.20.6" | ||
version = "1.20.4" | ||
|
||
[plugins] | ||
[plugins.simple-voice-chat] | ||
[plugins.chunky] | ||
[plugins.nbtapi] | ||
[plugins.chunkyborder] | ||
[plugins.discordsrv] |
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
# Require | ||
[core] # just core, nothing here to change :) | ||
provider = "paper" # [vanilla, paper, folia, purpur, fabric, waterfall, velocity] | ||
version = "1.20.6" # Or Latest (latest -> get error) | ||
provider = "paper" # [vanilla, paper, folia, purpur, fabric, waterfall, velocity] | ||
version = "1.20.6" # Or Latest (latest -> get error) | ||
force_update = true | ||
|
||
# Optional | ||
[plugins.name] # name be used only in kebab-case | ||
source = "modrinth" # [hangar, modrinth] => modrinth by default | ||
version = "ffdfdsd" # numbers of this version. | ||
channel = "release" # [release, beta, alpha] => release | ||
freeze = false # false || true => false by default | ||
source = "modrinth" # [hangar, modrinth] => modrinth by default | ||
version = "ffdfdsd" # numbers of this version. | ||
channel = "release" # [release, beta, alpha] => release | ||
freeze = false # false || true => false by default | ||
force_update = false # false || true => false by default | ||
|
||
# Optional | ||
[mods.name] # name be used only in kebab-case | ||
source = "modrinth" # [hangar, modrinth] => modrinth by default | ||
version = "ffdfdsd" # numbers of this version. | ||
channel = "release" # [release, beta, alpha] => release | ||
freeze = false # false || true => false by default | ||
[mods.name] # name be used only in kebab-case ^Not implemented!!! | ||
source = "modrinth" # [hangar, modrinth] => modrinth by default | ||
version = "ffdfdsd" # numbers of this version. | ||
channel = "release" # [release, beta, alpha] => release | ||
freeze = false # false || true => false by default | ||
force_update = false # false || true => false by default | ||
|
||
# Optional | ||
[additions] | ||
source = "[email protected]:Username/Super-Config.git" # Optional, require for key | ||
key = "MySuperMegaKey" # Optional, don't work without link | ||
duraction = 300 # Optional, value of duraction between manager checker iterations (in seconds) | ||
source = "[email protected]:Username/Super-Config.git" # Optional, require for key ^Not implemented!!! | ||
key = "MySuperMegaKey" # Optional, don't work without link ^Not implemented!!! | ||
duraction = 300 # Optional, value of duraction between manager check iterations (in seconds) => 300 by default |
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 @@ | ||
pub mod pb_messages; |
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,71 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::tr::load::Load; | ||
|
||
#[derive(Deserialize, Serialize)] | ||
pub struct PbMessages { | ||
pub calculate_hash: String, | ||
pub delete_exist_version: String, | ||
pub doest_need_to_update: String, | ||
pub done: String, | ||
pub download_file: String, | ||
pub file_downloaded: String, | ||
pub restart: String, | ||
pub saving_file: String, | ||
pub start_new_iteration: String, | ||
pub stop_iteration: String, | ||
pub waiting_new_iteration: String, | ||
pub write_to_lock: String, | ||
// Config | ||
pub find_changes_in_settings: String, | ||
pub settings_changed: String, | ||
pub settings_has_rewrited: String, | ||
pub settings_same: String, | ||
// Intro | ||
pub intro: String, | ||
// Models messages | ||
pub init_work: String, | ||
pub finding_version: String, | ||
pub make_link: String, | ||
// Remove nonexist | ||
pub start_remove_nonexist: String, | ||
pub remove_nonexist: String, | ||
} | ||
|
||
impl Default for PbMessages { | ||
fn default() -> Self { | ||
Self { | ||
restart: "Restart...".into(), | ||
stop_iteration: "Stop iteration!".into(), | ||
start_new_iteration: "Start new iteration!".into(), | ||
waiting_new_iteration: "Waiting new iteration...".into(), | ||
doest_need_to_update: "Does't need to update!".into(), | ||
delete_exist_version: "Delete exist version!".into(), | ||
download_file: "Download file...".into(), | ||
saving_file: "Saving file...".into(), | ||
write_to_lock: "Write to lock!".into(), | ||
done: "Done!".into(), | ||
file_downloaded: "File downloaded!".into(), | ||
calculate_hash: "Calculate hash...".into(), | ||
find_changes_in_settings: "Find some changes in settings!".into(), | ||
settings_changed: "Settings changed".into(), | ||
settings_has_rewrited: "Settings has rewrited".into(), | ||
settings_same: "Settings same".into(), | ||
intro: "MAC ready to work!".into(), | ||
init_work: "Generating link...".into(), | ||
finding_version: "Finding version...".into(), | ||
make_link: "Make link...".into(), | ||
start_remove_nonexist: "Start remove nonexist".into(), | ||
remove_nonexist: "Remove nonexist".into(), | ||
} | ||
} | ||
} | ||
impl PbMessages { | ||
pub fn remove_if_nonexist(&self, name: &str) -> String { | ||
format!("{}: {}", self.remove_nonexist, name) | ||
} | ||
} | ||
|
||
impl Load for PbMessages { | ||
const PATH: &'static str = "language.toml"; | ||
} |
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.