v2 first commit
This commit is contained in:
@ -3,35 +3,13 @@
|
||||
@section('header', trans('install.steps.database'))
|
||||
|
||||
@section('content')
|
||||
{{ Form::textGroup('hostname', trans('install.database.hostname'), 'server', ['required' => 'required'], old('hostname', 'localhost'), 'col-md-12') }}
|
||||
<div class="row">
|
||||
{{ Form::textGroup('hostname', trans('install.database.hostname'), 'server', ['required' => 'required'], old('hostname', 'localhost'), 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('username', trans('install.database.username'), 'user', ['required' => 'required'], old('username'), 'col-md-12') }}
|
||||
{{ Form::textGroup('username', trans('install.database.username'), 'user', ['required' => 'required'], old('username'), 'col-md-12') }}
|
||||
|
||||
{{ Form::passwordGroup('password', trans('install.database.password'), 'key', [], old('password'), 'col-md-12') }}
|
||||
{{ Form::passwordGroup('password', trans('install.database.password'), 'key', [], 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('database', trans('install.database.name'), 'database', ['required' => 'required'], old('database'), 'col-md-12') }}
|
||||
{{ Form::textGroup('database', trans('install.database.name'), 'database', ['required' => 'required'], old('database'), 'col-md-12 mb--2') }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#next-button').attr('disabled', true);
|
||||
|
||||
$('#hostname, #username, #database').keyup(function() {
|
||||
inputCheck();
|
||||
});
|
||||
});
|
||||
|
||||
function inputCheck() {
|
||||
hostname = $('#hostname').val();
|
||||
username = $('#username').val();
|
||||
database = $('#database').val();
|
||||
|
||||
if (hostname != '' && username != '' && database != '') {
|
||||
$('#next-button').attr('disabled', false);
|
||||
} else {
|
||||
$('#next-button').attr('disabled', true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
@ -3,13 +3,15 @@
|
||||
@section('header', trans('install.steps.language'))
|
||||
|
||||
@section('content')
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<select name="lang" id="lang" size="17" class="form-control">
|
||||
@foreach (language()->allowed() as $code => $name)
|
||||
<option value="{{ $code }}" @if ($code == 'en-GB') {{ 'selected="selected"' }} @endif>{{ $name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<div class="form-group mb-0">
|
||||
<select name="lang" id="lang" size="14" class="col-xl-12 form-control-label">
|
||||
@foreach (language()->allowed() as $code => $name)
|
||||
<option value="{{ $code }}" @if ($code == 'en-GB') {{ 'selected="selected"' }} @endif>{{ $name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
@ -1,3 +1,3 @@
|
||||
@extends('layouts.install')
|
||||
|
||||
@section('header', trans('install.steps.requirements'))
|
||||
@section('header', trans('install.steps.requirements'))
|
||||
|
@ -3,36 +3,13 @@
|
||||
@section('header', trans('install.steps.settings'))
|
||||
|
||||
@section('content')
|
||||
{{ Form::textGroup('company_name', trans('install.settings.company_name'), 'id-card-o', ['required' => 'required'], old('company_name'), 'col-md-12') }}
|
||||
<div class="row">
|
||||
{{ Form::textGroup('company_name', trans('install.settings.company_name'), 'building', ['required' => 'required'], old('company_name'), 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('company_email', trans('install.settings.company_email'), 'envelope', ['required' => 'required'], old('company_email'), 'col-md-12') }}
|
||||
{{ Form::textGroup('company_email', trans('install.settings.company_email'), 'envelope', ['required' => 'required'], old('company_email'), 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('user_email', trans('install.settings.admin_email'), 'envelope', ['required' => 'required'], old('user_email'), 'col-md-12') }}
|
||||
{{ Form::textGroup('user_email', trans('install.settings.admin_email'), 'envelope', ['required' => 'required'], old('user_email'), 'col-md-12') }}
|
||||
|
||||
{{ Form::passwordGroup('user_password', trans('install.settings.admin_password'), 'key', ['required' => 'required'], old('user_password'), 'col-md-12') }}
|
||||
{{ Form::passwordGroup('user_password', trans('install.settings.admin_password'), 'key', ['required' => 'required'], 'col-md-12 mb--2') }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#next-button').attr('disabled', true);
|
||||
|
||||
$('#company_name, #company_email, #user_email, #user_password').keyup(function() {
|
||||
inputCheck();
|
||||
});
|
||||
});
|
||||
|
||||
function inputCheck() {
|
||||
company_name = $('#company_name').val();
|
||||
company_email = $('#company_email').val();
|
||||
user_email = $('#user_email').val();
|
||||
user_password = $('#user_password').val();
|
||||
|
||||
if (company_name != '' && company_email != '' && user_email != '' && user_password != '') {
|
||||
$('#next-button').attr('disabled', false);
|
||||
} else {
|
||||
$('#next-button').attr('disabled', true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
@ -3,115 +3,111 @@
|
||||
@section('title', trans_choice('general.updates', 2))
|
||||
|
||||
@section('new_button')
|
||||
<span class="new-button"><a href="{{ url('install/updates/check') }}" class="btn btn-warning btn-sm"><span class="fa fa-history"></span> {{ trans('updates.check') }}</a></span>
|
||||
<span class="new-button"><a href="{{ route('updates.check') }}" class="btn btn-warning btn-sm"><span class="fa fa-history"></span> {{ trans('updates.check') }}</a></span>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<!-- Default box -->
|
||||
<div class="box box-success">
|
||||
<div class="box-header with-border">
|
||||
<i class="fa fa-gear"></i>
|
||||
<h3 class="box-title">{{ $name }}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<span class="title-filter hidden-xs">{{ $name }}</span>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<p>
|
||||
<div class="progress">
|
||||
<div id="progress-bar" class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
|
||||
<span class="sr-only">{{ trans('modules.installation.start', ['module' => $name]) }}</span>
|
||||
<div class="card-body">
|
||||
<p>
|
||||
<div class="progress">
|
||||
<div id="progress-bar" class="progress-bar progress-bar-success w-0" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
|
||||
<span class="sr-only">{{ trans('modules.installation.start', ['module' => $name]) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="progress-text"></div>
|
||||
</p>
|
||||
|
||||
<div id="progress-text"></div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
var step = new Array();
|
||||
var total = 0;
|
||||
var path = '';
|
||||
<script type="text/javascript">
|
||||
var step = new Array();
|
||||
var total = 0;
|
||||
var path = '';
|
||||
|
||||
$(document).ready(function() {
|
||||
$.ajax({
|
||||
url: '{{ url("install/updates/steps") }}',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {name: '{{ $name }}', version: '{{ $version }}'},
|
||||
headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' },
|
||||
success: function(json) {
|
||||
if (json['errorr']) {
|
||||
$('#progress-bar').addClass('progress-bar-danger');
|
||||
$('#progress-text').html('<div class="text-danger">' + json['error'] + '</div>');
|
||||
}
|
||||
|
||||
if (json['step']) {
|
||||
step = json['step'];
|
||||
total = step.length;
|
||||
|
||||
next();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function next() {
|
||||
data = step.shift();
|
||||
|
||||
if (data) {
|
||||
$('#progress-bar').css('width', (100 - (step.length / total) * 100) + '%');
|
||||
|
||||
$.each($('#progress-text .text-default'), function( index, value ) {
|
||||
// Remove Loading font
|
||||
$(this).find('.update-spin').remove();
|
||||
// Remove Check font
|
||||
$(this).find('.update-check').remove();
|
||||
// Add Check font
|
||||
$(this).append(' <i class="fa fa-check update-check text-success"></i>');
|
||||
});
|
||||
|
||||
$('#progress-text').append('<span class="text-default"><i class="fa fa-spinner fa-spin update-spin"></i> ' + data['text'] + '</span> </br>');
|
||||
|
||||
setTimeout(function() {
|
||||
$.ajax({
|
||||
url: data.url,
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {path: path, alias: '{{ $alias }}', installed: '{{ $installed }}', version: '{{ $version }}'},
|
||||
headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' },
|
||||
success: function(json) {
|
||||
if (json['errors']) {
|
||||
$('#progress-bar').addClass('progress-bar-danger');
|
||||
$('#progress-text').append('<div class="text-danger"><i class="fa fa-times update-error"></i> ' + json['errors'] + '</div>');
|
||||
}
|
||||
|
||||
if (json['success']) {
|
||||
$('#progress-bar').removeClass('progress-bar-danger');
|
||||
$('#progress-bar').addClass('progress-bar-success');
|
||||
}
|
||||
|
||||
if (json['data']['path']) {
|
||||
path = json['data']['path'];
|
||||
}
|
||||
|
||||
if (!json['errors'] && !json['redirect']) {
|
||||
next();
|
||||
}
|
||||
|
||||
if (json['redirect']) {
|
||||
window.location = json['redirect'];
|
||||
}
|
||||
},
|
||||
error: function(xhr, ajaxOptions, thrownError) {
|
||||
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
|
||||
$(document).ready(function() {
|
||||
$.ajax({
|
||||
url: '{{ route("updates.steps") }}',
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {name: '{{ $name }}', version: '{{ $version }}'},
|
||||
headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' },
|
||||
success: function(json) {
|
||||
if (json['errorr']) {
|
||||
$('#progress-bar').addClass('progress-bar-danger');
|
||||
$('#progress-text').html('<div class="text-danger">' + json['error'] + '</div>');
|
||||
}
|
||||
|
||||
if (json['step']) {
|
||||
step = json['step'];
|
||||
total = step.length;
|
||||
|
||||
next();
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function next() {
|
||||
data = step.shift();
|
||||
|
||||
if (data) {
|
||||
$('#progress-bar').css('width', (100 - (step.length / total) * 100) + '%');
|
||||
|
||||
$.each($('#progress-text .text-default'), function( index, value ) {
|
||||
// Remove Loading font
|
||||
$(this).find('.update-spin').remove();
|
||||
// Remove Check font
|
||||
$(this).find('.update-check').remove();
|
||||
// Add Check font
|
||||
$(this).append(' <i class="fa fa-check update-check text-success"></i>');
|
||||
});
|
||||
}, 800);
|
||||
|
||||
$('#progress-text').append('<span class="text-default"><i class="fa fa-spinner fa-spin update-spin"></i> ' + data['text'] + '</span> </br>');
|
||||
|
||||
setTimeout(function() {
|
||||
$.ajax({
|
||||
url: data.url,
|
||||
type: 'post',
|
||||
dataType: 'json',
|
||||
data: {path: path, alias: '{{ $alias }}', installed: '{{ $installed }}', version: '{{ $version }}'},
|
||||
headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' },
|
||||
success: function(json) {
|
||||
if (json['errors']) {
|
||||
$('#progress-bar').addClass('progress-bar-danger');
|
||||
$('#progress-text').append('<div class="text-danger"><i class="fa fa-times update-error"></i> ' + json['errors'] + '</div>');
|
||||
}
|
||||
|
||||
if (json['success']) {
|
||||
$('#progress-bar').removeClass('progress-bar-danger');
|
||||
$('#progress-bar').addClass('progress-bar-success');
|
||||
}
|
||||
|
||||
if (json['data']['path']) {
|
||||
path = json['data']['path'];
|
||||
}
|
||||
|
||||
if (!json['errors'] && !json['redirect']) {
|
||||
next();
|
||||
}
|
||||
|
||||
if (json['redirect']) {
|
||||
window.location = json['redirect'];
|
||||
}
|
||||
},
|
||||
error: function(xhr, ajaxOptions, thrownError) {
|
||||
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
|
||||
}
|
||||
});
|
||||
}, 800);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
@endpush
|
||||
|
@ -3,70 +3,74 @@
|
||||
@section('title', trans_choice('general.updates', 2))
|
||||
|
||||
@section('new_button')
|
||||
<span class="new-button"><a href="{{ url('install/updates/check') }}" class="btn btn-warning btn-sm"><span class="fa fa-history"></span> {{ trans('updates.check') }}</a></span>
|
||||
<span><a href="{{ route('updates.check') }}" class="btn btn-warning btn-sm btn-alone"><span class="fa fa-history"></span> {{ trans('updates.check') }}</a></span>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<!-- Default box -->
|
||||
<div class="box box-success">
|
||||
<div class="box-header with-border">
|
||||
<i class="fa fa-gear"></i>
|
||||
<h3 class="box-title">Akaunting</h3>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<span class="table-text text-primary">Akaunting</span>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
@if (empty($core))
|
||||
<div class="col-md-12">
|
||||
{{ trans('updates.latest_core') }}
|
||||
</div>
|
||||
@else
|
||||
<div class="col-sm-2 col-md-6 o-y">
|
||||
{{ trans('updates.new_core') }}
|
||||
</div>
|
||||
<div class="col-sm-10 col-md-6 text-right">
|
||||
<a href="{{ url('install/updates/update', ['alias' => 'core', 'version' => $core]) }}" data-toggle="tooltip" title="{{ trans('updates.update', ['version' => $core]) }}" class="btn btn-info btn-sm header-button-top o-y"><i class="fa fa-refresh"></i> {{ trans('updates.update', ['version' => $core]) }}</a>
|
||||
<a href="{{ route('updates.changelog') }}" data-toggle="tooltip" title="{{ trans('updates.changelog') }}" class="btn btn-white btn-sm header-button-bottom"><i class="fa fa-exchange-alt"></i> {{ trans('updates.changelog') }}</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="box-body">
|
||||
@if (empty($core))
|
||||
{{ trans('updates.latest_core') }}
|
||||
@else
|
||||
{{ trans('updates.new_core') }}
|
||||
<a href="{{ url('install/updates/update', ['alias' => 'core', 'version' => $core]) }}" data-toggle="tooltip" title="{{ trans('updates.update', ['version' => $core]) }}" class="btn btn-warning btn-xs"><i class="fa fa-refresh"></i> {{ trans('updates.update', ['version' => $core]) }}</a>
|
||||
<a href="{{ url('install/updates/changelog') }}" data-toggle="tooltip" title="{{ trans('updates.changelog') }}" class="btn btn-default btn-xs popup"><i class="fa fa-exchange"></i> {{ trans('updates.changelog') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="card">
|
||||
<div class="card-header border-bottom-0">
|
||||
<span class="table-text">{{ trans_choice('general.modules', 2) }}</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
|
||||
<!-- Default box -->
|
||||
<div class="box box-success">
|
||||
<div class="box-header with-border">
|
||||
<i class="fa fa-rocket"></i>
|
||||
<h3 class="box-title">{{ trans_choice('general.modules', 2) }}</h3>
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
|
||||
<div class="box-body">
|
||||
<div class="table table-responsive">
|
||||
<table class="table table-striped table-hover" id="tbl-translations">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-4">{{ trans('general.name') }}</th>
|
||||
<th class="col-md-2">{{ trans_choice('general.categories', 1) }}</th>
|
||||
<th class="col-md-2">{{ trans('updates.installed_version') }}</th>
|
||||
<th class="col-md-2">{{ trans('updates.latest_version') }}</th>
|
||||
<th class="col-md-2">{{ trans('general.actions') }}</th>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-flush table-hover" id="tbl-translations">
|
||||
<thead class="thead-light">
|
||||
<tr class="row table-head-line">
|
||||
<th class="col-xs-4 col-sm-4 col-md-4">{{ trans('general.name') }}</th>
|
||||
<th class="col-md-2 hidden-md">{{ trans_choice('general.categories', 1) }}</th>
|
||||
<th class="col-sm-3 col-md-2 hidden-sm">{{ trans('updates.installed_version') }}</th>
|
||||
<th class="col-xs-4 col-sm-3 col-md-2">{{ trans('updates.latest_version') }}</th>
|
||||
<th class="col-xs-4 col-sm-2 col-md-2 text-center">{{ trans('general.actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($modules as $module)
|
||||
<tr>
|
||||
<td>{{ $module->name }}</td>
|
||||
<td>{{ $module->category }}</td>
|
||||
<td>{{ $module->installed }}</td>
|
||||
<td>{{ $module->latest }}</td>
|
||||
<td>
|
||||
<a href="{{ url('install/updates/update/' . $module->alias . '/' . $module->latest) }}" class="btn btn-warning btn-xs"><i class="fa fa-refresh" aria-hidden="true"></i> {{ trans_choice('general.updates', 1) }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@if ($modules)
|
||||
@foreach($modules as $module)
|
||||
<tr class="row align-items-center border-top-1">
|
||||
<td class="col-xs-4 col-sm-4 col-md-4">{{ $module->name }}</td>
|
||||
<td class="col-md-2 hidden-md">{{ $module->category }}</td>
|
||||
<td class="col-sm-3 col-md-2 hidden-sm">{{ $module->installed }}</td>
|
||||
<td class="col-xs-4 col-md-2 col-sm-3">{{ $module->latest }}</td>
|
||||
<td class="col-xs-4 col-sm-2 col-md-2 text-center">
|
||||
<a href="{{ url('install/updates/update/' . $module->alias . '/' . $module->latest) }}" class="btn btn-warning btn-sm"><i class="fa fa-refresh" aria-hidden="true"></i> {{ trans_choice('general.updates', 1) }}</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@else
|
||||
<tr class="row">
|
||||
<td class="col-12">
|
||||
<div class="text-sm text-muted" id="datatable-basic_info" role="status" aria-live="polite">
|
||||
<small>{{ trans('general.no_records') }}</small>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
@endsection
|
||||
|
Reference in New Issue
Block a user