Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(styles): 修复AtFloatLayout和AtModal组件在h5模式下at-frozen样式缺失的问题 #1192

Open
wants to merge 56 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
1f5bc86
refactor: 更改组件 API 使用 React
Garfield550 Mar 11, 2020
c6cad25
refactor: 更改 page 到 next
Garfield550 Mar 25, 2020
ee265e0
chore: 更新依赖到 next
Garfield550 Mar 26, 2020
a455447
fix: 修复组件和页面的错误
Garfield550 Mar 26, 2020
ffd80b1
fix: 修复 pxTransform 问题
Garfield550 Mar 26, 2020
22ca02c
fix: 修复 React 警告
Garfield550 Mar 26, 2020
dc1a9fc
fix: 修复页面跳转和循环key重复问题
Garfield550 Mar 27, 2020
a34e6eb
fix: fix or ignore typescript error
Garfield550 Mar 27, 2020
70f23a5
fix: fix tsc error
Garfield550 Mar 27, 2020
5da4427
feat: taro ui next build config
Garfield550 Mar 27, 2020
f2282ac
chore: merge branch dev into ui-next
Garfield550 Mar 28, 2020
cdbcd47
chore: release v3.0.0-alpha.0
Garfield550 Mar 28, 2020
f119305
feat: replace webpack with rollup
Garfield550 Mar 31, 2020
4522397
chore: copy style files to dist
Garfield550 Apr 3, 2020
dac4d82
chore: release v3.0.0-alpha.1
Garfield550 Apr 4, 2020
09f5296
chore: move taro-ui files to packages subfolder
Garfield550 Apr 5, 2020
5737848
chore: move demo files to packages subfolder
Garfield550 Apr 5, 2020
4cbbc72
chore: move out eslint stylelint commitlint config
Garfield550 Apr 5, 2020
6789283
chore: add config file for taro-ui and taro-ui-demo
Garfield550 Apr 5, 2020
f30a432
refactor: resolve types import path
Garfield550 Apr 5, 2020
3b4fa76
chore: make taro-ui can build
Garfield550 Apr 5, 2020
e8a13a9
chore: make taro-ui-demo can build
Garfield550 Apr 5, 2020
f27aa9e
chore: upgrade package and lint config
Garfield550 Apr 6, 2020
38dfdec
chore: update package.json
Garfield550 Apr 6, 2020
723088e
feat: switch to monorepo
Garfield550 Apr 6, 2020
1c318e6
chore: move docs file to taro-ui-docs
Garfield550 Apr 6, 2020
8008dbe
chore: add taro-ui-docs package config
Garfield550 Apr 6, 2020
fa075f6
chore: format docs build config
Garfield550 Apr 6, 2020
7c0197a
refactor: switch to react
Garfield550 Apr 7, 2020
50a15dd
chore: use babel project-wide configuration
Garfield550 Apr 7, 2020
6667a7a
chore: update eslint config
Garfield550 Apr 7, 2020
0180f10
chore: make taro-ui-docs can build
Garfield550 Apr 7, 2020
74eebc7
chore: update eslint and babel config
Garfield550 Apr 7, 2020
acfe777
chore: add CNAME to docs build config
Garfield550 Apr 7, 2020
9e2bf62
chore: upgrade workflow
Garfield550 Apr 7, 2020
80bf089
chore: update travis config
Garfield550 Apr 7, 2020
2352234
chore: update gitignore
Garfield550 Apr 8, 2020
eb0e247
chore: update travis config
Garfield550 Apr 8, 2020
dd84e3d
chore: merge branch 'dev' into ui-next
Garfield550 Apr 13, 2020
49d9e08
chore: upgrade taro version
Garfield550 Apr 17, 2020
7edf2e2
fix: 修复 SwipeAction 的 onOpened, onClosed 方法判断问题 close #1004
Garfield550 Apr 17, 2020
4950a3a
chore: add node types
Garfield550 Apr 17, 2020
c453770
fix: 修复 NoticeBar 的 animation 属性问题 close #1005
Garfield550 Apr 17, 2020
4080569
chore: move changelog
Garfield550 Apr 18, 2020
a780303
chore: dont bump version before lerna version
Garfield550 Apr 18, 2020
e4fede9
chore: private package use file path dependencies
Garfield550 Apr 18, 2020
b3a5810
fix: fix package release ci config
Garfield550 Apr 18, 2020
7af3a8a
chore: release v3.0.0-alpha.2
Garfield550 Apr 18, 2020
8d5baea
chore: 更新 Taro 至 3.0.0-beta.5
Garfield550 Apr 28, 2020
b792ac5
fix(noticebar): 修复 animationData 类型签名问题
Garfield550 Apr 28, 2020
1c2a713
chore: 更新 Taro 至 3.0.2
Garfield550 Jul 2, 2020
315416e
fix: 修复 Input 组件 maxlength 拼写问题
Garfield550 Jul 2, 2020
02c6f66
chore: 更新 Lerna 发布方式和 Travis 触发条件
Garfield550 Jul 2, 2020
181e8cd
chore(release): publish v3.0.0-alpha.3
Garfield550 Jul 2, 2020
c601ebf
chore: 合并 ESLint 配置并移除不需要的文件
Garfield550 Jul 3, 2020
9171e8e
fix(styles): 修复AtFloatLayout和AtModal组件在h5模式下at-frozen样式缺失的问题
Sep 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 16 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# Node modules
node_modules/
dist/
coverage/
.vscode/

# Editor and IDE files
.vscode
.idea

# Build outputs
packages/taro-ui/lib/
packages/**/dist/

# Test files
coverage
jest.config.js
test/__mock__/

# Others
.nyc_output/
git_stats/
yarn-offline/
docs/
jest.config.js
test/__mock__/
212 changes: 212 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
{
"root": true,
"extends": [
"o2team",
"eslint:recommended",
"plugin:prettier/recommended"
],
"overrides": [
{
"files": [
"packages/**/*.ts",
"packages/**/*.tsx"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"warnOnUnsupportedTypeScriptVersion": true
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": [
"off"
],
"@typescript-eslint/member-delimiter-style": [
"off"
],
"class-methods-use-this": "off",
"prefer-rest-params": "off",
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
],
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "React"
}
],
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"camelcase": [
"error",
{
"allow": [
"^UNSAFE_"
]
}
]
},
"settings": {
"react": {
"version": "detect"
}
}
},
{
"files": [
"packages/**/*.js",
"packages/**/*.jsx"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
},
"babelOptions": {
"configFile": "./babel.config.json",
"rootMode": "upward"
}
},
"extends": [
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"class-methods-use-this": "off",
"prefer-rest-params": "off",
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
],
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "React"
}
],
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"camelcase": [
"error",
{
"allow": [
"^UNSAFE_"
]
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
]
},
"eslint-import-resolver-custom-alias": {
"alias": {
"@md": "./markdown"
},
"packages": [
"packages/taro-ui-docs"
]
}
},
"react": {
"version": "detect"
}
}
},
{
"files": [
"packages/taro-ui-docs/build/*.js"
],
"rules": {
"no-console": "off",
"no-undefined": "off"
}
},
{
"files": [
"packages/taro-ui-demo/**/*.ts",
"packages/taro-ui-demo/**/*.tsx"
],
"extends": [
"taro/react"
]
},
{
"files": [
"packages/taro-ui-demo/config/*.js",
"packages/taro-ui-demo/babel.config.js"
],
"rules": {
"import/no-commonjs": "off"
}
},
{
"files": [
"packages/**/test/**/*.test.js",
"packages/**/test/**/test.js"
],
"rules": {
"taro/no-stateless-component": "off",
"react/react-in-jsx-scope": "off",
"react/no-find-dom-node": "off",
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "Nerv"
}
]
}
}
]
}
23 changes: 17 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
dist/
# Node modules
node_modules/

# Yarn and NPM files
yarn-error.log
package-lock.json
project.config.json

# Template files
.temp
.DS_Store
.vscode
.eslintcache
.babelrc

# Editor and IDE files
.vscode
.idea

# Build outputs
packages/taro-ui/lib/
packages/**/dist/
dist/

# Docs outputs
site/
docs/h5/

coverage
# Rollup visualizer file
stats.html

.idea
# Test files
coverage
File renamed without changes.
17 changes: 17 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "stylelint-config-standard",
"plugins": [
"stylelint-scss"
],
"rules": {
"declaration-colon-newline-after": null,
"at-rule-no-unknown": null,
"color-hex-case": null,
"block-closing-brace-newline-after": null,
"at-rule-empty-line-before": null,
"number-no-trailing-zeros": null,
"no-empty-source": null,
"unit-case": null,
"scss/at-rule-no-unknown": true
}
}
33 changes: 21 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: ">= 1.0.0"
language: node_js
node_js:
- "10"
Expand All @@ -16,40 +17,48 @@ jobs:
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile
before_script:
- yarn run clean:component
- yarn run build:component
script:
- yarn run test:ci
- stage: release
if: "(tag =~ /^v2/) AND (NOT (type IN (pull_request)))"
if: "(tag =~ /^v3/) AND (NOT (type IN (pull_request)))"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile
before_script:
- yarn run clean:component
script:
- yarn run prepublishOnly
- yarn run build:component
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
deploy:
provider: npm
provider: script
skip_cleanup: true
email: [email protected]
api_key:
secure: npdpG0sNovdDNHNlnClzkHWkvMQqpAiSEukUVw3fVRYerENzdvI9rdz5KSrdztDsQADlyYeNHXNjnoAx81nSEZAA9XvA20W+Gaf114MIWfz80dcCb/qKwDAKaXM6SZYo1XZqEvqYRkKeXYAR4T6HIrMF8JZCwJZacR2MCoX2gywFheT3IB43JOkYrSDr/czdkwM3Ar3PY8QXz+JhBt/WuMS/fHZm4X5oAa6TCUH68jfPdzc4g6+IEnYagDbYmqDwnHuxmPqSGFijjynDrZgnM2KiQCZzVAufGccy+8xTgywrEShnKJF5xO/S+CG3Sn/jX53ib56HKZ8D/BNapR9I8MLtcsqzHn1wTCIF/4jJ26h5Ka3LPPaOfNwZboBbslOYIReS1wHoTBDogS37MaMo56S5f4It+lCARUuCQ9ToKp5ZRJatJRymtupa0TmaKycBDrhTyAMtxaNcFfnD49OD0FJTOl8vokOiy7fp74mi9A2KZdx0YO6QrmuVMf7uvBCXldKsfm0GF3LK0mCypa/57mEp4gIgEwfAKkz+icUows2feTa8Js2KcFVXiXYnOOFktr+TmntbeBHPNGyvzLuslpszi7J6lF/+02ODwCQOeuXIDxU4N8//cQFz9ZA9+lZ1nf1BL6yi27uQciNTg9QN+Ticcx4qU0uByLupfwTgbHk=
script: "yarn run publish"
on:
tags: true
repo: NervJS/taro-ui
branch: master
- stage: deploy
if: "(branch = master) AND (NOT (type IN (pull_request)))"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn --frozen-lockfile
before_script:
- yarn run clean
script:
- yarn run build:doc
- yarn run build
after_script:
- cd site
- cd packages/taro-ui-docs/dist
- git init
- echo 'taro-ui.aotu.io' > CNAME
- git add .
- git add -A
- git commit -m "Update Document"
- git push --force --quiet "https://${GITHUB_TOKEN}@${GH_REF}" master:gh-pages
env:
global:
- GH_REF: github.com/NervJS/taro-ui.git
- GH_REF=github.com/NervJS/taro-ui.git
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

一款基于 `Taro` 框架开发的多端 UI 组件库

> Taro UI 3 目前仍在开发中,`alpha` 版本可能会出现较大改动并且不保证功能完整可用,请谨慎使用。

## 特性

- 基于 `Taro` 开发 UI 组件
Expand Down
28 changes: 0 additions & 28 deletions babel.config.js

This file was deleted.

Loading