Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ctf0 committed Sep 23, 2017
1 parent 0c792dc commit b795caf
Show file tree
Hide file tree
Showing 14 changed files with 258 additions and 506 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ return [
- install dependencies

```bash
yarn add vue dropzone keycode vue-tippy vue2-filters vuemit
yarn add vue dropzone keycode vue-tippy vue2-filters vuemit vue-notif
# or
npm install vue dropzone keycode vue-tippy vue2-filters vuemit
npm install vue dropzone keycode vue-tippy vue2-filters vuemit vue-notif --save
```

- for styling we use ***bulma***
Expand Down
16 changes: 0 additions & 16 deletions logs/v1.3.0.txt

This file was deleted.

9 changes: 9 additions & 0 deletions logs/v1.3.2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
- remove jquery.scrollTo
- fix notif not showing up
- now using any of the shortcuts dont scroll the window
- make sure the shortcuts used with more than element dont run twice
- clean styles
- remove notif-comp file and use the npm package instead
- some cosmetics for the manager
- update view
- update assets
18 changes: 14 additions & 4 deletions src/resources/assets/js/components/bulma/media.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,22 @@ export default {
if (!this.lightBoxIsActive()) {
// when no bulk selecting
if (!this.isBulkSelecting()) {
let cur = ''
let newSelected = ''
let index = ''
if ((keycode(e) == 'left' || keycode(e) == 'up') && curSelected !== 0) {
e.preventDefault()
newSelected = curSelected - 1
cur = $('div[data-index="' + newSelected + '"]')
this.scrollToFile(cur)
}
if ((keycode(e) == 'right' || keycode(e) == 'down') && curSelected < this.allItemsCount - 1) {
e.preventDefault()
newSelected = curSelected + 1
cur = $('div[data-index="' + newSelected + '"]')
this.scrollToFile(cur)
Expand All @@ -149,7 +155,7 @@ export default {
// go up a dir
if (keycode(e) == 'backspace') {
let index = parseInt(this.folders.length) - 1
index = parseInt(this.folders.length) - 1
if (index < 0) {
return false
Expand All @@ -161,11 +167,15 @@ export default {
// go to first / last item
if (this.allItemsCount) {
if (keycode(e) == 'home') {
e.preventDefault()
this.scrollToFile()
}
if (keycode(e) == 'end') {
let index = this.allItemsCount - 1
e.preventDefault()
index = this.allItemsCount - 1
cur = $('div[data-index="' + index + '"]')
this.scrollToFile(cur)
}
Expand All @@ -178,7 +188,6 @@ export default {
// play-pause for media
if (keycode(e) == 'space' && e.target == document.body) {
// prevent body from scrolling
e.preventDefault()
if (this.selectedFileIs('video') || this.selectedFileIs('audio')) {
Expand Down Expand Up @@ -239,6 +248,7 @@ export default {
// when modal is visible
else {
if (keycode(e) == 'enter') {
e.preventDefault()
$('.modal.is-active').find('.submit').trigger('click')
}
Expand Down Expand Up @@ -354,7 +364,7 @@ export default {
// upload
$('#upload').click(() => {
$('#new-upload').fadeToggle('fast')
$('#dz').fadeToggle('fast')
})
// delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,16 @@ export default {
file = $('div[data-index="0"]')
}

$(file).trigger('click')
let container = $('#left')
let offset = parseInt(container.css('padding-top')) + parseInt(file.css('margin-top'))

$('#left').scrollTo($(file), 0, {
margin: true,
offset: -8
})
file.trigger('click')
file[0].scrollIntoView(false)

// respect container & file offset when scrolling
if (file[0].offsetTop > container.height()) {
container[0].scrollTop += offset
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
title: data.title,
body: data.body,
type: data.type,
duration: data.duration !== undefined ? data.duration : null
duration: data.duration !== undefined ? data.duration : undefined
})
},
checkForFolders() {
Expand Down
211 changes: 0 additions & 211 deletions src/resources/assets/js/components/bulma/notifs.vue

This file was deleted.

2 changes: 1 addition & 1 deletion src/resources/assets/js/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Vue.use(require('vue2-filters'))

/* Components */
Vue.component('MediaManager', require('./components/' + process.env.MIX_MM_FRAMEWORK + '/media.vue'))
Vue.component('MyNotification', require('./components/' + process.env.MIX_MM_FRAMEWORK + '/notifs.vue'))
Vue.component('MyNotification', require('vue-notif'))

/* Events */
require('./events')
9 changes: 0 additions & 9 deletions src/resources/assets/sass/bulma/media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,11 @@ table,
}
}

.level {
margin-bottom: 0.75rem !important;
}

.modal.is-active {
padding-top: 3%;
align-items: start;
}

#img_modal {
padding: 0;
align-items: center;
}

.modal-card-foot {
background-color: white;
justify-content: flex-end;
Expand Down
1 change: 0 additions & 1 deletion src/resources/assets/sass/progress.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.progress {
height: 1rem;
margin-bottom: 20px;
overflow: hidden;
background-color: #f5f5f5;
border-radius: 4px;
Expand Down
Loading

0 comments on commit b795caf

Please sign in to comment.