809 Commits

Author SHA1 Message Date
George Kalpakas
08325aaffc feat(service-worker): add support for configuring navigations URLs (#23339)
The ServiceWorker will redirect navigation requests that don't match any
`asset` or `data` group to the specified index file. The rules for a
request to be classified as a navigation request are as follows:
1. Its `mode` must be `navigation`.
2. It must accept a `text/html` response.
3. Its URL must match certain criteria (see below).

By default, a navigation request can have any URL except for:
1. URLs containing `__`.
2. URLs to files (i.e. containing a file extension in the last path
   segment).

While these rules are fine in many cases, sometimes it is desirable to
configure different rules for the URLs of navigation requests (e.g.
ignore specific URLs and pass them through to the server).

This commit adds support for specifying an optional `navigationUrls`
list in `ngsw-config.json`, which contains URLs or simple globs
(currently only recognizing `!`, `*` and `**`).
Only requests whose URLs match any of the positive URLs/patterns and
none of the negative ones (i.e. URLs/patterns starting with `!`) will be
considered navigation requests (and handled accordingly by the SW).

(This is an alternative implementation to #23025.)

Fixes #20404

PR Close #23339
2018-04-13 13:13:36 -07:00
George Kalpakas
d1e716b2cb docs(service-worker): minor fixes/improvements (#23339)
PR Close #23339
2018-04-13 13:13:36 -07:00
Rafael
639d52fe71 refactor: ensure all 'TODO's are consistent (#23252)
PR Close #23252
2018-04-13 13:11:01 -07:00
George Kalpakas
0224f1aaf3 refactor(aio): remove file that should not be tracked (#23359)
PR Close #23359
2018-04-13 08:06:19 -07:00
Rob Wormald
74b203a55e docs(elements): add ng-add docs to elements guide (#23350)
PR Close #23350
2018-04-13 00:50:04 -07:00
Suguru Inatomi
3bd682f432 docs(aio): Add link to Japanese localization (#20630)
PR Close #20630
2018-04-13 00:26:12 -07:00
Juan Camilo Giraldo Chaverra
221ae6998a docs(aio): fix typo on AOT compiler section 2018-04-13 00:06:26 -07:00
Michael Huang
f958293205 docs(aio): update text InMemoryWebApiModule to HttpClientInMemoryWebApiModule (#23285)
PR Close #23285
2018-04-12 23:17:19 -07:00
Jeremy Attali
993eeababb docs: fix typo in injected variable name (#23315)
The service injected is `ValueService`, however the name of the variable
does not reflect that. It's actually confusing since it's the name of
the `class` being created.

PR Close #23315
2018-04-12 23:16:52 -07:00
Judy Bogart
1fac5f4eb1 docs: recommend best practice for providers (#22934)
PR Close #22934
2018-04-06 21:49:34 -07:00
Rob Wormald
eb9968ab2a docs(elements): use Angular Elements naming in nav (#23213)
PR Close #23213
2018-04-05 16:32:57 -07:00
Anuj Jain
b5f41f2c35 docs: fixed live example for the lifecycle hooks. (#23201)
PR Close #23201
2018-04-05 16:29:38 -07:00
George Kalpakas
3b607e60e9 refactor(aio): remove unused images (#23018)
PR Close #23018
2018-04-05 10:12:09 -07:00
George Kalpakas
b874501025 docs(aio): update live-example docs in authors style guide (#23018)
PR Close #23018
2018-04-05 10:12:09 -07:00
Igor Minar
5db9ab12c0
docs: fix skipTemplateCodeGen -> skipTemplateCodegen typo in the AOT compiler guide 2018-04-04 23:12:28 -07:00
Pete Bacon Darwin
6dd8f6efe4 docs(aio): remove invalid nav item (#23175)
The `custom-elements` guide page was renamed to `elements` in ff34d5ea7.
That commit also added a new nav item for the renamed file, so this item is
no longer valid.

PR Close #23175
2018-04-04 14:32:14 -07:00
JiaLi.Passion
c560423b52 build: upgrade zone.js (#23108)
PR Close #23108
2018-04-04 08:24:02 -07:00
Vani
4506230fbb docs: update contents to recommend new way of defining providers (#23076)
PR Close #23076
2018-04-03 12:32:59 -07:00
Vani
5671ae6a58 docs: add tree-shakable providers doc (#23027)
PR Close #23027
2018-04-03 12:32:39 -07:00
Matias Niemelä
18ac228a27 docs: change examples within services to be tree-shakeable (#23070)
PR Close #23070
2018-04-03 10:48:52 -07:00
jenniferfell
a4bf5621ed docs: add reference to ng add in tutorial and quick reference (#23130)
PR Close #23130
2018-04-03 07:38:47 -07:00
Zhicheng Wang
4aeff82d53 fix: 文字微调 2018-04-03 10:34:27 +08:00
Judy Bogart
ff34d5ea7a docs: add custom elements documentation (#22966)
PR Close #22966
2018-04-02 14:13:46 -07:00
Judy Bogart
de0b13d41d docs: update for hero service name change (#22920)
PR Close #22920
2018-03-29 09:20:04 -07:00
Judy Bogart
07d33d4e5a docs: fix operator name (#22920)
PR Close #22920
2018-03-29 09:20:04 -07:00
Judy Bogart
9f7bd8f618 docs: update text around changed obs examples (#22920)
PR Close #22920
2018-03-29 09:20:04 -07:00
Alex Rickabaugh
e1ea7ed019 docs: update examples for tree-shakeable providers (#22961)
PR Close #22961
2018-03-28 07:53:04 -07:00
Zhicheng Wang
2a2e66034d fix: 查漏补缺 2018-03-28 08:51:22 +08:00
Zhicheng Wang
8e205552ff chore: add to thanks 2018-03-28 08:38:56 +08:00
ChristinaLy
47f73c2795 fix issue #290
文件拓展名翻译错误
2018-03-28 08:30:27 +08:00
ChristinaLy
86cc002b7e 修改翻译错误
inject into any class that asks for it应该翻译为“把它注入到任何请求注入的类中”
2018-03-28 08:30:27 +08:00
Veres Lajos
de90314304 style: typos fixed - https://github.com/vlajos/misspell-fixer (#22975)
PR Close #22975
2018-03-27 14:51:53 -04:00
Zhicheng Wang
ced3662da9 fix: 微调 2018-03-27 13:00:43 +08:00
Zhicheng Wang
b433d2148c fix: change some angular.io to angular.cn 2018-03-26 16:34:57 +08:00
Zhicheng Wang
42b585cc9f fix: 去掉多余的空行,以解决首页部分 Markdown 无法正常编译的问题 2018-03-26 15:55:18 +08:00
Zhicheng Wang
5dad75d04f fix: merge examples and images 2018-03-26 15:13:41 +08:00
Zhicheng Wang
838f07bdcd fix: 修正错误的标题级别 2018-03-26 14:53:47 +08:00
Zhicheng Wang
7965991c60 feat: 翻译完了 architecture-services 2018-03-25 17:04:24 +08:00
Zhicheng Wang
01ed628717 feat: 翻译完了 architecture-components 和 architecture-modules 2018-03-25 12:36:17 +08:00
Zhicheng Wang
b01ec8ad9a feat: 翻译完了 architecture-next-steps 2018-03-25 08:27:31 +08:00
Zhicheng Wang
9e732fc4ff feat: 翻译完了 architecture 2018-03-25 08:01:14 +08:00
Zhicheng Wang
e1ca813b7c fix: 翻译完了 reactive-forms 新增的部分 2018-03-24 21:43:09 +08:00
Zhicheng Wang
e167fa5229 refactor: 重构自动翻译代码 2018-03-24 20:03:10 +08:00
Zhicheng Wang
6c3d57aee9 fix: 合并了最新版本 2018-03-24 13:12:42 +08:00
Zhicheng Wang
a4ac40b640 fix: 翻译了所有遗漏的部分。 2018-03-24 11:16:33 +08:00
Zhicheng Wang
5c39927ee1 fix: 微调 2018-03-24 08:44:35 +08:00
Zhicheng Wang
abbc8d84f0 fix: 微调 2018-03-24 08:38:15 +08:00
Zhicheng Wang
0203e84780 fix: 微调 2018-03-24 08:32:25 +08:00
Zhicheng Wang
15691c4e36 fix: 微调 2018-03-24 08:14:29 +08:00
Zhicheng Wang
a65ccab7be feat: 翻译完了 Service Worker。
feat: 本版的翻译全部完工。
2018-03-24 08:11:01 +08:00