Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 7f8c9ca

Browse files
committed
update dist
config typo Update composer.json Update composer.json
1 parent eba127b commit 7f8c9ca

File tree

5 files changed

+857
-869
lines changed

5 files changed

+857
-869
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=5.6.4",
2020
"illuminate/support": "5.4.*|5.5.*",
21-
"tightenco/ziggy": "0.*"
21+
"tightenco/ziggy": "^0.3"
2222
},
2323
"autoload": {
2424
"psr-4": {

src/config/mediaManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* to add & nest folders in one go use '\/\_\-'
2323
*/
24-
'allowed_folderNames_chars'=> '\/\_\-',
24+
'allowed_folderNames_chars'=> '\_\-',
2525

2626
/*
2727
* disallow uploading files with the following mimetypes

src/dist/script.baddcb6a6dafff17b541.js renamed to src/dist/script.daa3bdffc9cae53e5d3a.js

Lines changed: 73 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
178178
type: { default: 'info' },
179179
duration: null
180180
},
181-
182181
data: function data() {
183182
return {
184183
notif_group: [],
@@ -200,7 +199,6 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
200199
});
201200
},
202201

203-
204202
methods: {
205203
checkForGroup: function checkForGroup() {
206204
return this.notif_group.length > 1 && this.notif_group.filter(function (item) {
@@ -21106,6 +21104,13 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
2110621104
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_lightbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue_lightbox__);
2110721105
__webpack_require__("./resources/assets/js/shared.js");
2110821106

21107+
$.ajaxSetup({
21108+
cache: false,
21109+
headers: {
21110+
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
21111+
}
21112+
});
21113+
2110921114
/* Libs */
2111021115
window.dropzone = __webpack_require__("./node_modules/dropzone/dist/dropzone.js");
2111121116
Vue.use(__webpack_require__("./node_modules/vue-tippy/vue-tippy.js"));
@@ -21126,13 +21131,6 @@ __webpack_require__("./resources/assets/vendor/MediaManager/js/script.js");
2112621131
/***/ "./resources/assets/vendor/MediaManager/js/script.js":
2112721132
/***/ (function(module, exports) {
2112821133

21129-
$.ajaxSetup({
21130-
cache: false,
21131-
headers: {
21132-
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
21133-
}
21134-
});
21135-
2113621134
var manager = new Vue({
2113721135
el: '#app',
2113821136
data: {
@@ -21141,11 +21139,30 @@ var manager = new Vue({
2114121139
directories: [],
2114221140
filterdList: [],
2114321141
bulkList: [],
21144-
showBy: null,
21145-
currentFilterName: null,
21146-
selectedFile: null,
21147-
searchItemsCount: null,
21148-
searchFor: null
21142+
showBy: undefined,
21143+
currentFilterName: undefined,
21144+
selectedFile: undefined,
21145+
searchItemsCount: undefined,
21146+
searchFor: undefined
21147+
},
21148+
computed: {
21149+
allFiles: function allFiles() {
21150+
if (typeof this.filterdList !== 'undefined' && this.filterdList.length > 0) {
21151+
return this.filterdList;
21152+
} else {
21153+
return this.files.items;
21154+
}
21155+
},
21156+
allItemsCount: function allItemsCount() {
21157+
if (typeof this.allFiles !== 'undefined' && this.allFiles.length > 0) {
21158+
return this.allFiles.length;
21159+
}
21160+
},
21161+
bulkItemsCount: function bulkItemsCount() {
21162+
if (typeof this.bulkList !== 'undefined' && this.bulkList.length > 0) {
21163+
return this.bulkList.length;
21164+
}
21165+
}
2114921166
},
2115021167
methods: {
2115121168
/* Main */
@@ -21155,7 +21172,7 @@ var manager = new Vue({
2115521172
$('#file_loader').show();
2115621173
this.searchFor = '';
2115721174
this.showFilesOfType('all');
21158-
this.showBy = null;
21175+
this.showBy = undefined;
2115921176

2116021177
var folder_location = '';
2116121178

@@ -21166,7 +21183,7 @@ var manager = new Vue({
2116621183
}
2116721184

2116821185
// files list
21169-
$.post(media_root_url + '/files', {
21186+
$.post(route('media.files'), {
2117021187
folder: folder_location
2117121188
}, function (res) {
2117221189
_this.files = res;
@@ -21195,7 +21212,7 @@ var manager = new Vue({
2119521212
confirm_delete: function confirm_delete(files) {
2119621213
var _this2 = this;
2119721214

21198-
$.post(media_root_url + '/delete_file_folder', {
21215+
$.post(route('media.delete_file_folder'), {
2119921216
folder_location: this.folders,
2120021217
deleted_files: files
2120121218
}, function (res) {
@@ -21227,7 +21244,7 @@ var manager = new Vue({
2122721244

2122821245
var destination = $('#move_folder_dropdown').val();
2122921246

21230-
$.post(media_root_url + '/move_file', {
21247+
$.post(route('media.move_file'), {
2123121248
folder_location: this.folders,
2123221249
destination: destination,
2123321250
moved_files: files
@@ -21331,7 +21348,7 @@ var manager = new Vue({
2133121348
this.folders.push(file.name);
2133221349
this.getFiles(this.folders);
2133321350
}
21334-
manager.currentFilterName = null;
21351+
manager.currentFilterName = undefined;
2133521352
},
2133621353
goToFolder: function goToFolder(index) {
2133721354
if (!this.isBulkSelecting()) {
@@ -21389,7 +21406,7 @@ var manager = new Vue({
2138921406
}
2139021407
if (val == 'all') {
2139121408
this.filterdList = [];
21392-
this.currentFilterName = null;
21409+
this.currentFilterName = undefined;
2139321410
} else {
2139421411
this.filterdList = this.files.items.filter(function (item) {
2139521412
return _this5.fileTypeIs(item, val);
@@ -21512,7 +21529,7 @@ var manager = new Vue({
2151221529
}
2151321530
},
2151421531
updateDirsList: function updateDirsList() {
21515-
$.post(media_root_url + '/directories', {
21532+
$.post(route('media.directories'), {
2151621533
folder_location: manager.folders
2151721534
}, function (data) {
2151821535
manager.directories = data;
@@ -21537,27 +21554,6 @@ var manager = new Vue({
2153721554
return name.replace(/(.[^.]*)$/, '');
2153821555
}
2153921556
},
21540-
21541-
computed: {
21542-
allFiles: function allFiles() {
21543-
if (typeof this.filterdList !== 'undefined' && this.filterdList.length > 0) {
21544-
return this.filterdList;
21545-
} else {
21546-
return this.files.items;
21547-
}
21548-
},
21549-
allItemsCount: function allItemsCount() {
21550-
if (typeof this.allFiles !== 'undefined' && this.allFiles.length > 0) {
21551-
return this.allFiles.length;
21552-
}
21553-
},
21554-
bulkItemsCount: function bulkItemsCount() {
21555-
if (typeof this.bulkList !== 'undefined' && this.bulkList.length > 0) {
21556-
return this.bulkList.length;
21557-
}
21558-
}
21559-
},
21560-
2156121557
watch: {
2156221558
allFiles: function allFiles(newVal) {
2156321559
if (newVal.length < 1) {
@@ -21615,18 +21611,18 @@ var manager = new Vue({
2161521611
this.clearSelected();
2161621612
this.selectFirst();
2161721613
}
21618-
this.searchItemsCount = null;
21614+
this.searchItemsCount = undefined;
2161921615
},
2162021616
searchItemsCount: function searchItemsCount(val) {
2162121617
// make sure "no_files" is hidden when search query is cleared
21622-
if (val == null) {
21618+
if (val == undefined) {
2162321619
$('#no_files').hide();
2162421620
}
2162521621
},
2162621622
showBy: function showBy(val) {
2162721623
if (val) {
2162821624
if (val == 'clear') {
21629-
this.showBy = null;
21625+
this.showBy = undefined;
2163021626
}
2163121627
this.selectFirst();
2163221628
}
@@ -21720,7 +21716,7 @@ $(function () {
2172021716
if (!manager.selectedFileIs('folder')) {
2172121717
return false;
2172221718
}
21723-
manager.currentFilterName = null;
21719+
manager.currentFilterName = undefined;
2172421720
manager.folders.push(manager.selectedFile.name);
2172521721
manager.getFiles(manager.folders);
2172621722
}
@@ -21738,7 +21734,7 @@ $(function () {
2173821734
manager.folders = manager.folders.splice(0, index);
2173921735
manager.getFiles(manager.folders);
2174021736
}
21741-
manager.currentFilterName = null;
21737+
manager.currentFilterName = undefined;
2174221738
}
2174321739

2174421740
// go to first / last item
@@ -21758,6 +21754,34 @@ $(function () {
2175821754
$('#upload').trigger('click');
2175921755
}
2176021756
}
21757+
21758+
// quick view for images / play audio or video
21759+
if (!manager.isBulkSelecting()) {
21760+
if (keycode(e) == 'space' && e.target == document.body) {
21761+
// prevent body from scrolling
21762+
e.preventDefault();
21763+
21764+
// play audio/video
21765+
if (manager.selectedFileIs('video') || manager.selectedFileIs('audio')) {
21766+
return $('.player')[0].paused ? $('.player')[0].play() : $('.player')[0].pause();
21767+
}
21768+
21769+
// quick view image
21770+
if (manager.selectedFileIs('image')) {
21771+
if (manager.lightBoxIsActive()) {
21772+
$('#vue-lightboxOverlay').trigger('click');
21773+
} else {
21774+
$('.quickView').trigger('click');
21775+
}
21776+
}
21777+
}
21778+
21779+
// quick view image "esc"
21780+
if (keycode(e) == 'esc' && manager.selectedFileIs('image') && manager.lightBoxIsActive()) {
21781+
$('#vue-lightboxOverlay').trigger('click');
21782+
e.preventDefault();
21783+
}
21784+
}
2176121785
/* end of no bulk selection */
2176221786

2176321787
// when there are files
@@ -21793,31 +21817,6 @@ $(function () {
2179321817
}
2179421818
}
2179521819
/* end when lightbox is not active */
21796-
21797-
if (keycode(e) == 'space' && e.target == document.body) {
21798-
// prevent body from scrolling
21799-
e.preventDefault();
21800-
21801-
// play audio/video
21802-
if (manager.selectedFileIs('video') || manager.selectedFileIs('audio')) {
21803-
return $('.player')[0].paused ? $('.player')[0].play() : $('.player')[0].pause();
21804-
}
21805-
21806-
// quick view image
21807-
if (manager.selectedFileIs('image')) {
21808-
if (manager.lightBoxIsActive()) {
21809-
$('#vue-lightboxOverlay').trigger('click');
21810-
} else {
21811-
$('.quickView').trigger('click');
21812-
}
21813-
}
21814-
}
21815-
21816-
// quick view image "esc"
21817-
if (keycode(e) == 'esc' && manager.selectedFileIs('image') && manager.lightBoxIsActive()) {
21818-
$('#vue-lightboxOverlay').trigger('click');
21819-
e.preventDefault();
21820-
}
2182121820
}
2182221821
/* end of there are files */
2182321822

@@ -21964,7 +21963,7 @@ $(function () {
2196421963
});
2196521964

2196621965
$('#new_folder_submit').click(function () {
21967-
$.post(media_root_url + '/new_folder', {
21966+
$.post(route('media.new_folder'), {
2196821967
current_path: manager.files.path,
2196921968
new_folder_name: $('#new_folder_name').val()
2197021969
}, function (data) {
@@ -22049,7 +22048,7 @@ $(function () {
2204922048
var ext = filename.substring(filename.lastIndexOf('.') + 1);
2205022049
var new_filename = $('#new_filename').val() + ('.' + ext);
2205122050

22052-
$.post(media_root_url + '/rename_file', {
22051+
$.post(route('media.rename_file'), {
2205322052
folder_location: manager.folders,
2205422053
filename: filename,
2205522054
new_filename: new_filename

0 commit comments

Comments
 (0)