Commit Graph

41 Commits

Author SHA1 Message Date
Slava Kim
9e7c14ac81 Globally replace Template.rendered callbacks to Template.onRendered
In:

- examples
- some blaze tests
- packages

Change:

- rendered -> onRendered()
- created -> onCreated()
- destroyed -> onDestroyed()
2015-01-16 16:36:23 -08:00
Nick Martin
dd4dbf6d40 Move parties and wordplay out of default examples. 2014-10-27 22:00:26 -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
David Glasser
5252692de5 Update docs for {{> loginButtons}} 2014-03-25 16:02:40 -07:00
Nick Martin
d8575d0a24 Merge branch 'devel' into shark 2014-03-17 15:51:18 -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
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
Nick Martin
46e7410383 Move block for computing httpForwardedCount from the top of the file into where it is used.
This is less efficient, as we don't actually need to compute it every time.
However, I think this is pretty small compared to the other work we're doing
(string splitting via regexp, string copies, etc).

This makes the code clearer and easier to understand, as all the code is in
one place. Also, it was distracting at the top of the file as it came before
the commit saying what was in the file.
2014-02-04 01:28:36 -08:00
Andrew Wilcox
09029be917 Update client info API to just have connection.clientAddress and connection.httpHeaders.
Fix documentation.

Expose webapp's `identifyBrowser`, even though we aren't currently
using outside of webapp.
2014-02-04 01:08:36 -08:00
Andrew Wilcox
ca7a6929d7 Make information about the client available in the connection object. 2014-02-04 01:08:36 -08: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
e60da7acc1 allow string in <div {{{attrs}}}> 2013-09-18 15:49:03 -07:00
David Greenspan
665cfb269d next step in porting template-demo 2013-09-18 10:34:17 -07:00
David Greenspan
a842d575ce domrange-grid speed demo; IE 8 testing 2013-08-27 17:18:20 -07:00
David Glasser
4e222d8e26 The standard app packages are brought in explicitly now.
.meteor/packages in new apps now contains "standard-app-packages", which implies
the standard set of packages like mongo-livedata. There is no special-casing in
initFromAppDir.  This line has been added to all the examples, etc.

There's a new concept of "upgraders".  "meteor run-upgrader app-packages" will
add standard-app-packages to the app, as well as all of the package in the app's
packages/ directory (an unrelated change since 0.6.4). This will be integrated
soon with "meteor update"; run-upgrader is essentially for testing.

project.add_package no longer adds packages that are already there.
2013-07-26 19:02:12 -07:00
Nick Martin
bb4afdff5b move app out of package 2013-05-22 21:58:43 -07:00
David Greenspan
fe58789d8f fix error logging in login-demo 2013-03-26 11:13:55 -07:00
David Greenspan
f7dbbca72f log errors from login (eg not configured) 2013-03-25 22:07:57 -07:00
David Greenspan
d90f422b43 more readme 2013-03-25 21:25:05 -07:00
David Greenspan
2c8f7d5d87 demo of login and private data 2013-03-25 21:19:33 -07:00
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
Avital Oliver
78ca755d3d Npm.require unified requireNpm and __meteor_bootstrap__.require 2013-03-19 15:11:04 -07: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
David Glasser
9b486b3c9b Meteor.random -> Random.fraction
add Random.choice
2013-02-13 00:08:50 -08:00
David Glasser
3f2aad7c0e Rename subscription "complete" to "ready" everywhere (including in the
protocol and the publisher API).

Also update examples/other/quiescence for ddp-pre1.
2013-01-30 13:34:58 -08:00
David Glasser
2aa92b2ed3 Update to use APIs from new versions of fibers and uglify-js.
Combine files before minimizing.

minimongo - subkey sort fails when minized, so clearly there is some sort of
uglify bug.
2013-01-16 11:34:30 -05:00
David Glasser
c947cbf1b3 Demo for quiescence. 2012-11-14 18:10:08 -08:00
David Glasser
bae1a59af6 Publicize Meteor._autorun as Meteor.autorun (with docs and tests). 2012-10-12 00:50:35 -07:00
David Glasser
86cdbe4d71 Merge branch 'deps-utils-private' into devel
This adds three deps utilities, which are currently undocumented and internal:
Meteor._ContextSet, Meteor._autorun, and Meteor._atFlush.
2012-10-06 11:06:58 -07:00
David Glasser
20e29d2851 Make everything in deps-utils private for now. 2012-10-05 15:26:22 -07:00
Nick Martin
f36fc90c07 Add clear button to template demo. Fixes #362 2012-10-04 22:02:24 -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
David Greenspan
fb765dd5f3 Meteor.autorun 2012-09-16 04:07:49 -07:00
David Greenspan
1ca5357b28 new event map syntax 2012-08-22 19:41:06 -07:00
David Greenspan
9fe768989f past-tense created/rendered/destroyed
Consensus is that "render" is too confusing a name for what's obviously a callback (after the template is rendered).  We prefer past tense rather than oncreate, onrender, ondestroy.
2012-08-22 16:58:48 -07:00
Geoff Schmidt
fc85b3a243 scale d3 canvas correctly 2012-08-15 21:43:33 -07:00
Geoff Schmidt
7c89eb8eca make d3 demo wider 2012-08-15 20:55:13 -07:00
Geoff Schmidt
0241f84b56 clean up the demo 2012-08-15 20:42:50 -07:00