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

build(deps): bump lodash.template from 4.4.0 to 4.5.0 #621

Merged
merged 1,166 commits into from
Nov 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1166 commits
Select commit Hold shift + click to select a range
d68c61c
docs(i18n): add version
dolymood Oct 12, 2018
5005799
build: docs
dolymood Oct 12, 2018
9998403
docs(quick-start): add checker & locale entry
dolymood Oct 12, 2018
736c0c0
docs(scroll): version
dolymood Oct 12, 2018
7676bc4
build: docs
dolymood Oct 12, 2018
02177f3
chore(scroll): fix example bug
tank0317 Oct 15, 2018
1c221c2
Merge pull request #333 from didi/dev
tank0317 Oct 15, 2018
8eadaa8
build: docs
tank0317 Oct 15, 2018
1cba50f
fix(validator): remove findMessage
theniceangel Oct 15, 2018
fb4a03f
chore(upgrade): update to v1.11.1
theniceangel Oct 15, 2018
2e3ab32
build: package
theniceangel Oct 15, 2018
064d360
chore(example): input spell error
dolymood Oct 17, 2018
320f372
build: docs
dolymood Oct 17, 2018
72cafe7
docs(swipe): add 1.11 version diff
dolymood Oct 18, 2018
61a4786
build: docs
dolymood Oct 18, 2018
601b2ee
Fix nest scrolls bug (#340)
tank0317 Oct 21, 2018
476538c
chore(package.json): 1.11.2
dolymood Oct 21, 2018
b8e26d6
build: package
dolymood Oct 21, 2018
6b52207
build: docs
dolymood Oct 21, 2018
c1f4ce3
chore(example): checkbox add click demo
dolymood Oct 23, 2018
7c838ef
docs(checkbox): add click demo doc
dolymood Oct 23, 2018
e5056a7
build: docs
dolymood Oct 23, 2018
fd82368
feat(textarea): support autoExpand prop to control init state
dolymood Nov 2, 2018
b2a5e03
test(textarea): add autoExpand prop test
dolymood Nov 2, 2018
6a5f3ff
docs(textarea): add autoExpand prop doc
dolymood Nov 2, 2018
c332862
Fix scrolls nest mode (#345)
tank0317 Nov 2, 2018
fcfbc30
Feat recycle list (#344)
theniceangel Nov 7, 2018
55a1734
refactor(input): placeholder color set to normal
dolymood Nov 7, 2018
3b02a6d
refactor(textarea): placeholder color specificity to normal
dolymood Nov 7, 2018
0241801
chore(package.json): 1.12.0
dolymood Nov 7, 2018
fb46c5e
docs(scroll): nest mode required version 1.12
dolymood Nov 7, 2018
fa40c43
docs(recycle-list): add version
dolymood Nov 7, 2018
f532aa1
chore(types): add recycle-list component
dolymood Nov 7, 2018
38fc301
build: package
dolymood Nov 7, 2018
3fefd10
build: docs
dolymood Nov 7, 2018
d6e21f5
fix(recycle-list): change warning to warn
theniceangel Nov 8, 2018
2336640
chore(package.json): 1.12.1
dolymood Nov 8, 2018
a0fe79d
build: package
dolymood Nov 8, 2018
40ec2db
feat(form): submit method add skipValidate param
dolymood Nov 8, 2018
8709c0b
docs(form): add submit skitValidate param doc
dolymood Nov 8, 2018
4449009
chore(package.json): 1.12.2
dolymood Nov 8, 2018
900f393
docs(form): add version required
dolymood Nov 8, 2018
4ddb808
build: package
dolymood Nov 8, 2018
020c51b
build: docs
dolymood Nov 8, 2018
5538af1
fix(swipe): should update activeIndex when remove item
dolymood Nov 13, 2018
54399f1
chore(package.json): 1.12.3
dolymood Nov 13, 2018
d0215e4
build: package
dolymood Nov 13, 2018
45d08a5
docs(nav): add video tutorial
dolymood Nov 15, 2018
71d5d8b
build: docs
dolymood Nov 15, 2018
d45d98c
fix(example): fix page header invisible
dolymood Nov 15, 2018
7e05559
fix(recycle-list): can not scroll on iOS
dolymood Nov 15, 2018
b69f8ff
refactor(example): recycle list style
dolymood Nov 15, 2018
32991ff
chore(package.json): 1.12.4
dolymood Nov 15, 2018
79a454e
build: package
dolymood Nov 15, 2018
c860c8c
build: docs
dolymood Nov 15, 2018
99fd215
feat(form): add checker item
dolymood Nov 20, 2018
ff0838f
feat(tab-bar): support value prop
dolymood Nov 20, 2018
36c8d90
feat(tab-panels): support value prop for tab-panel
dolymood Nov 20, 2018
3ebc731
docs(tab-bar): add value prop doc
dolymood Nov 20, 2018
9241c34
feat(locale): support auto get Vue value
dolymood Nov 20, 2018
e24543d
chore(package.json): 1.12.5
dolymood Nov 20, 2018
5fdf90e
build: package
dolymood Nov 20, 2018
427cba9
build: docs
dolymood Nov 20, 2018
eac73a2
docs(quick-start): add video
dolymood Nov 23, 2018
533f387
build: docs
dolymood Nov 23, 2018
6a67fe4
Feat(TimePicket): support min & max
AmyFoxFN Dec 5, 2018
a0b7f78
chore: update version
AmyFoxFN Dec 5, 2018
7943b46
build: package
AmyFoxFN Dec 5, 2018
53f12f6
build: docs
AmyFoxFN Dec 5, 2018
870a302
Fix v-model typo (#369)
Leecason Dec 11, 2018
54fb5e2
chore: update scroll example's img (#372)
tank0317 Dec 13, 2018
a6f53c7
build: docs
dolymood Dec 13, 2018
8478e72
chore(package.json): better-scroll version lock
dolymood Jan 3, 2019
9f82fe1
chore(package.json): 1.12.7
dolymood Jan 3, 2019
e65a03e
build: package
dolymood Jan 3, 2019
166adef
build: docs
dolymood Jan 3, 2019
03fcdb9
fix(image-preview): zoom image on iOS will be blurred
dolymood Jan 7, 2019
7acd801
chore(package.json): 1.12.8
dolymood Jan 7, 2019
aacf098
build: package
dolymood Jan 7, 2019
19b4c53
chore(docs): remove Video Tutorial
theniceangel Jan 8, 2019
2ce3d28
build: docs
theniceangel Jan 8, 2019
b45c51c
fix(slide): goToPage direction (#384)
tank0317 Jan 22, 2019
facec89
chore(slide): add vertical unit test case
Jan 22, 2019
aabbb43
chore(package.json): 1.12.9
dolymood Jan 22, 2019
29620a6
build: package
dolymood Jan 22, 2019
7a8dd25
fix(recycle-list): check promise when mounted
dolymood Jan 31, 2019
d4856f2
feat(input): add blur & focus api
dolymood Jan 31, 2019
f2eb398
test(input): focus & blur api
dolymood Jan 31, 2019
40254f3
chore(package.json): 1.12.10
dolymood Jan 31, 2019
65bdb00
build: package
dolymood Jan 31, 2019
73a4b24
docs(input): add focus & blur api doc
dolymood Jan 31, 2019
e31a573
build: docs
dolymood Jan 31, 2019
f6d4cf6
sticky-ele组件导出错误 (#409)
chenfengjw163 Feb 13, 2019
c528eea
fix(radio): radio group support v-model when using group
dolymood Feb 14, 2019
0389bfc
chore(demo): radio group demo
dolymood Feb 14, 2019
4d2b9af
Recycle list fixbug (#410)
theniceangel Feb 15, 2019
ff4cc98
chore(package.json): 1.12.11
dolymood Feb 15, 2019
bd48d16
build: package
dolymood Feb 15, 2019
e89a5a5
build: docs
dolymood Feb 15, 2019
e9537e4
Recycle list add api (#417)
theniceangel Feb 27, 2019
1227d7a
fix(Slide): fix maxScrollX/Y caculating error in nested Slide (#418)
tank0317 Mar 3, 2019
2c8900a
chore(types): add popup show, hide and remove declare
dolymood Mar 11, 2019
eb6848e
chore(package.json): 1.12.12
dolymood Mar 11, 2019
e5ea3ef
build: package
dolymood Mar 11, 2019
f443001
build: docs
dolymood Mar 11, 2019
bb94f54
chore(types): ts type declare err
dolymood Mar 11, 2019
c104441
fix(scroll-nav-bar): inline-block element should have vertical-align top
dolymood Mar 11, 2019
15226b6
fix(form): should sync validator value when submit
dolymood Mar 11, 2019
3b7f513
refactor(form): opti comment
dolymood Mar 11, 2019
cb94dbd
chore(package.json): 1.12.13
dolymood Mar 11, 2019
aaaca62
build: package
dolymood Mar 11, 2019
7989d46
build: docs
dolymood Mar 11, 2019
07c05a9
feat(date-picker): support display order
cuijing1031 Mar 23, 2019
f4393ee
docs(date-picker): columnOrder doc order
dolymood Mar 25, 2019
ffb936c
chore(package.json): 1.12.14
dolymood Mar 25, 2019
fa0c3a3
build: package
dolymood Mar 25, 2019
bc67948
build: docs
dolymood Mar 25, 2019
a177a98
fix(scroll): nested scroll bug
Apr 10, 2019
9a059d2
chore(package.json): 1.12.15
Apr 10, 2019
2a6ae4a
build: package
Apr 10, 2019
3541b8b
Merge pull request #459 from didi/dev
tank0317 Apr 11, 2019
5bae538
build: package
tank0317 Apr 11, 2019
b3db022
docs(quick-start): upgrade webpack plugin versions
dolymood Apr 18, 2019
d49fa29
build: docs
dolymood Apr 18, 2019
8b60c2c
fix(input): clear use touchend event to handle clear
dolymood Apr 18, 2019
2ec431b
fix(types): add Checker
dolymood Apr 18, 2019
e9a23db
test(input): fix click to touchevent
dolymood Apr 18, 2019
fa9cfe6
chore(package.json): 1.12.16
dolymood Apr 18, 2019
4c98ffb
build: package
dolymood Apr 18, 2019
879cee7
build: docs
dolymood Apr 18, 2019
ad01ba0
feat(upload): support file status class
dolymood Apr 24, 2019
e9ec0f0
chore(package.json): 1.12.17
dolymood Apr 24, 2019
80f719c
build: package
dolymood Apr 24, 2019
375ca74
build: docs
dolymood Apr 24, 2019
d494510
feat(tab-bar): caculate tab's offsetLeft by el.offsetLeft
theniceangel Apr 25, 2019
8ab8d38
chore(package.json): 1.12.18
dolymood Apr 26, 2019
f3989dc
build: package
dolymood Apr 26, 2019
a6863c9
build: docs
dolymood Apr 26, 2019
6696ed0
test(karma): change image preview tests
dolymood Apr 28, 2019
be3261b
fix(demo): image preview links
dolymood Apr 30, 2019
6f63cd1
build: docs
dolymood Apr 30, 2019
8605e3d
docs(form fields): add input events (#468)
hu0950 May 7, 2019
24d0ca0
chore(types): add style module
dolymood May 7, 2019
88dfd11
chore(types): add Locale and Style module d.ts
dolymood May 7, 2019
5ca6538
feat(checker): support disabled
chrislala May 7, 2019
9663ece
Merge branch 'dev' of github.com:didi/cube-ui into dev
dolymood May 7, 2019
ebb6a06
chore(package.json): 1.12.19
dolymood May 7, 2019
4a85cce
docs(theme): add checker disabled vars
dolymood May 7, 2019
a9eaf49
build: package
dolymood May 7, 2019
29096d1
build: docs
dolymood May 7, 2019
2fc8f3c
fix(button): button add events handle
dolymood May 16, 2019
a5a2e8a
chore(package.json): 1.12.20
dolymood May 16, 2019
d5211fd
refactor(form): remove debugger
dolymood May 16, 2019
507937f
build: package
dolymood May 16, 2019
35bc239
feat(scroll): optimise scroll pullup (#482)
tank0317 May 28, 2019
f829f49
docs(scroll): add nomore & visible docs
dolymood Jun 4, 2019
a11081c
chore(package.json): 1.12.21
dolymood Jun 4, 2019
d2ae1ba
build: package
dolymood Jun 4, 2019
3776dc8
build: docs
dolymood Jun 4, 2019
b4dfb1e
docs(action-sheet): fix method do not match
dolymood Jun 5, 2019
0c39b23
build: docs
dolymood Jun 5, 2019
d74a93c
fix(index-list): should recalculaye height when forceUpdate
dolymood Jun 5, 2019
d0323f9
refactor(demo): fix index-list pull down refresh
dolymood Jun 5, 2019
3448e4f
docs(index-list): fix pulldown refresh forceUpdate err
dolymood Jun 5, 2019
bbf8e83
chore(package.json): 1.12.22
dolymood Jun 5, 2019
a966479
docs(index-list): fotmat
dolymood Jun 5, 2019
416d5cf
build: package
dolymood Jun 5, 2019
520b1ff
build: docs
dolymood Jun 5, 2019
88ab369
docs(internationaliztion): refrator
theniceangel Jun 6, 2019
38366e5
docs(internationalization): expose localMixin
theniceangel Jun 6, 2019
ae57f50
docs(internationalization): add sup label
theniceangel Jun 6, 2019
cf8c600
refactor(locale): mixin to lowercases
dolymood Jun 10, 2019
b344cfd
docs(i18n): mixin usage
dolymood Jun 10, 2019
4d4f230
chore(package.json): 1.12.23
dolymood Jun 10, 2019
5d68333
build: package
dolymood Jun 10, 2019
bf57e84
build: docs
dolymood Jun 10, 2019
bbfbe03
fix(scroll-nav): use setTimeout to fix vue2.6 nextTick
dolymood Jun 11, 2019
f7d6f11
chore(package.json): 1.12.24
dolymood Jun 11, 2019
97a76ed
build: package
dolymood Jun 11, 2019
d93fe2e
build: docs
dolymood Jun 11, 2019
99b5e6b
fix(scroll): forceUpdate (#526)
tank0317 Jun 24, 2019
35a5f12
docs(quick-start): add nuxt demo repo
dolymood Jun 27, 2019
9ffb465
build: docs
dolymood Jun 27, 2019
5685c08
feat(textarea): add change event
dolymood Jun 27, 2019
d7789e5
feat(index-list): support title slot
dolymood Jun 27, 2019
b7b28a8
chore(package.json): 1.12.25
dolymood Jun 28, 2019
2a708f5
docs(index-list): add title slot
dolymood Jun 28, 2019
f4393fa
build: package
dolymood Jun 28, 2019
70649e2
build: docs
dolymood Jun 28, 2019
c60bb5a
fix(validator): about promise type checking error
dolymood Jul 4, 2019
d25dc39
fix(form): form item should sync value and do not validate twice
dolymood Jul 4, 2019
84664ea
fix(slide): bs transition should only affect transform
dolymood Jul 4, 2019
0fa170b
chore(package.json): 1.12.26
dolymood Jul 4, 2019
60a3dd2
fix(date-picker): min and max default month to right value
dolymood Jul 4, 2019
3e940c0
fix(index-list): scroll component refresh check
dolymood Jul 4, 2019
885460e
build: package
dolymood Jul 4, 2019
3e47365
build: docs
dolymood Jul 4, 2019
dad48eb
feat(scroll-nav-bar): sync txts by labels
dolymood Jul 12, 2019
034f3d8
feat(scroll-nav): add scrollTo API
dolymood Jul 12, 2019
863c618
fix(scroll-nav-bar): vue warn prop modify
dolymood Jul 12, 2019
2cc275c
fix(scroll-nav-bar): sync txts too
dolymood Jul 12, 2019
2f2554e
test(scroll-nav-bar): update labels should update txts too
dolymood Jul 12, 2019
ca81be1
chore(package.json): 1.12.27
dolymood Jul 12, 2019
07a1184
build: package
dolymood Jul 12, 2019
020481c
build: docs
dolymood Jul 12, 2019
33edaa7
chore(demo): add input max length demo
dolymood Jul 25, 2019
e0ff5c0
docs(input): add control max length demo
dolymood Jul 25, 2019
865481f
build: docs
dolymood Jul 25, 2019
18ffab8
feat: add a col configuration to checkbox and radio
QiuShuiBai Aug 7, 2019
5286b06
refactor(group-col mixin): remove comments
dolymood Aug 7, 2019
020bdd8
chore(example): checkbox, radio text to en
dolymood Aug 7, 2019
914fbb7
docs(checkbox): add colNum doc
dolymood Aug 7, 2019
7bce304
chore(package.json): 1.12.28
dolymood Aug 7, 2019
b4b58b3
build: package
dolymood Aug 7, 2019
2e27310
build: docs
dolymood Aug 7, 2019
baba259
fix(input): ff, input min width should be 0
dolymood Aug 9, 2019
3037f17
fix(scroll): pulldown can not reset position
tank0317 Aug 12, 2019
e89faa2
chore(package.json): 1.12.29
dolymood Aug 19, 2019
b86b793
build: package
dolymood Aug 19, 2019
40ad25f
build: docs
dolymood Aug 19, 2019
f35cfe0
fix(form): should sync validity when add item field
dolymood Aug 20, 2019
6cf505b
refactor(form): remove debugger
dolymood Aug 20, 2019
112ee14
fix(form): do not get btn field value
dolymood Aug 20, 2019
288dbb6
test(form): add fieldsModel test
dolymood Aug 20, 2019
47def49
chore(package.json): 1.12.30
dolymood Aug 20, 2019
ca98327
docs(form): add fieldsModel doc
dolymood Aug 20, 2019
3d179c5
build: package
dolymood Aug 20, 2019
8d920cd
build: docs
dolymood Aug 20, 2019
0d78ee5
docs(home): update copyright to 2019
dolymood Sep 2, 2019
26898a4
build: docs
dolymood Sep 2, 2019
6c4a6f4
fix(segment-picker): fix can not hide bug
dolymood Sep 16, 2019
0a3fe42
chore(package.json): 1.12.31
dolymood Sep 16, 2019
ca6a171
build: package
dolymood Sep 16, 2019
b3a43fb
build: docs
dolymood Sep 16, 2019
feb4d39
docs(form): add options sub conf desc
dolymood Sep 17, 2019
5186b24
build: docs
dolymood Sep 17, 2019
6cead67
docs(checker): add disabled option
dolymood Sep 26, 2019
31444ab
build: docs
dolymood Sep 26, 2019
1e55502
docs(scroll): bs link to en lang
dolymood Oct 11, 2019
b50b132
docs(scroll-nav-bar): add options prop
dolymood Oct 11, 2019
5220a34
build: docs
dolymood Oct 11, 2019
477d228
feat(image-preview): support longTapSave to control bs click option
dolymood Oct 12, 2019
e7a85a2
refactor(image-preview): remove longTap prop
dolymood Oct 18, 2019
c46d471
fix(form): should scroll into first invalid field
dolymood Oct 18, 2019
ca3dc1d
chore(package.json): 1.12.32
dolymood Oct 18, 2019
95a4c61
build: package
dolymood Oct 18, 2019
a2b5d82
build: docs
dolymood Oct 18, 2019
5afe676
fix(radio): default slot child v-model not render correct contents
Nov 1, 2019
31e120d
Merge branch 'dev' of https://github.com/didi/cube-ui into dev
Nov 1, 2019
aadbb98
build(deps): bump lodash.template from 4.4.0 to 4.5.0
dependabot[bot] Nov 1, 2019
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build/*.js
config/*.js
example/modules/*.js
44 changes: 22 additions & 22 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-tabs': 0,
'space-before-function-paren': 0
}
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-tabs': 0,
'space-before-function-paren': 0
}
}
46 changes: 46 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at opensource@didichuxing.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
30 changes: 7 additions & 23 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
### A feature or reporting a bug?
<!--
IMPORTANT: Please use the following link to create a new issue:

https://cube-ui.github.io/cube-issue-helper/

### What is the current behavior?
If your issue was not created using the app above, it will be closed immediately.


### What is the expected behavior?


### How to reproduce the current behavior (if this is a bug)?


#### Provide the test code and the tested page URL (if applicable)

Tested page URL:

Test code

```js

```

### Specify your

* vue version:
* cube-ui version:
中文用户请注意:
请使用上面的链接来创建新的 issue。如果不是用上述工具创建的 issue 会被自动关闭。
-->
18 changes: 15 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
.idea/
.DS_Store
node_modules/
npm-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
deploy/
test/unit/coverage
test/e2e/reports
selenium-debug.log
yarn.lock

# Test publish files
cube-ui-*.tgz
package/

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,15 @@ node_js:
branches:
only:
- master
- dev
script:
- npm test
notifications:
webhooks:
urls:
- https://www.travisbuddy.com/
on_success: never
on_failure: always
on_start: never
on_cancel: never
on_error: never
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# cube-ui [![Build Status](https://travis-ci.org/didi/cube-ui.svg?branch=master)](https://travis-ci.org/didi/cube-ui?branch=master) [![codecov.io](http://codecov.io/github/didi/cube-ui/coverage.svg?branch=master)](http://codecov.io/github/didi/cube-ui?branch=master)

# cube-ui [![Build Status](https://travis-ci.org/didi/cube-ui.svg?branch=master)](https://travis-ci.org/didi/cube-ui?branch=master) [![codecov.io](http://codecov.io/github/didi/cube-ui/coverage.svg?branch=master)](http://codecov.io/github/didi/cube-ui?branch=master) [![downloads](https://img.shields.io/npm/dm/cube-ui.svg)](https://www.npmjs.com/package/cube-ui)

> A fantastic mobile ui lib implement by Vue.

Expand All @@ -8,7 +9,21 @@
- [Docs](https://didi.github.io/cube-ui/#/en-US/docs)
- [Example](https://didi.github.io/cube-ui/example/)

![example QR](./assets/example-qr.png)
![Example QR](./assets/example-qr.png)

- [Application Guide](https://github.com/cube-ui/cube-application-guide)

### Communication

![QQ Community QR](./assets/cube-qq-QR.jpg)

### New cube-ui project ?

Recommend use the [CLI tools](https://github.com/cube-ui/cube-template) base on [vue-cli](https://github.com/vuejs/vue-cli) to init the config and base code:

```shell
$ vue init cube-ui/cube-template projectname
```

### Install

Expand All @@ -29,7 +44,12 @@ Vue.use(Cube)

```js
import Vue from 'vue'
import { Button, ActionSheet } from 'cube-ui'
import {
/* eslint-disable no-unused-vars */
Style,
Button,
ActionSheet
} from 'cube-ui'

Vue.use(Button)
Vue.use(ActionSheet)
Expand Down
19 changes: 17 additions & 2 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@
- [文档](https://didi.github.io/cube-ui/#/zh-CN/docs)
- [示例](https://didi.github.io/cube-ui/example/)

![示例二维码](./assets/example-qr.png)
![示例二维码](./assets/example-qr.png)

- [应用教程](https://github.com/cube-ui/cube-application-guide)

### 新项目?

推荐使用基于 [vue-cli](https://github.com/vuejs/vue-cli) 的 [CLI 工具](https://github.com/cube-ui/cube-template) 来初始化配置和代码:

```shell
$ vue init cube-ui/cube-template projectname
```

### 安装

Expand All @@ -29,7 +39,12 @@ Vue.use(Cube)

```js
import Vue from 'vue'
import { Button, ActionSheet } from 'cube-ui'
import {
/* eslint-disable no-unused-vars */
Style,
Button,
ActionSheet
} from 'cube-ui'

Vue.use(Button)
Vue.use(ActionSheet)
Expand Down
Binary file added assets/cube-qq-QR.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 50 additions & 26 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,60 @@ function buildPack(webpackConfig, cb, spinnerText) {
})
}

buildPack(webpackConfig, function () {
webpackConfig.output.filename = utils.assetsPath('[name].min.js')
webpackConfig.output.chunkFilename = '[name].min.js'
webpackConfig.plugins.splice(2, 1, new ExtractTextPlugin(utils.assetsPath('[name].min.css')), new OptimizeCSSPlugin({
cssProcessorOptions: {
safe: true
}
}))
// add UglifyJsPlugin
webpackConfig.plugins.splice(2, 0, new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}))
function fullBuild(cb) {
// build index.js
buildPack(webpackConfig, function () {
buildPack(webpackModulesConfig, function () {
webpackModulesConfig.output.filename = utils.assetsPath('[name]/[name].min.js')
webpackModulesConfig.output.chunkFilename = '[name]/[name].min.js'
webpackModulesConfig.plugins.splice(2, 1, new ExtractTextPlugin(utils.assetsPath('[name]/[name].min.css')), new OptimizeCSSPlugin({

// build cube.min.js
webpackConfig.output.filename = utils.assetsPath('[name].min.js')
webpackConfig.output.chunkFilename = '[name].min.js'
webpackConfig.plugins.splice(1, 1,
new webpack.DefinePlugin({
'process.env': config.build.env
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}),
new ExtractTextPlugin(utils.assetsPath('[name].min.css')),
new OptimizeCSSPlugin({
cssProcessorOptions: {
safe: true
}
}))
// 增加 UglifyJsPlugin
webpackModulesConfig.plugins.splice(2, 0, new webpack.optimize.UglifyJsPlugin({
})
)
buildPack(webpackConfig, function () {
cb && cb()
}, 'building for cube.min.js')
}, 'building for index.js')
}

function modulesBuild() {
// build ${module}/index.js
buildPack(webpackModulesConfig, function () {

// build ${module}/${module}.min.js
webpackModulesConfig.output.filename = utils.assetsPath('[name]/[name].min.js')
webpackModulesConfig.output.chunkFilename = '[name]/[name].min.js'
webpackModulesConfig.plugins.splice(1, 1,
new webpack.DefinePlugin({
'process.env': config.build.env
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
}))
buildPack(webpackModulesConfig, null, 'building for compressed component files...')
}, 'building for uncompressed component files...')
}, 'building for compressed files...')
})
}),
new ExtractTextPlugin(utils.assetsPath('[name]/[name].min.css')),
new OptimizeCSSPlugin({
cssProcessorOptions: {
safe: true
}
})
)
buildPack(webpackModulesConfig, null, 'building for ${module}/${module}.min.js')
}, 'building for ${module}/index.js')
}

fullBuild(modulesBuild)
1 change: 1 addition & 0 deletions build/document/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var webpackConfig = merge(baseWebpackConfig, {
safe: true
}
}),
new webpack.HashedModuleIdsPlugin(),
// generate dist index.html with correct asset hash for caching.
// you can customize output by editing /index.html
// see https://github.com/ampedandwired/html-webpack-plugin
Expand Down
6 changes: 5 additions & 1 deletion build/release/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ git pull origin master
npm run doc-demo-build
# ADD commit
git add docs/
git commit -m 'docs build'
git commit -m 'build: docs'
git push origin master
git checkout dev
git rebase master
git push origin dev
git checkout master
9 changes: 8 additions & 1 deletion build/release/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@

# git pull
git pull origin master
# npm install
rm package-lock.json
npm install --registry=https://registry.npmjs.org
# build
npm run build
# ADD commit
git add -A
git commit -m 'publish build'
git commit -m 'build: package'
git push origin master
# replace src/ __VERSION__
node ./build/release/replace-version.js
# publish
npm publish
# checkout src/index.js
git checkout src/index.js
git checkout dev
git rebase master
git push origin dev
git checkout master
3 changes: 2 additions & 1 deletion build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ exports.cssLoaders = function (options) {
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader'
fallback: 'vue-style-loader',
publicPath: options.extract.publicPath
})
} else {
return ['vue-style-loader'].concat(loaders)
Expand Down
Loading