This file contains hidden or 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
| <template> | |
| <div class="th-filter"> | |
| <div class="icon" @click="filterVisibility = !filterVisibility"> </div> | |
| <form v-show="filterVisibility"> | |
| <div> | |
| <label for="">{{ label }}</label> | |
| <select v-model="filter.operator"> | |
| <option | |
| v-for="operator in ops" | |
| :value="operator.value" |
This file contains hidden or 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
| Vue.directive('disabled', { | |
| bind(el) { | |
| let hasDisabled = el.disabled; | |
| if (hasDisabled) { | |
| el.addEventListener('keydown', evt => evt.preventDefault()); | |
| } | |
| }, | |
| unbind(el) { | |
| let hasDisabled = el.disabled; | |
| if (hasDisabled) { |
This file contains hidden or 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
| /* | |
| * Example: | |
| * input: 10000 | |
| * output: 10.000k | |
| */ | |
| export default { | |
| install(Vue) { | |
| Vue.prototype.$numberSimplify = (val, fraction) => { | |
| let s = `${Math.round(val)}`, |
This file contains hidden or 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
| export default { | |
| install(Vue, opt = {}) { | |
| // put lang file into public folder | |
| let defaultOptions = { folder: '/lang' }; | |
| // add some new option | |
| let options = Object.assign(defaultOptions, opt); | |
| // define collection store | |
| let store = new Vue({ | |
| data: { |
This file contains hidden or 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
| <template> | |
| <div> | |
| </div> | |
| </template> | |
| <script> | |
| export default { | |
| methods: { | |
| stepper: function* (i){ |
This file contains hidden or 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
| { | |
| "manifestPort": 8000 | |
| } |
This file contains hidden or 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
| version: '3.1' | |
| services: | |
| memcached: | |
| image: 'memcached:alpine' | |
| container_name: php-docker-memcached | |
| redis: | |
| image: 'redis:alpine' | |
| container_name: php-docker-redis | |
| mariadb: | |
| image: 'mariadb:10.1' |
This file contains hidden or 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
| { | |
| "require": { | |
| "nesbot/carbon": "^1.22" | |
| } | |
| } |