Commit Graph

196 Commits

Author SHA1 Message Date
David Glasser
f3000b69bb Redo Templates *API* section in docs 2014-03-26 13:37:26 -07:00
David Glasser
952fb4d01b a bunch of updates to Templates api section 2014-03-25 17:07:24 -07:00
David Glasser
5252692de5 Update docs for {{> loginButtons}} 2014-03-25 16:02:40 -07:00
David Glasser
e7c2cb5c00 Delete docs for isolate 2014-03-25 15:59:44 -07:00
David Glasser
73cf568af1 Delete docs for constant 2014-03-25 15:59:13 -07:00
David Glasser
4ca31f1dea Delete docs for preserve 2014-03-25 15:56:11 -07:00
David Glasser
a5601ecd19 Merge remote-tracking branch 'origin/master' into release-0.8.0
Conflicts:
	docs/.meteor/release
2014-03-25 15:02:59 -07:00
Nick Martin
d3295f1f41 combine onLogin and onLoginFailure in docs. 2014-03-18 13:46:24 -07:00
Nick Martin
d8575d0a24 Merge branch 'devel' into shark 2014-03-17 15:51:18 -07:00
Dan Dascalescu
22854bee9b Some docs tweaks
- get rid of the sole use of "attribute set"
- add some links
- add missing "the"
2014-03-13 17:38:20 -07:00
Nick Martin
0a5d105027 clean up docs a little 2014-03-12 16:59:08 -07:00
Nick Martin
e67b56ee53 fix id for navbar. this fixes scrolling highlighting 2014-03-12 16:51:49 -07:00
Avital Oliver
5671eaa2b7 Merge branch 'devel' into shark
Conflicts:
	packages/minifiers/package.js
	packages/preserve-inputs/package.js
	packages/test-in-browser/driver.css
	packages/test-in-browser/driver.js
2014-02-25 15:50:36 -08:00
Andrew Wilcox
99cb0d491e Merge remote-tracking branch 'upstream/devel' into login-hooks 2014-02-16 18:01:50 -05:00
David Glasser
47cb936719 Explicitly document where transforms are ignored
Note that now that transforms are required to return objects with the
right _id, we may want to reconsider this choice.

Fixes #1819.
2014-02-12 16:27:13 -08:00
David Glasser
72c626be61 document explicitly that we treat strings as IDs
Fixes #1813
2014-02-12 16:14:28 -08:00
Andrew Wilcox
df3230c1b3 Login hooks.
Adds `Accounts.validateLoginAttempt`, `Accounts.onLogin`, and
`Accounts.onLoginFailure`.

The process for logging in a user is consolidated in accounts-base,
which is now the only package which directly accesses login tokens in
the database.

All login methods now go through `Accounts._loginMethod`, which
ensures that exceptions are captured and login hooks are called in all
cases.

The callback hook implementation code from livedata is extracted into
an internal `callback-hook` package, where it can be used by accounts.
2014-02-05 17:40:20 -05:00
David Glasser
1ec9b1da71 Merge branch 'devel' into shark
"templating - template arg" fails before and after this merge

Conflicts:
	packages/handlebars/.npm/package/npm-shrinkwrap.json
	packages/handlebars/package.js
           (semi-updating handlebars to shrink package size, vs deleting)

	packages/minifiers/package.js
           (two different new tests)

	packages/minimongo/minimongo.js
           (observe moved to a new file)
2013-12-13 10:05:55 -08:00
Nick Martin
496936d21a review part 1: docs, style, etc. 2013-12-05 13:14:10 -08:00
Nick Martin
a3bbb6dfa1 Update and tweak docs for new name. 2013-12-05 13:14:10 -08:00
Nick Martin
91ad6c0189 Remove trailing whitespace. 2013-12-05 13:14:10 -08:00
Andrew Wilcox
62fe9c62e5 Add a "this.session" entry for methods in the docs.
Pull out the session object into its own documentation section.
2013-12-05 13:11:40 -08:00
Andrew Wilcox
c1d97fde7c Also make the session available in publish functions. 2013-12-05 13:11:40 -08:00
Andrew Wilcox
26e9fad096 In the docs, refer to the public object as a "session" instead of a
"session handle".
2013-12-05 13:11:40 -08:00
Andrew Wilcox
badb6e9d30 Documentation update.
Document `Meteor.onConnection` instead of `Meteor.server.onConnection`.

Condense sections about when there is a session reconnect into a
single {{note}}.

Document the `stop` handle returned by `onConnect`.

Document `this.session` in Meteor.methods section.
2013-12-05 13:11:39 -08:00
Andrew Wilcox
8644363f1a Meteor.server.onConnection documentation. 2013-12-05 13:11:39 -08:00
David Greenspan
c9a79c1593 Merge branch 'devel' into shark
Conflicts:
	examples/leaderboard/.meteor/release
	examples/parties/.meteor/release
	examples/todos/.meteor/release
	examples/wordplay/.meteor/release
2013-11-11 20:50:33 -08:00
Matt DeBergalis
47e6f5e381 document METEOR_SETTINGS, fixes #967. 2013-11-05 00:53:07 -08:00
Matt DeBergalis
0d6922c901 document predicate signature in restrictCreationByEmailDomain 2013-10-24 11:18:59 -07:00
Avital Oliver
1a1f083186 docs work modulo markdown 2013-10-07 17:21:02 -07:00
Avital Oliver
a39a8bd1ac docs closer to working 2013-10-07 15:50:47 -07:00
Avital Oliver
01ce66310e work towards porting docs 2013-10-07 15:50:46 -07:00
Emily Stark
82579293f3 Override docs release temporarily 2013-10-03 10:16:07 -07:00
Emily Stark
7f64c726f7 Merge branch 'mongo-upsert' into devel 2013-10-02 13:23:22 -07:00
Emily Stark
dec262b239 Document upsert (first draft) 2013-10-02 12:17:04 -07:00
Naomi Seyfer
67046601ea Merge branch 'cannonical' into devel 2013-10-02 12:11:37 -07:00
Naomi Seyfer
998e805993 more docs and history.md notes 2013-10-02 12:01:24 -07:00
Naomi Seyfer
937bce6e5d Fix docs 2013-10-02 12:01:24 -07:00
Andrew Wilcox
da6bc1d835 EJSON.stringify objects in sorted key order.
Thus if two objects are EJSON.equals, their serialization strings will
be equal also.

(This should mean that reactive-dict could now allow objects to be
used as the key for `equal`).

Note this change does not affect livedata because livedata uses the
EJSON adjust functions to convert between JSON and EJSON (not
stringify).

Adds a couple options to EJSON.stringify:

* keyOrderSensitive: in parallel with EJSON.equals, outputs objects in
  native key order (the old behavior).

* indent: pretty-prints the output.

The serialization code is based json2, which makes it easy to preserve
the indentation functionality provided by JSON.stringify.  Only enough
code is included to serialize arrays and objects; serializing
primitive values such as strings is delegated to the native
JSON.stringify to reduce code and in case the native implementation is
more efficient.

Include underscore as an explicit dependency in package.js.

Document options to EJSON.equals and EJSON.stringify.
2013-10-02 11:43:44 -07:00
Emily Stark
8d9f97f358 Use a hardcoded example for Meteor.release, for now. 2013-10-02 11:43:16 -07:00
Emily Stark
ae6ab2d775 Fix logoutOtherClients docs typos 2013-10-02 11:37:27 -07:00
Emily Stark
f67cf78b2d Add docs for loginExpirationInDays and logoutOtherClients() 2013-10-02 11:37:27 -07:00
Slava Kim
c396f990b4 Doc string saying you can pass a predicate to restrict creation of new users by email. 2013-10-01 17:29:26 -07:00
Slava Kim
bd77b172bd Rename Accounts option 'restrictCreationByEmail' to 'restrictCreationByEmailDomain' 2013-10-01 17:14:30 -07:00
David Glasser
7f490a4081 Docs for ES5-style iteration. 2013-09-27 19:00:22 -05:00
Slava Kim
c6b8c651a4 Merge branch 'pr-1332' into devel 2013-09-26 14:51:23 -07:00
Slava Kim
d855e58f92 Implement Accounts.config({ restrictCreationByEmail: 'mit.edu' })
- Check email for users created with password or any social account's email
- Throw an error with explanation on bad email domain.
- Set `hd` param for Google Accounts authentication url
- Docs description
- Touch History.md

- Possibly should add it into QA process?
2013-09-26 14:50:55 -07:00
Matt DeBergalis
fcf6fdaa71 Clean up docs for collections managed by remote DDP server.
Fixes #875.
2013-09-25 23:28:15 -07:00
Slava Kim
ed9cb03ac1 Merge branch 'minimongo-fields' into devel
Support for 'fields' option in minimongo. Observe on the fields certain fields
will fire 'change' events only if one of watched fields changed.

Note: in minimongo observe, granularity of diff is one level. Meaning, watching
for changes at 'foo.bar' may fire even if 'foo.bar' didn't change.

Fixes #1287.
2013-08-15 14:38:20 -07:00
Nick Martin
6fffbec675 Doc tweak for connection:null in new Meteor.Collection. 2013-08-12 17:03:08 -07:00