Skip to content

Commit efe353c

Browse files
authored
Merge pull request #483 from 3cp/fix-links
fix: cleanup http links
2 parents 559d7d0 + 56298e8 commit efe353c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+217
-217
lines changed

ACKNOWLEDGEMENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Acknowledgements
22

3-
The Protractor diagram included in this repository was adapted from the original located at _[http://angular.github.io/protractor/img/components.png](http://angular.github.io/protractor/img/components.png)_ Many thanks to the Protractor team for creating this tool and the accompanying documentation.
3+
The Protractor diagram included in this repository was adapted from the original located at _[https://angular.github.io/protractor/img/components.png](https://angular.github.io/protractor/img/components.png)_ Many thanks to the Protractor team for creating this tool and the accompanying documentation.

ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ BUGS: Please use this template.
33
44
SUPPORT REQUESTS/QUESTIONS: If you have a support request or question please
55
submit them to StackOverflow using the tags aurelia and aurelia-framework
6-
http://stackoverflow.com/questions/tagged/aurelia
6+
https://stackoverflow.com/questions/tagged/aurelia
77
or the Aurelia Gitter https://gitter.im/aurelia/discuss
88
99
Blue Spire offers paid support agreements. Further information regarding paid support

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
The documentation for Aurelia.
44

5-
> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Gitter](https://gitter.im/aurelia/discuss) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). The built form of this documentation can be found [in our developer hub](http://aurelia.io/docs).
5+
> To keep up to date on [Aurelia](https://www.aurelia.io/), please visit and subscribe to [the official blog](https://blog.aurelia.io/) and [our email list](https://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Gitter](https://gitter.im/aurelia/discuss) or use [stack overflow](https://stackoverflow.com/search?q=aurelia). The built form of this documentation can be found [in our developer hub](https://aurelia.io/docs).

alpha/Chinese/get_started.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
77
## 配置环境
88

9-
构建现代 JavaScript 应用依赖于一系列很优秀的工具,我们就从配置这些工具开始。本教程所用的工具都基于 [Node.js](http://nodejs.org/) 。如果你已经安装了 Node.js ,那很好!如果没装,到 [Node.js 官网](http://nodejs.org/) 下载安装就行了。所有其他工具都将通过 Node 的包管理器([npm](https://docs.npmjs.com/getting-started/what-is-npm))来安装。
9+
构建现代 JavaScript 应用依赖于一系列很优秀的工具,我们就从配置这些工具开始。本教程所用的工具都基于 [Node.js](https://nodejs.org/) 。如果你已经安装了 Node.js ,那很好!如果没装,到 [Node.js 官网](https://nodejs.org/) 下载安装就行了。所有其他工具都将通过 Node 的包管理器([npm](https://docs.npmjs.com/getting-started/what-is-npm))来安装。
1010

11-
首先要安装的是 [Gulp](http://gulpjs.com/) ,用来进行组建自动化(build automation)。如果你还没装 Gulp,那你可以用 npm 安装,像下面这样(可能要用到 `sudo`):
11+
首先要安装的是 [Gulp](https://gulpjs.com/) ,用来进行组建自动化(build automation)。如果你还没装 Gulp,那你可以用 npm 安装,像下面这样(可能要用到 `sudo`):
1212

1313
```shell
1414
npm install -g gulp
1515
```
1616

17-
其次需要安装 [jspm](http://jspm.io/) 作为客户端包管理器。可以这样做:
17+
其次需要安装 [jspm](https://jspm.io/) 作为客户端包管理器。可以这样做:
1818

1919
```shell
2020
npm install -g jspm
2121
```
2222

23-
> **Note:** 跟 Bower 和 Yeoman 一样,jspm 也基于 [git](http://git-scm.com/),所以如果你没有 git 的话,也需要安装它。另外,jspm 通过查询 GitHub 来安装包,而 GitHub 对匿名的 API 请求做了速度限制。所以我们建议在 jspm 配置里设置好 GitHub,以免出现问题。执行命令 `jspm registry config github` 然后按照提示进行操作即可。不想使用 jspm?没问题,所有 Aurelia 相关的包也都可以通过 [Bower](http://bower.io/) 安装。
23+
> **Note:** 跟 Bower 和 Yeoman 一样,jspm 也基于 [git](https://git-scm.com/),所以如果你没有 git 的话,也需要安装它。另外,jspm 通过查询 GitHub 来安装包,而 GitHub 对匿名的 API 请求做了速度限制。所以我们建议在 jspm 配置里设置好 GitHub,以免出现问题。执行命令 `jspm registry config github` 然后按照提示进行操作即可。不想使用 jspm?没问题,所有 Aurelia 相关的包也都可以通过 [Bower](https://bower.io/) 安装。
2424
2525
## 设置项目结构及组建
2626

@@ -191,7 +191,7 @@ export class App {
191191

192192
好了,这下能看到一些有趣的新东西了。我们想用路由表,所以在文件开头引入(import)了 _aurelia-router_。这又是 ES6 的强大之处。然后创建 _App_ 类保存数据和行为。看一下 constructor 函数,在 App 类创建的时候,constructor 函数在等待接收一个 _router_ 实例作为参数。这是怎么来的?
193193

194-
Aurelia 是按需创建 UI 组件来渲染页面的。这是通过使用一个能够为 constructor 提供依赖的[依赖注入](http://en.wikipedia.org/wiki/Dependency_injection)(Dependency Injection)容器实现的。依赖注入系统是怎么知道要提供什么的呢?只需要添加一个名为 _inject_ 的静态方法就行了,这个方法返回一个数组,包含所有要提供的类实例的 type。在上面的例子中,我们需要一个 router 实例,所以就把 `Router` 类加到这个数组里。
194+
Aurelia 是按需创建 UI 组件来渲染页面的。这是通过使用一个能够为 constructor 提供依赖的[依赖注入](https://en.wikipedia.org/wiki/Dependency_injection)(Dependency Injection)容器实现的。依赖注入系统是怎么知道要提供什么的呢?只需要添加一个名为 _inject_ 的静态方法就行了,这个方法返回一个数组,包含所有要提供的类实例的 type。在上面的例子中,我们需要一个 router 实例,所以就把 `Router` 类加到这个数组里。
195195

196196
> **注:** 如果你恰好使用了 AtScript,我们很高兴告诉你 Aurelia 能够理解 AtScript 的类型注解(type annotations)并在依赖注入中使用它们。至于其他主流的采用类型或者注解元数据的 JavaScript 编译器,我们将会继续强化这个平台使之能够理解你所选择的语言的格式。
197197
@@ -283,7 +283,7 @@ export class App {
283283
```javascript
284284
import {HttpClient} from 'aurelia-http-client';
285285

286-
var url = 'http://api.flickr.com/services/feeds/photos_public.gne?tags=rainier&tagmode=any&format=json';
286+
var url = 'https://api.flickr.com/services/feeds/photos_public.gne?tags=rainier&tagmode=any&format=json';
287287

288288
export class Flickr{
289289
static inject() { return [HttpClient]; }
@@ -319,7 +319,7 @@ jspm install aurelia-http-client
319319

320320
这里还有第二个生命周期钩子:`canDeactivate`。路由在导航离开一个路由之前调用这个钩子。通过返回一个布尔值,`canDeactivate` 钩子提供一个机会决定是否允许导航继续下去。同样也可以返回一个 `Promise`。完整的生命周期包括 `canActivate``activate``canDeactivate``deactivate` 钩子。
321321

322-
> **注:** 如果你不熟悉 [Promise](http://www.html5rocks.com/en/tutorials/es6/promises/),它是 ES6 用来改善异步编程的新特性。一个 `Promise` 代表了一个将来的结果。本质上来讲,它相当于一个在未来某个时间点完成某项工作或者提供某些数据的“承诺”(promise)。
322+
> **注:** 如果你不熟悉 [Promise](https://www.html5rocks.com/en/tutorials/es6/promises/),它是 ES6 用来改善异步编程的新特性。一个 `Promise` 代表了一个将来的结果。本质上来讲,它相当于一个在未来某个时间点完成某项工作或者提供某些数据的“承诺”(promise)。
323323
324324
### flickr.html
325325

alpha/English/docs.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ aurelia.use.feature('feature-folder-name-here');
9494

9595
<h4 id="promises"><a href="#promises">Promises</a></h4>
9696

97-
By default, Aurelia uses ES6 native Promises or a polyfill. However, you can replace this with the excellent [Bluebird](https://github.com/petkaantonov/bluebird) Promise library. Simply include it in your page before you reference the other scripts. It will provide its own standards-compliant Promise implementation which is currently faster than native and has better debugging support. Additionally, when used in combination with the Babel transpiler, you can use [coroutines](http://babeljs.io/docs/usage/transformers/other/bluebird-coroutines/) for improved async code.
97+
By default, Aurelia uses ES6 native Promises or a polyfill. However, you can replace this with the excellent [Bluebird](https://github.com/petkaantonov/bluebird) Promise library. Simply include it in your page before you reference the other scripts. It will provide its own standards-compliant Promise implementation which is currently faster than native and has better debugging support. Additionally, when used in combination with the Babel transpiler, you can use [coroutines](https://babeljs.io/docs/usage/transformers/other/bluebird-coroutines/) for improved async code.
9898

9999
<h3 id="framework-configuration"><a href="#framework-configuration">Framework Configuration</a></h3>
100100

@@ -699,7 +699,7 @@ Use the `style` attribute's alias, `css` when doing string interpolation to ensu
699699

700700
<h4 id="adaptive-binding"><a href="#adaptive-binding">Adaptive Binding</a></h4>
701701

702-
Aurelia has an adaptive binding system that chooses from a number of strategies when determining how to most efficiently observe changes. For more info on how this works checkout [this post](http://blog.durandal.io/2015/04/03/aurelia-adaptive-binding/). For the most part you don't need to think about these details however it does help to be aware of scenarios that lead to inefficient use of the binding system.
702+
Aurelia has an adaptive binding system that chooses from a number of strategies when determining how to most efficiently observe changes. For more info on how this works checkout [this post](https://blog.durandal.io/2015/04/03/aurelia-adaptive-binding/). For the most part you don't need to think about these details however it does help to be aware of scenarios that lead to inefficient use of the binding system.
703703

704704
**The #1 thing to be aware of is that computed properties (properties with getter functions) are observed using dirty-checking.** More efficient strategies such as Object.observe and property rewriting are not compatible with these types of properties.
705705

@@ -783,7 +783,7 @@ export class IssueSearch {
783783

784784
In addition to databinding, you also have the power of Aurelia's HTML extensions. There are two types:
785785

786-
* Custom Elements - Extend HTML with new tags! Your custom elements can have their own views (which use databinding and other html extensions) and optionally leverage [ShadowDOM](http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom/) (even if the browser doesn't support it).
786+
* Custom Elements - Extend HTML with new tags! Your custom elements can have their own views (which use databinding and other html extensions) and optionally leverage [ShadowDOM](https://www.html5rocks.com/en/tutorials/webcomponents/shadowdom/) (even if the browser doesn't support it).
787787
* Custom Attributes - Extend HTML with new attributes which can be added to existing or custom elements. These attributes add new behavior to the elements.
788788

789789
Naturally, all of this works seamlessly with databinding. Let's look at the set of Custom Elements and Attributes that Aurelia provides for you and which are available globally in every view.
@@ -1130,9 +1130,9 @@ context.MapRoute(
11301130
defaults: new { controller = "Application", action = "Index" }
11311131
);
11321132
```
1133-
Note that with the above you will be forced to use a Razor view file. If you want to use a regular HTML file, there are different ways to do it. [This SO article might help you](http://stackoverflow.com/questions/20871938/render-html-file-in-asp-net-mvc-view).
1133+
Note that with the above you will be forced to use a Razor view file. If you want to use a regular HTML file, there are different ways to do it. [This SO article might help you](https://stackoverflow.com/questions/20871938/render-html-file-in-asp-net-mvc-view).
11341134
1135-
If you are using [Nancy FX](http://nancyfx.org), then the config is just as simple. Locate your `IndexModule.cs` or whatever you called it and make sure it looks something like this and all will be well:
1135+
If you are using [Nancy FX](https://nancyfx.org), then the config is just as simple. Locate your `IndexModule.cs` or whatever you called it and make sure it looks something like this and all will be well:
11361136
11371137
``` csharp
11381138
public class IndexModule : NancyModule {
@@ -1829,21 +1829,21 @@ There are two other apis that are worth noting. You can use `configure` to acces
18291829
```javascript
18301830
var client = new HttpClient()
18311831
.configure(x => {
1832-
x.withBaseUrl('http://aurelia.io');
1832+
x.withBaseUrl('https://aurelia.io');
18331833
x.withHeader('Authorization', 'bearer 123');
18341834
});
18351835

18361836
client.get('some/cool/path');
18371837
```
18381838
1839-
In this case, all requests from the client will have the baseUrl of 'http://aurelia.io' and will have the specified Authorization header. The same API is available via the request builder. So, you can accomplish the same thing on an individual request like this:
1839+
In this case, all requests from the client will have the baseUrl of 'https://aurelia.io' and will have the specified Authorization header. The same API is available via the request builder. So, you can accomplish the same thing on an individual request like this:
18401840
18411841
```javascript
18421842
var client = new HttpClient();
18431843

18441844
client.createRequest('some/cool/path')
18451845
.asGet()
1846-
.withBaseUrl('http://aurelia.io')
1846+
.withBaseUrl('https://aurelia.io')
18471847
.withHeader('Authorization', 'bearer 123')
18481848
.send();
18491849
```

0 commit comments

Comments
 (0)