Skip to content

Commit

Permalink
v2.5.9
Browse files Browse the repository at this point in the history
- update modal wiki
- update readme
- update config
- add support for files with mime type=application
- some fixes for view files
- fix cropper js error
  • Loading branch information
ctf0 committed Mar 5, 2018
1 parent 35d14b3 commit 6ac9a52
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ npm install vue vue-ls vue-tippy@v1 vue2-filters vue-bounty vue-notif vue-clipbo
- if you are having issues [Check](https://ctf0.wordpress.com/2017/09/12/laravel-mix-es6/)

```js
require('./../vendor/MediaManager/js/manager')
require('../vendor/MediaManager/js/manager')

new Vue({
el: '#app'
Expand Down
2 changes: 1 addition & 1 deletion src/config/mediaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@
/*
* load image preview when item is clicked
*/
'lazy_load_image_on_click' => true,
'lazy_load_image_on_click' => false,
];
2 changes: 2 additions & 0 deletions src/resources/assets/js/components/imageEditor/cropper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@

<script>
import Camann from './caman.vue'
import Cropper from 'cropperjs'
import 'cropperjs/dist/cropper.css'
export default {
components: {Camann},
Expand Down
2 changes: 0 additions & 2 deletions src/resources/assets/js/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ window.Vue = require('vue')
window.EventHub = require('vuemit')
window.keycode = require('keycode')
window.Dropzone = require('dropzone')
window.Cropper = require('cropperjs')
import 'cropperjs/dist/cropper.css'

Vue.use(require('vue2-filters'))
Vue.use(require('vue-clipboard2'))
Expand Down
1 change: 1 addition & 0 deletions src/resources/assets/js/modules/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import 'vue-awesome/icons/circle'
import 'vue-awesome/icons/link'
import 'vue-awesome/icons/spinner'
import 'vue-awesome/icons/key'
import 'vue-awesome/icons/cogs'
// cropperjs
import 'vue-awesome/icons/crop'
import 'vue-awesome/icons/ban'
Expand Down
Empty file modified src/resources/assets/js/packages/download.min.js
100755 → 100644
Empty file.
4 changes: 4 additions & 0 deletions src/resources/assets/sass/media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
backface-visibility: hidden;
}

[v-cloak] {
display: none;
}

@import './extra/vars';
@import './extra/loaders';
@import './extra/animation';
Expand Down
31 changes: 20 additions & 11 deletions src/resources/views/_manager.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{{-- styles --}}
<link rel="stylesheet" href="{{ asset('assets/vendor/MediaManager/style.css') }}"/>

{{-- mobile breadCrumb --}}
@php
$alt_breadcrumb = true;
Expand Down Expand Up @@ -39,8 +36,8 @@
<div class="">

{{-- notif-audio --}}
<audio ref="alert-audio"><source src="/assets/vendor/MediaManager/audio/alert.mp3" type="audio/mpeg"></audio>
<audio ref="success-audio"><source src="/assets/vendor/MediaManager/audio/success.mp3" type="audio/mpeg"></audio>
<audio ref="alert-audio"><source src="{{ asset('assets/vendor/MediaManager/audio/alert.mp3') }}" type="audio/mpeg"></audio>
<audio ref="success-audio"><source src="{{ asset('assets/vendor/MediaManager/audio/success.mp3') }}" type="audio/mpeg"></audio>

{{-- top toolbar --}}
<nav class="media-manager__toolbar level" v-show="toolBar">
Expand Down Expand Up @@ -468,6 +465,7 @@ class="__box-copy-link icon"

<span class="icon is-large" v-else>
<icon v-if="fileTypeIs(file, 'folder')" name="folder" scale="2.6"></icon>
<icon v-if="fileTypeIs(file, 'application')" name="cogs" scale="2.6"></icon>
<icon v-if="fileTypeIs(file, 'video')" name="film" scale="2.6"></icon>
<icon v-if="fileTypeIs(file, 'audio')" name="music" scale="2.6"></icon>
<icon v-if="fileTypeIs(file, 'pdf')" name="file-pdf-o" scale="2.6"></icon>
Expand Down Expand Up @@ -546,13 +544,14 @@ class="link image"
</template>

{{-- icons --}}
<icon v-if="selectedFileIs('folder')" name="folder" scale="4"></icon>
<div key="1" v-if="selectedFileIs('pdf')" class="link"
<icon key="1" v-if="selectedFileIs('folder')" name="folder" scale="4"></icon>
<icon key="2" v-if="selectedFileIs('application')" name="cogs" scale="4"></icon>
<div key="3" v-if="selectedFileIs('pdf')" class="link"
v-tippy="{arrow: true, position: 'left'}" title="space"
@click="toggleModal('preview_modal')">
<icon name="file-pdf-o" scale="4"></icon>
</div>
<div key="2" v-if="selectedFileIs('text')" class="link"
<div key="4" v-if="selectedFileIs('text')" class="link"
v-tippy="{arrow: true, position: 'left'}" title="space"
@click="toggleModal('preview_modal')">
<icon name="file-text-o" scale="4"></icon>
Expand Down Expand Up @@ -1023,6 +1022,7 @@ class="button is-warning"
<figure class="media-left">
<span class="icon has-text-link">
<icon v-if="fileTypeIs(one, 'folder')" name="folder" scale="1.2"></icon>
<icon v-if="fileTypeIs(one, 'application')" name="cogs" scale="1.2"></icon>
<icon v-if="fileTypeIs(one, 'image')" name="image" scale="1.2"></icon>
<icon v-if="fileTypeIs(one, 'video')" name="film" scale="1.2"></icon>
<icon v-if="fileTypeIs(one, 'audio')" name="music" scale="1.2"></icon>
Expand Down Expand Up @@ -1069,6 +1069,7 @@ class="button is-warning"
<figure class="media-left">
<span class="icon has-text-link">
<icon v-if="selectedFileIs('folder')" name="folder" scale="1.8"></icon>
<icon v-if="selectedFileIs('application')" name="cogs" scale="1.8"></icon>
<icon v-if="selectedFileIs('image')" name="image" scale="1.8"></icon>
<icon v-if="selectedFileIs('video')" name="film" scale="1.8"></icon>
<icon v-if="selectedFileIs('audio')" name="music" scale="1.8"></icon>
Expand Down Expand Up @@ -1116,7 +1117,15 @@ class="button is-danger"
</div>
</media-manager>

{{-- styles --}}
@push('styles')
<link rel="stylesheet" href="{{ asset('assets/vendor/MediaManager/style.css') }}"/>
@endpush

{{-- scripts --}}
<script src="//cdnjs.cloudflare.com/ajax/libs/bodymovin/4.13.0/bodymovin.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/camanjs/4.1.2/caman.full.min.js"></script>
<script src="{{ asset('assets/vendor/MediaManager/manager.js') }}"></script>
@push('scripts')
<script src="//cdnjs.cloudflare.com/ajax/libs/bodymovin/4.13.0/bodymovin.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/camanjs/4.1.2/caman.full.min.js"></script>
<script src="{{ asset('assets/vendor/MediaManager/manager.js') }}"></script>
@endpush

6 changes: 4 additions & 2 deletions src/resources/views/media.blade.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<my-notification></my-notification>
</div>

<div class="container is-fluid is-marginless">
<div class="container is-fluid">
<div class="columns">
{{-- media manager --}}
<div class="column">
Expand All @@ -28,6 +28,8 @@
</section>

{{-- footer --}}
<script src="{{ asset("path/to/app.js") }}"></script>
@stack('styles')
@stack('scripts')
<script src="{{ asset("js/app.js") }}"></script>
</body>
</html>

0 comments on commit 6ac9a52

Please sign in to comment.