-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated from vuejs.org 34df294...3ed3359 * Apply suggestions from code review Co-Authored-By: GU Yiling <[email protected]> * Update forms.md * Update form-validation.md Co-authored-by: GU Yiling <[email protected]>
- Loading branch information
Showing
155 changed files
with
4,297 additions
and
434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,12 @@ partners_list: | |
name: Modus Create | ||
logo: https://res.cloudinary.com/modus-labs/image/upload/v1533109874/modus/logo-vertical-black.svg | ||
description: | ||
"Modus Create is a digital product agency that supports clients with business and product strategy consulting, customer experience, cloud services, and Agile software delivery. Our official partnerships with Atlassian, AWS, InVision, Cloudflare, GitHub, Ionic Framework, and Vue.js reinforce our proven results with digital transformation with organizations from startups to the Fortune 100." | ||
"Modus Create is a disruptive consulting firm that helps companies transform for success in the digital future. | ||
Clients work with Modus to effect transformational change through a unique collaborative engagement model that focuses on strategy, product design/build, user experience, company culture, and process change to accelerate their response to digital disruption. | ||
Modus is uniquely expert at executing within the new reality of global talent sourcing and globally distributed teams. Modus culture is based on recruiting only top talent regardless of their location. Modus delivers time zone-aligned, highly productive, English-speaking teams, accessibility, and a totally collaborative environment regardless of individual location. | ||
" | ||
proficiencies: | ||
- name: Vue.js | ||
url: https://moduscreate.com/partners/vue/?utm_source=Vue&utm_medium=Partner-Page&utm_campaign=Vue_partnerpage | ||
|
@@ -89,7 +94,7 @@ partners_list: | |
name: Monterail | ||
logo: Monterail.png | ||
description: | ||
"Monterail is a full-service software development company with 100+ experts on board delivering meaningful software for start-ups, SMBs and enterprises. We build for the Web with Ruby on Rails, Python, JavaScript, and Agile. We guarantee this: a product so qualitative and aligned with your vision, you’ll swear it was built in-house." | ||
"Monterail is a full-service software development company with 110+ experts on board delivering meaningful software for start-ups, SMBs and enterprises. We are organizers of the first official Vue-related conference in the world and authors of the State of Vue.js report (2017&2019). Our experts delivered 30 Vue.js-based projects so far." | ||
proficiencies: | ||
- name: VueJs | ||
url: https://hi.monterail.co/2NqPUa6 | ||
|
@@ -100,15 +105,15 @@ partners_list: | |
- name: Python | ||
url: https://hi.monterail.co/2MXHLeb | ||
- name: Services | ||
url: https://www.monterail.com/services | ||
url: https://www.monterail.com/services?utm_medium=referral&utm_source=partner-list&utm_campaign=vue.js | ||
- name: Projects | ||
url: https://www.monterail.com/projects | ||
url: https://www.monterail.com/projects?utm_medium=referral&utm_source=partner-list&utm_campaign=vue.js | ||
location: Wrocław, Poland | ||
languages: | ||
- English | ||
- Polish | ||
url_text: www.monterail.com | ||
url_link: www.monterail.com/?utm_campaign=Vue.js&utm_source=partner-list | ||
url_link: www.monterail.com/services/vue-development?utm_campaign=Vue.js&utm_source=partner-list | ||
hire_url: www.monterail.com/contact | ||
email: [email protected] | ||
social_links: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
src/v2/examples/vue-10-two-way-currency-filter-v2/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Two-way Currency Filter</title> | ||
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/accounting.js/0.4.1/accounting.min.js"></script> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<currency-input label="Price" v-bind:value.sync="price"></currency-input> | ||
<currency-input | ||
label="Shipping" | ||
v-bind:value.sync="shipping" | ||
></currency-input> | ||
<currency-input | ||
label="Handling" | ||
v-bind:value.sync="handling" | ||
></currency-input> | ||
<currency-input | ||
label="Discount" | ||
v-bind:value.sync="discount" | ||
></currency-input> | ||
|
||
<p>Total: ${{ total }}</p> | ||
</div> | ||
|
||
<script> | ||
Vue.component("currency-input", { | ||
template: | ||
'\ | ||
<div>\ | ||
<label v-if="label">{{ label }}</label>\ | ||
<input\ | ||
v-model="value | currency"\ | ||
v-on:focus="selectAll"\ | ||
>\ | ||
</div>\ | ||
', | ||
props: { | ||
value: { | ||
type: Number, | ||
default: 0, | ||
twoWay: true | ||
}, | ||
label: { | ||
type: String, | ||
default: "" | ||
} | ||
}, | ||
filters: { | ||
currency: { | ||
read: function(value) { | ||
return "$" + value.toFixed(2); | ||
}, | ||
write: function(value) { | ||
var number = +value.replace(/[^\d.]/g, ""); | ||
return isNaN(number) ? 0 : number; | ||
} | ||
} | ||
}, | ||
methods: { | ||
selectAll: function(event) { | ||
// Workaround for Safari bug | ||
// http://stackoverflow.com/questions/1269722/selecting-text-on-focus-using-jquery-not-working-in-safari-and-chrome | ||
setTimeout(function() { | ||
event.target.select(); | ||
}, 0); | ||
} | ||
} | ||
}); | ||
|
||
new Vue({ | ||
el: "#app", | ||
data: { | ||
price: 0, | ||
shipping: 0, | ||
handling: 0, | ||
discount: 0 | ||
}, | ||
computed: { | ||
total: function() { | ||
return this.price + this.shipping + this.handling - this.discount; | ||
} | ||
} | ||
}); | ||
</script> | ||
</body> | ||
</html> |
14 changes: 14 additions & 0 deletions
14
src/v2/examples/vue-10-two-way-currency-filter-v2/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "vue-10-two-way-currency-filter-v2", | ||
"version": "1.0.0", | ||
"description": "Showing how delayed state updates can cause strange behavior.", | ||
"main": "index.html", | ||
"scripts": { | ||
"start": "serve" | ||
}, | ||
"keywords": [], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"serve": "^11.2.0" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/v2/examples/vue-10-two-way-currency-filter-v2/sandbox.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"template": "static" | ||
} |
Oops, something went wrong.