From 08ffa60cce232eebd0d09425f77b9c442844698c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Wed, 12 Apr 2017 18:30:28 +0800 Subject: [PATCH] Update compositor.json --- compositor.json | 94 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 compositor.json diff --git a/compositor.json b/compositor.json new file mode 100644 index 0000000000..97d302af62 --- /dev/null +++ b/compositor.json @@ -0,0 +1,94 @@ +{ + "name": "ant-design/ant-design", + "version": "0.1.4", + "libraries": { + "xv": "^1.1.25" + }, + "title": "ant-design", + "branch": "", + "style": { + "name": "Material", + "componentSet": { + "nav": "nav/DarkAbsoluteNav", + "header": "header/GradientHeader", + "article": "article/BasicArticle", + "footer": "footer/BasicFooter" + }, + "fontFamily": "Roboto, sans-serif", + "heading": { + "fontWeight": 500, + "letterSpacing": "-0.01em" + }, + "colors": { + "text": "#212121", + "background": "#fff", + "primary": "#2196f3", + "secondary": "#1565c0", + "highlight": "#ff4081", + "border": "#e0e0e0", + "muted": "#f5f5f5" + }, + "layout": { + "centered": true, + "bannerHeight": "80vh", + "maxWidth": 896 + } + }, + "content": [ + { + "component": "nav", + "links": [ + { + "href": "http://ant.design", + "text": "Home" + }, + { + "href": "https://github.com/ant-design/ant-design", + "text": "GitHub" + }, + { + "href": "https://npmjs.com/package/antd", + "text": "npm" + } + ] + }, + { + "component": "header", + "heading": "ant-design", + "subhead": "🐜 A UI Design Language", + "children": [ + { + "component": "ui/TweetButton", + "text": "ant-design: 🐜 A UI Design Language", + "url": "http://ant.design" + }, + { + "component": "ui/GithubButton", + "user": "ant-design", + "repo": "ant-design" + } + ], + "text": "v2.9.1" + }, + { + "component": "article", + "metadata": { + "source": "github.readme" + }, + "html": "

\n \n \n \n

\n\n\n

\n\n

\n

\n\n\n (English)\n(中文)

\n

一套企业级的 UI 设计语言和 React 实现。

\n

README in English

\n

特性

\n\n

支持环境

\n\n

参与共建

\n

antd 是一个开源项目,我们欢迎社区参与共建。如果你对此项目感兴趣,有 很多方式 进行参与。你可以 watch 这个仓库,加入 issue 中的讨论,以及尝试实现一些 已接受的特性。我们会给予有活跃贡献的社区成员 collaborator 权限

\n

安装

\n
npm install antd

示例

\n
import { DatePicker } from 'antd';\nReactDOM.render(<DatePicker />, mountNode);

引入样式:

\n
import 'antd/dist/antd.css';  // or 'antd/dist/antd.less'

按需加载可通过此写法 import DatePicker from 'antd/lib/date-picker' 或使用插件 babel-plugin-import

\n

TypeScript

\n
// tsconfig.json\n{\n  "compilerOptions": {\n    "moduleResolution": "node",\n    "jsx": "preserve",\n    "allowSyntheticDefaultImports": true\n  }\n}
\n

注意:

\n\n
\n

国际化

\n

参考 国际化文档

\n

链接

\n\n

本地开发

\n
$ git clone git@github.com:ant-design/ant-design.git\n$ npm install\n$ npm start

打开浏览器访问 http://127.0.0.1:8001 ,更多本地开发文档参见: https://github.com/ant-design/ant-design/wiki/Development

\n

如何贡献

\n

在任何形式的参与前,请先阅读 贡献者文档。如果你希望参与贡献,欢迎 Pull Request,或给我们 报告 Bug

\n
\n

强烈推荐阅读 《提问的智慧》《如何向开源社区提问题》《如何有效地报告 Bug》,更好的问题更容易获得帮助。

\n
\n

社区互助

\n

如果您在使用的过程中碰到问题,可以通过下面几个途径寻求帮助,同时我们也鼓励资深用户通过下面的途径给新人提供帮助。

\n

通过 Stack Overflow 或者 Segment Fault 提问时,建议加上 antd 标签。

\n
    \n
  1. Stack Overflow(英文)
  2. \n
  3. Segment Fault(中文)
  4. \n
  5. \n
\n" + }, + { + "component": "footer", + "links": [ + { + "href": "https://github.com/ant-design/ant-design", + "text": "GitHub" + }, + { + "href": "https://github.com/ant-design", + "text": "ant-design" + } + ] + } + ] +} \ No newline at end of file