32 Commits

Author SHA1 Message Date
Wlodek Bzyl
dd95b830e4 Add cursor pointer to Todo Lists. 2012-05-25 20:37:24 +02:00
David Greenspan
a09c946ea2 use Handlebars context of event target as event_data(!!) 2012-05-11 12:37:10 -07:00
Jonathan Kingston
d136f904d5 Adding in pointer cursor to CSS to make it easier to use. 2012-04-11 14:47:33 +02:00
matt debergalis
0a0a4bbb87 i think you meant 6502 2012-04-10 12:06:41 -07:00
Geoff Schmidt
6934fb2efb use consistent data between examples 2012-04-10 12:04:00 -07:00
David Greenspan
848ae0470e todos: better icons 2012-04-05 22:22:39 -07:00
David Greenspan
81ba92c207 todos fix: use _.sortBy properly 2012-04-05 18:15:33 -07:00
David Greenspan
4433e78b1c item counts in tags :) 2012-04-05 17:20:06 -07:00
David Greenspan
117e9e0467 additional documentation etc in todos 2012-04-05 16:47:04 -07:00
David Greenspan
2093fa8928 more style tweaks 2012-04-05 15:34:13 -07:00
David Greenspan
714b5d2837 more todos tweaks 2012-04-05 15:04:33 -07:00
David Greenspan
f743bac7d6 CSS rewrite, first cut 2012-04-05 12:28:43 -07:00
David Greenspan
69cd6a646c fix (all?) editing weirdness in todos, remove use of jquery for events 2012-04-05 11:01:27 -07:00
David Greenspan
89ce396ae5 Overhaul liveui & templating to support "smart patch" and rendering HTML (rebase-2) 2012-04-03 22:10:20 -07:00
Geoff Schmidt
8cdadb3762 make insert return the id of the new object
(not a copy of the new object)
avoid updating docs to prevent merge conflict
(will handle out of band)
2012-03-16 02:55:14 -07:00
Nick Martin
10236609f4 Ensure unique timestamp when adding new entries.
Fixes issue where the order would dance around as you modify items.
2012-03-06 15:45:24 -08:00
Geoff Schmidt
14d41036f4 Simplify subscription API
- Use positional arguments
- Pass the subscription object in 'this'
2012-03-06 15:44:42 -08:00
matt debergalis
3f1ff26e43 Convert to new publish API. 2012-02-29 16:08:59 -08:00
Geoff Schmidt
3e47029a61 port skel, todos, leaderboard to new data API 2012-02-17 01:02:34 -08:00
matt debergalis
44fb1d2150 use findOne() and set initial timestamp on items. 2012-01-30 12:03:18 -08:00
matt debergalis
5e7daaaff3 New Collection API
The new Collection API separates query handles from result sets.  It
allows template iterators to only redraw changed objects instead of
entire result sets.  This implementation also sets the stage for
minimongo indexes and better invalidation performance.

collection.find() now returns a Collection.Query handle.  To retrieve
results we provide these methods on Collection.Query:

Iterators (encouraged way to access results):

 * query.forEach(function (obj) { ... });
 * results = query.map(function (obj) { ... });

Cursor-based retrieval (iterators are built on fetch):

 * docs = query.fetch(maxlen); // return next [maxlen] (all) docs.
 * doc = query.get(skip);      // return next doc, skipping [skip] (0) docs.

Counter:

 * length = query.count(); // number of results in query.

Live queries (replaces findLive):

 * live_handle = query.observe({added: function (obj, idx) { ... },
                                removed: function (id, idx) { ... },
                                changed: function (obj, idx) { ... },
                                moved: function (obj, old_idx, new_idx) { ... }});

Convenience finders:

 * doc = collection.findOne({color: 'red'});
 * doc = collection.findOne(id_val);

On the client, calling forEach(), map(), fetch(), get(), or findOne()
inside an invalidation context will register a dependency on the entire
query result.  Any change to any objects invalidates the context.

Calling count() inside an invalidation context will register a
dependency that only triggers if objects enter or leave the result set.

Calling observe() does not register a dependency.
2012-01-27 20:59:08 -08:00
Nick Martin
459dac9cac Merge branch 'master' into meteor
conflicts hand resolved. deftemplate and liveui reverted to master, will re-do later.

Conflicts:
	admin/generate-dev-bundle.sh
	admin/install-s3.sh
	admin/manifest.json
	app/meteor/deploy.js
	app/meteor/meteor.js
	examples/leaderboard/leaderboard.js
	examples/unfinished/azrael/client/azrael.js
	examples/unfinished/azrael/model.js
	packages/liveui/liveui.js
	packages/templating/deftemplate.js
	packages/templating/html_scanner.js
	tests/minimongo/test.html
2012-01-18 16:14:54 -08:00
Nick Martin
cdb50e3cd8 Work around weird IE8/underscore issue. 2012-01-17 18:05:48 -08:00
Nick Martin
9d3d31df6e Rename .skybreak directories. 2012-01-04 21:27:14 -08:00
Nick Martin
ad8adcbc90 Include missed .skybreak directories. 2012-01-04 21:19:52 -08:00
Nick Martin
3faff2de78 perl -pi -e 's/Sky/Meteor/g' **/* 2012-01-04 20:52:46 -08:00
Nick Martin
23cd5b6912 perl -pi -e 's/Skybreak/Meteor/g' **/* 2012-01-04 18:30:25 -08:00
Geoff Schmidt
e31fde7109 todos: idiom cleanups 2011-12-20 03:23:48 -08:00
Geoff Schmidt
c13415b818 invalidations accumulate until flushed (or the event loop runs again)
this way, when you use find instead of findLive, liveui doesn't do O(n^2) work when a subscription returns n records (it used to, because it'd render the list with 1 element, then with 2, …, then with n)

flush guarantees that all changes have been committed to the DOM, for your jquerying pleasure

experimental - needs docs
2011-12-19 16:39:28 -08:00
Geoff Schmidt
8543df9649 use Sky.startup in todos 2011-12-09 13:14:01 -08:00
Geoff Schmidt
24692a60f5 rationalize underscore usage slightly 2011-12-08 16:28:47 -08:00
Geoff Schmidt
0599d5198c move examples into main repo 2011-12-07 21:22:47 -08:00