Skip to content

Commit 078d2bb

Browse files
committed
Merge branch 'dev' into tracker-compatibility
2 parents 6424581 + c0ad75b commit 078d2bb

File tree

109 files changed

+5228
-3447
lines changed

Some content is hidden

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

109 files changed

+5228
-3447
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,7 @@ Hi! I’m really excited that you are interested in contributing to Vue.js. Befo
1010

1111
## Issue Reporting Guidelines
1212

13-
- The issue list of this repo is **exclusively** for bug reports and feature requests. Non-conforming issues will be closed immediately.
14-
15-
- For simple beginner questions, you can get quick answers from [The Gitter chat room](https://gitter.im/vuejs/vue).
16-
17-
- For more complicated questions, you can use [the official forum](http://forum.vuejs.org/) or StackOverflow. Make sure to provide enough information when asking your questions - this makes it easier for others to help you!
18-
19-
- Try to search for your issue, it may have already been answered or even fixed in the development branch.
20-
21-
- Check if the issue is reproducible with the latest stable version of Vue. If you are using a pre-release, please indicate the specific version you are using.
22-
23-
- It is **required** that you clearly describe the steps necessary to reproduce the issue you are running into. Although we would love to help our users as much as possible, diagnosing issues without clear reproduction steps is extremely time-consuming and simply not sustainable.
24-
25-
- Use only the minimum amount of code necessary to reproduce the unexpected behavior. A good bug report should isolate specific methods that exhibit unexpected behavior and precisely define how expectations were violated. What did you expect the method or methods to do, and how did the observed behavior differ? The more precisely you isolate the issue, the faster we can investigate.
26-
27-
- Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed.
28-
29-
- It is recommended that you make a JSFiddle/JSBin/Codepen to demonstrate your issue. You could start with [this template](https://jsfiddle.net/39epgLj0/) that already includes the latest version of Vue.
30-
31-
- For potential SSR (Server Side Rendering) issue or bugs that involves build setups, you can create a reproduction repository with steps in the README.
32-
33-
- If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it.
34-
35-
- Most importantly, we beg your patience: the team must balance your request against many other responsibilities — fixing other bugs, answering other questions, new features, new documentation, etc. The issue list is not paid support and we cannot make guarantees about how fast your issue can be resolved.
13+
- Always use [https://new-issue.vuejs.org/](https://new-issue.vuejs.org/) to create new issues.
3614

3715
## Pull Request Guidelines
3816

.github/ISSUE_TEMPLATE.md

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,7 @@
11
<!--
2-
中文用户请注意:
2+
IMPORTANT: Please use the following link to create a new issue:
33
4-
1. issue 只接受带重现的 bug 报告,请不要用来提问题!不符合要求的 issue 会被直接关闭。
5-
2. 请尽量用英文描述你的 issue,这样能够让尽可能多的人帮到你。
4+
https://new-issue.vuejs.org/
65
7-
Got a question?
8-
===============
9-
The issue list of this repo is **exclusively** for bug reports and feature requests. For simple questions, please use the following resources:
10-
11-
- Read the docs: https://vuejs.org/guide/
12-
- Watch video tutorials: https://laracasts.com/series/learning-vue-step-by-step
13-
- Ask in the Gitter chat room: https://gitter.im/vuejs/vue
14-
- Ask on the forums: http://forum.vuejs.org/
15-
- Look for/ask questions on stack overflow: https://stackoverflow.com/questions/ask?tags=vue.js
16-
17-
Reporting a bug?
18-
================
19-
- Try to search for your issue, it may have already been answered or even fixed in the development branch.
20-
21-
- Check if the issue is reproducible with the latest stable version of Vue. If you are using a pre-release, please indicate the specific version you are using.
22-
23-
- It is **required** that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed.
24-
25-
- It is recommended that you make a JSFiddle/JSBin/Codepen to demonstrate your issue. You could start with [this template](https://jsfiddle.net/39epgLj0/) that already includes the latest version of Vue.
26-
27-
- For potential SSR (Server Side Rendering) issue or bugs that involves build setups, you can create a reproduction repository with steps in the README.
28-
29-
- If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it.
30-
31-
Have a feature request?
32-
=======================
33-
Remove the template from below and provide thoughtful commentary *and code samples* on what this feature means for your product. What will it allow you to do that you can't do today? How will it make current work-arounds straightforward? What potential bugs and edge cases does it help to avoid? etc. Please keep it product-centric.
6+
If your issue was not created using the app above, it will be closed immediately.
347
-->
35-
36-
<!-- BUG REPORT TEMPLATE -->
37-
### Vue.js version
38-
2.0.2
39-
40-
### Reproduction Link
41-
<!-- A minimal JSBin, JSFiddle, Codepen, or a GitHub repository that can reproduce the bug. -->
42-
<!-- You could start with this template: https://jsfiddle.net/39epgLj0/ -->
43-
44-
### Steps to reproduce
45-
46-
### What is Expected?
47-
48-
### What is actually happening?

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,34 @@
22
Please make sure to read the Pull Request Guidelines:
33
https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#pull-request-guidelines
44
-->
5+
6+
<!-- PULL REQUEST TEMPLATE -->
7+
<!-- (Update "[ ]" to "[x]" to check a box) -->
8+
9+
**What kind of change does this PR introduce?** (check at least one)
10+
11+
- [ ] Bugfix
12+
- [ ] Feature
13+
- [ ] Code style update
14+
- [ ] Refactor
15+
- [ ] Build-related changes
16+
- [ ] Other, please describe:
17+
18+
**Does this PR introduce a breaking change?** (check one)
19+
20+
- [ ] Yes
21+
- [ ] No
22+
23+
If yes, please describe the impact and migration path for existing applications:
24+
25+
**The PR fulfills these requirements:**
26+
27+
- [ ] It's submitted to the `dev` branch for v2.x (or to a previous version branch), _not_ the `master` branch
28+
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
29+
- [ ] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
30+
- [ ] New/updated tests are included
31+
32+
If adding a **new feature**, the PR's description includes:
33+
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)
34+
35+
**Other information:**

benchmarks/dbmon/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<html>
33
<head>
44
<meta name="description" content="dbmon vue" />
5-
<link href="./lib/bootstrap.min.css" rel="stylesheet" type="text/css" />
65
<link href="./lib/styles.css" rel="stylesheet" type="text/css" />
76
<title>dbmon (Vue)</title>
87
</head>

benchmarks/dbmon/lib/bootstrap.min.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

benchmarks/dbmon/lib/styles.css

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1-
.Query {
2-
position: relative;
3-
}
1+
body {color:#333;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;margin:0;}
2+
label {display:inline-block;font-weight:700;margin-bottom:5px;}
3+
input[type=range] {display:block;width:100%;}
4+
table {border-collapse:collapse;border-spacing:0;}
5+
:before,:after {box-sizing: border-box;}
46

5-
.Query:hover .popover {
6-
left: -100%;
7-
width: 100%;
8-
display: block;
9-
}
7+
.table > thead > tr > th,.table > tbody > tr > th,.table > tfoot > tr > th,.table > thead > tr > td,.table > tbody > tr > td,.table > tfoot > tr > td {border-top:1px solid #ddd;line-height:1.42857143;padding:8px;vertical-align:top;}
8+
.table {width:100%;}
9+
.table-striped > tbody > tr:nth-child(odd) > td,.table-striped > tbody > tr:nth-child(odd) > th {background:#f9f9f9;}
1010

11+
.label {border-radius:.25em;color:#fff;display:inline;font-size:75%;font-weight:700;line-height:1;padding:.2em .6em .3em;text-align:center;vertical-align:baseline;white-space:nowrap;}
12+
.label-success {background-color:#5cb85c;}
13+
.label-warning {background-color:#f0ad4e;}
14+
15+
.popover {background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;box-shadow:0 5px 10px rgba(0,0,0,.2);display:none;left:0;max-width:276px;padding:1px;position:absolute;text-align:left;top:0;white-space:normal;z-index:1010;}
16+
.popover>.arrow:after {border-width:10px;content:"";}
17+
.popover.left {margin-left:-10px;}
18+
.popover.left > .arrow {border-right-width:0;border-left-color:rgba(0,0,0,.25);margin-top:-11px;right:-11px;top:50%;}
19+
.popover.left > .arrow:after {border-left-color:#fff;border-right-width:0;bottom:-10px;content:" ";right:1px;}
20+
.popover > .arrow {border-width:11px;}
21+
.popover > .arrow,.popover>.arrow:after {border-color:transparent;border-style:solid;display:block;height:0;position:absolute;width:0;}
22+
23+
.popover-content {padding:9px 14px;}
24+
25+
.Query {position:relative;}
26+
.Query:hover .popover {display:block;left:-100%;width:100%;}

benchmarks/ssr/renderToStream.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
'use strict'
44

5+
process.env.NODE_ENV = 'production'
6+
57
const Vue = require('../../dist/vue.runtime.common.js')
68
const createRenderer = require('../../packages/vue-server-renderer').createRenderer
79
const renderToStream = createRenderer().renderToStream

benchmarks/ssr/renderToString.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict'
22

3+
process.env.NODE_ENV = 'production'
4+
35
const Vue = require('../../dist/vue.runtime.common.js')
46
const createRenderer = require('../../packages/vue-server-renderer').createRenderer
57
const renderToString = createRenderer().renderToString

build/ci.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
set -e
2-
npm run lint
3-
npm run flow
4-
npm run test:types
5-
npm run test:cover
6-
npm run test:e2e -- --env phantomjs
7-
npm run test:ssr
8-
npm run test:weex
2+
npm test
93

104
# report coverage stats for non-PRs
115
if [[ -z $CI_PULL_REQUEST ]]; then

build/karma.base.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ var webpackConfig = {
1919
__WEEX__: false,
2020
'process.env': {
2121
NODE_ENV: '"development"',
22-
TRANSITION_DURATION: process.env.SAUCE ? 500 : 50,
23-
TRANSITION_BUFFER: process.env.SAUCE ? 50 : 10
22+
TRANSITION_DURATION: 50,
23+
TRANSITION_BUFFER: 10
2424
}
2525
})
2626
],

build/karma.sauce.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
var webpack = require('webpack')
12
var base = require('./karma.base.config.js')
23

4+
base.webpack.plugins = [
5+
new webpack.DefinePlugin({
6+
__WEEX__: false,
7+
'process.env': {
8+
NODE_ENV: '"development"',
9+
// sauce lab vms are slow!
10+
TRANSITION_DURATION: 500,
11+
TRANSITION_BUFFER: 50
12+
}
13+
})
14+
]
15+
316
/**
417
* Having too many tests running concurrently on saucelabs
518
* causes timeouts and errors, so we have to run them in

0 commit comments

Comments
 (0)