Feat: Reemplazar texto hardcodeado por variable APP_NAME del .env
This commit is contained in:
@@ -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];
|
return ['ok' => true, 'verified' => false];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
var appName = window.APP_NAME || 'Nomina Pegasso';
|
||||||
// Initialize all components
|
// Initialize all components
|
||||||
initTooltips();
|
initTooltips();
|
||||||
initAnimations();
|
initAnimations();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* Calendar JavaScript - FullCalendar Configuration
|
* Calendar JavaScript - FullCalendar Configuration
|
||||||
* Nómina Pegaso
|
* App Name: window.APP_NAME (configured via Blade template)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
<div class="auth-card p-4">
|
<div class="auth-card p-4">
|
||||||
<h3 class="text-center mb-4">
|
<h3 class="text-center mb-4">
|
||||||
<i class="bi bi-person-circle"></i> Nómina Pegaso
|
<i class="bi bi-person-circle"></i> {{ config('app.name') }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
@if ($errors->any())
|
@if ($errors->any())
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>@yield('title', 'Nómina Pegaso')</title>
|
<title>@yield('title', config('app.name'))</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
||||||
<link href='https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/main.min.css' rel='stylesheet' />
|
<link href='https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/main.min.css' rel='stylesheet' />
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
<nav class="col-md-2 d-none d-md-block sidebar py-3" id="sidebar">
|
<nav class="col-md-2 d-none d-md-block sidebar py-3" id="sidebar">
|
||||||
<div class="sidebar-brand text-center mb-4">
|
<div class="sidebar-brand text-center mb-4">
|
||||||
<h5 class="text-white mb-1">
|
<h5 class="text-white mb-1">
|
||||||
<i class="bi bi-cash-coin"></i> Nómina Pegaso
|
<i class="bi bi-cash-coin"></i> {{ config('app.name') }}
|
||||||
</h5>
|
</h5>
|
||||||
<small class="text-white-50">{{ auth()->user()->name }}</small>
|
<small class="text-white-50">{{ auth()->user()->name }}</small>
|
||||||
</div>
|
</div>
|
||||||
@@ -258,7 +258,7 @@
|
|||||||
<div class="d-md-none mb-4">
|
<div class="d-md-none mb-4">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body d-flex justify-content-between align-items-center">
|
<div class="card-body d-flex justify-content-between align-items-center">
|
||||||
<span class="fw-bold">Nómina Pegaso</span>
|
<span class="fw-bold">{{ config('app.name') }}</span>
|
||||||
<button class="btn btn-outline-primary btn-sm" id="mobileNavBtn2">
|
<button class="btn btn-outline-primary btn-sm" id="mobileNavBtn2">
|
||||||
<i class="bi bi-list"></i>
|
<i class="bi bi-list"></i>
|
||||||
</button>
|
</button>
|
||||||
@@ -304,6 +304,9 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/index.global.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.10/index.global.min.js"></script>
|
||||||
<script src="{{ asset('js/app.js') }}"></script>
|
<script src="{{ asset('js/app.js') }}"></script>
|
||||||
|
<script>
|
||||||
|
window.APP_NAME = '{{ config('app.name') }}';
|
||||||
|
</script>
|
||||||
|
|
||||||
@stack('scripts')
|
@stack('scripts')
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>@yield('title', 'Nómina Pegaso')</title>
|
<title>@yield('title', config('app.name'))</title>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
<h5><i class="bi bi-info-circle"></i> Vinculación de Telegram</h5>
|
<h5><i class="bi bi-info-circle"></i> Vinculación de Telegram</h5>
|
||||||
<p>Sigue estos pasos para vincular tu cuenta de Telegram:</p>
|
<p>Sigue estos pasos para vincular tu cuenta de Telegram:</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Abre Telegram y busca el bot de Nómina Pegaso</li>
|
<li>Abre Telegram y busca el bot de {{ config('app.name') }}</li>
|
||||||
<li>Envía el código de verificación que aparece abajo</li>
|
<li>Envía el código de verificación que aparece abajo</li>
|
||||||
<li>Recibirás una confirmación cuando esté vinculado</li>
|
<li>Recibirás una confirmación cuando esté vinculado</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|||||||
Reference in New Issue
Block a user