31 Commits

Author SHA1 Message Date
David Glasser
a0e9fc3979 Add release files (0.6.0) to docs and all examples.
As part of the release process we'll update docs and all active
examples (other/unfinished examples can be updated as necessary). eg, first to
0.6.1-rc1, etc, and then to 0.6.1 when that is tagged from rc.
2013-03-19 15:13:54 -07:00
David Glasser
9b486b3c9b Meteor.random -> Random.fraction
add Random.choice
2013-02-13 00:08:50 -08:00
Dan Dascalescu
f0f35650fa The period isn't part of the collection name
http://en.wikipedia.org/wiki/Logical_quotes
2012-10-12 00:29:03 -07:00
David Glasser
71851fef89 Merge branch 'devel' into auth
Conflicts:
	app/meteor/skel/.meteor/packages
	examples/leaderboard/.meteor/packages
	packages/livedata/livedata_connection.js
2012-10-01 20:07:27 -07:00
David Greenspan
b995d4751a add preserve-inputs package to skel and more examples 2012-09-28 13:23:30 -07:00
David Glasser
af741cc245 Merge branch 'devel' into auth
Conflicts:
	examples/todos/.meteor/packages
	examples/wordplay/.meteor/packages
2012-09-17 15:07:48 -07:00
David Greenspan
660882eb4e examples specify whether they use jquery 2012-09-17 14:42:28 -07:00
David Glasser
2fedd2adfc Merge branch 'devel' into auth
Conflicts:
	packages/livedata/livedata_common.js
	packages/livedata/livedata_connection.js
	packages/livedata/livedata_server.js
	packages/mongo-livedata/collection.js
2012-09-17 14:42:10 -07:00
David Glasser
5e622215ba Change all publicly documented APIs to use camelCase.
For now, the old names still work as well.

This includes:
  - Meteor.isServer/isClient
  - this.isSimulation in methods
  - Context.onInvalidate
  - Meteor.status().retryCount/retryTime

Remove old backwards-compatibility "Sky" alias for "Meteor".

Update all examples in the docs to use camelCase.

Delete unused docs/client/projects.html file.
2012-09-17 14:26:45 -07:00
Nick Martin
c514341df8 Merge branch 'master' into auth
Conflicts:
	.gitignore
	examples/todos/client/todos.js
2012-09-04 00:42:35 -07:00
David Greenspan
379f608043 begin updating examples for new API 2012-08-22 18:14:15 -07:00
Avital Oliver
e71a8c8e9c Added insecure package to examples 2012-07-23 17:57:11 -07:00
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