-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Fix - db-click to open folder not selecting first item as it should - `scrollByRow()` error after the manager modal is closed - `__stack-files-reverse` not setting `left: 0` - config `sanitized_text` function is now a string so we can use it with `call_user_func()`, this is to make sure uploaded files dont get a duplicated names when the random option is on. - not reseting the filter btn class when no files are found # New - npm dep “plyr” to overcome the browser inconsistent player look - tooltip to global search btn - content ratio bar + an option to enable/disable it under config `show_ratio_bar` # Update - re-enable the refresh btn when the ajax call fail so you dont have to manually clear the manager cache. - changed all the `media-manager__stack-` class names to `__stack-` except the main one. - changed config `cacheExpiresAfter` to `cache_expires_after` - all resources + config “plz republish”
- Loading branch information
Showing
19 changed files
with
377 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Fix | ||
|
||
- db-click to open folder not selecting first item as it should | ||
- `scrollByRow()` error after the manager modal is closed | ||
- `__stack-files-reverse` not setting `left: 0` | ||
- config `sanitized_text` function is now a string so we can use it with `call_user_func()`, this is to make sure uploaded files dont get a duplicated names when the random option is on. | ||
- not reseting the filter btn class when no files are found | ||
|
||
|
||
# New | ||
|
||
- npm dep “plyr” to overcome the browser inconsistent player look | ||
- tooltip to global search btn | ||
- content ratio bar + an option to enable/disable it under config `show_ratio_bar` | ||
|
||
|
||
# Update | ||
|
||
- re-enable the refresh btn when the ajax call fail so you dont have to manually clear the manager cache. | ||
- changed all the `media-manager__stack-` class names to `__stack-` except the main one. | ||
- changed config `cacheExpiresAfter` to `cache_expires_after` | ||
- all resources + config “plz republish” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<template> | ||
<div class="progress"> | ||
<p v-tippy="{theme: 'light', arrow: true}" | ||
v-for="(val, key) in contentRatio" | ||
:class="`is-${key}`" | ||
:style="getRatio(val)" | ||
:title="getToolTipContent(key, val)" | ||
class="progress-bar progress-bar-striped active"> | ||
<strong v-show="val > 0">{{ key }}</strong> | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="scss"> | ||
.progress-bar { | ||
box-shadow: none; | ||
strong { | ||
text-transform: uppercase; | ||
mix-blend-mode: difference; | ||
} | ||
} | ||
</style> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
list: { | ||
type: Array, | ||
required: true | ||
}, | ||
total: { | ||
type: Number, | ||
required: true | ||
} | ||
}, | ||
computed: { | ||
parent() { | ||
return this.$parent | ||
}, | ||
contentRatio() { | ||
let ratio = { | ||
audio: 0, | ||
video: 0, | ||
image: 0, | ||
text: 0, | ||
folder: 0, | ||
application: 0, | ||
pdf: 0 | ||
} | ||
this.list.forEach((e) => { | ||
if (this.parent.fileTypeIs(e, 'audio')) ratio.audio++ | ||
if (this.parent.fileTypeIs(e, 'video')) ratio.video++ | ||
if (this.parent.fileTypeIs(e, 'image')) ratio.image++ | ||
if (this.parent.fileTypeIs(e, 'text')) ratio.text++ | ||
if (this.parent.fileTypeIs(e, 'pdf')) ratio.pdf++ | ||
if (this.parent.fileTypeIs(e, 'folder')) ratio.folder++ | ||
if (this.parent.fileTypeIs(e, 'application')) ratio.application++ | ||
}) | ||
return ratio | ||
} | ||
}, | ||
methods: { | ||
getRatio(val) { | ||
return { | ||
width: `${val / this.total * 100}%` | ||
} | ||
}, | ||
getToolTipContent(k, v) { | ||
return `<p class="title is-marginless">${v}</p><p class="heading">${k}</p>` | ||
} | ||
} | ||
} | ||
</script> |
Oops, something went wrong.