¨4.0.1¨
This commit is contained in:
3
resources/images/arrow-down.svg
Normal file
3
resources/images/arrow-down.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'>
|
||||
<path stroke='#6b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 195 B |
BIN
resources/images/favicon.png
Normal file
BIN
resources/images/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 474 B |
BIN
resources/images/installer-bg.png
Normal file
BIN
resources/images/installer-bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
8
resources/js/install/Axios.js
Normal file
8
resources/js/install/Axios.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import axios from "axios";
|
||||
|
||||
window.axios = axios;
|
||||
|
||||
const token = document.querySelector('meta[name="csrf-token"]').content;
|
||||
|
||||
axios.defaults.headers.common["X-CSRF-TOKEN"] = token;
|
||||
axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
|
||||
37
resources/js/install/Errors.js
Normal file
37
resources/js/install/Errors.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import Vue from "vue";
|
||||
|
||||
export default class {
|
||||
constructor() {
|
||||
this.errors = {};
|
||||
}
|
||||
|
||||
record(errors) {
|
||||
this.errors = errors;
|
||||
}
|
||||
|
||||
any() {
|
||||
return Object.keys(this.errors).length > 0;
|
||||
}
|
||||
|
||||
has(key) {
|
||||
return this.errors.hasOwnProperty(key);
|
||||
}
|
||||
|
||||
get(key) {
|
||||
if (this.errors[key]) {
|
||||
return this.errors[key][0];
|
||||
}
|
||||
}
|
||||
|
||||
clear(key) {
|
||||
if (key === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
Vue.delete(this.errors, key);
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.errors = {};
|
||||
}
|
||||
}
|
||||
207
resources/js/install/components/Install.js
Normal file
207
resources/js/install/components/Install.js
Normal file
@@ -0,0 +1,207 @@
|
||||
import simplebar from "simplebar-vue";
|
||||
import Errors from "../Errors";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
simplebar,
|
||||
},
|
||||
|
||||
props: ["requirementSatisfied", "permissionProvided"],
|
||||
|
||||
data() {
|
||||
return {
|
||||
step: 1,
|
||||
formSubmitting: false,
|
||||
animateAlert: false,
|
||||
appInstalled: false,
|
||||
errorMessage: null,
|
||||
form: {
|
||||
db_host: "127.0.0.1",
|
||||
db_port: 3306,
|
||||
store_search_engine: "mysql",
|
||||
},
|
||||
errors: new Errors(),
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
isShowPrev() {
|
||||
return this.step === 2 || this.step === 3;
|
||||
},
|
||||
|
||||
isPrevDisabled() {
|
||||
return this.formSubmitting;
|
||||
},
|
||||
|
||||
isNextDisabled() {
|
||||
if (this.step === 1) {
|
||||
return !this.requirementSatisfied || this.formSubmitting;
|
||||
}
|
||||
|
||||
if (this.step === 2) {
|
||||
return !this.permissionProvided || this.formSubmitting;
|
||||
}
|
||||
|
||||
if (this.step === 3) {
|
||||
return this.formSubmitting;
|
||||
}
|
||||
},
|
||||
|
||||
hasErrorMessage() {
|
||||
return this.errorMessage !== null;
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
prevStep() {
|
||||
if (this.isPrevDisabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.step > 1) {
|
||||
this.step--;
|
||||
}
|
||||
},
|
||||
|
||||
nextStep() {
|
||||
if (this.isNextDisabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.step === 3) {
|
||||
this.submitForm();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.step++;
|
||||
|
||||
this.focusInitialFormField();
|
||||
},
|
||||
|
||||
goToStep(step) {
|
||||
if (this.appInstalled || this.formSubmitting) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.step = step;
|
||||
|
||||
this.focusInitialFormField();
|
||||
},
|
||||
|
||||
focusInitialFormField() {
|
||||
if (this.step === 3) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.configurationForm.elements[0].focus();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
setErrorMessage(message) {
|
||||
this.errorMessage = message;
|
||||
|
||||
this.triggerAlertAnimation();
|
||||
},
|
||||
|
||||
resetErrorMessage() {
|
||||
this.errorMessage = null;
|
||||
},
|
||||
|
||||
triggerAlertAnimation() {
|
||||
this.animateAlert = true;
|
||||
|
||||
setTimeout(() => {
|
||||
this.animateAlert = false;
|
||||
}, 1000);
|
||||
},
|
||||
|
||||
scrollToTop() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.configurationContent.SimpleBar.getScrollElement().scrollTo(
|
||||
{
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: "smooth",
|
||||
}
|
||||
);
|
||||
});
|
||||
},
|
||||
|
||||
scrollToBottom(value) {
|
||||
if (value !== "mysql") {
|
||||
this.$nextTick(() => {
|
||||
const formFields = this.$refs.configurationForm.elements;
|
||||
|
||||
this.$refs.configurationContent.SimpleBar.getScrollElement().scrollTo(
|
||||
{
|
||||
top: formFields[formFields.length - 1].offsetTop,
|
||||
left: 0,
|
||||
behavior: "smooth",
|
||||
}
|
||||
);
|
||||
|
||||
formFields[formFields.length - 2].focus();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
scrollToFirstErrorField(errors) {
|
||||
[...this.$refs.configurationForm.elements].some((el) => {
|
||||
if (el.name === Object.keys(errors)[0]) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.configurationContent.SimpleBar.getScrollElement().scrollTo(
|
||||
{
|
||||
top: el.offsetTop - 10,
|
||||
left: 0,
|
||||
behavior: "smooth",
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
el.focus();
|
||||
|
||||
return true;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
resetForm() {
|
||||
this.form = {
|
||||
db_host: "127.0.0.1",
|
||||
db_port: 3306,
|
||||
store_search_engine: "mysql",
|
||||
};
|
||||
},
|
||||
|
||||
submitForm() {
|
||||
this.formSubmitting = true;
|
||||
|
||||
axios
|
||||
.post(route("install.post"), this.form)
|
||||
.then(() => {
|
||||
this.appInstalled = true;
|
||||
|
||||
this.resetForm();
|
||||
this.resetErrorMessage();
|
||||
this.errors.reset();
|
||||
})
|
||||
.catch(({ response }) => {
|
||||
if (response.status === 422) {
|
||||
const errors = response.data.errors;
|
||||
|
||||
this.resetErrorMessage();
|
||||
this.errors.record(errors);
|
||||
this.scrollToFirstErrorField(errors);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.setErrorMessage(response.data.message);
|
||||
this.scrollToTop();
|
||||
})
|
||||
.finally(() => {
|
||||
this.formSubmitting = false;
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
11
resources/js/install/main.js
Normal file
11
resources/js/install/main.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import Vue from "vue";
|
||||
import Install from "./components/Install";
|
||||
import "./Axios";
|
||||
|
||||
new Vue({
|
||||
el: "#app",
|
||||
|
||||
components: {
|
||||
Install,
|
||||
},
|
||||
});
|
||||
66
resources/sass/install/abstracts/_variables.scss
Normal file
66
resources/sass/install/abstracts/_variables.scss
Normal file
@@ -0,0 +1,66 @@
|
||||
// Font family
|
||||
$font-inter: "Inter", Arial, sans-serif;
|
||||
|
||||
// Font weight
|
||||
$font-regular: 400;
|
||||
$font-medium: 500;
|
||||
$font-semi-bold: 600;
|
||||
|
||||
// Colors
|
||||
$color-white: #ffffff;
|
||||
|
||||
$color-primary-500: #0068e1;
|
||||
$color-primary-600: #004fc8;
|
||||
|
||||
$color-slate-50: #f8fafc;
|
||||
$color-slate-100: #f1f5f9;
|
||||
$color-slate-200: #e2e8f0;
|
||||
$color-slate-300: #cbd5e1;
|
||||
$color-slate-400: #94a3b8;
|
||||
$color-slate-500: #64748b;
|
||||
$color-slate-600: #475569;
|
||||
$color-slate-700: #334155;
|
||||
$color-slate-800: #1e293b;
|
||||
$color-slate-900: #0f172a;
|
||||
$color-slate-950: #020617;
|
||||
|
||||
$color-gray-50: #f9fafb;
|
||||
$color-gray-100: #f3f4f6;
|
||||
$color-gray-200: #e5e7eb;
|
||||
$color-gray-300: #d1d5db;
|
||||
$color-gray-400: #9ca3af;
|
||||
$color-gray-500: #6b7280;
|
||||
$color-gray-600: #4b5563;
|
||||
$color-gray-700: #374151;
|
||||
$color-gray-800: #1f2937;
|
||||
$color-gray-900: #111827;
|
||||
$color-gray-950: #030712;
|
||||
|
||||
$color-green-50: #f0fdf4;
|
||||
$color-green-100: #dcfce7;
|
||||
$color-green-200: #bbf7d0;
|
||||
$color-green-300: #86efac;
|
||||
$color-green-400: #4ade80;
|
||||
$color-green-500: #22c55e;
|
||||
$color-green-600: #16a34a;
|
||||
$color-green-700: #15803d;
|
||||
$color-green-800: #166534;
|
||||
$color-green-900: #14532d;
|
||||
$color-green-950: #14532d;
|
||||
|
||||
$color-red-50: #fef2f2;
|
||||
$color-red-100: #fee2e2;
|
||||
$color-red-200: #fecaca;
|
||||
$color-red-300: #fca5a5;
|
||||
$color-red-400: #f87171;
|
||||
$color-red-500: #ef4444;
|
||||
$color-red-600: #dc2626;
|
||||
$color-red-700: #b91c1c;
|
||||
$color-red-800: #991b1b;
|
||||
$color-red-900: #7f1d1d;
|
||||
$color-red-950: #450a0a;
|
||||
|
||||
// Miscellaneous
|
||||
$radius-default: 8px;
|
||||
$radius-full: 50%;
|
||||
$transition-default: 150ms ease-out;
|
||||
48
resources/sass/install/base/_reset.scss
Normal file
48
resources/sass/install/base/_reset.scss
Normal file
@@ -0,0 +1,48 @@
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
direction: ltr;
|
||||
font-family: $font-inter;
|
||||
font-weight: $font-regular;
|
||||
font-size: 14px;
|
||||
font-style: normal;
|
||||
min-width: 320px;
|
||||
color: $color-gray-600;
|
||||
background: $color-slate-200 url(../../images/installer-bg.png) no-repeat
|
||||
center center;
|
||||
background-size: cover;
|
||||
overflow-x: hidden;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
label,
|
||||
b {
|
||||
font-weight: $font-medium;
|
||||
color: $color-gray-800;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.simplebar-scrollbar::before {
|
||||
background: $color-slate-300;
|
||||
}
|
||||
29
resources/sass/install/base/_typography.scss
Normal file
29
resources/sass/install/base/_typography.scss
Normal file
@@ -0,0 +1,29 @@
|
||||
h1 {
|
||||
font-size: 2.25rem;
|
||||
line-height: 2.5rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.875rem;
|
||||
line-height: 2.25rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.75rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1rem;
|
||||
line-height: 1.5rem;
|
||||
}
|
||||
11
resources/sass/install/components/_alert.scss
Normal file
11
resources/sass/install/components/_alert.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
.alert {
|
||||
--bs-alert-margin-bottom: 15px;
|
||||
--bs-alert-border-radius: #{$radius-default};
|
||||
}
|
||||
|
||||
.alert-danger {
|
||||
--bs-alert-color: #{$color-red-800};
|
||||
--bs-alert-bg: #{$color-red-100};
|
||||
--bs-alert-border-color: #{$color-red-100};
|
||||
--bs-alert-link-color: #{$color-red-900};
|
||||
}
|
||||
91
resources/sass/install/components/_button.scss
Normal file
91
resources/sass/install/components/_button.scss
Normal file
@@ -0,0 +1,91 @@
|
||||
.btn {
|
||||
--bs-btn-font-size: 14px;
|
||||
--bs-btn-font-weight: #{$font-medium};
|
||||
--bs-btn-line-height: 20px;
|
||||
--bs-btn-padding-x: 16px;
|
||||
--bs-btn-padding-y: 6px;
|
||||
--bs-btn-border-radius: #{$radius-default};
|
||||
--bs-btn-box-shadow: none;
|
||||
--bs-btn-focus-box-shadow: none;
|
||||
--bs-btn-disabled-opacity: 0.6;
|
||||
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
--bs-btn-color: #{$color-white};
|
||||
--bs-btn-hover-color: #{$color-white};
|
||||
--bs-btn-active-color: #{$color-white};
|
||||
--bs-btn-bg: #{$color-primary-500};
|
||||
--bs-btn-hover-bg: #{$color-primary-600};
|
||||
--bs-btn-active-bg: #{$color-primary-600};
|
||||
--bs-btn-border-color: #{$color-primary-500};
|
||||
--bs-btn-hover-border-color: #{$color-primary-600};
|
||||
--bs-btn-active-border-color: #{$color-primary-600};
|
||||
--bs-btn-disabled-bg: #{$color-primary-600};
|
||||
--bs-btn-disabled-border-color: #{$color-primary-600};
|
||||
}
|
||||
|
||||
.btn-light {
|
||||
--bs-btn-color: #{$color-gray-500};
|
||||
--bs-btn-hover-color: #{$color-primary-600};
|
||||
--bs-btn-active-color: #{$color-primary-600};
|
||||
--bs-btn-bg: #{$color-white};
|
||||
--bs-btn-hover-bg: #{$color-white};
|
||||
--bs-btn-active-bg: #{$color-white};
|
||||
--bs-btn-border-color: #{$color-gray-300};
|
||||
--bs-btn-hover-border-color: #{$color-primary-500};
|
||||
--bs-btn-active-border-color: #{$color-primary-500};
|
||||
--bs-btn-disabled-color: #{$color-gray-500};
|
||||
--bs-btn-disabled-bg: #{$color-gray-100};
|
||||
--bs-btn-disabled-border-color: #{$color-gray-100};
|
||||
}
|
||||
|
||||
.btn-close {
|
||||
--bs-btn-close-color: #{$color-slate-900};
|
||||
|
||||
&:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-loading {
|
||||
--bs-btn-color: transparent;
|
||||
--bs-btn-hover-color: transparent;
|
||||
--bs-btn-active-color: transparent;
|
||||
--bs-btn-disabled-color: transparent;
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
border-radius: $radius-full;
|
||||
animation: button-spin-loader 800ms linear infinite;
|
||||
}
|
||||
|
||||
&:before {
|
||||
border: 1px solid transparent;
|
||||
border-top-color: $color-white;
|
||||
}
|
||||
|
||||
&:after {
|
||||
border: 1px solid rgba($color-white, 0.25);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes button-spin-loader {
|
||||
0% {
|
||||
transform: translate(-50%, -50%) rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translate(-50%, -50%) rotate(360deg);
|
||||
}
|
||||
}
|
||||
132
resources/sass/install/components/_form.scss
Normal file
132
resources/sass/install/components/_form.scss
Normal file
@@ -0,0 +1,132 @@
|
||||
.form-horizontal {
|
||||
.form-group {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
label {
|
||||
> .required {
|
||||
margin-left: 4px;
|
||||
color: $color-red-500;
|
||||
}
|
||||
|
||||
> .mdi {
|
||||
font-size: 14px;
|
||||
color: $color-gray-600;
|
||||
}
|
||||
}
|
||||
|
||||
.form-label,
|
||||
.col-form-label {
|
||||
font-weight: $font-medium;
|
||||
display: flex;
|
||||
color: $color-gray-700;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.col-form-label {
|
||||
align-self: flex-start;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.input-group-text {
|
||||
color: $color-gray-500;
|
||||
background: lighten($color-gray-100, 1%);
|
||||
border: 1px solid lighten($color-slate-300, 4%);
|
||||
|
||||
.mdi {
|
||||
color: lighten($color-gray-500, 4%);
|
||||
}
|
||||
}
|
||||
|
||||
.form-control,
|
||||
.form-select {
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
color: $color-gray-500;
|
||||
border-radius: $radius-default;
|
||||
border-color: lighten($color-slate-300, 4%);
|
||||
|
||||
&:focus {
|
||||
color: $color-slate-600;
|
||||
border-color: $color-primary-500;
|
||||
box-shadow: none;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&:placeholder-shown {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&.active {
|
||||
border-color: $color-primary-500;
|
||||
}
|
||||
}
|
||||
|
||||
.form-control {
|
||||
padding: 7px 11px;
|
||||
|
||||
&:disabled {
|
||||
color: $color-gray-500;
|
||||
background: lighten($color-slate-100, 2%);
|
||||
opacity: 0.8;
|
||||
}
|
||||
}
|
||||
|
||||
.form-select {
|
||||
padding: 7px 35px 7px 11px;
|
||||
background-image: url(../../images/arrow-down.svg);
|
||||
background-size: 20px 20px;
|
||||
background-position: right 8px center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.form-check-group {
|
||||
.form-check {
|
||||
margin-bottom: 11px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-check-label {
|
||||
font-weight: $font-medium;
|
||||
}
|
||||
|
||||
.input-group-row {
|
||||
margin-bottom: 20px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.form-footer {
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid lighten($color-slate-300, 4%);
|
||||
}
|
||||
|
||||
.invalid-feedback,
|
||||
.text-muted {
|
||||
display: block;
|
||||
margin: 3px 0 -5px;
|
||||
}
|
||||
|
||||
.invalid-feedback {
|
||||
font-size: 14px;
|
||||
color: $color-red-500;
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
font-size: 14px;
|
||||
color: lighten($color-gray-500, 10%) !important;
|
||||
}
|
||||
34
resources/sass/install/components/_table.scss
Normal file
34
resources/sass/install/components/_table.scss
Normal file
@@ -0,0 +1,34 @@
|
||||
.table {
|
||||
tr {
|
||||
&:first-child {
|
||||
td {
|
||||
padding-top: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
&:first-child {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
padding-right: 0;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
th {
|
||||
font-weight: $font-semi-bold;
|
||||
color: $color-gray-700;
|
||||
border-color: $color-slate-200;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 4px;
|
||||
color: $color-gray-600;
|
||||
border-bottom: none;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
20
resources/sass/install/main.scss
Normal file
20
resources/sass/install/main.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
@import "bootstrap/scss/bootstrap";
|
||||
@import "@mdi/font/css/materialdesignicons";
|
||||
@import "simplebar-vue/dist/simplebar.min";
|
||||
@import "animate.css/animate";
|
||||
@import "abstracts/_variables";
|
||||
@import "base/_reset";
|
||||
@import "base/_typography";
|
||||
@import "components/_button";
|
||||
@import "components/_form";
|
||||
@import "components/_table";
|
||||
@import "components/_alert";
|
||||
@import "pages/_install";
|
||||
|
||||
[v-cloak] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.cursor-pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
537
resources/sass/install/pages/_install.scss
Normal file
537
resources/sass/install/pages/_install.scss
Normal file
@@ -0,0 +1,537 @@
|
||||
.installer-wrapper {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
.installer-box {
|
||||
height: 560px;
|
||||
width: 850px;
|
||||
min-width: 850px;
|
||||
margin: 50px 0;
|
||||
background: #ffffff;
|
||||
border: 5px solid $color-slate-100;
|
||||
border-radius: $radius-default;
|
||||
box-shadow: 0 10px 50px -3px rgb(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.installer-left-sidebar {
|
||||
width: 260px;
|
||||
min-width: 260px;
|
||||
padding: 25px 20px 20px 16px;
|
||||
background: $color-slate-100;
|
||||
|
||||
.logo {
|
||||
svg {
|
||||
width: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
.step-list {
|
||||
margin: 45px 0 auto;
|
||||
}
|
||||
|
||||
.step-list-item {
|
||||
margin-bottom: 25px;
|
||||
z-index: 0;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&:not(:last-child):before,
|
||||
&:not(:last-child):after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 20px;
|
||||
width: 2px;
|
||||
}
|
||||
|
||||
&:not(:last-child):before {
|
||||
height: 130%;
|
||||
background: $color-slate-300;
|
||||
opacity: 0.4;
|
||||
z-index: -20;
|
||||
}
|
||||
|
||||
&:not(:last-child):after {
|
||||
height: 0%;
|
||||
background: $color-primary-500;
|
||||
opacity: 0.3;
|
||||
transition: 300ms ease-out;
|
||||
z-index: -10;
|
||||
}
|
||||
|
||||
&.active {
|
||||
.icon {
|
||||
color: $color-primary-500;
|
||||
background: $color-slate-100;
|
||||
border-color: $color-primary-500;
|
||||
|
||||
.circle {
|
||||
background: $color-primary-500;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
color: $color-gray-800;
|
||||
}
|
||||
|
||||
.excerpt {
|
||||
color: $color-gray-500;
|
||||
}
|
||||
}
|
||||
|
||||
&.complete {
|
||||
&:not(:last-child):after {
|
||||
height: 130%;
|
||||
}
|
||||
|
||||
.icon {
|
||||
color: #ffffff;
|
||||
background: $color-primary-500;
|
||||
border-color: $color-primary-500;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
height: 22px;
|
||||
width: 22px;
|
||||
min-width: 22px;
|
||||
margin: 1px 15px 0 0;
|
||||
color: darken($color-slate-300, 10%);
|
||||
background: $color-slate-100;
|
||||
border: 2px solid $color-slate-300;
|
||||
transition: $transition-default;
|
||||
|
||||
.circle {
|
||||
height: 14px;
|
||||
width: 14px;
|
||||
background: darken($color-slate-300, 10%);
|
||||
}
|
||||
|
||||
.mdi {
|
||||
-webkit-text-stroke-width: 0.5px;
|
||||
transition: $transition-default;
|
||||
}
|
||||
}
|
||||
|
||||
.cursor-pointer {
|
||||
.title {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-bottom: 4px;
|
||||
color: $color-gray-500;
|
||||
}
|
||||
|
||||
.excerpt {
|
||||
font-size: 13px;
|
||||
color: $color-gray-400;
|
||||
}
|
||||
}
|
||||
|
||||
.app-version {
|
||||
font-size: 13px;
|
||||
font-weight: $font-medium;
|
||||
color: $color-gray-500;
|
||||
}
|
||||
}
|
||||
|
||||
.installer-main-content {
|
||||
padding: 20px 20px 14px;
|
||||
border-radius: 0 $radius-default 0 0;
|
||||
|
||||
.header {
|
||||
margin-bottom: 20px;
|
||||
|
||||
h3 {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.has-scrollable-content {
|
||||
height: calc(100% - 48px);
|
||||
}
|
||||
|
||||
.content {
|
||||
border: 1px solid $color-slate-200;
|
||||
border-radius: $radius-default;
|
||||
}
|
||||
|
||||
.scrollable-content {
|
||||
left: 0;
|
||||
top: 1px;
|
||||
bottom: 1px;
|
||||
width: 100%;
|
||||
padding: 2px 15px 4px;
|
||||
}
|
||||
|
||||
.box {
|
||||
&:last-child {
|
||||
.table {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.table {
|
||||
margin-bottom: 10px;
|
||||
|
||||
.mdi {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.mdi-checkbox-marked-circle {
|
||||
color: $color-green-500;
|
||||
}
|
||||
|
||||
.mdi-close-circle {
|
||||
color: $color-red-500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.configuration {
|
||||
.scrollable-content {
|
||||
padding: 9px 15px 0;
|
||||
}
|
||||
|
||||
.alert {
|
||||
margin-top: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.configuration-form {
|
||||
.box {
|
||||
margin-bottom: 10px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
|
||||
> div {
|
||||
&:last-child {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.complete {
|
||||
height: 100%;
|
||||
|
||||
.check-icon {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
position: relative;
|
||||
margin-bottom: 25px;
|
||||
border-radius: $radius-full;
|
||||
box-sizing: content-box;
|
||||
border: 4px solid $color-primary-500;
|
||||
|
||||
&::before {
|
||||
top: 3px;
|
||||
left: -2px;
|
||||
width: 30px;
|
||||
transform-origin: 100% 50%;
|
||||
border-radius: 100px 0 0 100px;
|
||||
}
|
||||
|
||||
&::after {
|
||||
top: 0;
|
||||
left: 30px;
|
||||
width: 60px;
|
||||
transform-origin: 0 50%;
|
||||
border-radius: 0 100px 100px 0;
|
||||
animation: rotate-circle 4.25s ease-in;
|
||||
}
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: "";
|
||||
height: 100px;
|
||||
position: absolute;
|
||||
background: $color-white;
|
||||
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
.icon-line {
|
||||
height: 5px;
|
||||
background-color: $color-primary-500;
|
||||
display: block;
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
|
||||
&.line-tip {
|
||||
top: 46px;
|
||||
left: 14px;
|
||||
width: 25px;
|
||||
transform: rotate(45deg);
|
||||
animation: icon-line-tip 0.75s;
|
||||
}
|
||||
|
||||
&.line-long {
|
||||
top: 38px;
|
||||
right: 8px;
|
||||
width: 47px;
|
||||
transform: rotate(-45deg);
|
||||
animation: icon-line-long 0.75s;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-circle {
|
||||
top: -4px;
|
||||
left: -4px;
|
||||
z-index: 10;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: $radius-full;
|
||||
position: absolute;
|
||||
box-sizing: content-box;
|
||||
border: 4px solid rgba(0, 104, 225, 0.5);
|
||||
}
|
||||
|
||||
.icon-fix {
|
||||
top: 8px;
|
||||
width: 5px;
|
||||
left: 26px;
|
||||
z-index: 1;
|
||||
height: 85px;
|
||||
position: absolute;
|
||||
transform: rotate(-45deg);
|
||||
background-color: $color-white;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-bottom: 50px;
|
||||
animation-delay: 1s;
|
||||
}
|
||||
|
||||
.links {
|
||||
animation-delay: 1.3s;
|
||||
|
||||
li {
|
||||
&:last-child {
|
||||
margin-left: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.link {
|
||||
height: 135px;
|
||||
width: 150px;
|
||||
text-decoration: none;
|
||||
background: $color-white;
|
||||
border: 1px solid $color-slate-200;
|
||||
border-radius: $radius-default;
|
||||
transition: $transition-default;
|
||||
|
||||
&:hover {
|
||||
background: $color-primary-500;
|
||||
border-color: $color-primary-500;
|
||||
|
||||
.mdi,
|
||||
b {
|
||||
color: $color-white;
|
||||
}
|
||||
}
|
||||
|
||||
.mdi {
|
||||
font-size: 60px;
|
||||
margin-top: 4px;
|
||||
color: lighten($color-slate-600, 3%);
|
||||
transition: $transition-default;
|
||||
}
|
||||
|
||||
b {
|
||||
color: $color-slate-500;
|
||||
transition: $transition-default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
margin-top: 14px;
|
||||
|
||||
.btn-light {
|
||||
margin-right: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes rotate-circle {
|
||||
0% {
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
5% {
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
12% {
|
||||
transform: rotate(-405deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(-405deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes icon-line-tip {
|
||||
0% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px;
|
||||
}
|
||||
|
||||
54% {
|
||||
width: 0;
|
||||
left: 1px;
|
||||
top: 19px;
|
||||
}
|
||||
|
||||
70% {
|
||||
width: 50px;
|
||||
left: -8px;
|
||||
top: 37px;
|
||||
}
|
||||
|
||||
84% {
|
||||
width: 17px;
|
||||
left: 21px;
|
||||
top: 48px;
|
||||
}
|
||||
|
||||
100% {
|
||||
width: 25px;
|
||||
left: 14px;
|
||||
top: 45px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes icon-line-long {
|
||||
0% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px;
|
||||
}
|
||||
|
||||
65% {
|
||||
width: 0;
|
||||
right: 46px;
|
||||
top: 54px;
|
||||
}
|
||||
|
||||
84% {
|
||||
width: 55px;
|
||||
right: 0px;
|
||||
top: 35px;
|
||||
}
|
||||
|
||||
100% {
|
||||
width: 47px;
|
||||
right: 8px;
|
||||
top: 38px;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(lg) {
|
||||
.installer-box {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
html,
|
||||
body {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.installer-box {
|
||||
height: auto;
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.installer-left-sidebar {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
padding: 20px 15px !important;
|
||||
|
||||
.step-list {
|
||||
margin: 40px 0 40px -2px;
|
||||
}
|
||||
}
|
||||
|
||||
.installer-main-content {
|
||||
padding: 15px;
|
||||
|
||||
.has-scrollable-content {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.content {
|
||||
height: 430px;
|
||||
}
|
||||
|
||||
.configuration-form {
|
||||
.title {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
&.form-horizontal {
|
||||
.form-group {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.col-form-label {
|
||||
margin-bottom: 5px;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.complete {
|
||||
padding: 40px 0;
|
||||
|
||||
.title {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.75rem;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.links {
|
||||
li:last-child {
|
||||
margin-left: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.link {
|
||||
height: 100px;
|
||||
width: 110px;
|
||||
|
||||
.mdi {
|
||||
font-size: 36px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,38 +1,30 @@
|
||||
@extends('install.layout')
|
||||
<div class="complete d-flex flex-column justify-content-center align-items-center" v-if="appInstalled" v-cloak>
|
||||
<div class="check-icon">
|
||||
<span class="icon-line line-tip"></span>
|
||||
<span class="icon-line line-long"></span>
|
||||
|
||||
@section('content')
|
||||
<h2>3. Complete</h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="installation-message text-center">
|
||||
<i class="fa fa-check-circle-o" aria-hidden="true"></i>
|
||||
<h3>FleetCart installed successfully!</h3>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<div class="visit-wrapper text-center clearfix">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<a href="{{ url('/') }}" class="visit text-center" target="_blank">
|
||||
<div class="icon">
|
||||
<i class="fa fa-desktop" aria-hidden="true"></i>
|
||||
</div>
|
||||
|
||||
<h5>Go to Your Shop</h5>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<a href="{{ url('admin') }}" class="visit text-center" target="_blank">
|
||||
<div class="icon">
|
||||
<i class="fa fa-cog" aria-hidden="true"></i>
|
||||
</div>
|
||||
|
||||
<h5>Login to Administration</h5>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="icon-circle"></div>
|
||||
<div class="icon-fix"></div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
<h3 class="title text-center animate__animated animate__fadeInUp">Installed Successfully!</h3>
|
||||
|
||||
<ul class="links list-inline d-flex animate__animated animate__fadeInUp">
|
||||
<li>
|
||||
<a href="{{ url('admin') }}" target="_blank" class="link d-block text-center">
|
||||
<span class="mdi mdi-account-cog d-inline-block"></span>
|
||||
<span class="d-block">
|
||||
<b>Admin Panel</b>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ url('/') }}" target="_blank" class="link d-block text-center">
|
||||
<span class="mdi mdi-storefront-outline d-inline-block"></span>
|
||||
<span class="d-block">
|
||||
<b>Store</b>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -1,264 +1,462 @@
|
||||
@extends('install.layout')
|
||||
<div class="has-scrollable-content configuration d-flex flex-column" v-else-if="step === 3 && !appInstalled" v-cloak>
|
||||
<div class="header overflow-hidden">
|
||||
<h3>Configuration</h3>
|
||||
<p class="excerpt">Please configure your application with necessary information and credentials.</p>
|
||||
</div>
|
||||
|
||||
@section('content')
|
||||
@if (session()->has('error'))
|
||||
<div class="alert alert-danger fade in alert-dismissable">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="content position-relative flex-grow-1 overflow-hidden">
|
||||
<simplebar class="scrollable-content position-absolute" data-simplebar-auto-hide="false" ref="configurationContent">
|
||||
<div
|
||||
class="alert alert-danger alert-dismissible show fade"
|
||||
:class="{
|
||||
'animate__animated animate__headShake': animateAlert
|
||||
}"
|
||||
role="alert"
|
||||
v-if="hasErrorMessage"
|
||||
>
|
||||
<span v-html="errorMessage"></span>
|
||||
|
||||
<h2>2. Configuration</h2>
|
||||
|
||||
<form method="POST" action="{{ route('install.configuration.post') }}" class="form-horizontal">
|
||||
{{ csrf_field() }}
|
||||
|
||||
<div class="box">
|
||||
<p>Please enter your database connection details.</p>
|
||||
|
||||
<div class="configure-form">
|
||||
<div class="form-group {{ $errors->has('db.host') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="host">Host <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="db[host]" value="{{ old('db.host', '127.0.0.1') }}" id="host" class="form-control" autofocus>
|
||||
|
||||
{!! $errors->first('db.host', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('db.port') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="port">Port <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="db[port]" value="{{ old('db.port', '3306') }}" id="port" class="form-control">
|
||||
|
||||
{!! $errors->first('db.port', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('db.username') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="db-username">DB Username <span>*</span></label>
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="db[username]" value="{{ old('db.username') }}" id="db-username" class="form-control">
|
||||
|
||||
{!! $errors->first('db.username', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-3" for="db-password">DB Password</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="password" name="db[password]" value="{{ old('db.password') }}" id="db-password" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('db.database') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="database">Database <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="db[database]" value="{{ old('db.database') }}" id="database" class="form-control">
|
||||
|
||||
{!! $errors->first('db.database', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="btn-close"
|
||||
data-bs-dismiss="alert"
|
||||
aria-label="Close"
|
||||
@click="resetErrorMessage"
|
||||
>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<p>Please enter a username and password for the administration.</p>
|
||||
|
||||
<div class="configure-form">
|
||||
<div class="form-group {{ $errors->has('admin.first_name') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="admin-first-name">First Name <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="admin[first_name]" value="{{ old('admin.first_name') }}" id="admin-first-name" class="form-control">
|
||||
|
||||
{!! $errors->first('admin.first_name', '<span class="help-block">:message</span>') !!}
|
||||
<form
|
||||
class="configuration-form form-horizontal"
|
||||
@input="errors.clear($event.target.name)"
|
||||
ref="configurationForm"
|
||||
>
|
||||
<div class="box overflow-hidden">
|
||||
<div class="title">
|
||||
<h5>Database</h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('admin.last_name') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="admin-last-name">Last Name <span>*</span></label>
|
||||
<div class="row form-group">
|
||||
<label for="db_host" class="col-md-3 col-form-label">
|
||||
Host <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="admin[last_name]" value="{{ old('admin.last_name') }}" id="admin-last-name" class="form-control">
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="db_host"
|
||||
id="db_host"
|
||||
class="form-control"
|
||||
v-model="form.db_host"
|
||||
>
|
||||
|
||||
{!! $errors->first('admin.last_name', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('admin.email') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="admin-email">Email <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="admin[email]" value="{{ old('admin.email') }}" id="admin-email" class="form-control">
|
||||
|
||||
{!! $errors->first('admin.email', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('admin.phone') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="admin-phone">Phone <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="admin[phone]" value="{{ old('admin.phone') }}" id="admin-phone" class="form-control">
|
||||
|
||||
{!! $errors->first('admin.phone', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('admin.password') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="admin-password">Password <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="password" name="admin[password]" id="admin-password" class="form-control">
|
||||
|
||||
{!! $errors->first('admin.password', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label col-sm-3" for="admin-confirm-password">Confirm Password <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="password" name="admin[password_confirmation]" id="admin-confirm-password" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<p>Please enter your store details.</p>
|
||||
|
||||
<div class="configure-form p-b-0">
|
||||
<div class="form-group {{ $errors->has('store.store_name') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="store-name">Store Name <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="store[store_name]" value="{{ old('store.store_name') }}" id="store-name" class="form-control">
|
||||
|
||||
{!! $errors->first('store.store_name', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('store.store_email') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="store-email">Store Email <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="store[store_email]" value="{{ old('store.store_email') }}" id="store-email" class="form-control">
|
||||
|
||||
{!! $errors->first('store.store_email', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('store.store_phone') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="store-phone">Store Phone <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="store[store_phone]" value="{{ old('store.store_phone') }}" id="store-phone" class="form-control">
|
||||
|
||||
{!! $errors->first('store.store_phone', '<span class="help-block">:message</span>') !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('store.search_engine') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="store-search-engine">Search Engine <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<select name="store[search_engine]" class="form-control custom-select-black" id="store-search-engine">
|
||||
<option value="mysql" {{ old('store.search_engine') === 'mysql' ? 'selected' : '' }}>
|
||||
MySQL
|
||||
</option>
|
||||
|
||||
<option value="algolia" {{ old('store.search_engine') === 'algolia' ? 'selected' : '' }}>
|
||||
Algolia
|
||||
</option>
|
||||
|
||||
<option value="meilisearch" {{ old('store.search_engine') === 'meilisearch' ? 'selected' : '' }}>
|
||||
MeiliSearch
|
||||
</option>
|
||||
</select>
|
||||
|
||||
@if ($errors->has('store.search_engine'))
|
||||
{!! $errors->first('store.search_engine', '<span class="help-block">:message</span>') !!}
|
||||
@else
|
||||
<span class="help-block">You cannot change the search engine later.</span>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="{{ old('store.search_engine') === 'algolia' ? '' : 'hide' }}" id="algolia-fields">
|
||||
<div class="form-group {{ $errors->has('store.algolia_app_id') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="store-algolia-app-id">Algolia Application ID <span>*</span></label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="store[algolia_app_id]" value="{{ old('store.algolia_app_id') }}" id="store-algolia-app-id" class="form-control">
|
||||
|
||||
{!! $errors->first('store.algolia_app_id', '<span class="help-block">:message</span>') !!}
|
||||
<span class="invalid-feedback" v-if="errors.has('db_host')">
|
||||
@{{ errors.get('db_host') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('store.algolia_secret') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="store-algolia-secret">Algolia Admin API Key <span>*</span></label>
|
||||
<div class="row form-group">
|
||||
<label for="db_port" class="col-md-3 col-form-label">
|
||||
Port <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="password" name="store[algolia_secret]" value="{{ old('store.algolia_secret') }}" id="store-algolia-secret" class="form-control">
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="db_port"
|
||||
id="db_port"
|
||||
class="form-control"
|
||||
v-model="form.db_port"
|
||||
>
|
||||
|
||||
{!! $errors->first('store.algolia_secret', '<span class="help-block">:message</span>') !!}
|
||||
<span class="invalid-feedback" v-if="errors.has('db_port')">
|
||||
@{{ errors.get('db_port') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="db_username" class="col-md-3 col-form-label">
|
||||
Username <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="db_username"
|
||||
id="db_username"
|
||||
class="form-control"
|
||||
v-model="form.db_username"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('db_username')">
|
||||
@{{ errors.get('db_username') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="db_password" class="col-md-3 col-form-label">
|
||||
Password
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="password"
|
||||
autocomplete="off"
|
||||
name="db_password"
|
||||
id="db_password"
|
||||
class="form-control"
|
||||
v-model="form.db_password"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('db_password')">
|
||||
@{{ errors.get('db_password') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="db_database" class="col-md-3 col-form-label">
|
||||
Database <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="db_database"
|
||||
id="db_database"
|
||||
class="form-control"
|
||||
v-model="form.db_database"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('db_database')">
|
||||
@{{ errors.get('db_database') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="{{ old('store.search_engine') === 'meilisearch' ? '' : 'hide' }}" id="meilisearch-fields">
|
||||
<div class="form-group {{ $errors->has('store.meilisearch_host') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="meilisearch-host">MeiliSearch Host <span>*</span></label>
|
||||
<div class="box overflow-hidden">
|
||||
<div class="title">
|
||||
<h5>Admin</h5>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="text" name="store[meilisearch_host]" value="{{ old('store.meilisearch_host') }}" id="meilisearch-host" class="form-control">
|
||||
<div class="row form-group">
|
||||
<label for="admin_first_name" class="col-md-3 col-form-label">
|
||||
First Name <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
{!! $errors->first('store.meilisearch_host', '<span class="help-block">:message</span>') !!}
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="admin_first_name"
|
||||
id="admin_first_name"
|
||||
class="form-control"
|
||||
v-model="form.admin_first_name"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('admin_first_name')">
|
||||
@{{ errors.get('admin_first_name') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('store.meilisearch_key') ? 'has-error': '' }}">
|
||||
<label class="control-label col-sm-3" for="meilisearch-key">MeiliSearch Key <span>*</span></label>
|
||||
<div class="row form-group">
|
||||
<label for="admin_last_name" class="col-md-3 col-form-label">
|
||||
Last Name <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-sm-9">
|
||||
<input type="password" name="store[meilisearch_key]" value="{{ old('store.meilisearch_key') }}" id="meilisearch-key" class="form-control">
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="admin_last_name"
|
||||
id="admin_last_name"
|
||||
class="form-control"
|
||||
v-model="form.admin_last_name"
|
||||
>
|
||||
|
||||
{!! $errors->first('store.meilisearch_key', '<span class="help-block">:message</span>') !!}
|
||||
<span class="invalid-feedback" v-if="errors.has('admin_last_name')">
|
||||
@{{ errors.get('admin_last_name') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="admin_email" class="col-md-3 col-form-label">
|
||||
Email <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="email"
|
||||
autocomplete="off"
|
||||
name="admin_email"
|
||||
id="admin_email"
|
||||
class="form-control"
|
||||
v-model="form.admin_email"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('admin_email')">
|
||||
@{{ errors.get('admin_email') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="admin_phone" class="col-md-3 col-form-label">
|
||||
Phone <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="admin_phone"
|
||||
id="admin_phone"
|
||||
class="form-control"
|
||||
v-model="form.admin_phone"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('admin_phone')">
|
||||
@{{ errors.get('admin_phone') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="admin_password" class="col-md-3 col-form-label">
|
||||
Password <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="password"
|
||||
autocomplete="off"
|
||||
name="admin_password"
|
||||
id="admin_password"
|
||||
class="form-control"
|
||||
v-model="form.admin_password"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('admin_password')">
|
||||
@{{ errors.get('admin_password') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="admin_password_confirmation" class="col-md-3 col-form-label">
|
||||
Confirm Password <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="password"
|
||||
autocomplete="off"
|
||||
name="admin_password_confirmation"
|
||||
id="admin_password_confirmation"
|
||||
class="form-control"
|
||||
v-model="form.admin_password_confirmation"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('admin_password_confirmation')">
|
||||
@{{ errors.get('admin_password_confirmation') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-buttons clearfix">
|
||||
<button type="submit" class="btn btn-primary pull-right install-button">Install</button>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
<div class="box overflow-hidden">
|
||||
<div class="title">
|
||||
<h5>Store</h5>
|
||||
</div>
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
$('#store-search-engine').on('change', function () {
|
||||
$('#algolia-fields, #meilisearch-fields').addClass('hide');
|
||||
<div class="row form-group">
|
||||
<label for="store_name" class="col-md-3 col-form-label">
|
||||
Name <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
if (this.value === 'algolia') {
|
||||
$('#algolia-fields').removeClass('hide');
|
||||
} else if (this.value === 'meilisearch') {
|
||||
$('#meilisearch-fields').removeClass('hide');
|
||||
}
|
||||
});
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="store_name"
|
||||
id="store_name"
|
||||
class="form-control"
|
||||
v-model="form.store_name"
|
||||
>
|
||||
|
||||
$('.install-button').on('click', function (e) {
|
||||
var button = $(e.currentTarget);
|
||||
<span class="invalid-feedback" v-if="errors.has('store_name')">
|
||||
@{{ errors.get('store_name') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
button.data('loading-text', button.html())
|
||||
.addClass('btn-loading')
|
||||
.button('loading');
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
<div class="row form-group">
|
||||
<label for="store_email" class="col-md-3 col-form-label">
|
||||
Email <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="email"
|
||||
autocomplete="off"
|
||||
name="store_email"
|
||||
id="store_email"
|
||||
class="form-control"
|
||||
v-model="form.store_email"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('store_email')">
|
||||
@{{ errors.get('store_email') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="store_phone" class="col-md-3 col-form-label">
|
||||
Phone <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="store_phone"
|
||||
id="store_phone"
|
||||
class="form-control"
|
||||
v-model="form.store_phone"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('store_phone')">
|
||||
@{{ errors.get('store_phone') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="store_search_engine" class="col-md-3 col-form-label">
|
||||
Search Engine <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<select
|
||||
name="store_search_engine"
|
||||
id="store_search_engine"
|
||||
class="form-select"
|
||||
@change="scrollToBottom($event.target.value)"
|
||||
v-model="form.store_search_engine"
|
||||
>
|
||||
<option value="mysql">MySQL</option>
|
||||
<option value="algolia">Algolia</option>
|
||||
<option value="meilisearch">Meilisearch</option>
|
||||
</select>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('store_search_engine')">
|
||||
@{{ errors.get('store_search_engine') }}
|
||||
</span>
|
||||
|
||||
<span class="text-muted" v-else>You cannot change the search engine later.</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<template v-if="form.store_search_engine === 'algolia'">
|
||||
<div class="row form-group">
|
||||
<label for="algolia_app_id" class="col-md-3 col-form-label">
|
||||
Algolia Application ID <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="algolia_app_id"
|
||||
id="algolia_app_id"
|
||||
class="form-control"
|
||||
v-model="form.algolia_app_id"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('algolia_app_id')">
|
||||
@{{ errors.get('algolia_app_id') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="algolia_secret" class="col-md-3 col-form-label">
|
||||
Algolia Admin API Key <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="password"
|
||||
autocomplete="off"
|
||||
name="algolia_secret"
|
||||
id="algolia_secret"
|
||||
class="form-control"
|
||||
v-model="form.algolia_secret"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('algolia_secret')">
|
||||
@{{ errors.get('algolia_secret') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-if="form.store_search_engine === 'meilisearch'">
|
||||
<div class="row form-group">
|
||||
<label for="meilisearch_host" class="col-md-3 col-form-label">
|
||||
Meilisearch Host <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
name="meilisearch_host"
|
||||
id="meilisearch_host"
|
||||
class="form-control"
|
||||
v-model="form.meilisearch_host"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('meilisearch_host')">
|
||||
@{{ errors.get('meilisearch_host') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row form-group">
|
||||
<label for="meilisearch_key" class="col-md-3 col-form-label">
|
||||
Meilisearch Key <span class="required">*</span>
|
||||
</label>
|
||||
|
||||
<div class="col-md-9">
|
||||
<input
|
||||
type="password"
|
||||
autocomplete="off"
|
||||
name="meilisearch_key"
|
||||
id="meilisearch_key"
|
||||
class="form-control"
|
||||
v-model="form.meilisearch_key"
|
||||
>
|
||||
|
||||
<span class="invalid-feedback" v-if="errors.has('meilisearch_key')">
|
||||
@{{ errors.get('meilisearch_key') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</form>
|
||||
</simplebar>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
33
resources/views/install/install.blade.php
Normal file
33
resources/views/install/install.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
@extends('install.layout')
|
||||
|
||||
@section('content')
|
||||
@include('install.requirements')
|
||||
@include('install.permissions')
|
||||
@include('install.configuration')
|
||||
@include('install.complete')
|
||||
|
||||
<footer class="footer d-flex justify-content-end" v-if="!appInstalled">
|
||||
<button
|
||||
v-cloak
|
||||
v-if="isShowPrev"
|
||||
type="button"
|
||||
class="btn btn-light"
|
||||
:disabled="isPrevDisabled"
|
||||
@click="prevStep"
|
||||
>
|
||||
Back
|
||||
</button>
|
||||
|
||||
<button
|
||||
v-cloak
|
||||
v-if="step !== 4"
|
||||
type="button"
|
||||
class="btn btn-primary"
|
||||
:class="{ 'btn-loading': formSubmitting }"
|
||||
:disabled="isNextDisabled"
|
||||
@click="nextStep"
|
||||
v-text="step === 3 ? 'Install' : 'Next'"
|
||||
>
|
||||
</button>
|
||||
</footer>
|
||||
@endsection
|
||||
@@ -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>
|
||||
|
||||
60
resources/views/install/permissions.blade.php
Normal file
60
resources/views/install/permissions.blade.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<div class="has-scrollable-content permissions d-flex flex-column" v-else-if="step === 2" v-cloak>
|
||||
<div class="header overflow-hidden">
|
||||
<h3>Permissions</h3>
|
||||
<p class="excerpt">Please make sure that the PHP has proper access to the following files and directories.</p>
|
||||
</div>
|
||||
|
||||
<div class="content position-relative flex-grow-1 overflow-hidden">
|
||||
<simplebar class="scrollable-content position-absolute" data-simplebar-auto-hide="false">
|
||||
<div class="box">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Files</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($permission->files() as $label => $satisfied)
|
||||
<tr>
|
||||
<td>{{ $label }}</td>
|
||||
|
||||
<td>
|
||||
<span class="mdi mdi-{{ $satisfied ? 'checkbox-marked-circle' : 'close-circle' }}"></span>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Directories</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($permission->directories() as $label => $satisfied)
|
||||
<tr>
|
||||
<td>{{ $label }}</td>
|
||||
|
||||
<td>
|
||||
<span class="mdi mdi-{{ $satisfied ? 'checkbox-marked-circle' : 'close-circle' }}"></span>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</simplebar>
|
||||
</div>
|
||||
</div>
|
||||
58
resources/views/install/requirements.blade.php
Normal file
58
resources/views/install/requirements.blade.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<div class="has-scrollable-content requirements d-flex flex-column" v-if="step === 1" v-cloak>
|
||||
<div class="header overflow-hidden">
|
||||
<h3>Requirements</h3>
|
||||
<p class="excerpt">Make sure the appropriate PHP version is installed and required PHP extensions are both installed and enabled.</p>
|
||||
</div>
|
||||
|
||||
<div class="content position-relative flex-grow-1 overflow-hidden">
|
||||
<simplebar class="scrollable-content position-absolute" data-simplebar-auto-hide="false">
|
||||
<div class="box" v-cloak>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>PHP</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($requirement->php() as $label => $satisfied)
|
||||
<tr>
|
||||
<td>{{ $label }}</td>
|
||||
<td>
|
||||
<span class="mdi mdi-{{ $satisfied ? 'checkbox-marked-circle' : 'close-circle' }}"></span>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box" v-cloak>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Extensions</th>
|
||||
<th>Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($requirement->extensions() as $label => $satisfied)
|
||||
<tr>
|
||||
<td>{{ $label }}</td>
|
||||
<td>
|
||||
<span class="mdi mdi-{{ $satisfied ? 'checkbox-marked-circle' : 'close-circle' }}"></span>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</simplebar>
|
||||
</div>
|
||||
</div>
|
||||
418
resources/views/license/create.blade.php
Normal file
418
resources/views/license/create.blade.php
Normal file
@@ -0,0 +1,418 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:600|Roboto:400,500&display=swap" rel="stylesheet">
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
|
||||
|
||||
<title>Activate FleetCart</title>
|
||||
|
||||
<style>
|
||||
html {
|
||||
min-width: 320px;
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Roboto", sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 15px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
background: #f1f3f7;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, ul, li, p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* typography */
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: "Roboto", sans-serif;
|
||||
font-weight: 400;
|
||||
color: #444444;
|
||||
}
|
||||
|
||||
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: 19px;
|
||||
line-height: 23px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
/* form */
|
||||
|
||||
form {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
|
||||
.form-group .input-icon {
|
||||
position: absolute;
|
||||
font-size: 21px;
|
||||
color: #444444;
|
||||
left: 5px;
|
||||
top: 6px;
|
||||
width: 30px;
|
||||
text-align: center;
|
||||
transition: 200ms ease-in-out;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
font-size: 15px;
|
||||
box-shadow: none;
|
||||
height: 40px;
|
||||
padding: 6px 12px;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 3px;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
border-color: rgba(0, 104, 225, 0.8);
|
||||
box-shadow: none;
|
||||
transition: 200ms ease-in-out;
|
||||
}
|
||||
|
||||
.form-control:focus + .input-icon {
|
||||
color: #0068e1;
|
||||
}
|
||||
|
||||
.has-error .form-control,
|
||||
.has-error .form-control:focus {
|
||||
border-color: #ff3366;
|
||||
}
|
||||
|
||||
.has-error .form-control + .input-icon {
|
||||
color: #ff3366;
|
||||
}
|
||||
|
||||
.help-block {
|
||||
display: block;
|
||||
margin-top: 5px;
|
||||
color: #ff3366;
|
||||
}
|
||||
|
||||
.has-error .help-block {
|
||||
color: #ff3366;
|
||||
}
|
||||
|
||||
/* button */
|
||||
|
||||
.btn {
|
||||
font-size: 15px;
|
||||
padding: 10px 20px;
|
||||
color: #ffffff;
|
||||
border: none;
|
||||
border-radius: 3px;
|
||||
cursor: pointer;
|
||||
transition: 200ms ease-in-out;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: #0068e1;
|
||||
border: none;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.btn-primary:active,
|
||||
.btn-primary:hover,
|
||||
.btn-primary:focus,
|
||||
.btn-primary:active:focus {
|
||||
background: #0059bd;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* alert */
|
||||
|
||||
.alert {
|
||||
border: none;
|
||||
color: #555555;
|
||||
font-size: 15px;
|
||||
padding: 12px 15px;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.alert .close {
|
||||
top: 4px;
|
||||
right: 0;
|
||||
outline: 0;
|
||||
opacity: 0.5;
|
||||
color: #626060;
|
||||
text-shadow: none;
|
||||
font-weight: normal;
|
||||
transition: 200ms ease-in-out;
|
||||
}
|
||||
|
||||
.alert .close:hover {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.alert .alert-text {
|
||||
display: block;
|
||||
margin: 6px 20px 0 45px;
|
||||
}
|
||||
|
||||
.alert-icon {
|
||||
float: left;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: table;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.alert-icon > i {
|
||||
font-size: 18px;
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.alert-success {
|
||||
background: #deedee;
|
||||
border-left: 3px solid #37bc9b;
|
||||
}
|
||||
|
||||
.alert-success .alert-icon {
|
||||
background: #c5e6e2;
|
||||
}
|
||||
|
||||
.alert-success .alert-icon > i {
|
||||
color: #37bc9b;
|
||||
}
|
||||
|
||||
.alert-danger {
|
||||
background: #f2e8ee;
|
||||
border-left: 3px solid #ff3366;
|
||||
}
|
||||
|
||||
.alert-danger .alert-icon {
|
||||
background: #f4ced5;
|
||||
}
|
||||
|
||||
.alert-danger .alert-icon > i {
|
||||
color: #ff3366;
|
||||
}
|
||||
|
||||
.login-page {
|
||||
width: 360px;
|
||||
margin: auto;
|
||||
padding: 40px 0;
|
||||
}
|
||||
|
||||
.login-wrapper {
|
||||
position: relative;
|
||||
background: #ffffff;
|
||||
border-radius: 3px;
|
||||
padding: 15px;
|
||||
box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.login-wrapper .bg-blue {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 80px;
|
||||
background: #0068e1;
|
||||
overflow: hidden;
|
||||
border-top-left-radius: 3px;
|
||||
border-top-right-radius: 3px;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.login-wrapper .bg-blue .reflection {
|
||||
position: absolute;
|
||||
left: -105px;
|
||||
top: 0;
|
||||
height: 300px;
|
||||
width: 300px;
|
||||
background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
|
||||
transform: rotate(50deg);
|
||||
}
|
||||
|
||||
.login-wrapper .form-inner {
|
||||
background: #ffffff;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #e9e9e9;
|
||||
margin: 15px 0 0;
|
||||
padding: 0 15px 10px;
|
||||
}
|
||||
|
||||
.login-wrapper h3 {
|
||||
margin: 15px 0;
|
||||
}
|
||||
|
||||
.login-wrapper p {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.login-wrapper .form-group {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.login-wrapper .form-group label > span {
|
||||
color: #fc4b4b;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.login-wrapper .form-control {
|
||||
padding-left: 36px;
|
||||
}
|
||||
|
||||
.login-wrapper button {
|
||||
display: table;
|
||||
margin: 20px auto 5px;
|
||||
padding-left: 60px;
|
||||
padding-right: 60px;
|
||||
}
|
||||
|
||||
.login-wrapper a {
|
||||
display: table;
|
||||
margin-top: 10px;
|
||||
color: #0068e1;
|
||||
}
|
||||
|
||||
.login-wrapper a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.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 #fff;
|
||||
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);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="login-page">
|
||||
@if (session()->has('error'))
|
||||
<div class="alert alert-danger fade in alert-dismissible clearfix">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
|
||||
<div class="alert-icon">
|
||||
<i class="fa fa-exclamation" aria-hidden="true"></i>
|
||||
</div>
|
||||
|
||||
<span class="alert-text">{{ session('error') }}</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="login-wrapper">
|
||||
<div class="bg-blue">
|
||||
<div class="reflection"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-inner clearfix">
|
||||
<h3 class="text-center">Activation</h3>
|
||||
<p class="text-center">Enter your purchase code to activate FleetCart</p>
|
||||
|
||||
<form method="POST" action="{{ route('license.store') }}">
|
||||
@csrf
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" name="purchase_code" class="form-control" placeholder="Purchase Code">
|
||||
|
||||
<div class="input-icon">
|
||||
<i class="fa fa-key" aria-hidden="true"></i>
|
||||
</div>
|
||||
|
||||
{!! $errors->first('purchase_code', '<span class="help-block error">:message</span>') !!}
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary" data-loading>Activate</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(document).on('click', '[data-loading]', function (e) {
|
||||
var button = $(e.currentTarget);
|
||||
|
||||
if (button.is('i')) {
|
||||
button = button.parent();
|
||||
}
|
||||
|
||||
if (button.hasClass('disabled')) {
|
||||
return e.preventDefault();
|
||||
}
|
||||
|
||||
button.data('loading-text', button.html())
|
||||
.addClass('btn-loading')
|
||||
.button('loading');
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user