1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Working on DropZone

This commit is contained in:
David Bomba 2019-08-06 13:31:55 +10:00
parent 40d2ba7be8
commit 3da6eb69f0
4 changed files with 35 additions and 3 deletions

View File

@ -47,7 +47,7 @@ class QueryLogging
$count = count($queries);
$timeEnd = microtime(true);
$time = $timeEnd - $timeStart;
//Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
Log::info($request->method() . ' - ' . $request->url() . ": $count queries - " . $time);
if($count > 16)
Log::info($queries);

View File

@ -10,5 +10,6 @@
"/vendors/css/select2.min.css": "/vendors/css/select2.min.css?id=8e44c39add2364bdb469",
"/vendors/js/select2.min.js": "/vendors/js/select2.min.js?id=0a96cf2d3a193019a91b",
"/vendors/css/dropzone.min.css": "/vendors/css/dropzone.min.css?id=2f735dbf472afcd77604",
"/vendors/css/dropzone-basic.min.css": "/vendors/css/dropzone-basic.min.css?id=960bcd6d5cb8351ac0d0",
"/vendors/js/dropzone.min.js": "/vendors/js/dropzone.min.js?id=33148c7d5e055ea74714"
}

View File

@ -1,4 +1,22 @@
@extends('portal.default.layouts.master')
@section('header')
@parent
<link href="/vendors/css/dropzone.min.css" rel="stylesheet">
<link href="/vendors/css/dropzone-basic.min.css" rel="stylesheet">
<style>
.dropzone {
background: white;
border-radius: 5px;
border: 2px dashed rgb(0, 135, 247);
border-image: none;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}
</style>
@stop
@section('body')
<main class="main">
<div class="container-fluid">
@ -15,9 +33,18 @@
</div>
<div class="card-body">
<i class="fa fa-user fa-5x"></i>
</div>
<i class="fa fa-user fa-5x"></i>
<div id="dropzone">
<form class="dropzone needsclick" id="demo-upload" action="/upload">
<div class="dz-message needsclick">
Drop files here or click to upload.<BR>
</div>
</form>
</div>
</div>
</div>
@ -48,6 +75,9 @@
</main>
</body>
@endsection
@push('scripts')
<script src="/vendors/js/dropzone.min.js"></script>
@endpush
@section('footer')

1
webpack.mix.js vendored
View File

@ -26,6 +26,7 @@ mix.copyDirectory('node_modules/select2/dist/css/select2.min.css', 'public/vendo
mix.copyDirectory('node_modules/select2/dist/js/select2.full.min.js', 'public/vendors/js/select2.min.js');
mix.copyDirectory('node_modules/dropzone/dist/min/dropzone.min.css', 'public/vendors/css/dropzone.min.css');
mix.copyDirectory('node_modules/dropzone/dist/min/basic.min.css', 'public/vendors/css/dropzone-basic.min.css');
mix.copyDirectory('node_modules/dropzone/dist/min/dropzone.min.js', 'public/vendors/js/dropzone.min.js');