Skip to content

Commit 9097b2a

Browse files
committed
init
0 parents  commit 9097b2a

23 files changed

+7816
-0
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
/tests/e2e/reports/
6+
selenium-debug.log
7+
8+
# local env files
9+
.env.local
10+
.env.*.local
11+
12+
# Log files
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
17+
# Editor directories and files
18+
.idea
19+
.vscode
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw*

.postcssrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
autoprefixer: {}
4+
}
5+
}

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/app'
4+
]
5+
}

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "show-v2.0",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build",
8+
"lint": "vue-cli-service lint",
9+
"test:unit": "vue-cli-service test:unit",
10+
"test:e2e": "vue-cli-service test:e2e"
11+
},
12+
"dependencies": {
13+
"vue": "^2.5.16",
14+
"vue-class-component": "^6.0.0",
15+
"vue-property-decorator": "^7.0.0",
16+
"vue-router": "^3.0.1",
17+
"vuex": "^3.0.1"
18+
},
19+
"devDependencies": {
20+
"@types/chai": "^4.1.0",
21+
"@types/mocha": "^5.2.4",
22+
"@vue/cli-plugin-babel": "^3.0.0-rc.5",
23+
"@vue/cli-plugin-e2e-nightwatch": "^3.0.0-rc.5",
24+
"@vue/cli-plugin-typescript": "^3.0.0-rc.5",
25+
"@vue/cli-plugin-unit-mocha": "^3.0.0-rc.5",
26+
"@vue/cli-service": "^3.0.0-rc.5",
27+
"@vue/test-utils": "^1.0.0-beta.20",
28+
"chai": "^4.1.2",
29+
"less": "^3.0.4",
30+
"less-loader": "^4.1.0",
31+
"vue-template-compiler": "^2.5.16"
32+
}
33+
}

public/favicon.ico

1.12 KB
Binary file not shown.

public/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
8+
<title>show-v2.0</title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but show-v2.0 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13+
</noscript>
14+
<div id="app"></div>
15+
<!-- built files will be auto injected -->
16+
</body>
17+
</html>

src/App.vue

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<template>
2+
<div id="app">
3+
<div id="nav">
4+
<router-link to="/">Home</router-link> |
5+
<router-link to="/about">About</router-link>
6+
</div>
7+
<router-view/>
8+
</div>
9+
</template>
10+
11+
<style lang="less">
12+
#app {
13+
font-family: 'Avenir', Helvetica, Arial, sans-serif;
14+
-webkit-font-smoothing: antialiased;
15+
-moz-osx-font-smoothing: grayscale;
16+
text-align: center;
17+
color: #2c3e50;
18+
}
19+
#nav {
20+
padding: 30px;
21+
a {
22+
font-weight: bold;
23+
color: #2c3e50;
24+
&.router-link-exact-active {
25+
color: #42b983;
26+
}
27+
}
28+
}
29+
</style>

src/assets/logo.png

6.69 KB
Loading

src/components/HelloWorld.vue

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<template>
2+
<div class="hello">
3+
<h1>{{ msg }}</h1>
4+
<p>
5+
For guide and recipes on how to configure / customize this project,<br>
6+
check out the
7+
<a href="https://cli.vuejs.org" target="_blank">vue-cli documentation</a>.
8+
</p>
9+
<h3>Installed CLI Plugins</h3>
10+
<ul>
11+
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank">babel</a></li>
12+
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-typescript" target="_blank">typescript</a></li>
13+
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-unit-mocha" target="_blank">unit-mocha</a></li>
14+
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-nightwatch" target="_blank">e2e-nightwatch</a></li>
15+
</ul>
16+
<h3>Essential Links</h3>
17+
<ul>
18+
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
19+
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
20+
<li><a href="https://chat.vuejs.org" target="_blank">Community Chat</a></li>
21+
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
22+
</ul>
23+
<h3>Ecosystem</h3>
24+
<ul>
25+
<li><a href="https://router.vuejs.org" target="_blank">vue-router</a></li>
26+
<li><a href="https://vuex.vuejs.org" target="_blank">vuex</a></li>
27+
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank">vue-devtools</a></li>
28+
<li><a href="https://vue-loader.vuejs.org" target="_blank">vue-loader</a></li>
29+
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>
30+
</ul>
31+
</div>
32+
</template>
33+
34+
<script lang="ts">
35+
import { Component, Prop, Vue } from 'vue-property-decorator';
36+
37+
@Component
38+
export default class HelloWorld extends Vue {
39+
@Prop() private msg!: string;
40+
}
41+
</script>
42+
43+
<!-- Add "scoped" attribute to limit CSS to this component only -->
44+
<style scoped lang="less">
45+
h3 {
46+
margin: 40px 0 0;
47+
}
48+
ul {
49+
list-style-type: none;
50+
padding: 0;
51+
}
52+
li {
53+
display: inline-block;
54+
margin: 0 10px;
55+
}
56+
a {
57+
color: #42b983;
58+
}
59+
</style>

0 commit comments

Comments
 (0)