update scripts + add home dash as default tag
This commit is contained in:
parent
ac8fe7012b
commit
7966f07fdb
8 changed files with 18 additions and 13 deletions
|
@ -140,7 +140,7 @@ class ItemController extends Controller
|
|||
//
|
||||
$data['tags'] = Item::ofType('tag')->orderBy('title', 'asc')->pluck('title', 'id');
|
||||
$data['tags']->prepend(__('app.dashboard'), 0);
|
||||
$data['current_tags'] = [];
|
||||
$data['current_tags'] = collect([0 => __('app.dashboard')]);
|
||||
return view('items.create', $data);
|
||||
|
||||
}
|
||||
|
|
5
public/css/app.css
vendored
5
public/css/app.css
vendored
File diff suppressed because one or more lines are too long
2
public/js/app.js
vendored
2
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
4
public/mix-manifest.json
generated
4
public/mix-manifest.json
generated
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"/css/app.css": "/css/app.css?id=62b46d36567ec0e3418f",
|
||||
"/js/app.js": "/js/app.js?id=d8215a9716aec5f9e409"
|
||||
"/css/app.css": "/css/app.css?id=e4ac968c3a08d246c3b0",
|
||||
"/js/app.js": "/js/app.js?id=f5edf362209887248205"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
$.when( $.ready ).then(function() {
|
||||
|
||||
var base = (document.querySelector('base') || {}).href;
|
||||
|
||||
if($('.message-container').length) {
|
||||
setTimeout(
|
||||
function()
|
||||
|
@ -58,7 +60,7 @@ $.when( $.ready ).then(function() {
|
|||
var timer = 5000;
|
||||
var fun = function worker() {
|
||||
$.ajax({
|
||||
url: '/get_stats/'+id,
|
||||
url: base+'/get_stats/'+id,
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
container.html(data.html);
|
||||
|
@ -118,7 +120,7 @@ $.when( $.ready ).then(function() {
|
|||
attribute: 'data-id'
|
||||
});
|
||||
$.post(
|
||||
'/order',
|
||||
base+'/order',
|
||||
{ order:idsInOrder }
|
||||
);
|
||||
}
|
||||
|
@ -173,7 +175,7 @@ $.when( $.ready ).then(function() {
|
|||
data[config] = $(this).val();
|
||||
});
|
||||
|
||||
$.post('/test_config', { data: data }, function(data) {
|
||||
$.post(base+'/test_config', { data: data }, function(data) {
|
||||
alert(data);
|
||||
});
|
||||
|
||||
|
@ -183,7 +185,7 @@ $.when( $.ready ).then(function() {
|
|||
var current = $(this);
|
||||
var id = current.data('id');
|
||||
var tag = current.data('tag');
|
||||
$.get('/items/pintoggle/'+id+'/true/'+tag, function(data) {
|
||||
$.get(base+'/items/pintoggle/'+id+'/true/'+tag, function(data) {
|
||||
var inner = $(data).filter('#sortable').html();
|
||||
$('#sortable').html(inner);
|
||||
current.toggleClass('active');
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
<img src="{{ asset('storage/'.$icon) }}" />
|
||||
{!! Form::hidden('icon', $icon, ['class' => 'form-control']) !!}
|
||||
@else
|
||||
<img src="/img/heimdall-icon-small.png" />
|
||||
<img src="{{ asset('/img/heimdall-icon-small.png') }}" />
|
||||
@endif
|
||||
</div>
|
||||
<div class="upload-btn-wrapper">
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
<script>
|
||||
$( function() {
|
||||
|
||||
var base = (document.querySelector('base') || {}).href;
|
||||
|
||||
var elem = $('.color-picker')[0];
|
||||
var hueb = new Huebee( elem, {
|
||||
// options
|
||||
|
@ -59,7 +61,7 @@
|
|||
$('#tile-preview .app-icon').attr('src', data.iconview);
|
||||
$('#tile-preview .title').html(data.name);
|
||||
if(data.config != null) {
|
||||
$.get('/view/'+data.config, function(getdata) {
|
||||
$.get(base+'/view/'+data.config, function(getdata) {
|
||||
$('#sapconfig').html(getdata).show();
|
||||
});
|
||||
} else {
|
||||
|
|
2
webpack.mix.js
vendored
2
webpack.mix.js
vendored
|
@ -11,7 +11,7 @@ let mix = require('laravel-mix');
|
|||
|
|
||||
*/
|
||||
|
||||
mix.scripts([
|
||||
mix.babel([
|
||||
//'resources/assets/js/jquery-ui.min.js',
|
||||
'resources/assets/js/huebee.js',
|
||||
'resources/assets/js/app.js'
|
||||
|
|
Loading…
Reference in a new issue