Skip to content

Commit a221111

Browse files
committed
Initial commit
1 parent e4a38bf commit a221111

File tree

8 files changed

+217
-0
lines changed

8 files changed

+217
-0
lines changed

.codesandbox/workspace.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"responsive-preview": {
3+
"Mobile": [
4+
320,
5+
675
6+
],
7+
"Tablet": [
8+
1024,
9+
765
10+
],
11+
"Desktop": [
12+
1400,
13+
800
14+
],
15+
"Desktop HD": [
16+
1920,
17+
1080
18+
]
19+
}
20+
}

package.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "vue",
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+
},
10+
"dependencies": {
11+
"@vue/cli-plugin-babel": "4.1.1",
12+
"vue": "^2.6.11"
13+
},
14+
"devDependencies": {
15+
"@vue/cli-plugin-eslint": "4.1.1",
16+
"@vue/cli-service": "4.1.1",
17+
"babel-eslint": "^10.0.3",
18+
"eslint": "^6.7.2",
19+
"eslint-plugin-vue": "^6.0.1",
20+
"vue-template-compiler": "^2.6.11"
21+
},
22+
"eslintConfig": {
23+
"root": true,
24+
"env": {
25+
"node": true
26+
},
27+
"extends": [
28+
"plugin:vue/essential",
29+
"eslint:recommended"
30+
],
31+
"rules": {},
32+
"parserOptions": {
33+
"parser": "babel-eslint"
34+
}
35+
},
36+
"postcss": {
37+
"plugins": {
38+
"autoprefixer": {}
39+
}
40+
},
41+
"browserslist": [
42+
"> 1%",
43+
"last 2 versions",
44+
"not ie <= 8"
45+
],
46+
"keywords": [
47+
"vue",
48+
"vuejs",
49+
"starter"
50+
],
51+
"description": "Vue.js example starter project"
52+
}

public/favicon.ico

1.12 KB
Binary file not shown.

public/index.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
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>codesandbox</title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong
13+
>We're sorry but codesandbox doesn't work properly without JavaScript
14+
enabled. Please enable it to continue.</strong
15+
>
16+
</noscript>
17+
<div id="app"></div>
18+
<!-- built files will be auto injected -->
19+
</body>
20+
</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 alt="Vue logo" src="./assets/logo.png" width="25%">
4+
<HelloWorld msg="Hello Vue in CodeSandbox!"/>
5+
</div>
6+
</template>
7+
8+
<script>
9+
import HelloWorld from "./components/HelloWorld";
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

4.08 KB
Loading

src/components/HelloWorld.vue

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<template>
2+
<div class="hello">
3+
<h1>{{ msg }}</h1>
4+
<h3>Installed CLI Plugins</h3>
5+
<ul>
6+
<li>
7+
<a
8+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel"
9+
target="_blank"
10+
rel="noopener"
11+
>babel</a>
12+
</li>
13+
<li>
14+
<a
15+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint"
16+
target="_blank"
17+
rel="noopener"
18+
>eslint</a>
19+
</li>
20+
</ul>
21+
<h3>Essential Links</h3>
22+
<ul>
23+
<li>
24+
<a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a>
25+
</li>
26+
<li>
27+
<a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a>
28+
</li>
29+
<li>
30+
<a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a>
31+
</li>
32+
<li>
33+
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a>
34+
</li>
35+
<li>
36+
<a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a>
37+
</li>
38+
</ul>
39+
<h3>Ecosystem</h3>
40+
<ul>
41+
<li>
42+
<a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a>
43+
</li>
44+
<li>
45+
<a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a>
46+
</li>
47+
<li>
48+
<a
49+
href="https://github.com/vuejs/vue-devtools#vue-devtools"
50+
target="_blank"
51+
rel="noopener"
52+
>vue-devtools</a>
53+
</li>
54+
<li>
55+
<a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a>
56+
</li>
57+
<li>
58+
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a>
59+
</li>
60+
</ul>
61+
</div>
62+
</template>
63+
64+
<script>
65+
export default {
66+
name: "HelloWorld",
67+
props: {
68+
msg: String
69+
}
70+
};
71+
</script>
72+
73+
<!-- Add "scoped" attribute to limit CSS to this component only -->
74+
<style scoped>
75+
h3 {
76+
margin: 40px 0 0;
77+
}
78+
ul {
79+
list-style-type: none;
80+
padding: 0;
81+
}
82+
li {
83+
display: inline-block;
84+
margin: 0 10px;
85+
}
86+
a {
87+
color: #42b983;
88+
}
89+
</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)