Polish style-guild.jade

This commit is contained in:
Yang Lin 2016-11-29 19:02:21 +08:00
parent 7d96eecccd
commit 4ca4a0a9f6
3 changed files with 493 additions and 325 deletions

View File

@ -28,44 +28,43 @@
"architecture": { "architecture": {
"title": "架构概览", "title": "架构概览",
"navTitle": "架构", "navTitle": "架构",
"intro": "Angular应用的基本构造块", "intro": "Angular 应用的基本构造块",
"nextable": true, "nextable": true,
"basics": true "basics": true
}, },
"appmodule": { "appmodule": {
"title": "AppModule: 根模块", "title": "AppModule: 根模块",
"navTitle": "根模块", "navTitle": "根模块",
"intro": "如何在根\"AppModule\"中构建和启动应用。", "intro": "如何在根 \"AppModule\" 中构建和启动应用。",
"nextable": true, "nextable": true,
"basics": true "basics": true
}, },
"displaying-data": { "displaying-data": {
"title": "显示数据", "title": "显示数据",
"intro": "属性绑定机制把数据显示到UI上。", "intro": "属性绑定机制把数据显示到用户界面上。",
"nextable": true, "nextable": true,
"basics": true "basics": true
}, },
"user-input": { "user-input": {
"title": "用户输入", "title": "用户输入",
"intro": "用户输入触发DOM事件。我们通过事件绑定来监听它们把更新过的数据导入回我们的组件和model。", "intro": "用户输入触发 DOM 事件。我们通过事件绑定来监听它们,把更新过的数据导入回我们的组件和 model。",
"nextable": true, "nextable": true,
"basics": true "basics": true
}, },
"forms": { "forms": {
"title": "表单", "title": "表单",
"intro": "表单创建一个有机、有效、引人注目的数据输入体验。Angular表单协调一组数据绑定控件,跟踪变更,验证输入的有效性,并且显示错误信息。", "intro": "表单创建一个有机、有效、引人注目的数据输入体验。Angular 表单协调一组数据绑定控件,跟踪变更,验证输入的有效性,并且显示错误信息。",
"nextable": true, "nextable": true,
"basics": true "basics": true
}, },
"dependency-injection": { "dependency-injection": {
"title": "依赖注入", "title": "依赖注入",
"intro": "Angular的依赖注入系统能够JIT(刚好及时)的创建和交付所依赖的服务。", "intro": "Angular 的依赖注入系统能够即时地创建和交付所依赖的服务。",
"nextable": true, "nextable": true,
"basics": true "basics": true
}, },
@ -78,21 +77,21 @@
}, },
"cheatsheet": { "cheatsheet": {
"title": "Angular小抄", "title": "Angular 速查表",
"intro": "一份Angular语法的快速指南", "intro": "一份 Angular 语法的快速指南",
"nextable": true, "nextable": true,
"basics": true "basics": true
}, },
"style-guide": { "style-guide": {
"title": "风格指南", "title": "风格指南",
"intro": "如何写Angular风格的程序", "intro": "如何写 Angular 风格的程序",
"basics": true "basics": true
}, },
"glossary": { "glossary": {
"title": "词汇表", "title": "词汇表",
"intro": "Angular中最重要的词汇的简要定义", "intro": "Angular 中最重要的词汇的简要定义",
"basics": true "basics": true
}, },
@ -103,13 +102,13 @@
}, },
"ngmodule": { "ngmodule": {
"title": "Angular模块NgModule", "title": "Angular模块 (NgModule)",
"intro": "用@NgModule定义应用中的模块" "intro": "用@NgModule定义应用中的模块"
}, },
"animations": { "animations": {
"title": "动画", "title": "动画",
"intro": "Angular动画系统指南。" "intro": "Angular 动画系统指南。"
}, },
"attribute-directives": { "attribute-directives": {
@ -119,12 +118,12 @@
"browser-support": { "browser-support": {
"title": "浏览器支持", "title": "浏览器支持",
"intro": "浏览器支持与填充Polyfill指南" "intro": "浏览器支持与填充 (Polyfill) 指南"
}, },
"component-styles": { "component-styles": {
"title": "组件样式", "title": "组件样式",
"intro": "学习如何给组件应用CSS样式。" "intro": "学习如何给组件应用 CSS 样式。"
}, },
"hierarchical-dependency-injection": { "hierarchical-dependency-injection": {
@ -134,18 +133,18 @@
}, },
"server-communication": { "server-communication": {
"title": "HTTP客户端", "title": "HTTP 客户端",
"intro": "通过HTTP客户端与远程服务器对话。" "intro": "通过 HTTP 客户端与远程服务器对话。"
}, },
"lifecycle-hooks": { "lifecycle-hooks": {
"title": "生命周期钩子", "title": "生命周期钩子",
"intro": "Angular调用指令和组件的生命周期钩子函数,包括它的创建、变更和销毁时。" "intro": "Angular 调用指令和组件的生命周期钩子函数,包括它的创建、变更和销毁时。"
}, },
"npm-packages": { "npm-packages": {
"title": "Npm包", "title": "npm 包",
"intro": "推荐的npm包以及如何指定所依赖的包" "intro": "推荐的 npm 包以及如何指定所依赖的包"
}, },
"pipes": { "pipes": {
@ -155,12 +154,12 @@
"router": { "router": {
"title": "路由与导航", "title": "路由与导航",
"intro": "揭示如何通过Angular路由进行基本的屏幕导航。" "intro": "揭示如何通过 Angular 路由进行基本的屏幕导航。"
}, },
"security": { "security": {
"title": "安全", "title": "安全",
"intro": "开发内容安全的Angular应用。" "intro": "开发内容安全的 Angular 应用。"
}, },
"setup-systemjs-anatomy": { "setup-systemjs-anatomy": {
@ -170,26 +169,26 @@
"structural-directives": { "structural-directives": {
"title": "结构型指令", "title": "结构型指令",
"intro": "Angular有一个强力的模板引擎它能让你轻松维护元素的DOM树结构。" "intro": "Angular 有一个强力的模板引擎它能让你轻松维护元素的DOM树结构。"
}, },
"testing": { "testing": {
"title": "测试", "title": "测试",
"intro": "Angular应用的测试技术与实践。" "intro": "Angular 应用的测试技术与实践。"
}, },
"typescript-configuration": { "typescript-configuration": {
"title": "TypeScript配置", "title": "TypeScript 配置",
"intro": "Angular开发者的TypeScript配置" "intro": "Angular 开发者的 TypeScript 配置"
}, },
"upgrade": { "upgrade": {
"title": "从1.x升级", "title": "从 1.x 升级",
"intro": "Angular 1应用可以逐步升级到Angular 2。" "intro": "Angular 1 应用可以逐步升级到 Angular 2。"
}, },
"webpack": { "webpack": {
"title": "Webpack简介", "title": "Webpack 简介",
"intro": "使用基于Webpack的工具创建Angular应用" "intro": "使用基于 Webpack 的工具创建 Angular 应用"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
var count = 0; var count = 0;
for (var i = 0; i < container.children.length; i++) { for (var i = 0; i < container.children.length; i++) {
var node = container.children[i]; var node = container.children[i];
var ignoredTagNames = ['CODE-EXAMPLE', 'SCRIPT', 'CODE', 'EM']; var ignoredTagNames = ['CODE-EXAMPLE', 'SCRIPT', 'CODE', 'EM', 'STRONG'];
// ignore example code. // ignore example code.
if (node.classList.contains('code-example') || if (node.classList.contains('code-example') ||
ignoredTagNames.indexOf(node.tagName) >= 0) { ignoredTagNames.indexOf(node.tagName) >= 0) {