Skip to content

Commit d59cd91

Browse files
author
binaryify
committed
init
0 parents  commit d59cd91

File tree

11 files changed

+6539
-0
lines changed

11 files changed

+6539
-0
lines changed

.gitignore

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

.postcssrc.js

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

babel.config.js

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

package.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "vue-qr",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"serve": "vue-cli-service serve",
7+
"build": "vue-cli-service build"
8+
},
9+
"dependencies": {
10+
"vue": "^2.5.16"
11+
},
12+
"devDependencies": {
13+
"@vue/cli-plugin-babel": "^3.0.0-beta.15",
14+
"@vue/cli-service": "^3.0.0-beta.15",
15+
"vue-template-compiler": "^2.5.16"
16+
},
17+
"browserslist": [
18+
"> 1%",
19+
"last 2 versions",
20+
"not ie <= 8"
21+
]
22+
}

public/favicon.ico

1.12 KB
Binary file not shown.

public/index.html

+17
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>vue-qr</title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but vue-qr 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

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<template>
2+
<div id="app">
3+
<img src="./assets/logo.png">
4+
<HelloWorld msg="Welcome to Your Vue.js App"/>
5+
</div>
6+
</template>
7+
8+
<script>
9+
import HelloWorld from './components/HelloWorld.vue'
10+
11+
export default {
12+
name: 'app',
13+
components: {
14+
HelloWorld
15+
}
16+
}
17+
</script>
18+
19+
<style>
20+
#app {
21+
font-family: 'Avenir', Helvetica, Arial, sans-serif;
22+
-webkit-font-smoothing: antialiased;
23+
-moz-osx-font-smoothing: grayscale;
24+
text-align: center;
25+
color: #2c3e50;
26+
margin-top: 60px;
27+
}
28+
</style>

src/assets/logo.png

6.69 KB
Loading

src/components/HelloWorld.vue

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
</ul>
13+
<h3>Essential Links</h3>
14+
<ul>
15+
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>
16+
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li>
17+
<li><a href="https://chat.vuejs.org" target="_blank">Community Chat</a></li>
18+
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li>
19+
</ul>
20+
<h3>Ecosystem</h3>
21+
<ul>
22+
<li><a href="https://router.vuejs.org" target="_blank">vue-router</a></li>
23+
<li><a href="https://vuex.vuejs.org" target="_blank">vuex</a></li>
24+
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank">vue-devtools</a></li>
25+
<li><a href="https://vue-loader.vuejs.org" target="_blank">vue-loader</a></li>
26+
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li>
27+
</ul>
28+
</div>
29+
</template>
30+
31+
<script>
32+
export default {
33+
name: 'HelloWorld',
34+
props: {
35+
msg: String
36+
}
37+
}
38+
</script>
39+
40+
<!-- Add "scoped" attribute to limit CSS to this component only -->
41+
<style scoped>
42+
h3 {
43+
margin: 40px 0 0;
44+
}
45+
ul {
46+
list-style-type: none;
47+
padding: 0;
48+
}
49+
li {
50+
display: inline-block;
51+
margin: 0 10px;
52+
}
53+
a {
54+
color: #42b983;
55+
}
56+
</style>

src/main.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import Vue from 'vue'
2+
import App from './App.vue'
3+
4+
Vue.config.productionTip = false
5+
6+
new Vue({
7+
render: h => h(App)
8+
}).$mount('#app')

0 commit comments

Comments
 (0)