-
-
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.
- image editor https://github.com/ctf0/Laravel-Media-Manager/wiki/Optimize-Edited-Images-On-Save - update readme - update wiki - update resources
- Loading branch information
Showing
20 changed files
with
1,089 additions
and
154 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,9 @@ | ||
- added full image editor https://github.com/ctf0/Laravel-Media-Manager/wiki/Image-Editor | ||
- you can now save images from url too, it follows the same flow as the normal upload (random names, upload to current folder, events) | ||
- added new event "MMFileSaved" for both of the above features. | ||
- fix setting selected file twice | ||
- fix clearing cache twice | ||
|
||
- update readme | ||
- update wiki | ||
- update resources |
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,84 @@ | ||
<template> | ||
<div class="__caman"> | ||
<button class="btn-plain" @click="toggleControls()" | ||
:class="{'is-active': controls}" | ||
:disabled="processing" | ||
v-tippy :title="filterName"> | ||
<span class="icon"><icon :name="processing ? 'spinner' : icon" :pulse="processing"/></span> | ||
</button> | ||
|
||
<transition name="list"> | ||
<div v-show="controls" class="__caman-controls"> | ||
<button class="btn-plain" :disabled="incLimit() || processing" @click="inc()"> | ||
<span class="icon"><icon :name="processing ? 'spinner' : 'plus'" :pulse="processing"/></span> | ||
</button> | ||
<button class="btn-plain" :disabled="decLimit() || processing" @click="dec()"> | ||
<span class="icon"><icon :name="processing ? 'spinner' : 'minus'" :pulse="processing"/></span> | ||
</button> | ||
</div> | ||
</transition> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: [ | ||
'filterName', | ||
'icon', | ||
'step', | ||
'max', | ||
'min', | ||
'processing', | ||
'reset' | ||
], | ||
data() { | ||
return { | ||
controls: false, | ||
noController: [ | ||
'greyscale', | ||
'invert' | ||
], | ||
range: 0 | ||
} | ||
}, | ||
beforeMount() { | ||
this.$options.name = `${this.filterName}-filter` | ||
}, | ||
methods: { | ||
toggleControls() { | ||
if (this.noController.includes(this.filterName)) { | ||
return this.update() | ||
} | ||
this.controls = !this.controls | ||
}, | ||
inc() { | ||
this.range += this.step | ||
this.update(this.range) | ||
}, | ||
dec() { | ||
this.range -= this.step | ||
this.update(this.range) | ||
}, | ||
incLimit() { | ||
return this.range == this.max | ||
}, | ||
decLimit() { | ||
return this.range == this.min | ||
}, | ||
update(val = null) { | ||
this.$parent.updateFilter(this.filterName, val) | ||
} | ||
}, | ||
watch: { | ||
reset(val) { | ||
if (val) { | ||
this.controls = false | ||
this.range = 0 | ||
} | ||
} | ||
} | ||
} | ||
</script> |
Oops, something went wrong.