¨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

@@ -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>

View File

@@ -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>

View 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

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>

View 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>

View 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>