¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -3,557 +3,150 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>FleetCart</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,600|Rubik:400,500">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
html,
body {
height: 100%;
}
body {
font-family: "Open Sans", sans-serif;
font-size: 16px;
}
h1, h2, h3, h4, h5, h6,
ul, li,
p {
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Rubik", sans-serif;
font-weight: 400;
color: #666666;
}
h1 {
font-size: 36px;
line-height: 44px;
}
h2 {
font-size: 30px;
line-height: 36px;
}
h3 {
font-size: 24px;
line-height: 29px;
}
h4 {
font-size: 21px;
line-height: 26px;
}
h5 {
font-size: 18px;
line-height: 22px;
}
h6 {
font-size: 16px;
line-height: 20px;
}
p {
font-size: 16px;
line-height: 22px;
color: #777777;
letter-spacing: 0.2px;
}
div:active,
div:focus,
div:visited,
a:active,
a:focus,
a:visited {
outline: 0;
}
a {
transition: 200ms ease-in-out;
}
.table {
margin-bottom: 0;
}
.table > thead > tr > th {
color: #666666;
border-bottom: 1px solid #e9e9e9;
}
.table > tbody > tr > td {
color: #777777;
padding: 12px 8px;
border-color: #f1f1f1;
}
.form-group {
margin-bottom: 20px;
}
.form-horizontal .control-label {
font-size: 15px;
padding-top: 8px;
text-align: left;
}
.control-label > span {
color: #fc4b4b;
}
.form-control {
border-color: #d9d9d9;
border-radius: 3px;
box-shadow: none;
height: 40px;
transition: 200ms ease-in-out;
}
.form-control:focus {
box-shadow: none;
border-color: #0068e1;
}
.help-block {
font-size: 14px;
margin-bottom: 5px;
}
.has-error .control-label,
.has-error .help-block {
color: #ff3366;
}
.has-error .form-control {
border-color: #ff3366;
}
.has-error .form-control:focus {
box-shadow: none;
border-color: #ff3366;
}
label {
color: #666666;
}
.custom-select-black {
appearance: none;
-webkit-appearance: none;
background: transparent url('../../public/modules/admin/images/arrow-black.png') no-repeat right 8px center;
background-size: 10px;
}
.alert {
font-family: "Rubik", sans-serif;
border: none;
border-radius: 3px;
color: #ffffff;
}
.alert .close {
color: #ffffff;
opacity: 0.7;
text-shadow: none;
transition: 200ms ease-in-out;
}
.alert .close:hover {
opacity: 1;
}
.alert-danger {
background: #ff5252;
}
.alert .close > i {
-webkit-text-stroke: 2px #ff5252;
}
.btn {
font-family: "Open Sans", sans-serif;
font-size: 16px;
border: 1px solid;
padding: 9px 20px;
border-radius: 3px;
background: transparent;
color: #555555;
letter-spacing: 0.2px;
transition: 200ms ease-in-out;
outline: 0 !important;
}
.btn-primary {
background: #0068e1;
color: #ffffff;
border-color: #0068e1;
}
.btn-primary:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active:focus {
background: #0059bd;
border-color: #0059bd;
}
.btn-primary.disabled,
.btn-primary[disabled] {
opacity: 0.6;
}
/* modal */
.modal {
text-align: center;
padding-right: 0 !important;
}
.modal .modal-dialog {
top: 50%;
width: 500px;
display: inline-block;
margin: auto;
vertical-align: middle;
transform: translate(0, -50%) scale(0.8);
}
.modal .content {
float: none;
margin: 0 auto;
padding: 0;
overflow: visible !important;
box-shadow: 0 2px 5px 0 #555555;
}
.modal .modal-body {
margin-right: -1px;
}
.modal.fade .modal-dialog {
opacity: 0;
transform: translate(0, -50%) scale(0.8);
transition: 200ms ease-in-out;
}
.modal.fade.in .modal-dialog {
opacity: 1;
transform: translate(0, -50%) scale(1);
}
.modal-backdrop.in {
opacity: 0.7;
}
/* installer */
.installer-wrapper {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background: #31629f;
}
.installer-wrapper > .wrapper {
height: 500px;
width: 900px;
background: #ffffff;
border-radius: 3px;
overflow: hidden;
-webkit-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3);
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3);
}
.left-sidebar {
height: 500px;
width: 28%;
background: #02a9ee;
float: left;
}
.left-sidebar > .list-inline {
margin: 25px 0 0;
padding: 0 30px;
}
.left-sidebar li {
position: relative;
display: block;
float: none;
color: #f1f1f1;
padding: 8px 0 8px 30px;
cursor: default;
}
.left-sidebar li:after {
position: absolute;
content: "";
left: 0;
top: 9px;
height: 20px;
width: 20px;
text-align: center;
background: #81d2f6;
border-radius: 50%;
}
.left-sidebar li.active {
font-weight: 600;
color: #ffffff;
}
.left-sidebar li.active:before {
position: absolute;
content: "";
left: 6px;
top: 15px;
height: 8px;
width: 8px;
background: #fafafa;
border-radius: 50%;
z-index: 1;
}
.left-sidebar li.complete:after {
position: absolute;
font-family: FontAwesome;
font-size: 15px;
content: "\f00c";
color: #ffffff;
-webkit-text-stroke: 0.5px #81d2f6;
}
.content-wrapper {
width: 72%;
float: left;
}
.content-wrapper > .content {
height: 434px;
margin: 33px 0;
padding: 0 30px;
overflow: auto;
}
.box {
margin-top: 30px;
}
.box > p {
margin-bottom: 12px;
}
.box .table tr > td:last-child > i {
font-size: 20px;
-webkit-text-stroke: 1px #ffffff;
}
.box .table tr > td > i.fa-check {
color: #37bc9b;
}
.box .table tr > td > i.fa-times {
color: #fc4b4b;
}
.installation-message {
margin: 30px 0 60px;
}
.installation-message > i {
font-size: 80px;
color: #37bc9b;
-webkit-text-stroke: 7px #ffffff;
}
.visit {
display: block;
background: #f1f4f9;
padding: 40px 0;
border-radius: 3px;
border: 1px solid transparent;
transition: 200ms ease-in-out;
}
.visit:active,
.visit:hover,
.visit:focus {
text-decoration: none;
}
.visit .icon {
display: block;
text-align: center;
margin-bottom: 10px;
}
.visit .icon > i {
font-size: 48px;
color: #626060;
-webkit-text-stroke: 1px #f5f5f5;
transition: 200ms ease-in-out;
}
.visit:hover {
border-color: rgba(49, 98, 159, 0.2);
}
.visit:hover .icon > i {
color: #31629f;
}
.content-buttons {
padding-top: 20px;
border-top: 1px solid #d9d9d9;
}
.p-b-0 {
padding-bottom: 0;
}
.btn-loading {
position: relative;
color: transparent !important;
}
.btn-loading:after {
position: absolute;
content: "";
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: auto;
height: 16px;
width: 16px;
border: 2px solid #ffffff;
border-radius: 100%;
border-right-color: transparent;
border-top-color: transparent;
animation: spinAround 600ms infinite linear;
}
.btn-loading.btn-default:after {
border: 2px solid #0068e1;
border-right-color: transparent;
border-top-color: transparent;
}
@keyframes spinAround {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
@media screen and (max-width: 991px) {
.left-sidebar {
border-right: none;
}
}
@media screen and (max-width: 940px) {
html,
body {
height: auto;
}
.installer-wrapper {
height: auto;
padding: 15px;
}
.installer-wrapper > .wrapper {
height: auto;
width: 100%;
}
.left-sidebar {
height: auto;
width: 100%;
float: none;
}
.left-sidebar > .list-inline {
margin-bottom: 25px;
}
.content-wrapper {
width: 100%;
float: none;
}
.content-wrapper > .content {
height: auto;
}
}
@media screen and (max-width: 767px) {
.table-responsive {
border: none;
margin-bottom: 0;
}
.form-horizontal .control-label {
padding-top: 0;
}
.configure-form {
padding-top: 15px;
}
.visit-wrapper > .row > .col-sm-6:last-child > .visit {
margin-top: 30px;
}
}
</style>
<link rel="shortcut icon" href="{{ asset('build/assets/favicon.png') }}" type="image/x-icon">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
@routes
@vite([
'resources/sass/install/main.scss',
'resources/js/install/main.js'
])
</head>
<body>
<div class="installer-wrapper">
<div class="wrapper">
<div class="left-sidebar clearfix">
<ul class="list-inline">
<li class="{{ request()->routeIs('install.pre_installation') ? 'active' : 'complete' }}">
Pre-Installation
</li>
<body class="ltr">
<div id="app" class="installer-wrapper">
<Install
v-cloak
class="installer-box d-flex flex-column flex-md-row"
:requirement-satisfied="{{ $requirement->satisfied() ? 'true' : 'false' }}"
:permission-provided="{{ $permission->provided() ? 'true' : 'false' }}"
inline-template
>
<div>
<aside class="installer-left-sidebar d-flex flex-column justify-content-between">
<div class="logo d-flex justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 1 31 31" preserveAspectRatio="xMinYMid meet">
<g>
<g transform="translate(-164 -55)">
<g transform="translate(-457.529 -7971.529)">
<rect width="29" height="29" rx="3" transform="translate(622.529 8028.529)" fill="#0068e1" id="logo_f_bg"></rect>
<circle cx="2.062" cy="2.062" r="2.062" transform="translate(642.715 8048.341)" fill="#ffb135"></circle>
<g transform="translate(622.529 8028.529)">
<circle cx="23" cy="23" r="23" transform="translate(-25 -26)" fill="#ffffff" opacity="0.12"></circle>
<circle cx="23" cy="23" r="23" transform="translate(15 23)" fill="#ffffff" opacity="0.12"></circle>
</g>
<g transform="translate(630.791 8033.531)">
<g transform="translate(-200.084 -174)" stroke-miterlimit="10" fill="#0068e1" id="logo_f_text">
<path d="M 200.4339904785156 192.5772552490234 L 200.4339904785156 174.3499908447266 L 212.1227569580078 174.3499908447266 L 211.3375701904297 177.8291931152344 L 204.426025390625 177.8291931152344 L 204.0760192871094 177.8291931152344 L 204.0760192871094 178.1791839599609 L 204.0760192871094 181.8428344726563 L 204.0760192871094 182.1928405761719 L 204.426025390625 182.1928405761719 L 211.1689147949219 182.1928405761719 L 211.5615844726563 185.6720428466797 L 204.426025390625 185.6720428466797 L 204.0760192871094 185.6720428466797 L 204.0760192871094 186.0220336914063 L 204.0760192871094 191.9179992675781 L 200.4339904785156 192.5772552490234 Z" stroke="none" fill="#0068e1" id="logo_f_text_inner"></path>
<path d="M 200.7839965820313 174.6999969482422 L 200.7839965820313 192.158203125 L 203.7260284423828 191.6256561279297 L 203.7260284423828 186.0220336914063 L 203.7260284423828 185.3220367431641 L 204.426025390625 185.3220367431641 L 211.1698608398438 185.3220367431641 L 210.8561859130859 182.5428314208984 L 204.426025390625 182.5428314208984 L 203.7260284423828 182.5428314208984 L 203.7260284423828 181.8428344726563 L 203.7260284423828 178.1791839599609 L 203.7260284423828 177.4791870117188 L 204.426025390625 177.4791870117188 L 211.0577392578125 177.4791870117188 L 211.6849517822266 174.6999969482422 L 200.7839965820313 174.6999969482422 M 200.0839996337891 174 L 212.560546875 174 L 211.6173706054688 178.1791839599609 L 204.426025390625 178.1791839599609 L 204.426025390625 181.8428344726563 L 211.4816284179688 181.8428344726563 L 211.9533081054688 186.0220336914063 L 204.426025390625 186.0220336914063 L 204.426025390625 192.2103271484375 L 200.0839996337891 192.9962921142578 L 200.0839996337891 174 Z" stroke="none" fill="#ffffff"></path>
</g>
</g>
</g>
</g>
</g>
</svg>
</div>
<li class="{{ request()->routeIs('install.configuration.show') ? 'active' : '' }} {{ request()->routeIs('install.complete') ? 'complete' : '' }}">
Configuration
</li>
<ul class="step-list list-inline">
<li
class="step-list-item d-flex position-relative"
:class="{
'active': step === 1,
'complete': step >= 2
}"
>
<div class="icon d-flex justify-content-center align-items-center rounded-circle">
<span :class="step > 1 ? 'mdi mdi-check' : 'circle rounded-circle'"></span>
</div>
<li class="{{ request()->routeIs('install.complete') ? 'complete' : '' }}">
Complete
</li>
</ul>
</div>
<div
:class="{
'cursor-pointer': !appInstalled && step !== 1 && !formSubmitting
}"
@click="goToStep(1)"
>
<label class="title">Requirements</label>
<span class="excerpt d-block">Check system requirements</span>
</div>
</li>
<div class="content-wrapper clearfix">
<div class="content">
<li
class="step-list-item d-flex position-relative"
:class="{
'active': step === 2,
'complete': step >= 3
}"
>
<div class="icon d-flex justify-content-center align-items-center rounded-circle">
<span :class="step > 2 ? 'mdi mdi-check' : 'circle rounded-circle'"></span>
</div>
<div
:class="{
'cursor-pointer': !appInstalled && step !== 2 && !formSubmitting
}"
@click="goToStep(2)"
>
<label class="title">Permissions</label>
<span class="excerpt d-block">Obtain necessary permissions</span>
</div>
</li>
<li
class="step-list-item d-flex position-relative"
:class="{
'active': step === 3 && !appInstalled,
'complete': appInstalled
}"
>
<div class="icon d-flex justify-content-center align-items-center rounded-circle">
<span :class="appInstalled ? 'mdi mdi-check' : 'circle rounded-circle'"></span>
</div>
<div
:class="{
'cursor-pointer': !appInstalled && step !== 3 && !formSubmitting
}"
@click="goToStep(3)"
>
<label class="title">Configuration</label>
<span class="excerpt d-block">Configure the application</span>
</div>
</li>
<li
class="step-list-item d-flex position-relative"
:class="{
'complete': appInstalled
}"
>
<div class="icon d-flex justify-content-center align-items-center rounded-circle">
<span :class="appInstalled ? 'mdi mdi-check' : 'circle rounded-circle'"></span>
</div>
<div>
<label class="title">Complete</label>
<span class="excerpt d-block">Installation successful</span>
</div>
</li>
</ul>
<span class="app-version">Version {{ fleetcart_version() }}</span>
</aside>
<section class="installer-main-content flex-grow-1 overflow-hidden">
@yield('content')
</div>
</section>
</div>
</div>
</Install>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
@stack('scripts')
</body>
</html>