Skip to content

Commit

Permalink
chore(*): Init project
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed Oct 15, 2018
1 parent 7e84932 commit aa8f47b
Show file tree
Hide file tree
Showing 1,265 changed files with 123,156 additions and 19 deletions.
27 changes: 27 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"rules": {
"header-max-length": [2, "always", 72],
"scope-empty": [2, "never"],
"scope-case": [2, "always", "pascal-case"],
"subject-empty": [2, "never"],
"subject-full-stop": [2, "never", "."],
"type-empty": [2, "never"],
"type-case": [2, "always", "lower-case"],
"type-enum": [2, "always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"temp"
]
]
}
}
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

# Apply for all files
[*]

charset = utf-8

indent_style = space
indent_size = 2

end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# package.json
[package.json]
indent_size = 2
indent_style = space
28 changes: 28 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
102 changes: 102 additions & 0 deletions .fusion
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"engine": "sass",
"publish-template": "@alifd/[email protected]",
"class-prefix": ".next",
"icon": {
"iconfont-project-id": "283554",
"iconfont-path": "//at.alicdn.com/daily/font_283554_840q5490nzppw33vr52ymn29"
},
"import": {
"sources": {
"dir": "lib",
"entry-file": {
"sass": "index.scss"
},
"entries": {
"core": {
"sass": {
"core.scss": "lib/core/index-noreset.scss"
}
},
"form-element": {
"sass": {
"form-element.scss": "lib/core/form-element.scss"
}
},
"mask": {
"sass": {
"mask.scss": "lib/core/mask.scss"
}
},
"popup": {
"sass": {
"popup.scss": "lib/core/popup.scss"
}
}
}
},
"demos": {
"dir": "demos",
"entry-file": {
"html": "index.html",
"deps": "deps.json"
}
}
},
"variables": {
"global": "lib/core/style/_global.scss",
"size": "lib/core/style/_size.scss",
"color": "lib/core/style/_color.scss",
"corner": "lib/core/style/_corner.scss",
"font": "lib/core/style/_font.scss",
"line": "lib/core/style/_line.scss",
"shadow": "lib/core/style/_shadow.scss",
"icon": "lib/core/style/_icon.scss",
"form-element": "lib/core/utility/_form-element.scss",
"popup": "lib/core/utility/_popup.scss",
"mask": "lib/core/utility/_mask.scss",
"animate": "lib/animate/scss/variable.scss",
"badge": "lib/badge/scss/variable.scss",
"balloon": "lib/balloon/scss/variable.scss",
"breadcrumb": "lib/breadcrumb/scss/variable.scss",
"button": "lib/button/scss/variable.scss",
"radio": "lib/radio/scss/variable.scss",
"tag": "lib/tag/scss/variable.scss",
"checkbox": "lib/checkbox/scss/variable.scss",
"menu": "lib/menu/scss/variable.scss",
"input": "lib/input/scss/variable.scss",
"select": "lib/select/scss/variable.scss",
"calendar": "lib/calendar/scss/variable.scss",
"card": "lib/card/scss/variable.scss",
"cascader": "lib/cascader/scss/variable.scss",
"cascader-select": "lib/cascader-select/scss/variable.scss",
"collapse": "lib/collapse/scss/variable.scss",
"time-picker": "lib/time-picker/scss/variable.scss",
"date-picker": "lib/date-picker/scss/variable.scss",
"message": "lib/message/scss/variable.scss",
"dialog": "lib/dialog/scss/variable.scss",
"grid": "lib/grid/scss/variable.scss",
"form": "lib/form/scss/variable.scss",
"loading": "lib/loading/scss/variable.scss",
"menu-button": "lib/menu-button/scss/variable.scss",
"nav": "lib/nav/scss/variable.scss",
"number-picker": "lib/number-picker/scss/variable.scss",
"pagination": "lib/pagination/scss/variable.scss",
"paragraph": "lib/paragraph/scss/variable.scss",
"progress": "lib/progress/scss/variable.scss",
"range": "lib/range/scss/variable.scss",
"rating": "lib/rating/scss/variable.scss",
"search": "lib/search/scss/variable.scss",
"slider": "lib/slider/scss/variable.scss",
"split-button": "lib/split-button/scss/variable.scss",
"step": "lib/step/scss/variable.scss",
"switch": "lib/switch/scss/variable.scss",
"tab": "lib/tab/scss/variable.scss",
"table": "lib/table/scss/variable.scss",
"timeline": "lib/timeline/scss/variable.scss",
"transfer": "lib/transfer/scss/variable.scss",
"tree": "lib/tree/scss/variable.scss",
"tree-select": "lib/tree-select/scss/variable.scss",
"upload": "lib/upload/scss/variable.scss"
}
}
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,21 @@ typings/

# next.js build output
.next

dist/
es/
lib/
test/coverage/
test/**/coverage/
compiled_docs/
demos/
platform-docs/
coverage/
docs-lang/
gemini-report/
.idea/
.vscode/
*.iml
*.log
.DS_Store

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Change Log

<a name="1.7.39"></a>
## [1.7.39](https://github.com/alibaba-fusion/next/compare/1.7.27...1.7.39) (2018-10-12)



3 changes: 3 additions & 0 deletions LATESTLOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## [1.7.39](https://github.com/alibaba-fusion/next/compare/1.7.27...1.7.39) (2018-10-12)


35 changes: 18 additions & 17 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
MIT License
MIT LICENSE

Copyright (c) 2018 Alibaba Fusion Design
Copyright (c) 2018-present Alibaba Group Holding Limited, https://www.alibabagroup.com/

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15 changes: 15 additions & 0 deletions README.en-us.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Next Components

`@alifd/next` is a configurable component library for PC in Fusion Design. It is based on React and supports all modern browsers and IE9+.

[中文 README](./README.md)

[![npm package](https://img.shields.io/npm/v/@alifd/next.svg?style=flat-square)](https://www.npmjs.org/package/@alifd/next)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)


* [Quick Start](./site/en-us/quick-start.md)
* [Use with Theme Package](./site/en-us/theme.md)
* [Internationalization](./site/en-us/i18n.md)
* [Deploy Font File](./site/en-us/font-deploy.md)
* [Contributing](./site/en-us/contributing.md)
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# open
开源反馈接受
# Next Components

`@alifd/next` 是 Fusion Design 中的面向 PC 端可配置组件库,基于 React 实现,支持所有现代浏览器和 IE9+。

[English README](./README.en-us.md)

[![npm package](https://img.shields.io/npm/v/@alifd/next.svg?style=flat-square)](https://www.npmjs.org/package/@alifd/next)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)


* [快速开始](./site/zh-cn/quick-start.md)
* [使用主题包](./site/zh-cn/theme.md)
* [国际化](./site/zh-cn/i18n.md)
* [字体文件私有化部署](./site/zh-cn/font-deploy.md)
* [贡献代码](./site/zh-cn/contributing.md)
22 changes: 22 additions & 0 deletions docs/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

# Apply for all files
[*]

charset = utf-8

indent_style = space
indent_size = 4

end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

# package.json
[package.json]
indent_size = 2
indent_style = space
15 changes: 15 additions & 0 deletions docs/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": [
"@alifd/eslint-config-next"
],
"rules": {
"eol-last": 0,
"no-console": 0,
"no-undef": 0,
"react/react-in-jsx-scope": 0,
"react/jsx-filename-extension": 0,
"react/no-multi-comp": 0,
"react/prefer-stateless-function": 0,
"react/prop-types": 0
}
}
33 changes: 33 additions & 0 deletions docs/affix/demo/basic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 基本

- order: 0

默认情况下,Affix 的默认目标容器元素是整个 `window`,并且 `offsetTop = 0`
也就意味着当页面往下滚动时,当 Affix 元素接触到浏览器边框时,此时会将 Affix 钉住。

:::lang=en-us
# Basic

- order: 0

The simples usage is to wrap your components direcly with Affix component.

:::

---

````jsx
import { Affix, Button } from '@alifd/next';

ReactDOM.render(<div className="custom-affix-wrapper">
<Affix>
<Button type="secondary">Affixed Button</Button>
</Affix>
</div>, mountNode);
````

````css
.custom-affix-wrapper {
padding: 40px 0;
}
````
Loading

0 comments on commit aa8f47b

Please sign in to comment.