771 Commits

Author SHA1 Message Date
Brandon Roberts 2c1ef08466 docs: Updated router guide content and examples for paramMap
and queryParamMap, tracing, and incidental improvements.
closes #16991 and #16259 which it also fixes.
2017-06-29 15:29:51 -07:00
Georgios Kalpakas 5f1dcfc228 feat(aio): use shorter URLs for previews
Use the 7 first characters of the 40-chars long SHAs for shorter/cleaner URLs.
The collision probability is extremely low (since all SHAs are further
"namespaced" under the corresponding PR). In case of a collision, the second PR
will not be deployed, in order to avoid overwriting the original build.

(This is a design decision to keep the implementation simple. It can be changed
later if necessary.)
2017-06-29 15:29:51 -07:00
Georgios Kalpakas f9f2b23afc fix(aio): clean up non-public previews
The previous clean-up code for PR directories on the preview server assumed that
all directories were named after the PR number. With the changes introduced
in #17640 it is possible to have PR directories that do not follow that naming
convention (e.g. "non-public" directories).

This PR ensures that both public and non-public directories are removed when
cleaning up.
2017-06-29 15:29:51 -07:00
Ward Bell ad3661cff7 feat(aio): cross reference readme and docs styleguide 2017-06-29 15:29:51 -07:00
Georgios Kalpakas 7205d7a568 fix(aio): build scripts-js before creating a new docker image for the preview server
When creating a new docker image for the preview server, the TypeScript source
code in `scripts-js/` is not copied over. Instead only the generated JavaScript
core in `scripts-js/dist/` are. Because of that, it is necessary to have run
`yarn build` before running `docker build`, so that the new docker image
contains the latest changes in `scripts-js/`.

This was previously part of the `create-image.sh` script, but was accidentally
removed in 21d213dfc.
2017-06-27 15:57:50 -04:00
Jesus Rodriguez 6b23e2f427 build(aio): boilerplate wont be removed by default now 2017-06-27 15:57:32 -04:00
David Herges 08dba3f93b fix(aio): Typo in Setup Anatomy documentation page
Solves #17076
2017-06-27 15:57:27 -04:00
swseverance 2624fa5ae2 docs(aio): fix typo 2017-06-27 15:57:22 -04:00
Anthony Van de Gejuchte ffbdf74e92 docs(aio): cleanup rollup-config script 2017-06-23 12:11:57 -07:00
Yuan Gao 589826f5e5 ci(aio): Change the firebase token 2017-06-23 12:11:56 -07:00
Yuan Gao 6f5e6374f8 ci(aio): address comments 2017-06-23 12:11:56 -07:00
Yuan Gao a309d62806 ci(aio): fix test 2017-06-23 12:11:56 -07:00
Yuan Gao 9699c02642 ci(aio): remove umd 2017-06-23 12:11:56 -07:00
Yuan Gao 6040c66e95 ci(aio): debug 2017-06-23 12:11:55 -07:00
Yuan Gao 347fec5e8c ci(aio): add back deploy-preview 2017-06-23 12:11:55 -07:00
Yuan Gao c7bbf0573a ci(aio): updated limits 2017-06-23 12:11:55 -07:00
Yuan Gao c2fda10a73 ci(aio): rename limits file and address comments 2017-06-23 12:11:55 -07:00
Yuan Gao b38edeb055 ci(aio): Also track umd.min.js file size 2017-06-23 12:11:54 -07:00
Yuan Gao 2407beb17e ci(aio): Add payload size limit file 2017-06-23 12:11:54 -07:00
Yuan Gao b6418039e0 ci(aio): upload aio payload size to firebase
ci(aio): Add timestamp and change data
2017-06-23 12:11:54 -07:00
Georgios Kalpakas 107655e43f refactor(aio): provide fallback values for secrets (useful during dev) 2017-06-23 12:11:53 -07:00
Georgios Kalpakas 162bddf0b8 refactor(aio): enable -u flag on preview server scripts 2017-06-23 12:11:53 -07:00
Georgios Kalpakas 81c18b7241 docs(aio): document preview server HTTP status codes 2017-06-23 12:11:53 -07:00
Georgios Kalpakas 0c4b561999 ci(aio): deploy previews for all PRs
PRs that could not be automatically verified will not be publicly accessible,
until manually verified.
2017-06-23 12:11:53 -07:00
Georgios Kalpakas 563577eeab test(aio): add e2e tests for non-public previews 2017-06-23 12:11:53 -07:00
Georgios Kalpakas 17e000a678 feat(aio): enable previews for any PR
This commit introduces the ability to show previews for PRs by any author. It works as follows:

- The build artifacts of all PRs are uploaded to the preview server.
- Automatically verified PRs (i.e. from trusted authors or having a specific label) are deployed and
  publicly accessible as usual.
- PRs that could not be automatically verified are stored for later use (after re-verification).
- A PR can be marked as "trusted" and make its preview publicly accessible by adding the GitHub
  label specified in the `AIO_TRUSTED_PR_LABEL` env var of the preview server.

At the moment, there is no automatic mechanism for notifying the preview server about changes to the
PR's verification status. The PR's "visibility" will be checked and updated every time a new build
is uploaded.
2017-06-23 12:11:52 -07:00
Georgios Kalpakas b8806a656f refactor(aio): simplify preview server build events 2017-06-23 12:11:52 -07:00
Georgios Kalpakas ee5cd52d5f test(aio): add missing unit test for preview server 2017-06-23 12:11:52 -07:00
Georgios Kalpakas 84a72b774e test(aio): fix preview server tests on Windows 2017-06-23 12:11:52 -07:00
Georgios Kalpakas 9e28f58ec8 build(aio): upgrade preview server dependencies 2017-06-23 12:11:51 -07:00
Ward Bell 10e2db000c fix(aio): prefix location.assign with window.
No practical effect but clears the TS compiler warning.
2017-06-23 12:11:51 -07:00
Georgios Kalpakas 098d35ef64 fix(aio): fix links on /about in Firefox
Fixes #17661
2017-06-23 12:11:51 -07:00
Georgios Kalpakas d5a8f6ebfe refactor(aio): clean up aio-contributor template and styles 2017-06-23 12:11:51 -07:00
Georgios Kalpakas 9415e6603f fix(aio): preserve newlines when copying code
Before 4f37f8643, we were using `innerText` to retrieved the code content for
copying. This preserved the text layout (including newlines), but suffered from
other issues (browser support, performance). With 4f37f8643 we switched to
`textContent`, which works well except in the following case:
When `prettify` formats the code to have line numbers, it removes the newlines
and uses `<li>` elements instead. This affects `textContent`.

This commit fixes this by keeping a reference of the code as text and using that
for copying.

Fixes #17659
2017-06-23 12:11:50 -07:00
Jules Kremer 1d6465b596 docs(aio): Update resources.json - fixed language error 2017-06-23 12:11:50 -07:00
Vincent Ogloblinsky 58012df46f docs(aio): update resources - Add Compodoc - documentation tool for Angular app 2017-06-23 12:11:50 -07:00
Georgios Kalpakas 21c5b177ef fix(aio): fix topbar nav-item focus style
Fixing it requires upgrading `@angular/material` to v2.0.0-beta.7.

Fixes #17216
2017-06-23 12:11:50 -07:00
Ward Bell 6b5b3a7269 docs(aio): resources.json - replace “Angular 2” in titles/descriptions
closes #16965
2017-06-23 13:18:41 -04:00
Alex Xu 58c5e86209 docs(aio): update Bash for Windows info
As of the Creator's Update, Bash on Ubuntu on Windows supports all npm commands. 
https://blogs.msdn.microsoft.com/commandline/2017/04/11/windows-10-creators-update-whats-new-in-bashwsl-windows-console/
Update setup documentation accordingly.
2017-06-23 13:18:37 -04:00
Georgios Kalpakas 1657fa756f docs(aio): minor fixes for the upgrade guide
Fixes #17093
2017-06-23 13:18:33 -04:00
Trotyl Yu 2ff85c6790 fix(aio): add missing WeakMap polyfill 2017-06-23 13:18:26 -04:00
Ward Bell 353de5191c docs(aio): replace “Angular 1” in upgrade phonecat script 2017-06-22 23:26:08 -04:00
Ward Bell ea5ac89b50 docs(aio): fix promises link in toh-pt4
closes #16050
2017-06-22 23:26:03 -04:00
Michael f5ce60e6bc docs(aio): remove "_" from private property name
follow best practices from the documentation: https://angular.io/guide/styleguide#properties-and-methods
2017-06-22 23:25:58 -04:00
David 7a2903993a docs(aio): correct typos in Tour of Heroes HeroSearchService 2017-06-22 23:25:53 -04:00
bmarkov a29a0df183 docs(aio): Added resources to UI Components (#17635)
docs(aio): Added resources to UI Components
2017-06-22 23:25:48 -04:00
Kapunahele Wong 746fed453a docs(aio): remove min, max & move built-in validators paragraph 2017-06-22 23:25:43 -04:00
Stepan Suvorov 64e1b9cc9a docs(aio): added link to Russian Angular Courses 2017-06-22 23:25:39 -04:00
Mark Amery af1c4db0e4 docs: Fix some non-code being formatted as code in the router docs 2017-06-22 23:24:18 -04:00
Ward Bell 74954f1a8d docs(aio): ward's changes 2017-06-21 16:28:19 -07:00