Commit Graph

65 Commits

Author SHA1 Message Date
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
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
David Glasser
2790b90f4b Wrap new doc section, link to global in the Node API, and mention @. 2013-03-23 13:11:51 -07:00
Andrew Wilcox
e0d6c7d658 add documentation for setting global vars in CoffeeScript 2013-03-23 13:07:22 -07:00
Nick Martin
45fef52095 Use coffeescript.org instead of github link. 2013-03-14 12:12:24 -07:00
Kevin Miller
bfb7ed2e30 Made links to external projects in package section more consistent. 2013-03-13 16:09:12 -07:00
Kevin Miller
5e107051b2 Changed JavaScript spelling to be more consistent. 2013-03-13 16:09:12 -07:00
Nick Martin
5f7cd81eeb Doc tweak and History.md. 2013-03-11 22:34:05 -07:00
Nick Martin
0a3c7e5867 Merge branch 'devel' into appcache 2013-03-03 17:34:16 -08:00
Rasmus Erik Voel Jensen
fa4c81071d Literate CoffeeScript support. Added support for extension .litcoffee (and updated tests and documentation). 2013-03-02 18:48:08 -08:00
Andrew Wilcox
f72f366e20 appcache docs and tweak warning message 2013-02-22 18:38:41 -08:00
Andrew Wilcox
6ed6e8ce17 appcache code review changes 2013-02-21 18:41:53 -08:00
Andrew Wilcox
9c55aeeb97 appcache package
This code depends on PR 680.  In addition, the docs include a link to
the proposed AppCache wiki page.

Adds the appcache smart package and associated documentation.

QA notes are in packages/appcache/QA.md (Is this a good place to put
them?)
2013-02-21 18:41:53 -08:00
David Glasser
e1b07e4848 Merge branch 'devel' into ddp-pre1 2013-02-13 17:05:07 -08:00
David Glasser
2185b21be5 random docs: feedback from review. 2013-02-13 14:41:31 -08:00
David Glasser
9a7ac87778 Document random package. 2013-02-13 00:42:05 -08:00
David Glasser
78eb2a32d6 Watch '.lessimport' files for changes (but don't parse them).
'.lessimport' is now meaningful rather than just a suggestion in the docs.
2013-02-12 14:36:04 -08:00
David Glasser
05ac3ad75d Document how to prevent your less imports from being double-processed. 2013-02-05 18:34:55 -08:00
David Glasser
a5cc93ee55 Remove the 'sass' package, as warned in 0.5.0.
Meteor's sass package wraps the "sass" NPM module, which implements a version of
the Sass language much older than the .sass described at sass-lang.com (and
doesn't implement the current recommended .scss language at all). It also has
poor error handling, so it mostly just ends up confusing users.

The module is unmaintained, and its author now uses stylus/nib (which Meteor
supports: see the stylus package).

If many users want Sass support, we could add this back in wrapping the
"node-sass" package instead (which supports a more recent version of the Sass
language), but for now, just remove it. Meteor still supports Stylus and Less
out of the box.

Fixes #143.
2012-11-05 15:24:08 -08:00
Dan Dascalescu
5ccacd1fbd Doc cleanups. Fixes #430. 2012-11-05 11:19:23 -08:00
Avital Oliver
4c5a4acb02 Improve loginButtons docs 2012-10-23 15:52:31 -07:00
Nick Martin
4ca931aed8 Fix quotes around login buttons example. Fixes #402. 2012-10-18 17:00:31 -07:00
David Glasser
0bfbbc13c2 Fix D3 link. 2012-10-15 16:51:49 -07:00
Matt DeBergalis
ad1656b2cf D3.js package 2012-10-15 16:48:23 -07:00
David Glasser
8d1e4afc0e Docs: clean up accounts-ui section. 2012-10-15 16:26:07 -07:00
David Glasser
93090b846c Fix doc typos. 2012-10-15 16:18:25 -07:00
Avital Oliver
e3a1f7f428 Refer to OAuth less in docs. Small improvements to accounts-ui docs 2012-10-15 16:12:09 -07:00
David Glasser
1fe86fa93a Add a warning about the brokenness of the sass package to the docs (issue #143).
sass.js implements a version of Sass much older than the .sass (let alone
currently recommended .scss) described at sass-lang.com, and has poor error
handling so it mostly just ends up confusing users. sass.js's author now uses
stylus/nib. We should probably remove the sass package, but let's not add
another breaking change to 0.5.0.
2012-10-15 11:21:21 -07:00
David Glasser
72731ddda0 Use jQuery to force all non-#internal links to use target=_blank.
Rewrite <a href> links to use Markdown syntax now that they don't need the <a
href> to get target=_blank.
2012-10-15 11:16:53 -07:00
Dan Dascalescu
0a89f9408d Use better_markdown throughout 2012-10-13 21:31:55 -07:00