Skip to content

Dev #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

Dev #27

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
fed8d94
add Dev notes in Readme and update global to
kristianmandrup Nov 11, 2016
c04f3e1
WIP example for Vue2
kristianmandrup Nov 11, 2016
d9d182e
no template or render function - WTF
kristianmandrup Nov 11, 2016
c086d5b
Vue 2 example must use proper .vue components with template element
kristianmandrup Nov 11, 2016
2bd2d9f
trying to fix :''
kristianmandrup Nov 11, 2016
e77cefe
bump version
kristianmandrup Nov 12, 2016
2dbe65d
build
kristianmandrup Nov 12, 2016
06e9ad2
various extensions to directive and service
kristianmandrup Nov 12, 2016
2793481
allow passing bags
kristianmandrup Nov 12, 2016
42b59dc
option for custom DragulaService and better docs
kristianmandrup Nov 12, 2016
5c8fd99
new build
kristianmandrup Nov 12, 2016
db001f3
major refactor and updated docs
kristianmandrup Nov 12, 2016
70c9522
better service logging and bag exist warning
kristianmandrup Nov 12, 2016
ff48ddc
add bagNames function for service and log list of existing when dupli…
kristianmandrup Nov 12, 2016
36be534
notes: all very weird
kristianmandrup Nov 12, 2016
a4c5dd4
better bags service config
kristianmandrup Nov 12, 2016
2284742
better error message on duplicate bag
kristianmandrup Nov 12, 2016
37d1eb4
advanced magic
kristianmandrup Nov 12, 2016
284b685
add drag-handler
kristianmandrup Nov 13, 2016
01d679f
compile error - please help debug and fix ;)
kristianmandrup Nov 13, 2016
b90a9ee
compiles ok - needs testing
kristianmandrup Nov 13, 2016
6a3a5bf
more fine grained control over model model operations in DragHandler
kristianmandrup Nov 13, 2016
7a04ba6
better docs
kristianmandrup Nov 13, 2016
efc1d45
better docs - new Changelog
kristianmandrup Nov 13, 2016
8d27f3d
fix docs - add TODO - remove bags concept
kristianmandrup Nov 13, 2016
293c4f5
build
kristianmandrup Nov 13, 2016
eff181f
removed bags concept - use named drakes
kristianmandrup Nov 13, 2016
ddbe15f
clean docs
kristianmandrup Nov 13, 2016
8eb442a
fix logging on service
kristianmandrup Nov 14, 2016
da3543d
new build
kristianmandrup Nov 14, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Changelog

## 2.x

Removed old `/example` app. Doesn't work with Vue2 or new design.

Removed the concept of bags. Not needed now that named drakes of a service are stored in a Hash object, indexed by key. We just have services with a map of drakes that have drag options, containers and models. Much simpler to understand!

Old bag flags/data (life cycle metadata) such as `initEvents`
and `registered` are stored directly on each drake instead.

- Changed life cycle method `ready` to `mounted` with `$nextTick`
- Add `$dragula` to Vue.prototype to make available on each component instance
- Make `$dragula.$service` a shortcut to access key methods on global service
- Add `service` property to `v-dragula` directive to indicate service to use for container
- Add ability to add `DragulaService` per service name of component via
`service="name"` on `v-dragula` element or by default use the global service.
- Add ability to create and set `eventBus` per service, either as shared bus or independent
- Add ability to set `drakes` on creation of `DragulaService` via `drakes` option
- Add ability to create and use custom `DragulaService` via `createService` plugin option
- Add ability to create and use custom `eventBus` via `createEventBus` plugin option
- Make `bind` try to bind directive (with drakes) to a matching named component service before falling back to bind to global dragula service.
- Add detailed logging via `logging: true` option on plugin
- Extracted common logic of directive functions into reusable functions
- Add `.bagNames` getter on `DragulaService`
Loading