Skip to content

Commit b1643c7

Browse files
author
Kirill Serebrennikov
committed
init
0 parents  commit b1643c7

34 files changed

+13103
-0
lines changed

.browserslistrc

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

.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/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+
};

.gitignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
pnpm-debug.log*
14+
15+
# Editor directories and files
16+
.idea
17+
.vscode
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw?

README.md

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

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+
};

package-lock.json

+12,700
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "vue-crm",
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+
"register-service-worker": "^1.7.1",
13+
"vue": "^2.6.11",
14+
"vue-router": "^3.2.0",
15+
"vuex": "^3.4.0"
16+
},
17+
"devDependencies": {
18+
"@vue/cli-plugin-babel": "~4.4.0",
19+
"@vue/cli-plugin-eslint": "~4.4.0",
20+
"@vue/cli-plugin-pwa": "~4.4.0",
21+
"@vue/cli-plugin-router": "~4.4.0",
22+
"@vue/cli-plugin-vuex": "~4.4.0",
23+
"@vue/cli-service": "~4.4.0",
24+
"@vue/eslint-config-prettier": "^6.0.0",
25+
"babel-eslint": "^10.1.0",
26+
"eslint": "^6.7.2",
27+
"eslint-plugin-prettier": "^3.1.3",
28+
"eslint-plugin-vue": "^6.2.2",
29+
"node-sass": "^4.12.0",
30+
"prettier": "^1.19.1",
31+
"sass-loader": "^8.0.2",
32+
"vue-template-compiler": "^2.6.11"
33+
}
34+
}

public/favicon.ico

4.19 KB
Binary file not shown.
9.2 KB
Loading
29.1 KB
Loading
Loading
Loading
3.29 KB
Loading
3.95 KB
Loading
4.57 KB
Loading
1.46 KB
Loading
1.78 KB
Loading

public/img/icons/apple-touch-icon.png

4.57 KB
Loading

public/img/icons/favicon-16x16.png

799 Bytes
Loading

public/img/icons/favicon-32x32.png

1.24 KB
Loading
1.14 KB
Loading

public/img/icons/mstile-150x150.png

4.18 KB
Loading
+3
Loading

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>

public/robots.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

src/App.vue

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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="scss">
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+
20+
#nav {
21+
padding: 30px;
22+
23+
a {
24+
font-weight: bold;
25+
color: #2c3e50;
26+
27+
&.router-link-exact-active {
28+
color: #42b983;
29+
}
30+
}
31+
}
32+
</style>

src/assets/logo.png

6.69 KB
Loading

src/components/HelloWorld.vue

+138
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
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-pwa"
24+
target="_blank"
25+
rel="noopener"
26+
>pwa</a
27+
>
28+
</li>
29+
<li>
30+
<a
31+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router"
32+
target="_blank"
33+
rel="noopener"
34+
>router</a
35+
>
36+
</li>
37+
<li>
38+
<a
39+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex"
40+
target="_blank"
41+
rel="noopener"
42+
>vuex</a
43+
>
44+
</li>
45+
<li>
46+
<a
47+
href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint"
48+
target="_blank"
49+
rel="noopener"
50+
>eslint</a
51+
>
52+
</li>
53+
</ul>
54+
<h3>Essential Links</h3>
55+
<ul>
56+
<li>
57+
<a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a>
58+
</li>
59+
<li>
60+
<a href="https://forum.vuejs.org" target="_blank" rel="noopener"
61+
>Forum</a
62+
>
63+
</li>
64+
<li>
65+
<a href="https://chat.vuejs.org" target="_blank" rel="noopener"
66+
>Community Chat</a
67+
>
68+
</li>
69+
<li>
70+
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener"
71+
>Twitter</a
72+
>
73+
</li>
74+
<li>
75+
<a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a>
76+
</li>
77+
</ul>
78+
<h3>Ecosystem</h3>
79+
<ul>
80+
<li>
81+
<a href="https://router.vuejs.org" target="_blank" rel="noopener"
82+
>vue-router</a
83+
>
84+
</li>
85+
<li>
86+
<a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a>
87+
</li>
88+
<li>
89+
<a
90+
href="https://github.com/vuejs/vue-devtools#vue-devtools"
91+
target="_blank"
92+
rel="noopener"
93+
>vue-devtools</a
94+
>
95+
</li>
96+
<li>
97+
<a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener"
98+
>vue-loader</a
99+
>
100+
</li>
101+
<li>
102+
<a
103+
href="https://github.com/vuejs/awesome-vue"
104+
target="_blank"
105+
rel="noopener"
106+
>awesome-vue</a
107+
>
108+
</li>
109+
</ul>
110+
</div>
111+
</template>
112+
113+
<script>
114+
export default {
115+
name: "HelloWorld",
116+
props: {
117+
msg: String
118+
}
119+
};
120+
</script>
121+
122+
<!-- Add "scoped" attribute to limit CSS to this component only -->
123+
<style scoped lang="scss">
124+
h3 {
125+
margin: 40px 0 0;
126+
}
127+
ul {
128+
list-style-type: none;
129+
padding: 0;
130+
}
131+
li {
132+
display: inline-block;
133+
margin: 0 10px;
134+
}
135+
a {
136+
color: #42b983;
137+
}
138+
</style>

src/main.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Vue from "vue";
2+
import App from "./App.vue";
3+
import "./registerServiceWorker";
4+
import router from "./router";
5+
import store from "./store";
6+
7+
Vue.config.productionTip = false;
8+
9+
new Vue({
10+
router,
11+
store,
12+
render: h => h(App)
13+
}).$mount("#app");

src/registerServiceWorker.js

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* eslint-disable no-console */
2+
3+
import { register } from "register-service-worker";
4+
5+
if (process.env.NODE_ENV === "production") {
6+
register(`${process.env.BASE_URL}service-worker.js`, {
7+
ready() {
8+
console.log(
9+
"App is being served from cache by a service worker.\n" +
10+
"For more details, visit https://goo.gl/AFskqB"
11+
);
12+
},
13+
registered() {
14+
console.log("Service worker has been registered.");
15+
},
16+
cached() {
17+
console.log("Content has been cached for offline use.");
18+
},
19+
updatefound() {
20+
console.log("New content is downloading.");
21+
},
22+
updated() {
23+
console.log("New content is available; please refresh.");
24+
},
25+
offline() {
26+
console.log(
27+
"No internet connection found. App is running in offline mode."
28+
);
29+
},
30+
error(error) {
31+
console.error("Error during service worker registration:", error);
32+
}
33+
});
34+
}

src/router/index.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import Vue from "vue";
2+
import VueRouter from "vue-router";
3+
import Home from "../views/Home.vue";
4+
5+
Vue.use(VueRouter);
6+
7+
const routes = [
8+
{
9+
path: "/",
10+
name: "Home",
11+
component: Home
12+
},
13+
{
14+
path: "/about",
15+
name: "About",
16+
// route level code-splitting
17+
// this generates a separate chunk (about.[hash].js) for this route
18+
// which is lazy-loaded when the route is visited.
19+
component: () =>
20+
import(/* webpackChunkName: "about" */ "../views/About.vue")
21+
}
22+
];
23+
24+
const router = new VueRouter({
25+
mode: "history",
26+
base: process.env.BASE_URL,
27+
routes
28+
});
29+
30+
export default router;

src/store/index.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Vue from "vue";
2+
import Vuex from "vuex";
3+
4+
Vue.use(Vuex);
5+
6+
export default new Vuex.Store({
7+
state: {},
8+
mutations: {},
9+
actions: {},
10+
modules: {}
11+
});

0 commit comments

Comments
 (0)