Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
src/directives
folder (vue directives refactor) (#174)
* Add `src/directives` folder (vue directives refactor) - create `src/directives` folder - remove `src/app/gui/vue/directives/v-checked.js` - remove `src/app/gui/vue/directives/v-disabled.js` - remove `src/app/gui/vue/directives/v-select2.js` - deprecate notice for `src/app/gui/vue/vue.directives.js` - consolidate directives definitions within a single folder * add new file `src/directives/utils.js` (helper) * refactor stateful directives into `src/directives` - delete `src/app/vui/vue/vue.directives.js` - delete `src/directives/index.js` and - consolidate all custom vue directives within `src/directives` folder * simplify stateful directives (`watch` / `unwatch`) **Refactor file `src/directives/utils.js` ** - rename and refactor function (`createDirectiveObj({el, attr, watcher, handler, modifiers})` --> `watch({el, attr, watcher})` ) - rename function (`unbindWatch` --> `unwatch`) - delete function (`getDirective(unique_attr_id)`) - add function (trigger({el, attr, data})) * refactor directive `v-disabled` (class list toggle) * refactor directive `v-selected-first` (attribute toggle)
- Loading branch information