19 Commits

Author SHA1 Message Date
matt debergalis
cf59a3609b s/san-serif/sans-serif/ 2012-04-24 18:45:24 -07:00
Jonathan Kingston
7ff1093eba Adding in cursor pointer changes to leaderboard. 2012-04-16 12:23:41 +02:00
David Greenspan
133338ac39 make leaderboard work in IE 7/8 2012-04-10 11:08:41 -07:00
Geoff Schmidt
dbd7b1e71b Leaderboard tweaks 2012-04-09 22:00:34 -07:00
matt debergalis
8209ff545c use templates 2012-04-03 16:19:30 -07:00
Geoff Schmidt
e0f7c6dd37 Keep leaderboard, move leaderboard-remote 2012-03-12 21:36:52 -07:00
Geoff Schmidt
56d2ac669c move examples/leaderboard-remote to unfinished 2012-03-12 21:23:19 -07:00
Nick Martin
d6939c8382 Since leaderboard no longer limits to 10 people, only put 10 people in the db.
Otherwise the list is too long, and the add points button is not visible by default. You can't just add a limit statement, because observe will not work with limit.
2012-03-08 17:04:49 -08:00
matt debergalis
8a8e402510 autopublish in leaderboard 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
Nick Martin
453cffe99a Make leaderboard safe for session being defined at startup (which happens on reloads). 2012-02-06 23:15:31 -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
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
Geoff Schmidt
fabfa902bf renderList reimplemented for documentfragments.
there may be bugs. leaderboard works though
2011-12-19 17:03:26 -08:00
Geoff Schmidt
7cfdfcf0b9 DocumentFragment-based rendering, with GC, draft
leaderboard works
2011-12-19 17:03:26 -08:00
Geoff Schmidt
0599d5198c move examples into main repo 2011-12-07 21:22:47 -08:00