-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
842467b
commit ff3a777
Showing
118 changed files
with
837 additions
and
1,219 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"plugin:vue/recommended", | ||
"standard", | ||
"prettier", | ||
"prettier/standard" | ||
], | ||
"rules": { | ||
"no-new": 0 | ||
}, | ||
"env": { | ||
"jest": true | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#OS files | ||
.DS_Store | ||
node_modules | ||
**/node_modules/** | ||
|
||
# Editor files | ||
/.idea | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: ['@babel/preset-env'] | ||
} |
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,47 @@ | ||
<template> | ||
<div class="hello"> | ||
<h1 :class="headingClasses">{{ msg }}</h1> | ||
</div> | ||
</template> | ||
|
||
<style module="css"> | ||
.testA { | ||
background-color: red; | ||
} | ||
</style> | ||
<style module> | ||
.testB { | ||
background-color: blue; | ||
} | ||
</style> | ||
<style> | ||
.testC { | ||
background-color: blue; | ||
} | ||
</style> | ||
|
||
<script> | ||
export default { | ||
name: 'basic', | ||
computed: { | ||
headingClasses: function headingClasses() { | ||
return { | ||
red: this.isCrazy, | ||
blue: !this.isCrazy, | ||
shadow: this.isCrazy | ||
} | ||
} | ||
}, | ||
data: function data() { | ||
return { | ||
msg: 'Welcome to Your Vue.js App', | ||
isCrazy: false | ||
} | ||
}, | ||
methods: { | ||
toggleClass: function toggleClass() { | ||
this.isCrazy = !this.isCrazy | ||
} | ||
} | ||
} | ||
</script> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,5 @@ | ||
<template functional> | ||
<div @click="props.onClick(props.msg.id)"> | ||
{{ props.msg.title }} <slot></slot> | ||
</div> | ||
</template> |
14 changes: 14 additions & 0 deletions
14
e2e/__projects__/babel-config/components/FunctionalSFCParent.vue
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 @@ | ||
<template> | ||
<FunctionalSFC :msg="{ id: 1, title: 'foo' }" :onClick="() => {}" /> | ||
</template> | ||
|
||
<script> | ||
import Vue from 'vue' | ||
import FunctionalSFC from './FunctionalSFC' | ||
export default { | ||
components: { | ||
FunctionalSFC | ||
} | ||
} | ||
</script> |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'jade' | ||
}; | ||
export default { | ||
name: 'jade' | ||
} | ||
</script> |
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,13 @@ | ||
<template> | ||
<div /> | ||
</template> | ||
|
||
<style module lang="less"> | ||
.testLess { | ||
background-color: @primary-color; | ||
} | ||
</style> | ||
|
||
<style lang="less"> | ||
@primary-color: #333; | ||
</style> |
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,7 @@ | ||
<script> | ||
export const randomExport = 42 | ||
export default { | ||
name: 'NamedExport' | ||
} | ||
</script> |
File renamed without changes.
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,21 @@ | ||
<template> | ||
<div :class="$style.testPcss"></div> | ||
</template> | ||
|
||
<style lang="postcss"> | ||
.testPcss { | ||
background-color: purple; | ||
} | ||
</style> | ||
|
||
<style module lang="pcss"> | ||
/* This syntax is for postcss-custom-properties */ | ||
--primary-color: green; | ||
/* This syntax is for postcss-nesting, but invalid as Pure CSS */ | ||
body { | ||
@media screen { | ||
background-color: grey; | ||
} | ||
} | ||
</style> |
10 changes: 5 additions & 5 deletions
10
test/resources/PugExtends.vue → ...rojects__/babel-config/components/Pug.vue
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<template lang="pug"> | ||
extends /resources/PugBase.pug | ||
extends /components/PugBase.pug | ||
block component | ||
div(class="pug-extended") | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'pug' | ||
} | ||
</script> | ||
export default { | ||
name: 'pug' | ||
} | ||
</script> |
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
e2e/__projects__/babel-config/components/PugRelativeExtends.vue
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,11 @@ | ||
<template lang="pug"> | ||
extends ./relative/PugRelativeBase.pug | ||
block component | ||
div(class="pug-extended") | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'pug' | ||
} | ||
</script> |
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,8 @@ | ||
<script> | ||
export default { | ||
name: 'RenderFunction', | ||
render(createElement) { | ||
return createElement('section', [this.$slots.default]) | ||
} | ||
} | ||
</script> |
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,15 @@ | ||
<template> | ||
<div /> | ||
</template> | ||
|
||
<style module lang="sass"> | ||
@import "~__styles/sass-a" | ||
.c | ||
background-color: red | ||
</style> | ||
|
||
<style lang="sass"> | ||
.d | ||
background-color: blue | ||
</style> |
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,17 @@ | ||
<template> | ||
<div class="testA"></div> | ||
</template> | ||
|
||
<style module lang="scss"> | ||
@import '~__styles/scss-a'; | ||
.c { | ||
background-color: red; | ||
} | ||
</style> | ||
|
||
<style lang="scss"> | ||
.d { | ||
background-color: red; | ||
} | ||
</style> |
File renamed without changes.
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,22 @@ | ||
<template> | ||
<div /> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'Button' | ||
} | ||
</script> | ||
|
||
<style lang="stylus" module="css"> | ||
@import './relative/resource'; | ||
.testA { | ||
background-color: red; | ||
} | ||
</style> | ||
|
||
<style lang="styl" module> | ||
.testB { | ||
background-color: blue; | ||
} | ||
</style> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 @@ | ||
@import "./sass-b" | ||
|
||
.a | ||
background-color: blue |
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,2 @@ | ||
.b | ||
background-color: blue |
Oops, something went wrong.