Commit Graph

67 Commits

Author SHA1 Message Date
Slava Kim
51a23fc346 Another pass on LaunchScreens 2014-10-13 17:30:50 -07:00
Sashko Stubailo
101b96bdcc Merge branch 'master' into devel 2014-10-13 14:51:41 -07:00
Sashko Stubailo
f2645c1ac9 Update todos 2014-10-13 11:17:12 -07:00
Slava Kim
21411b4114 Use the mobile-launch-screen package in todos
The example doesn't "flash" with the white page on mobile when launched.
2014-10-11 03:32:04 -07:00
Sashko Stubailo
3952dbfda5 Update todos 2014-10-09 20:26:47 -07:00
Sashko Stubailo
38b437b676 Update todos to newest code with touchwipe 2014-10-09 16:28:15 -07:00
Sashko Stubailo
1a73a4a6c3 Update todos 2014-10-07 17:10:47 -07:00
Sashko Stubailo
67fbec2263 Add new todos example 2014-10-03 21:25:24 -07:00
Sashko Stubailo
1ac45850de Replace todos with new example 2014-09-29 21:09:25 -07:00
David Greenspan
48264ccafd Use preferred helper style in docs,apps,packages 2014-09-25 14:56:15 -07:00
Sashko Stubailo
82d1db5107 Rename Meteor.Collection to Mongo.Collection again 2014-08-29 12:28:32 -07:00
Sashko Stubailo
6b3d31ff5b Revert "Rename Meteor.Collection -> Mongo.Collection"
This reverts commit 96952dda2b.

Conflicts:
	packages/ddp/livedata_tests.js
	packages/minimongo/minimongo.js
	packages/mongo/collection.js
	packages/mongo/mongo_driver.js
	packages/mongo/mongo_livedata_tests.js
	packages/mongo/oplog_tests.js
	packages/reactive-dict/reactive-dict.js
	packages/session/session_tests.js
	tools/auth.js
2014-08-29 12:26:28 -07:00
Sashko Stubailo
96952dda2b Rename Meteor.Collection -> Mongo.Collection 2014-08-29 10:11:21 -07:00
thatneat
0c89b03930 Fix {{#each todos}} rendering when !list_id
{{#each todos}} rendering was broken when no list was selected, since {{#each}} cannot iterate on "{}" (it only takes lists and falsey values).
This code path is never hit in the todos app as it is shipped, but it can cause problems with people modifying the example code for their own apps.
2014-07-18 16:52:08 -07:00
Avital Oliver
fba5d95cfe Update todos to the new pattern for 'checked' attributes 2014-03-19 13:36:45 -07:00
David Greenspan
84b123ef44 don't use triple stache for HTML attrs in examples
This syntax has a bug where it relies on having html5-tokenizer on the client, code which was written for the server (and uses Function.bind, defineGetter, etc.).

The plan is to deprecate/remove this syntax anyway, i.e. not allow
you to say `<x {{{attrs}}}>` and then have `attrs` evaluate to a string like
'key1="value1" key2="value2"' at runtime.  Constructing these strings is error-prone and likely to be insecure.

Instead, you'll have your choice of double-stache in an attribute value, with or without quotes (`<a b={{c}}>`, or `<a b="{{c}} {{d}}"`, or even `<a b={{c}}-{{d}}>`), or double-stache at the top level of a tag, as in `<a {{b}}>`, in which case `b` must be either a dictionary of attribute names and values or a string containing at most a single attribute name (e.g. "selected" or "").
2013-11-12 19:15:47 -08:00
David Greenspan
a18a92e65f Deps.run => Deps.autorun 2013-03-11 12:17:39 -07:00
David Greenspan
b9c3e1fa30 port examples 2013-03-08 12:50:46 -08:00
Naomi Seyfer
dba23bd29c Session.setDefault, and updating todos to use it. #698 2013-02-20 17:56:39 -08:00
David Glasser
40bfd2e360 Add a reactive ready() method to subscription handles. Fixes #273.
Inspired by a pull request from tmeasday (though we've changed the underlying
code enough on ddp-pre1 that I had to rewrite it myself).

Use it in todos. No docs yet, but the Meteor.subscribe docs are already
scheduled for some attention.
2013-02-08 18:41:41 -08:00
David Glasser
27d3073660 Make Meteor.autosubscribe a deprecated alias for Meteor.autorun.
Instead of a general client-side sub de-duping mechanism (which mostly existed
for the sake of autosubscribe, and causes issues with server-driven
unsubscribes), make Meteor.subscribe explicitly aware of reactivity.

Expose an "invalidated" flag on Meteor.deps.Context.

Guarantee that invalidation callbacks from different contexts will not be
interleaved at flush time. This has the implication that if you do

   context1.onInvalidate(function () {
     context2.invalidate();
   });

and this is the only way to invalidate context2, then context2's invalidation
callbacks will not be called until after *ALL* of context1's callbacks are
called. This allows us to be sure that the "unsubscribe, unless autorun tried to
re-create an identical sub" logic runs after the autorun function is rerun.
2013-01-15 17:07:03 -05:00
Nick Martin
f1895ba2eb Rip auth out of todos. Parties will be a much better auth example. 2012-10-16 04:19:24 -07:00
David Greenspan
d442f8750a Todos: make more room for dropdown 2012-10-12 16:48:04 -07:00
David Greenspan
32edb4043f loginButtons halign -> align 2012-10-12 09:38:20 -07:00
Avital Oliver
ed89815a33 accounts-ui: {{> loginButtons}} -> {{loginButtons}}
Also support {{loginButtons halign="right"}} for a dropdown that
hangs to the left
2012-10-11 19:50:09 -07:00
Avital Oliver
7757cc0659 accounts-ui: dropdown opens by default to right, unless wrapped in an element with class 2012-10-09 21:52:52 -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
d22e1e6dcd todos uses preserve-inputs 2012-09-24 20:25:03 -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
e0b84cd87c use preserve in todos example 2012-08-29 21:02:31 -07:00
David Greenspan
379f608043 begin updating examples for new API 2012-08-22 18:14:15 -07:00
Nick Martin
0019e5f716 Merge branch 'master' into auth
Conflicts:
	examples/todos/.meteor/packages
2012-08-09 17:58:58 -07:00
Nick Martin
33d53847c0 Make todos spiderable. 2012-08-03 19:49:05 -07:00
Avital Oliver
a07411e69d accounts-ui: Dropdown login form and support for u/p 2012-07-23 22:49:07 -07:00
Nick Martin
7071f94774 Add access control to todos. 2012-07-23 17:57:11 -07:00
Nick Martin
630ee42242 CSS cleanup. 2012-07-23 17:57:11 -07:00
Nick Martin
0d886d6c24 Change {{user}} to {{currentUser}} 2012-07-23 17:57:10 -07:00
Nick Martin
e421762307 Rename login-buttons package to accounts-ui. Rename login_buttons template to loginButtons. 2012-07-23 17:57:10 -07:00
Nick Martin
c1a399dc38 Add images and beautify login buttons. 2012-07-23 17:57:10 -07:00
Nick Martin
2657787fd7 Move login button code from todos into new login buttons package. 2012-07-23 17:57:10 -07:00
Avital Oliver
2fc45793ee Support for Google login + refactor of accounts packages
Break up the accounts package into accounts, accounts-facebook, oauth2.
2012-07-23 17:57:10 -07:00
Avital Oliver
d6bc56d255 New oauth login flow
Also, some code reorganization and bugfix for IE7
2012-07-23 17:57:10 -07:00
Avital Oliver
c00f2e3551 Auth/Accounts improvements
- Store login token in local storage so that we log in across tabs
- Simulate local storage on IE 7 using userData
- Expose a {{user}} helper to Handlerbars
- Poll the FB popup so that we know when the user closed it
  (still without the new design around this)
- Support logout
- Slightly better error handling (but should still get better)
- Support non-autopublishing collections, and make loginTokens such a collection
2012-07-23 17:57:10 -07:00
Avital Oliver
10654b997a Preliminary support for user accounts in Todos 2012-07-23 17:57:10 -07:00
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
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