Major assets restructuring (for better scalability).

This commit is contained in:
Alex Tselegidis 2021-11-29 08:55:29 +01:00
parent 5741a3e41d
commit 617ada7641
70 changed files with 94 additions and 161 deletions

View file

@ -18,7 +18,7 @@
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/bootstrap.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/login.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/account/account_layout.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">

View file

@ -20,7 +20,7 @@
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/trumbowyg/trumbowyg.min.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/select2/select2.min.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/bootstrap.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/backend.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/backend/backend_layout.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
<link rel="icon" sizes="192x192" href="<?= asset_url('assets/img/logo.png') ?>">
@ -47,8 +47,8 @@
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/solid.min.js') ?>"></script>
</head>
<body>
<script src="<?= asset_url('assets/js/backend.js') ?>"></script>
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/layouts/backend/backend.js') ?>"></script>
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
<?php require 'backend_header.php' ?>

View file

@ -32,7 +32,7 @@
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/cookieconsent/cookieconsent.min.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/bootstrap.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/frontend.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/booking/booking_layout.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
@ -99,9 +99,9 @@
<script src="<?= asset_url('assets/vendor/tippy.js/tippy-bundle.umd.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/moment/moment.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/moment-timezone/moment-timezone-with-data.min.js') ?>"></script>
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/frontend_book_api.js') ?>"></script>
<script src="<?= asset_url('assets/js/frontend_book.js') ?>"></script>
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/booking/frontend_book_api.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/booking/frontend_book.js') ?>"></script>
<script>
$(function () {

View file

@ -15,7 +15,7 @@
<link rel="icon" href="<?= asset_url('assets/img/logo.png') ?>" sizes="192x192" type="image/png">
<title><?= $page_title ?> | Easy!Appointments</title>
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/bootstrap.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/frontend.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/layouts/booking/booking_layout.css') ?>">
<?php slot('meta') ?>
@ -46,7 +46,7 @@
<script src="<?= asset_url('assets/vendor/jquery/jquery.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/@popperjs-core/popper.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.js') ?>"></script>
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
<?php google_analytics_script() ?>

View file

@ -50,7 +50,7 @@
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/fontawesome.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/@fortawesome-fontawesome-free/solid.min.js') ?>"></script>
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/login.js') ?>"></script>
<?php section('scripts') ?>

View file

@ -9,8 +9,8 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_admins_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_admins.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/admins/backend_admins_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/admins/backend_admins.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -32,14 +32,14 @@
<script src="<?= asset_url('assets/vendor/fullcalendar/fullcalendar.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js') ?>"></script>
<script src="<?= asset_url('assets/js/working_plan_exceptions_modal.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_calendar.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_calendar_default_view.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_calendar_table_view.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_calendar_google_sync.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_calendar_appointments_modal.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_calendar_unavailability_events_modal.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_calendar_api.js') ?>"></script>
<script src="<?= asset_url('assets/js/components/working_plan_exceptions_modal.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/calendar/backend_calendar.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/calendar/backend_calendar_default_view.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/calendar/backend_calendar_table_view.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/calendar/backend_calendar_google_sync.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/calendar/backend_calendar_appointments_modal.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/calendar/backend_calendar_unavailability_events_modal.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/calendar/backend_calendar_api.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -10,8 +10,8 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/vendor/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_customers_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_customers.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/customers/backend_customers_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/customers/backend_customers.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -8,7 +8,7 @@
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.css') ?>">
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/installation.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/pages/instance/instance_installation_page.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
</head>
<body>
@ -147,7 +147,7 @@
<script src="<?= asset_url('assets/vendor/@popperjs-core/popper.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/datejs/date.min.js') ?>"></script>
<script src="<?= asset_url('assets/js/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/utils/general_functions.js') ?>"></script>
<script src="<?= asset_url('assets/js/installation.js') ?>"></script>
</body>
</html>

View file

@ -15,7 +15,7 @@
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/bootstrap/bootstrap.min.css') ?>">
<link rel="icon" type="image/x-icon" href="<?= asset_url('assets/img/favicon.ico') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/vendor/jquery-ui-dist/jquery-ui.min.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/update.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/pages/update.css') ?>">
<link rel="stylesheet" type="text/css" href="<?= asset_url('assets/css/general.css') ?>">
</head>
<body>

View file

@ -10,10 +10,10 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_providers_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_providers.js') ?>"></script>
<script src="<?= asset_url('assets/js/working_plan.js') ?>"></script>
<script src="<?= asset_url('assets/js/working_plan_exceptions_modal.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/providers/backend_providers_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/providers/backend_providers.js') ?>"></script>
<script src="<?= asset_url('assets/js/utils/working_plan.js') ?>"></script>
<script src="<?= asset_url('assets/js/components/working_plan_exceptions_modal.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
<script>

View file

@ -10,8 +10,8 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_secretaries_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_secretaries.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/secretaries/backend_secretaries_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/secretaries/backend_secretaries.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -9,8 +9,8 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_categories_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_categories.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/service_categories/backend_categories_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/service_categories/backend_categories.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -9,8 +9,8 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_services_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_services.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/services/backend_services_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/services/backend_services.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -11,9 +11,9 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_settings_business_logic_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_settings_business_logic.js') ?>"></script>
<script src="<?= asset_url('assets/js/working_plan.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_business_logic_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_business_logic.js') ?>"></script>
<script src="<?= asset_url('assets/js/utils/working_plan.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/jquery-ui-timepicker-addon/jquery-ui-timepicker-addon.min.js') ?>"></script>
<script src="<?= asset_url('assets/vendor/jquery-jeditable/jquery.jeditable.min.js') ?>"></script>
<script>

View file

@ -11,8 +11,8 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_settings_client_form_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_settings_client_form.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_client_form_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_client_form.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -11,8 +11,8 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_settings_current_user_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_settings_current_user.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_current_user_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_current_user.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -11,8 +11,8 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_settings_general_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_settings_general.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_general_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_general.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -9,8 +9,8 @@
<?php section('content') ?>
<script src="<?= asset_url('assets/js/backend_settings_legal_contents_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/backend_settings_legal_contents.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_legal_contents_helper.js') ?>"></script>
<script src="<?= asset_url('assets/js/pages/settings/backend_settings_legal_contents.js') ?>"></script>
<script>
var GlobalVariables = {
csrfToken: <?= json_encode($this->security->get_csrf_hash()) ?>,

View file

@ -1,26 +0,0 @@
body {
width: 100vw;
height: 100vh;
display: table-cell;
vertical-align: middle;
background-color: #f5f8fa;
}
#forgot-password-frame {
width: 630px;
margin: auto;
background: #fff;
border: 1px solid #dddada;
padding: 70px;
}
.user-login {
margin-left: 20px;
}
@media (max-width: 640px) {
#forgot-password-frame {
width: 100%;
padding: 20px;
}
}

View file

@ -0,0 +1,33 @@
/* ----------------------------------------------------------------------------
* Easy!Appointments - Open Source Web Scheduler
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
* @link http://easyappointments.org
* @since v1.5.0
* ---------------------------------------------------------------------------- */
body {
width: 100vw;
height: 100vh;
display: table-cell;
vertical-align: middle;
background-color: #f5f8fa;
}
#login-frame {
width: 630px;
margin: auto;
background: #fff;
border: 1px solid #dddada;
padding: 70px;
}
@media (max-width: 640px) {
#login-frame {
width: 100%;
padding: 20px;
}
}

View file

@ -370,7 +370,7 @@ body legend {
}
#calendar-page #calendar .fc-unavailable {
background-image: url('../img/unavailable.jpg');
background-image: url('../../../img/unavailable.jpg');
font-size: 14px;
border-radius: 0;
font-weight: bold;
@ -389,11 +389,11 @@ body legend {
}
#calendar-page #calendar .fc-break {
background-image: url('../img/break.jpg');
background-image: url('../../../img/break.jpg');
}
#calendar-page #calendar .fc-custom {
background-image: url('../img/custom.jpg');
background-image: url('../../../img/custom.jpg');
}
#calendar-page .fc-header {
@ -533,7 +533,7 @@ body .form-horizontal .controls {
}
#calendar .fc-unavailable {
background: #eaeaea url('../img/unavailable.jpg');
background: #eaeaea url('../../../img/unavailable.jpg');
}
#calendar .calendar-view .date-column .provider-column {

View file

@ -0,0 +1,10 @@
/* ----------------------------------------------------------------------------
* Easy!Appointments - Open Source Web Scheduler
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
* @link http://easyappointments.org
* @since v1.5.0
* ---------------------------------------------------------------------------- */

View file

@ -1,22 +0,0 @@
body {
width: 100vw;
height: 100vh;
display: table-cell;
vertical-align: middle;
background-color: #f5f8fa;
}
#login-frame {
width: 630px;
margin: auto;
background: #fff;
border: 1px solid #dddada;
padding: 70px;
}
@media (max-width: 640px) {
#login-frame {
width: 100%;
padding: 20px;
}
}

View file

@ -1,31 +0,0 @@
body {
width: 100vw;
height: 100vh;
display: table-cell;
vertical-align: middle;
background-color: #f5f8fa;
}
#logout-frame {
width: 630px;
margin: auto;
background: #fff;
border: 1px solid #dddada;
padding: 70px;
}
.btn {
margin-right: 10px;
}
@media (max-width: 640px) {
#logout-frame {
width: 100%;
padding: 20px;
}
.btn {
width: 100%;
margin-bottom: 20px;
}
}

View file

@ -1,31 +0,0 @@
body {
width: 100vw;
height: 100vh;
display: table-cell;
vertical-align: middle;
background-color: #f5f8fa;
}
#no-priv-frame {
width: 630px;
margin: auto;
background: #fff;
border: 1px solid #dddada;
padding: 70px;
}
.btn {
margin-right: 10px;
}
@media (max-width: 640px) {
#no-priv-frame {
width: 100%;
padding: 20px;
}
.btn {
width: 100%;
margin-bottom: 20px;
}
}

View file