Commit Graph

93 Commits

Author SHA1 Message Date
Geoff Schmidt
ebf14581a7 move force-ssl writeup from docs.meteor.com to a README 2014-10-13 22:33:05 -07:00
Geoff Schmidt
34505c8356 Move browser-policy docs from docs.meteor.com to the browser-policy readme. Also create placeholder readmes for the other browser-policy-* packages. 2014-10-13 21:54:04 -07:00
Geoff Schmidt
cdbc57c0ce Move appcache docs from docs.meteor.com to package readme 2014-10-13 20:21:23 -07:00
Geoff Schmidt
5661a590f2 Move spiderable docs from docs.meteor.com to readme 2014-10-13 18:37:23 -07:00
Adam Monsen
4f13b2b89b api doc: use {{dstache}} template helper
Less/cleaner source code.
2014-09-29 14:14:57 -07:00
Adam Monsen
3a08be8055 api doc: add a working showdown (Markdown) example
I couldn't figure out an easy way to include a Spacebars operator like
{{#markdown}} in a Markdown code block, hence the <code>{&#123;#...
trickery. I think I can clean this up a little with the {{dstache}}
template helper, though. See next commit.
2014-09-29 14:14:57 -07:00
David Greenspan
32f6edc624 Deprecate amplify,backbone,bootstrap,d3
packages/deprecated/README:

```
These packages are no longer actively maintained by MDG.  Seek
community alternatives instead.

Note that these packages still exist in atmosphere, and you can still
build a package that depends on one of them by specifying an explicit
package version.
```

Nothing technically prevents us from publishing further versions of these packages (like the ones in packages/non-core).
2014-09-25 11:02:34 -07:00
Emily Stark
ffc65af211 Showdown docs tweaks
Fixes #2611.
2014-09-23 14:21:14 -07:00
Sashko Stubailo
8e6f9ab3cc Typo 2014-09-10 15:28:46 -07:00
Sashko Stubailo
3aeca8d461 Add a part about how to disable fastclick for an element 2014-09-10 15:27:54 -07:00
Sashko Stubailo
9d5629e861 Made a small change to fastclick docs 2014-09-10 14:43:25 -07:00
Sashko Stubailo
b6004b19a3 Add documentation about fastclick 2014-09-10 14:38:30 -07:00
Adam Monsen
99897764f7 pluralize "CoffeeScript variables"
trivial doc fix
2014-09-08 15:29:25 -07:00
David Glasser
fe436f2c8a appcache doc update for 0.9.0 change
Fixes #2465.
2014-09-05 16:52:05 -07:00
Sashko Stubailo
9472d7deea Improve documentation for webapp 2014-09-04 13:44:42 -07:00
Sashko Stubailo
3916991bc2 Add documentation for WebApp.connectHandlers 2014-09-02 19:42:39 -07:00
Sashko Stubailo
d0a0c177c9 Update docs and update jsdoc ignored paths 2014-08-28 17:11:58 -07:00
Fredric Endrerud
effd3c1524 Change AppCache from browser whitelist to blacklist 2014-07-18 16:07:02 -07:00
Emily Stark
a8673d01cd Set X-Content-Type-Options in browser-policy-content 2014-05-08 12:12:45 -07:00
Emily Stark
55363a9b86 Merge remote-tracking branch 'origin/devel' into awwx-oauth-encryption
Conflicts:
	History.md
	packages/facebook/facebook_client.js
	packages/github/github_client.js
	packages/google/google_client.js
	packages/meetup/meetup_client.js
	packages/meteor-developer/meteor_developer_client.js
	packages/twitter/twitter_client.js
	packages/weibo/weibo_client.js
2014-04-22 11:31:31 -07:00
David Glasser
ce201682f0 Warn about unready publications to spiderable docs
Fixes #1149.
2014-04-21 19:17:51 -07:00
Emily Stark
66b73e170e Merge branch 'oauth-encryption' of https://github.com/awwx/meteor into awwx-oauth-encryption
Conflicts:
	packages/facebook/facebook_client.js
	packages/github/github_client.js
	packages/google/google_client.js
	packages/meetup/meetup_client.js
	packages/meteor-developer/meteor_developer_client.js
	packages/oauth/pending_credentials.js
	packages/twitter/twitter_client.js
	packages/weibo/weibo_client.js
2014-04-21 11:08:43 -07:00
Emily Stark
9e42f5b37a Add docs for Random.secret 2014-04-17 16:12:24 -07:00
Andrew Wilcox
83af2e2179 oauth-encryption code review items
Have `OAuthEncryption.open` throw "decryption unsuccessful" on any
error to avoid allowing an attacker to break the encryption key by
observing the result of sending manipulated ciphertexts.

Add oauth-encryption and the oauthSecretKey config options to the docs
page.

Update history.

More documentation on functions.

Use `OAuth.sealSecret(...)` instead of `{seal: ...}`.

Rename OAuth._openSecret(s) to OAuth.openSecret(s).

In the readme describing how to generate a key, just use Node instead
of going through the hassle of creating a Meteor application.

Have the `oauth` package weakly depend on `oauth-encryption` for when
it's being used without accounts.

Add tips on using oauth-encryption without accounts to the readme.
2014-04-10 14:26:44 -04:00
David Glasser
5252692de5 Update docs for {{> loginButtons}} 2014-03-25 16:02:40 -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
Maxime Quandalle
cf11139f6c Add a .import.styl handler to prevent Meteor processing a stylus file Fix #462 2014-02-03 21:58:29 -08:00
Maxime Quandalle
a63a3b0057 Update documentation: lessimport -> import.less 2014-02-03 21:58:28 -08:00
David Glasser
6471dce8fa Merge branch 'devel' into shark 2014-01-27 13:58:11 -08:00
Avital Oliver
ede2e80d48 {{#better_markdown}} -> {{#markdown}} 2014-01-20 00:03:01 -08:00
Emily Stark
189845f1fb Add frame-src to browser-policy-content. 2014-01-11 20:43:36 -08:00
Emily Stark
f89941412a Smooth over some cross-browser CSP differences.
* Adding "foo.com" to your CSP via browser-policy now adds both
  "http://foo.com" and "https://foo.com". This smooths over the fact
  that some browsers interpret "foo.com" as "http://foo.com" and some
  interpret it as http AND https.
* Trim trailing slashes from origins. Firefox does not allow content
  from foo.com if you add "foo.com/" to your CSP.
2014-01-11 20:36:01 -08:00
David Glasser
bab936eac9 Patch _.each to not treat {length: 5} as an array
Specifically, in all Underscore "collection" functions which treat their
arguments polymorphically as either "object-like" or "array-like", don't
treat arguments with `x.constructor === Object` as arrays (except for
the 'arguments' object).

Fixes #594. Fixes #1737.
2014-01-07 20:17:47 -08:00
David Glasser
8a3f24765b Add Oxford comma
http://www.washingtontimes.com/news/2013/dec/11/comma-twitter-erupts-over-obama-castro-marriage/
2014-01-07 17:23:49 -08:00
Maxime Quandalle
c6bea042b7 Update coffeescript.html 2014-01-07 17:23:34 -08:00
Emily Stark
18704dccaa Note in the docs that BrowserPolicy can only be used in server code 2013-12-04 10:40:49 -08:00
Emily Stark
9609fa2313 Tweak browser-policy-framing docs 2013-10-03 13:56:03 -07:00
Emily Stark
b5286b941a Separate browser policy functions into two packages.
* browser-policy uses browser-policy-framing and browser-policy-content, both of
  which set default policies when they are used. This way you get a default
  policy when you add a browser policy package, but you can pick and choose
  different packages if you only want to think about one of them.
* The two packages use different namespaces: BrowserPolicy.framing and
  BrowserPolicy.content, which meant some functions got renamed (e.g. not using
  "framing" or "content in the function name when it's already in the
  namespace).
2013-10-03 13:56:03 -07:00
Emily Stark
d5159ae81b Rename BrowserPolicy framing functions.
Orient them around the default policy, which is app can be framed by any origin.
2013-10-03 13:56:03 -07:00
Emily Stark
9d1e3dbd56 Enable CSP differently for tests.
Avoids sending header and using meteor_runtime_config.js on tests. Also tweak
wording on browser-policy docs.
2013-09-28 18:44:31 -07:00
Emily Stark
a102872a96 Rework browser-policy to make API more intuitive.
- Remove starter-browser-policy and replace it with
  BrowserPolicy.enableContentSecurityPolicy(), which gives you the starter
  policy and allows you to use the other BrowserPolicy functions to configure
  it. This is motivated by the fact that the API isn't very intuitive without a
  well-defined starting policy. ex: if the package starts off without a policy,
  and then the user calls allowAllContentSameOrigin(), that will result in
  turning off inline scripts, which is probably not what they wanted.
- AllContent functions do more of what you'd expect now;
  i.e. BrowserPolicy.disallowAllContent() actually disallows all content,
  instead of setting default-src to 'none', which will allow other types of
  content that have previously had srcs set for them.
- Add some tests
2013-09-28 18:44:04 -07:00
Emily Stark
e6300461b1 Reorganize browser-policy docs a bit.
Addressing Nick's suggestions. Haven't decided yet about combining
browser-policy and starter-browser-policy docs.
2013-09-28 18:44:04 -07:00
Emily Stark
4893fe048c Package for security-related http headers. 2013-09-28 18:44:04 -07:00
Emily Stark
2413a8d3ed Use cryptographic PRNGs when available.
This means node's crypto.randomBytes on the server, and
window.crypto.getRandomValues on the client. If node's crypto.randomBytes throws
an exception, we fall back to crypto.pseudoRandomBytes. If
window.crypto.getRandomValues isn't supported by the browser, we fall back to
the alea generator that we had been using previously.
2013-09-25 15:53:04 -07:00
Andrew Wilcox
ba34b2550b Chrome for iOS supports the appcache 2013-09-04 16:31:52 -07:00
Geoff Schmidt
f350edeb7d Docs: CoffeeScript namespacing, other tweaks 2013-08-14 13:38:43 -07:00
David Glasser
70883fdc42 Remove "write to the global" coffeescript instructions.
As part of a docs pass we will explain the new way to use coffeescript globals.

(In short: in a package, anything declared with `api.export` becomes
package-level and exported. If you want something package-level and not
exported, or app-level, there's an object `share` and you can assign to fields
on it.)
2013-08-02 17:13:49 -07:00
Andrew Wilcox
3e7d38ee9a also add Chromium to the list of browsers in the docs 2013-04-25 16:50:33 -07:00
David Glasser
296d4f5ccf docs ready for review 2013-04-18 19:17:53 -07:00
David Glasser
f72a7223c5 More check docs 2013-04-18 19:17:53 -07:00