Skip to content

Commit 2c906ab

Browse files
author
Mikhail
committed
init
0 parents  commit 2c906ab

33 files changed

+12482
-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

.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?

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
### Customize configuration
19+
See [Configuration Reference](https://cli.vuejs.org/config/).

babel.config.js

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

package-lock.json

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

package.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
},
9+
"dependencies": {
10+
"core-js": "^3.6.5",
11+
"register-service-worker": "^1.7.1",
12+
"vue": "^2.6.11",
13+
"vue-router": "^3.2.0",
14+
"vuex": "^3.4.0"
15+
},
16+
"devDependencies": {
17+
"@vue/cli-plugin-babel": "~4.5.0",
18+
"@vue/cli-plugin-pwa": "~4.5.0",
19+
"@vue/cli-plugin-router": "~4.5.0",
20+
"@vue/cli-plugin-vuex": "~4.5.0",
21+
"@vue/cli-service": "~4.5.0",
22+
"node-sass": "^4.12.0",
23+
"sass-loader": "^8.0.2",
24+
"vue-template-compiler": "^2.6.11"
25+
}
26+
}

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

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

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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('No internet connection found. App is running in offline mode.')
27+
},
28+
error (error) {
29+
console.error('Error during service worker registration:', error)
30+
}
31+
})
32+
}

src/router/index.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
20+
}
21+
]
22+
23+
const router = new VueRouter({
24+
mode: 'history',
25+
base: process.env.BASE_URL,
26+
routes
27+
})
28+
29+
export default router

src/store/index.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
},
9+
mutations: {
10+
},
11+
actions: {
12+
},
13+
modules: {
14+
}
15+
})

src/views/About.vue

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div class="about">
3+
<h1>This is an about page</h1>
4+
</div>
5+
</template>

src/views/Home.vue

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template>
2+
<div class="home">
3+
<img alt="Vue logo" src="../assets/logo.png">
4+
<HelloWorld msg="Welcome to Your Vue.js App"/>
5+
</div>
6+
</template>
7+
8+
<script>
9+
// @ is an alias to /src
10+
import HelloWorld from '@/components/HelloWorld.vue'
11+
12+
export default {
13+
name: 'Home',
14+
components: {
15+
HelloWorld
16+
}
17+
}
18+
</script>

0 commit comments

Comments
 (0)