From 20c59f9e4af9a2b175d825b793ccdc590c0b21a1 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Wed, 15 Jun 2016 23:31:28 +0800 Subject: [PATCH] Add some blank lines, to avoid unnecessary conflicts on merging. --- public/docs/ts/latest/tutorial/_data.json | 2 +- public/docs/ts/latest/tutorial/index.jade | 3 + public/docs/ts/latest/tutorial/toh-pt1.jade | 27 +++++++++ public/docs/ts/latest/tutorial/toh-pt2.jade | 45 +++++++++++++++ public/docs/ts/latest/tutorial/toh-pt3.jade | 50 +++++++++++++++++ public/docs/ts/latest/tutorial/toh-pt4.jade | 61 +++++++++++++++++++++ 6 files changed, 187 insertions(+), 1 deletion(-) diff --git a/public/docs/ts/latest/tutorial/_data.json b/public/docs/ts/latest/tutorial/_data.json index a1d3f87944..416d86d730 100644 --- a/public/docs/ts/latest/tutorial/_data.json +++ b/public/docs/ts/latest/tutorial/_data.json @@ -32,7 +32,7 @@ }, "toh-pt6": { "title": "Http", - "intro": "We convert our service and components to use Http", + "intro": "把我们的服务和组件改用Http实现", "nextable": true } } diff --git a/public/docs/ts/latest/tutorial/index.jade b/public/docs/ts/latest/tutorial/index.jade index 7773cac238..45752767fa 100644 --- a/public/docs/ts/latest/tutorial/index.jade +++ b/public/docs/ts/latest/tutorial/index.jade @@ -3,6 +3,7 @@ include ../_util-fns // #docregion intro :marked # Tour of Heroes: the vision + # 《英雄指南》目标概览 Our grand plan is to build an app to help a staffing agency manage its stable of heroes. @@ -53,6 +54,7 @@ p 运行这部分的#[+liveExampleLink2('在线例子', 'toh-6')]。 .l-main-section :marked ## The End Game + ## 游戏的终点 Here's a visual idea of where we're going in this tour, beginning with the "Dashboard" @@ -118,6 +120,7 @@ figure.image-display .l-main-section :marked ## Up Next + ## 接下来 We’ll build this Tour of Heroes together, step by step. diff --git a/public/docs/ts/latest/tutorial/toh-pt1.jade b/public/docs/ts/latest/tutorial/toh-pt1.jade index d656503f77..5fb61fdbbb 100644 --- a/public/docs/ts/latest/tutorial/toh-pt1.jade +++ b/public/docs/ts/latest/tutorial/toh-pt1.jade @@ -2,6 +2,7 @@ include ../_util-fns :marked # Once Upon a Time + # 很久很久以前 Every story starts somewhere. Our story starts where the [QuickStart](../quickstart.html) ends. @@ -41,7 +42,9 @@ include ../_quickstart_repo .file typings.json :marked ## Keep the app transpiling and running + ## 保持应用不断转译和运行 + We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing 我们要启动TypeScript编译器,它会监视文件变更,并且启动开发服务器。我们只要敲: @@ -58,7 +61,9 @@ code-example(language="bash"). .l-main-section :marked ## Show our Hero + ## 显示我们的英雄 + We want to display Hero data in our app 我们要在应用中显示英雄数据 @@ -92,8 +97,10 @@ code-example(language="bash"). Learn more about interpolation in the [Displaying Data chapter](../guide/displaying-data.html). 要了解插值表达式的更多知识,参阅[“显示数据”一章](../guide/displaying-data.html)。 + :marked ### Hero object + ### Hero对象 At the moment, our hero is just a name. Our hero needs more properties. @@ -132,7 +139,9 @@ code-example(language="bash"). 浏览器自动刷新,并继续显示这位英雄的名字。 ### Adding more HTML + ### 添加更多的HTML + Displaying a name is good, but we want to see all of our hero’s properties. We’ll add a `
` for our hero’s `id` property and another `
` for our hero’s `name`. @@ -146,6 +155,7 @@ code-example(language="bash"). 啊哦!我们的模板字符串已经太长了。我们最好小心点,免得在模板中出现拼写错误。 ### Multi-line template strings + ### 多行模板字符串 We could make a more readable template with string concatenation @@ -166,7 +176,9 @@ code-example(language="bash"). .callout.is-important header A back-tick is not a single quote + header 反引号不是单引号 + :marked **Be careful!** A back-tick (`) looks a lot like a single quote ('). It's actually a completely different character. @@ -183,6 +195,7 @@ code-example(language="bash"). .l-main-section :marked ## Editing Our Hero + ## 编辑我们的英雄 We want to be able to edit the hero name in a textbox. @@ -194,6 +207,7 @@ code-example(language="bash"). 把英雄的名字从单纯的`