From a5e6f761b7048f0ed186536446fd54514c6f734f Mon Sep 17 00:00:00 2001 From: nickpons666 Date: Wed, 22 Apr 2026 23:21:22 -0600 Subject: [PATCH] Feat: Reemplazar texto hardcodeado por variable APP_NAME del .env --- app/Services/TelegramBotService.php | 2 +- public/js/app.js | 4 +++- public/js/calendar.js | 2 +- resources/views/auth/login.blade.php | 2 +- resources/views/layouts/app.blade.php | 9 ++++++--- resources/views/layouts/guest.blade.php | 2 +- resources/views/telegram/verify.blade.php | 2 +- 7 files changed, 14 insertions(+), 9 deletions(-) diff --git a/app/Services/TelegramBotService.php b/app/Services/TelegramBotService.php index 021960c..f30e0b3 100755 --- a/app/Services/TelegramBotService.php +++ b/app/Services/TelegramBotService.php @@ -57,7 +57,7 @@ class TelegramBotService } } - $this->sendMessage($chatId, "馃憢 隆Hola! Soy el bot de N贸mina Pegaso.\n\nPara empezar, env铆a el c贸digo de 6 d铆gitos de tu panel web."); + $this->sendMessage($chatId, "馃憢 隆Hola! Soy el bot de " . config('app.name') . ".\n\nPara empezar, env铆a el c贸digo de 6 d铆gitos de tu panel web."); return ['ok' => true, 'verified' => false]; } diff --git a/public/js/app.js b/public/js/app.js index 738799b..147e24a 100755 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,8 +1,10 @@ /** - * N贸mina Pegaso - Global JavaScript Functions + * App Name: window.APP_NAME (configured via Blade template) + * Global JavaScript Functions */ document.addEventListener('DOMContentLoaded', function() { + var appName = window.APP_NAME || 'Nomina Pegasso'; // Initialize all components initTooltips(); initAnimations(); diff --git a/public/js/calendar.js b/public/js/calendar.js index b60666e..7c7825f 100755 --- a/public/js/calendar.js +++ b/public/js/calendar.js @@ -1,6 +1,6 @@ /** * Calendar JavaScript - FullCalendar Configuration - * N贸mina Pegaso + * App Name: window.APP_NAME (configured via Blade template) */ document.addEventListener('DOMContentLoaded', function() { diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index fed7ebe..f5e966d 100755 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -5,7 +5,7 @@ @section('content')

- N贸mina Pegaso + {{ config('app.name') }}

@if ($errors->any()) diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index e233ac9..c4e6ba3 100755 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -3,7 +3,7 @@ - @yield('title', 'N贸mina Pegaso') + @yield('title', config('app.name')) @@ -211,7 +211,7 @@