Build new versioned files
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8a20f552da
commit
e9ea25ad38
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,77 @@
|
||||||
|
/*!
|
||||||
|
* Bootstrap v4.5.3 (https://getbootstrap.com/)
|
||||||
|
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||||||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Sizzle CSS Selector Engine v2.3.5
|
||||||
|
* https://sizzlejs.com/
|
||||||
|
*
|
||||||
|
* Copyright JS Foundation and other contributors
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://js.foundation/
|
||||||
|
*
|
||||||
|
* Date: 2020-03-14
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* jQuery JavaScript Library v3.5.1
|
||||||
|
* https://jquery.com/
|
||||||
|
*
|
||||||
|
* Includes Sizzle.js
|
||||||
|
* https://sizzlejs.com/
|
||||||
|
*
|
||||||
|
* Copyright JS Foundation and other contributors
|
||||||
|
* Released under the MIT license
|
||||||
|
* https://jquery.org/license
|
||||||
|
*
|
||||||
|
* Date: 2020-05-04T22:49Z
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*! @preserve
|
||||||
|
* bootbox.js
|
||||||
|
* version: 5.5.2
|
||||||
|
* author: Nick Payne <nick@kurai.co.uk>
|
||||||
|
* license: MIT
|
||||||
|
* http://bootboxjs.com/
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Lodash <https://lodash.com/>
|
||||||
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
|
||||||
|
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**!
|
||||||
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||||
|
* @version 1.16.1
|
||||||
|
* @license
|
||||||
|
* Copyright (c) 2016 Federico Zivolo and contributors
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{
|
||||||
"/js/app.js": "/js/app.js",
|
"/js/app.js": "/js/app.js?id=fd06d60d05478d92e7cd",
|
||||||
"/css/app.css": "/css/app.css"
|
"/css/app.css": "/css/app.css?id=29dbace5abf610081f1f"
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ $(document).ready(function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
var $this = $(this),
|
var $this = $(this),
|
||||||
$row = $this.closest('tr');
|
$row = $this.closest('tr, .action-container');
|
||||||
|
|
||||||
bootbox.confirm('Are you sure?', function(result) {
|
bootbox.confirm('Are you sure?', function(result) {
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
@ -130,9 +130,12 @@ $(document).ready(function(e) {
|
||||||
|
|
||||||
axios.delete($row.data('url')).then(function(res) {
|
axios.delete($row.data('url')).then(function(res) {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
|
if ($row.hasClass('action-container')) {
|
||||||
|
window.location = '/';
|
||||||
|
} else {
|
||||||
$row.remove();
|
$row.remove();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
@extends('layouts.main')
|
@extends('layouts.main')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<h3>{{ $book->name }}</h3>
|
<h3>
|
||||||
|
{{ $book->name }}
|
||||||
|
<div class="action-container float-right" data-url="{{ route('books.show', $book->id) }}">
|
||||||
|
<button class="remove-item btn btn-danger">
|
||||||
|
Remove
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</h3>
|
||||||
<h5>By: {{ $book->authors->pluck('name')->join(', ') }}</h5>
|
<h5>By: {{ $book->authors->pluck('name')->join(', ') }}</h5>
|
||||||
<br />
|
<br />
|
||||||
@if ($thumbnail = $book->attachment('thumbnail'))
|
@if ($thumbnail = $book->attachment('thumbnail'))
|
||||||
|
@ -22,4 +29,5 @@
|
||||||
{{ $book->description }}
|
{{ $book->description }}
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@endsection
|
@endsection
|
|
@ -13,3 +13,7 @@ const mix = require('laravel-mix');
|
||||||
|
|
||||||
mix.js('resources/js/app.js', 'public/js')
|
mix.js('resources/js/app.js', 'public/js')
|
||||||
.sass('resources/sass/app.scss', 'public/css');
|
.sass('resources/sass/app.scss', 'public/css');
|
||||||
|
|
||||||
|
if (mix.inProduction()) {
|
||||||
|
mix.version();
|
||||||
|
}
|
Loading…
Reference in New Issue