From 87e067d49ce97f4fd2403eb449939e467125446b Mon Sep 17 00:00:00 2001 From: BitSec Date: Thu, 30 Sep 2021 05:01:29 +0200 Subject: [PATCH 01/23] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index acea121c..0ee0d65c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Arno VIsker +Copyright (c) 2021 ControlPanel.gg Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 211319ea98a1af6b3669fe3f86b0b88096239a5a Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 14 Oct 2021 09:01:35 +0200 Subject: [PATCH 02/23] HotFix to change Hard-Coded Server-limit-after-irl-purchase This is absolutely not tested. --- app/Http/Controllers/Admin/PaymentController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Admin/PaymentController.php b/app/Http/Controllers/Admin/PaymentController.php index 110d2c0d..5b8e3725 100644 --- a/app/Http/Controllers/Admin/PaymentController.php +++ b/app/Http/Controllers/Admin/PaymentController.php @@ -141,9 +141,9 @@ class PaymentController extends Controller $user->increment('credits', $paypalProduct->quantity); //update server limit - if (Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE', 10) !== 0) { - if ($user->server_limit < Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE', 10)) { - $user->update(['server_limit' => 10]); + if (Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE') !== 0) { + if ($user->server_limit < Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE')) { + $user->update(['server_limit' => Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE')]); } } From b3d73e37862d49aa62391038f23b2726578ba320 Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 14 Oct 2021 09:05:59 +0200 Subject: [PATCH 03/23] Reverse Changes. Wrong Commit --- app/Http/Controllers/Admin/PaymentController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Admin/PaymentController.php b/app/Http/Controllers/Admin/PaymentController.php index 5b8e3725..110d2c0d 100644 --- a/app/Http/Controllers/Admin/PaymentController.php +++ b/app/Http/Controllers/Admin/PaymentController.php @@ -141,9 +141,9 @@ class PaymentController extends Controller $user->increment('credits', $paypalProduct->quantity); //update server limit - if (Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE') !== 0) { - if ($user->server_limit < Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE')) { - $user->update(['server_limit' => Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE')]); + if (Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE', 10) !== 0) { + if ($user->server_limit < Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE', 10)) { + $user->update(['server_limit' => 10]); } } From 9644fe0fe25ad204833d905c5d8b6c95023809cd Mon Sep 17 00:00:00 2001 From: 1day2die Date: Mon, 6 Dec 2021 17:11:48 +0100 Subject: [PATCH 04/23] first steps --- config/app.php | 2 +- resources/lang/de.json | 25 +++++++++++++++++++ .../views/admin/activitylogs/index.blade.php | 20 +++++++-------- .../admin/configurations/editModel.blade.php | 8 +++--- .../admin/configurations/index.blade.php | 18 ++++++------- 5 files changed, 49 insertions(+), 24 deletions(-) create mode 100644 resources/lang/de.json diff --git a/config/app.php b/config/app.php index 334ff5b2..7ca6180b 100644 --- a/config/app.php +++ b/config/app.php @@ -81,7 +81,7 @@ return [ | */ - 'locale' => 'en', + 'locale' => env('LOCALE', 'en'), /* |-------------------------------------------------------------------------- diff --git a/resources/lang/de.json b/resources/lang/de.json new file mode 100644 index 00000000..6d4e07a1 --- /dev/null +++ b/resources/lang/de.json @@ -0,0 +1,25 @@ +{ + + + "Activity Logs": "Aktivitäts logs", + "No recent activity from cronjobs": "Keine neuen aktivitäten von Cronjobs", + "Check the docs for it here": "Zur Dokumentation", + "Are cronjobs running?": "Sind die Cronjobs gestartet?", + "Causer": "Verursacher", + "Description": "Beschreibung", + "Created at": "Erstellt am", + + "Edit Configuration": "Einstellungen bearbeiten", + "Text Field": "Textfeld", + "Cancel": "Abbrechen", + "Save": "Speichern", + "true": "wahr", + "false": "falsch", + + "Configurations": "Einstellungen", + "Dashboard": "Dashboard", + "Key": "Schlüssel", + "Value": "Wert", + "Type": "Typ" + +} diff --git a/resources/views/admin/activitylogs/index.blade.php b/resources/views/admin/activitylogs/index.blade.php index 978e8c9c..6a49b5a0 100644 --- a/resources/views/admin/activitylogs/index.blade.php +++ b/resources/views/admin/activitylogs/index.blade.php @@ -6,12 +6,12 @@
-

Activity Logs

+

{{ __('Activity Logs')}}

@@ -32,8 +32,8 @@
@else
-

No recent activity from cronjobs

-

Are cronjobs running? Check the docs for it here

+

{{ __('No recent activity from cronjobs')}}

+

{{ __('Are cronjobs running?')}} {{ __('Check the docs for it here')}}

@endif @@ -42,7 +42,7 @@
-
Activity Logs
+
{{ __('Activity Logs')}}
@@ -63,16 +63,16 @@ - - - + + + @foreach($logs as $log) -
CauserDescriptionCreated At{{ __('Causer') }}{{ __('Description') }}{{ __('Created at') }}
@if($log->causer) {{json_decode($log->causer)->name}} - @else + @if($log->causer) {{json_decode($log->causer)->name}} + @else System @endif diff --git a/resources/views/admin/configurations/editModel.blade.php b/resources/views/admin/configurations/editModel.blade.php index b040c2f0..e2dde89c 100644 --- a/resources/views/admin/configurations/editModel.blade.php +++ b/resources/views/admin/configurations/editModel.blade.php @@ -8,14 +8,14 @@ @method('PATCH')