TRF Certest first commit

This commit is contained in:
2025-02-26 08:57:46 +01:00
commit 3ce064a108
2524 changed files with 475404 additions and 0 deletions
@@ -0,0 +1,32 @@
@extends('layouts.install')
@section('content')
@include('install.steps', ['steps' => [
'welcome' => 'selected done',
'requirements' => 'selected done',
'permissions' => 'selected done',
'database' => 'selected done',
'installation' => 'selected done',
'complete' => 'selected'
]])
<div class="step-content">
<h3>Complete!</h3>
<hr>
<p><strong>Well Done!</strong></p>
<p>You application is now successfully installed! You can login by clicking on "Log In" button below.</p>
@if (is_writable(base_path()))
<p><strong>Important!</strong> Since your root directory is still writable,
you can change the permissions to 755 to make it writable only by root user.</p>
@endif
<a class="btn btn-primary float-right" href="{{ url('login') }}">
<i class="fa fa-sign-in"></i>
Log In
</a>
<div class="clearfix"></div>
</div>
@stop
@@ -0,0 +1,52 @@
@extends('layouts.install')
@section('content')
@include('install.steps', ['steps' => [
'welcome' => 'selected done',
'requirements' => 'selected done',
'permissions' => 'selected done',
'database' => 'selected'
]])
@include('partials.messages')
<form action="{{ route('install.installation') }}" method="POST">
@csrf
<div class="step-content">
<h3>Database Info</h3>
<hr>
<div class="form-group">
<label for="host">Host</label>
<input type="text" class="form-control" id="host" name="host" value="{{ old('host') }}">
<small>Database host. Usually you should enter localhost or mysql.</small>
</div>
<div class="form-group">
<label for="username">Username</label>
<input type="text" class="form-control" id="username" name="username" value="{{ old('username') }}">
<small>Your database username.</small>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="password">
<small>Database password for provided username.</small>
</div>
<div class="form-group">
<label for="database">Database Name</label>
<input type="text" class="form-control" id="database" name="database" value="{{ old('database') }}">
<small>Name of database where tables should be created.</small>
</div>
<div class="form-group">
<label for="prefix">Tables Prefix</label>
<input type="text" class="form-control" id="prefix" name="prefix" value="{{ old('prefix') }}">
<small>Prefix to put in front of database table names. You can leave it blank if you want.</small>
</div>
<button class="btn btn-green float-right mt-3">
Next
<i class="fa fa-arrow-right"></i>
</button>
<div class="clearfix"></div>
</div>
</form>
@stop
+27
View File
@@ -0,0 +1,27 @@
@extends('layouts.install')
@section('content')
@include('install.steps', ['steps' => [
'welcome' => 'selected done',
'requirements' => 'selected done',
'permissions' => 'selected done',
'database' => 'selected done',
'installation' => 'selected done',
'complete' => 'selected error'
]])
<div class="step-content">
<h3>Whoops!</h3>
<hr>
<p><strong>There was something wrong during the installation!</strong></p>
<p>Please check your log located inside <code>storage/logs</code> directory to see what's going on.</p>
<a class="btn btn-primary float-right mt-3" href="{{ route('install.start') }}">
<i class="fa fa-undo"></i>
Try Again
</a>
<div class="clearfix"></div>
</div>
@stop
@@ -0,0 +1,31 @@
@extends('layouts.install')
@section('content')
@include('install.steps', ['steps' => [
'welcome' => 'selected done',
'requirements' => 'selected done',
'permissions' => 'selected done',
'database' => 'selected done',
'installation' => 'selected'
]])
<form action="{{ route('install.install') }}" method="POST">
@csrf
<div class="step-content">
<h3>Installation</h3>
<hr>
<p>Vanguard is ready to be installed!</p>
<p>Before you proceed, please provide the name for your application below:</p>
<div class="form-group">
<label for="app_name">App Name</label>
<input type="text" class="form-control" id="app_name" name="app_name" value="Vanguard">
</div>
<button class="btn btn-green pull-right" data-toggle="loader" data-loading-text="Installing" type="submit">
<i class="fa fa-play"></i>
Install
</button>
<div class="clearfix"></div>
</div>
</form>
@stop
@@ -0,0 +1,35 @@
@extends('layouts.install')
@section('content')
@include('install.steps', ['steps' => [
'welcome' => 'selected done',
'requirements' => 'selected done',
'permissions' => 'selected'
]])
<div class="step-content">
<h3>Permissions</h3>
<hr>
<ul class="list-group mb-4">
@foreach($folders as $path => $isWritable)
<li class="list-group-item">
{{ $path }}
@if ($isWritable)
<span class="badge badge-secondary float-right ml-2">775</span>
<span class="badge badge-success float-right"><i class="fa fa-check"></i></span>
@else
<span class="badge badge-secondary float-right ml-2">775</span>
<span class="badge badge-danger float-right"><i class="fa fa-times"></i></span>
@endif
</li>
@endforeach
</ul>
<a class="btn btn-green float-right" href="{{ route('install.database') }}">
Next
<i class="fa fa-arrow-right"></i>
</a>
<div class="clearfix"></div>
</div>
@stop
@@ -0,0 +1,41 @@
@extends('layouts.install')
@section('content')
@include('install.steps', ['steps' => ['welcome' => 'selected done', 'requirements' => 'selected']])
@if (! $allLoaded)
<div class="alert alert-danger">
<strong>Oh snap!</strong> Your system does not meet the requirements. You have to fix them in order to continue.
</div>
@endif
<div class="step-content">
<h3>System Requirements</h3>
<hr>
<ul class="list-group mb-4">
@foreach ($requirements as $extension => $loaded)
<li class="list-group-item {{ ! $loaded ? 'list-group-item-danger' : '' }}">
{{ $extension }}
@if ($loaded)
<span class="badge badge-success float-right"><i class="fa fa-check"></i></span>
@else
<span class="badge badge-danger float-right"><i class="fa fa-times"></i></span>
@endif
</li>
@endforeach
</ul>
@if ($allLoaded)
<a class="btn btn-green float-right" href="{{ route('install.permissions') }}">
Next
<i class="fa fa-arrow-right"></i>
</a>
@else
<button class="btn btn-green pull-right" disabled>
Next
<i class="fa fa-arrow-right"></i>
</button>
@endif
<div class="clearfix"></div>
</div>
@stop
+20
View File
@@ -0,0 +1,20 @@
@extends('layouts.install')
@section('content')
@include('install.steps', ['steps' => ['welcome' => 'selected']])
<div class="step-content">
<h3>Welcome</h3>
<hr>
<p>This steps will guide you through few step installation process.</p>
<p>When this installation process is finished, you will be able
to login and manage your users immediately! </p>
<br>
<a href="{{ route('install.requirements') }}" class="btn btn-primary float-right" role="button">
Next
<i class="fa fa-arrow-right"></i>
</a>
<div class="clearfix"></div>
</div>
@stop
+40
View File
@@ -0,0 +1,40 @@
<div class="steps">
<ul>
<li>
<a class="{{ isset($steps['welcome']) ? $steps['welcome'] : '' }}">
<div class="stepNumber"><i class="fa fa-home"></i></div>
<span class="stepDesc text-small">Welcome</span>
</a>
</li>
<li>
<a class="{{ isset($steps['requirements']) ? $steps['requirements'] : '' }}">
<div class="stepNumber"><i class="fa fa-list"></i></div>
<span class="stepDesc text-small">System Requirements</span>
</a>
</li>
<li>
<a class="{{ isset($steps['permissions']) ? $steps['permissions'] : '' }}">
<div class="stepNumber"><i class="fa fa-lock"></i></div>
<span class="stepDesc text-small">Permissions</span>
</a>
</li>
<li>
<a class="{{ isset($steps['database']) ? $steps['database'] : '' }}">
<div class="stepNumber"><i class="fa fa-database"></i></div>
<span class="stepDesc text-small">Database Info</span>
</a>
</li>
<li>
<a class="{{ isset($steps['installation']) ? $steps['installation'] : '' }}">
<div class="stepNumber"><i class="fa fa-terminal"></i></div>
<span class="stepDesc text-small">Installation</span>
</a>
</li>
<li>
<a class="{{ isset($steps['complete']) ? $steps['complete'] : '' }}">
<div class="stepNumber"><i class="fa fa-flag-checkered"></i></div>
<span class="stepDesc text-small">Complete</span>
</a>
</li>
</ul>
</div>