Skip to content

Commit 32234e4

Browse files
author
执衡
committed
cheers
0 parents  commit 32234e4

847 files changed

Lines changed: 55536 additions & 0 deletions

File tree

Some content is hidden

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

.angular-cli.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "ng-zorro-antd"
5+
},
6+
"apps": [
7+
{
8+
"root": "src",
9+
"outDir": "doc",
10+
"assets": [
11+
"assets",
12+
"favicon.ico"
13+
],
14+
"index": "index.html",
15+
"main": "main.ts",
16+
"polyfills": "polyfills.ts",
17+
"test": "test.ts",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
20+
"prefix": "nz",
21+
"styles": [
22+
],
23+
"scripts": [],
24+
"environmentSource": "environments/environment.ts",
25+
"environments": {
26+
"dev": "environments/environment.ts",
27+
"prod": "environments/environment.prod.ts"
28+
}
29+
}
30+
],
31+
"e2e": {
32+
"protractor": {
33+
"config": "./protractor.conf.js"
34+
}
35+
},
36+
"lint": [
37+
{
38+
"project": "src/tsconfig.app.json",
39+
"exclude": "**/node_modules/**"
40+
},
41+
{
42+
"project": "src/tsconfig.spec.json",
43+
"exclude": "**/node_modules/**"
44+
},
45+
{
46+
"project": "e2e/tsconfig.e2e.json",
47+
"exclude": "**/node_modules/**"
48+
}
49+
],
50+
"test": {
51+
"karma": {
52+
"config": "./karma.conf.js"
53+
}
54+
},
55+
"defaults": {
56+
"styleExt": "less",
57+
"component": {}
58+
}
59+
}

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.github/ISSUE_TEMPLATE.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!--
2+
1. 官方 issue 用于报告 bug 和需求建议,关于Angular的使用和开发问题在这里可能不会得到解答,感谢您的理解。
3+
2. 建议使用英文进行提问,这样你的问题可以被更多的人阅读和回答。如果表达上确实较复杂,英文标题加中文描述也是可选的方案。
4+
3. 报告 BUG 时请务必按照下列格式书写,并尽可能提供源代码、复现步骤、复现演示、GIF 演示等。我们和你一样都希望尽快解决问题,请不要浪费时间在互相追问上。
5+
4. 注意你的 issue 格式,不适合阅读的格式会被忽视或直接关闭。
6+
5. 如果需要粘贴源码,尽量避免截图并注意代码格式。关于如何在 Markdown 中书写代码可以参考:https://segmentfault.com/markdown
7+
6. 抱怨不能解决问题,通畅有效和心情舒畅的交流才能解决。
8+
-->
9+
10+
## I'm submitting a...
11+
<!-- Check one of the following options with "x" -->
12+
<pre><code>
13+
[ ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
14+
[ ] Feature request
15+
[ ] Documentation issue or request
16+
[ ] Regression (a behavior that used to work and stopped working in a new release)
17+
[ ] Support request => Please do not submit support request here
18+
</code></pre>
19+
20+
## Current behavior
21+
<!-- Describe how the issue manifests. -->
22+
23+
24+
## Expected behavior
25+
<!-- Describe what the desired behavior would be. -->
26+
27+
28+
## Minimal reproduction of the problem with instructions
29+
<!--
30+
For bug reports please provide the *STEPS TO REPRODUCE*
31+
-->
32+
33+
## What is the motivation / use case for changing the behavior?
34+
<!-- Describe the motivation or the concrete use case. -->
35+
36+
37+
## Environment
38+
39+
<pre><code>
40+
Angular version: X.Y.Z
41+
<!-- Check whether this is still an issue in the most recent Angular version -->
42+
ng-zorro-antd version: X.Y.Z
43+
<!-- Check whether this is still an issue in the most recent ng-zorro-antd version -->
44+
Browser:
45+
- [ ] Chrome (desktop) version XX
46+
- [ ] Firefox version XX
47+
- [ ] Safari (desktop) version XX
48+
- [ ] IE version XX
49+
50+
For Tooling issues:
51+
- Node version: XX <!-- run `node --version` -->
52+
- Platform: <!-- Mac, Linux, Windows -->
53+
54+
Others:
55+
<!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... -->
56+
</code></pre>

.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/doc
6+
/tmp
7+
/out-tsc
8+
9+
10+
11+
/src/release
12+
# dependencies
13+
/node_modules
14+
15+
# IDEs and editors
16+
/.idea
17+
.project
18+
.classpath
19+
.c9/
20+
*.launch
21+
.settings/
22+
*.sublime-workspace
23+
24+
# IDE - VSCode
25+
.vscode/*
26+
!.vscode/settings.json
27+
!.vscode/tasks.json
28+
!.vscode/launch.json
29+
!.vscode/extensions.json
30+
31+
# misc
32+
/.sass-cache
33+
/connect.lock
34+
/coverage
35+
/libpeerconnection.log
36+
npm-debug.log
37+
testem.log
38+
/typings
39+
yarn-error.log
40+
41+
# e2e
42+
/e2e/*.js
43+
/e2e/*.map
44+
45+
# System Files
46+
.DS_Store
47+
Thumbs.db

.npmignore

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
8+
9+
.github
10+
# dependencies
11+
/node_modules
12+
13+
# IDEs and editors
14+
/.idea
15+
.project
16+
.classpath
17+
.c9/
18+
*.launch
19+
.settings/
20+
*.sublime-workspace
21+
22+
# IDE - VSCode
23+
.vscode/*
24+
!.vscode/settings.json
25+
!.vscode/tasks.json
26+
!.vscode/launch.json
27+
!.vscode/extensions.json
28+
29+
# misc
30+
/.sass-cache
31+
/connect.lock
32+
/coverage
33+
/libpeerconnection.log
34+
npm-debug.log
35+
testem.log
36+
/typings
37+
yarn-error.log
38+
39+
# e2e
40+
/e2e/*.js
41+
/e2e/*.map
42+
43+
# System Files
44+
.DS_Store
45+
Thumbs.db

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
sudo: required
2+
dist: trusty
3+
language: node_js
4+
node_js:
5+
- '6.10'
6+
branches:
7+
only:
8+
- master
9+
10+
addons:
11+
apt:
12+
sources:
13+
- google-chrome
14+
packages:
15+
- google-chrome-stable
16+
- google-chrome-beta
17+
18+
before_install:
19+
- export CHROME_BIN=chromium-browser
20+
- export DISPLAY=:99.0
21+
- sh -e /etc/init.d/xvfb start
22+
23+
before_script:
24+
- npm install -g @angular/cli
25+
- npm install -g karma
26+
- npm install
27+
- ng build
28+
29+
script:
30+
- npm run test
31+
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls

LICENSE

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
MIT LICENSE
2+
3+
Copyright (c) 2017 Alibaba.com
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23+
24+
MIT LICENSE
25+
26+
Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
27+
28+
Permission is hereby granted, free of charge, to any person obtaining
29+
a copy of this software and associated documentation files (the
30+
"Software"), to deal in the Software without restriction, including
31+
without limitation the rights to use, copy, modify, merge, publish,
32+
distribute, sublicense, and/or sell copies of the Software, and to
33+
permit persons to whom the Software is furnished to do so, subject to
34+
the following conditions:
35+
36+
The above copyright notice and this permission notice shall be
37+
included in all copies or substantial portions of the Software.
38+
39+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
43+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
44+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
45+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
46+
47+
The MIT License
48+
49+
Copyright (c) 2017 Google, Inc.
50+
51+
Permission is hereby granted, free of charge, to any person obtaining a copy
52+
of this software and associated documentation files (the "Software"), to deal
53+
in the Software without restriction, including without limitation the rights
54+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
55+
copies of the Software, and to permit persons to whom the Software is
56+
furnished to do so, subject to the following conditions:
57+
58+
The above copyright notice and this permission notice shall be included in
59+
all copies or substantial portions of the Software.
60+
61+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
66+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
67+
THE SOFTWARE.

README-zh_CN.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<p align="center">
2+
<a href="http://ng.ant.design">
3+
<img width="320" src="https://ng.ant.design/assets/img/zorro.svg">
4+
</a>
5+
</p>
6+
7+
# NG-ZORRO
8+
[![Build Status](https://travis-ci.org/NG-ZORRO/ng-zorro-antd.svg?branch=master)](https://travis-ci.org/NG-ZORRO/ng-zorro-antd)
9+
[![Gitter](https://badges.gitter.im/ng-zorro/ng-zorro-antd.svg)](https://gitter.im/ng-zorro/ng-zorro-antd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
10+
11+
这里是 Ant Design 的 Angular 4.0 实现,开发和服务于企业级后台产品。
12+
13+
[README in English](README.md)
14+
15+
## 特性
16+
17+
- 提炼自企业级中后台产品的交互语言和视觉风格,定期与Ant Design React版本保持更新一致。
18+
- 开箱即用的高质量 Angular 组件。
19+
- 使用 TypeScript 构建,提供完整的类型定义文件。
20+
21+
## 支持环境
22+
23+
* 现代浏览器和 IE9 以上(需要 [polyfills](https://angular.cn/guide/browser-support))。
24+
25+
## 兼容版本
26+
27+
当前支持Angular`^4.0.0`版本
28+
29+
30+
## 安装
31+
32+
**我们推荐使用 npm 方式进行开发**,不仅可在开发环境轻松调试,也可放心地在生产环境打包部署使用,享受整个生态圈和工具链带来的诸多好处。
33+
34+
```bash
35+
$ npm install ng-zorro-antd --save
36+
```
37+
38+
如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)
39+
40+
## 标准开发
41+
42+
实际项目开发中,你会需要对 TypeScript 代码的构建、调试、代理、打包部署等一系列工程化的需求。
43+
我们推荐官方的 `@angular/cli` 工具链辅助进行开发
44+
45+
如果你想了解更多CLI工具链的功能和命令,建议访问[Angular CLI](https://github.com/angular/angular-cli)了解更多
46+
47+
48+
49+
## 链接
50+
51+
- [首页](http://ng.ant.design)
52+
- [Angular官方文档](https://angular.cn/)
53+
- [开发脚手架](https://cli.angular.io/)
54+
- [TypeScript](https://www.typescriptlang.org/)
55+
- [RxJS 5](https://github.com/ReactiveX/rxjs)
56+
57+
58+
## 如何贡献
59+
60+
如果你希望参与贡献,欢迎 [Pull Request](https://github.com/NG-ZORRO/ng-zorro-antd/pulls),或给我们 [报告 Bug](https://github.com/NG-ZORRO/ng-zorro-antd/issues)
61+
62+
> 强烈推荐阅读 [《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way)[《如何向开源社区提问题》](https://github.com/seajs/seajs/issues/545)[《如何有效地报告 Bug》](http://www.chiark.greenend.org.uk/%7Esgtatham/bugs-cn.html)[《如何向开源项目提交无法解答的问题》](https://zhuanlan.zhihu.com/p/25795393),更好的问题更容易获得帮助。

0 commit comments

Comments
 (0)