From 794e9b53b813a8a38b6ea08d5f42651fbad63651 Mon Sep 17 00:00:00 2001 From: Gary Date: Thu, 7 Mar 2024 13:00:33 -0800 Subject: [PATCH] fix: replace copy and change app_name --- bootstrap/helpers/shared.php | 2 +- config/app.php | 2 +- ...024_01_15_084609_add_custom_dns_server.php | 2 +- lang/en.json | 2 +- resources/views/auth/login.blade.php | 70 +++++++++---------- resources/views/auth/register.blade.php | 34 ++++----- .../views/components/emails/footer.blade.php | 4 +- resources/views/layouts/boarding.blade.php | 24 ++++--- .../livewire/settings/configuration.blade.php | 16 ++--- 9 files changed, 72 insertions(+), 84 deletions(-) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 794a1f78c..7a264fa7e 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -145,7 +145,7 @@ function get_latest_version_of_coolify(): string try { $response = Http::get('https://cdn.lasthourhosting.org/lasthourcloud/versions.json'); $versions = $response->json(); - return data_get($versions, 'coolify.v4.version'); + return data_get($versions, 'lasthourcloud.v4.version'); } catch (\Throwable $e) { //throw $e; ray($e->getMessage()); diff --git a/config/app.php b/config/app.php index 5851640be..a6a7566f0 100644 --- a/config/app.php +++ b/config/app.php @@ -17,7 +17,7 @@ return [ | */ - 'name' => env('APP_NAME', 'Coolify'), + 'name' => env('APP_NAME', 'Last Hour Cloud'), /* |-------------------------------------------------------------------------- diff --git a/database/migrations/2024_01_15_084609_add_custom_dns_server.php b/database/migrations/2024_01_15_084609_add_custom_dns_server.php index 24d288d02..7c636239b 100644 --- a/database/migrations/2024_01_15_084609_add_custom_dns_server.php +++ b/database/migrations/2024_01_15_084609_add_custom_dns_server.php @@ -13,7 +13,7 @@ return new class extends Migration { Schema::table('instance_settings', function (Blueprint $table) { $table->boolean('is_dns_validation_enabled')->default(true); - $table->string('custom_dns_servers')->nullable()->default('1.1.1.1'); + $table->string('custom_dns_servers')->nullable()->default('9.9.9.9'); }); } diff --git a/lang/en.json b/lang/en.json index 49888d605..bf0afd929 100644 --- a/lang/en.json +++ b/lang/en.json @@ -7,7 +7,7 @@ "auth.register_now": "Register a new account", "auth.logout": "Logout", "auth.register": "Register", - "auth.registration_disabled": "Registration is disabled. Please contact support@lasthourhosting.org for help.", + "auth.registration_disabled": "Your registration is set to disabled. Please contact support@lasthourhosting.org for help.", "auth.reset_password": "Reset password", "auth.failed": "These credentials do not match our records.", "auth.failed.password": "The provided password is incorrect.", diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 91d735428..0223ba8f0 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -2,66 +2,62 @@
-
Last Hour Cloud
+

{{ __('auth.login') }}

@if ($is_registration_enabled) - @if (config('coolify.waitlist')) - - Join the waitlist - - @else - - {{ __('auth.register_now') }} - - @endif + @if (config('coolify.waitlist')) + + Join the waitlist + + @else + + {{ __('auth.register_now') }} + + @endif @endif
@csrf @env('local') - + - - - {{ __('auth.forgot_password') }}? - + + + {{ __('auth.forgot_password') }}? + @else - - - - {{ __('auth.forgot_password') }}? - + + + + {{ __('auth.forgot_password') }}? + @endenv {{ __('auth.login') }} @if (!$is_registration_enabled) -
{{ __('auth.registration_disabled') }}
+
{{ __('auth.registration_disabled') }}
@endif @if ($errors->any()) -
- @foreach ($errors->all() as $error) -

{{ $error }}

- @endforeach -
+
+ @foreach ($errors->all() as $error) +

{{ $error }}

+ @endforeach +
@endif @if (session('status')) -
- {{ session('status') }} -
+
+ {{ session('status') }} +
@endif @if (session('error')) -
- {{ session('error') }} -
+
+ {{ session('error') }} +
@endif
- + \ No newline at end of file diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index e1daeaef2..e88200e1b 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -2,47 +2,41 @@
-
Last Hour Cloud
+

{{ __('auth.register') }}

- + {{ __('auth.already_registered') }}
@csrf @env('local') - - + +
- - + +
- @else + @else
- +
@endenv {{ __('auth.register') }} @if ($errors->any()) -
- @foreach ($errors->all() as $error) -

{{ $error }}

- @endforeach -
+
+ @foreach ($errors->all() as $error) +

{{ $error }}

+ @endforeach +
@endif
- + \ No newline at end of file diff --git a/resources/views/components/emails/footer.blade.php b/resources/views/components/emails/footer.blade.php index 1a4cfd0e4..d275015de 100644 --- a/resources/views/components/emails/footer.blade.php +++ b/resources/views/components/emails/footer.blade.php @@ -1,6 +1,6 @@ {{ Illuminate\Mail\Markdown::parse('---') }} Thank you,
-{{ config('app.name') ?? 'Coolify' }} +{{ config('app.name') ?? 'Last Hour Cloud' }} -{{ Illuminate\Mail\Markdown::parse('[Contact Support](https://lasthourhosting.org/contact.html)') }} +{{ Illuminate\Mail\Markdown::parse('[Contact Support](https://lasthourhosting.org/contact.html)') }} \ No newline at end of file diff --git a/resources/views/layouts/boarding.blade.php b/resources/views/layouts/boarding.blade.php index 10a0a9f54..e42791218 100644 --- a/resources/views/layouts/boarding.blade.php +++ b/resources/views/layouts/boarding.blade.php @@ -1,16 +1,18 @@ @extends('layouts.base') @section('body') -
- -
-
-
- {{ $slot }}
-
- @parent -@endsection +
+ +
+
+ {{ $slot }} +
+
+@parent +@endsection \ No newline at end of file diff --git a/resources/views/livewire/settings/configuration.blade.php b/resources/views/livewire/settings/configuration.blade.php index 03bcea810..f70814b67 100644 --- a/resources/views/livewire/settings/configuration.blade.php +++ b/resources/views/livewire/settings/configuration.blade.php @@ -11,7 +11,7 @@
- +
@@ -24,20 +24,16 @@

Advanced

@if(!is_null(env('AUTOUPDATE', null))) - + @else - + @endif @if ($next_channel) - + @else - + @endif
-
+ \ No newline at end of file