Skip to content

Commit 97cc9a5

Browse files
committed
init
0 parents  commit 97cc9a5

13 files changed

+8865
-0
lines changed

Diff for: .browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not dead

Diff for: .eslintrc.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true
5+
},
6+
extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/prettier"],
7+
parserOptions: {
8+
parser: "babel-eslint"
9+
},
10+
rules: {
11+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
12+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off"
13+
}
14+
};

Diff for: .gitignore

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

Diff for: README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# vue-chat-app
2+
3+
## Project setup
4+
```
5+
yarn install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
yarn serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
yarn build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
yarn lint
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

Diff for: babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@vue/cli-plugin-babel/preset"]
3+
};

Diff for: package.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "vue-chat-app",
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+
"core-js": "^3.6.5",
12+
"vue": "^3.0.0"
13+
},
14+
"devDependencies": {
15+
"@vue/cli-plugin-babel": "~4.5.0",
16+
"@vue/cli-plugin-eslint": "~4.5.0",
17+
"@vue/cli-service": "~4.5.0",
18+
"@vue/compiler-sfc": "^3.0.0",
19+
"@vue/eslint-config-prettier": "^6.0.0",
20+
"babel-eslint": "^10.1.0",
21+
"eslint": "^6.7.2",
22+
"eslint-plugin-prettier": "^3.1.3",
23+
"eslint-plugin-vue": "^7.0.0-0",
24+
"prettier": "^1.19.1"
25+
}
26+
}

Diff for: public/favicon.ico

4.19 KB
Binary file not shown.

Diff for: public/index.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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><%= htmlWebpackPlugin.options.title %></title>
9+
</head>
10+
<body>
11+
<noscript>
12+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> 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>

Diff for: src/App.vue

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

Diff for: src/assets/logo.png

6.69 KB
Loading

Diff for: src/components/HelloWorld.vue

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

Diff for: src/main.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { createApp } from "vue";
2+
import App from "./App.vue";
3+
4+
createApp(App).mount("#app");

0 commit comments

Comments
 (0)