Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from antaresproject/0.9.2
0.9.4
- Loading branch information
Showing
21 changed files
with
202 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
Header set Access-Control-Allow-Origin "*" | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
|
||
namespace App\Console\Commands; | ||
|
||
use Illuminate\Support\Facades\Artisan; | ||
use Symfony\Component\Process\Process; | ||
use Illuminate\Console\Command; | ||
use File; | ||
|
||
class Reset extends Command | ||
{ | ||
|
||
/** | ||
* human readable command name | ||
* | ||
* @var String | ||
*/ | ||
protected $title = 'Sync Automation Job'; | ||
|
||
/** | ||
* The console command name. | ||
* | ||
* @var string | ||
*/ | ||
protected $signature = 'reset:app'; | ||
|
||
/** | ||
* The console command description. | ||
* | ||
* @var string | ||
*/ | ||
protected $description = 'Reset app instance using fresh database instance.'; | ||
|
||
/** | ||
* Execute the console command. | ||
* | ||
* @return void | ||
*/ | ||
public function handle() | ||
{ | ||
if (!$this->requirement()) { | ||
return; | ||
} | ||
Artisan::call('down'); | ||
|
||
File::cleanDirectory(storage_path('logs')); | ||
File::cleanDirectory(storage_path('framework/sessions')); | ||
File::cleanDirectory(storage_path('framework/cache')); | ||
File::cleanDirectory(storage_path('framework/temp')); | ||
|
||
|
||
$command = 'mysql demo < ' . storage_path('db/dump.sql'); | ||
$process = new Process($command); | ||
$process->run(); | ||
if (!$process->isSuccessful()) { | ||
$this->error($process->getErrorOutput()); | ||
} | ||
|
||
Artisan::call('up'); | ||
} | ||
|
||
/** | ||
* Checks mysqldump availability | ||
* | ||
* @return boolean | ||
*/ | ||
protected function requirement() | ||
{ | ||
$process = new Process('mysqldump --version'); | ||
$process->run(); | ||
if (!$process->isSuccessful()) { | ||
$this->error($process->getErrorOutput()); | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
$(function () { | ||
var $params = null, $instanceName = null; | ||
console.log($params, $instanceName); | ||
|
||
window.antaresEvents.emit('dt_reinit', $('#' + $instanceName), $params.options); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
resources/views/default/form/controls/configured_dropzone.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div id="{{ control.getName() }}" {{ control.getAttributes()|stringify }} data-options="{{ options|json_encode }}"> | ||
<div class="dz-message" data-dz-message> | ||
<div class="dz-m__current" > | ||
{% if current_image_path %} | ||
<img height="80" src="{{ current_image_path }}" /> | ||
{% endif %} | ||
</div> | ||
|
||
<div class="dz-m__header"> | ||
<i class="zmdi zmdi-wallpaper"></i> | ||
</div> | ||
|
||
<div class="dz-m__content"> | ||
<span>Drag & drop,</span> | ||
<span>or click to upload</span> | ||
</div> | ||
</div> | ||
|
||
<input type="hidden" name="{{ control.getName() }}" value="{{ control.getValue() }}" /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<label class="switch"> | ||
<input class="switch-checkbox" name="{{ control.getName() }}" type="checkbox" value="{{ control.getValue() }}" {{ control.getAttributes()|stringify }} > | ||
<div class="switch-container"> | ||
<div class="switch-handle"></div> | ||
</div> | ||
</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
resources/views/default/layouts/antares/partials/form/horizontal/_description.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
resources/views/default/layouts/antares/partials/form/horizontal/_radio_btns.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
{% if control.hasWrapper %} | ||
<div class="{{ control.getWrapper('class') }}" > | ||
<div class="{{ control.getWrapper('class') }}" > | ||
{% endif %} | ||
<div class="col-dt-3 col-5 col-mb-5 {{ control.getLabelWrapper('class') }}"> | ||
{{ Form.htmlLabel(control)|raw }} | ||
<div class="col-mb-8 col-6 col-dt-4 col-ld-3 {{ control.getLabelWrapper('class') }}"> | ||
{{ Form.htmlLabel(control)|raw }} | ||
</div> | ||
<div class="col-dt-14 col-13 col-mb-11 {{ control.getWrapper('class') }}"> | ||
<div class="radio-btns"> | ||
<div class="col-mb-16 col-18 col-dt-10 col-ld-4"> | ||
<div class="radio-btns"> | ||
{% for value,name in control.options %} | ||
<label data-type="radio-btn"> | ||
<input type="radio" name="{{ control.name }}" value="{{value}}" {{ (value==control.value) ? 'checked="checked"' :'' }}/> | ||
<span class="btn btn--md btn--default mdl-button mdl-js-button mdl-js-ripple-effect"> | ||
{{name|raw}} | ||
</span> | ||
</label> | ||
{% endfor %} | ||
{% endfor %} | ||
</div> | ||
{% if control.inlineHelp|length>1 or control.help|length>1 %} | ||
{% include 'antares/foundation::layouts.antares.partials.form.horizontal._description' %} | ||
{% include 'antares/foundation::layouts.antares.partials.form.horizontal._description' %} | ||
{% endif %} | ||
<span id="{{ control.id }}_error" class="error col-13 col-mb-11"> | ||
{{ errors.first(control.name, format)|raw }} | ||
</span> | ||
</div> | ||
{% if control.hasWrapper %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
72 changes: 38 additions & 34 deletions
72
resources/views/default/layouts/antares/partials/navigation/_navigation_mobile.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<div class="text-right ml16"> | ||
<a href="{{ url }}" class="btn btn--md btn--red mdl-button mdl-js-button mdl-js-ripple-effect" > | ||
Back to admin area | ||
<a href="{{ url }}" class="btn btn--md btn--red mdl-button mdl-js-button mdl-js-ripple-effect back-to-admin" > | ||
<span class="btn-text">Back to admin area</span> | ||
<i class="zmdi zmdi-close-circle"></i> | ||
</a> | ||
</div> |
Submodule core
updated
from e917b3 to 84f9b0
Oops, something went wrong.