Build new versioned files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler 2020-12-27 04:43:58 -05:00
parent 8a20f552da
commit e9ea25ad38
7 changed files with 102 additions and 56314 deletions

11290
public/css/app.css vendored

File diff suppressed because one or more lines are too long

45022
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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.
*/

View File

@ -1,4 +1,4 @@
{
"/js/app.js": "/js/app.js",
"/css/app.css": "/css/app.css"
"/js/app.js": "/js/app.js?id=fd06d60d05478d92e7cd",
"/css/app.css": "/css/app.css?id=29dbace5abf610081f1f"
}

9
resources/js/app.js vendored
View File

@ -121,7 +121,7 @@ $(document).ready(function(e) {
e.preventDefault();
var $this = $(this),
$row = $this.closest('tr');
$row = $this.closest('tr, .action-container');
bootbox.confirm('Are you sure?', function(result) {
if (!result) {
@ -130,8 +130,11 @@ $(document).ready(function(e) {
axios.delete($row.data('url')).then(function(res) {
if (res.data.success) {
$row.remove();
if ($row.hasClass('action-container')) {
window.location = '/';
} else {
$row.remove();
}
}
});
})

View File

@ -1,7 +1,14 @@
@extends('layouts.main')
@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>
<br />
@if ($thumbnail = $book->attachment('thumbnail'))
@ -22,4 +29,5 @@
{{ $book->description }}
</p>
@endif
@endsection

4
webpack.mix.js vendored
View File

@ -13,3 +13,7 @@ const mix = require('laravel-mix');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css');
if (mix.inProduction()) {
mix.version();
}