Skip to content

Commit a1a64f2

Browse files
committed
Install vue
1 parent 9290a27 commit a1a64f2

33 files changed

+10915
-3
lines changed

Diff for: .editorconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

Diff for: .gitignore

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1-
# Created by .ignore support plugin (hsz.mobi)
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
/tests/e2e/videos/
6+
/tests/e2e/screenshots/
7+
8+
# local env files
9+
.env.local
10+
.env.*.local
11+
12+
# Log files
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
17+
# Editor directories and files
218
.idea
3-
.DS_store
19+
.vscode
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw*

Diff for: LICENSE renamed to OLD/LICENSE

File renamed without changes.

Diff for: OLD/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# osw-schedule

Diff for: index.html renamed to OLD/index.html

File renamed without changes.

Diff for: main.css renamed to OLD/main.css

File renamed without changes.

Diff for: past/abril.html renamed to OLD/past/abril.html

File renamed without changes.
File renamed without changes.
File renamed without changes.

Diff for: past/mayo.html renamed to OLD/past/mayo.html

File renamed without changes.
File renamed without changes.

Diff for: README.md

+39-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,39 @@
1-
# osw-schedule
1+
# agenda
2+
3+
## Project setup
4+
```
5+
yarn install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
yarn run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
yarn run build
16+
```
17+
18+
### Run your tests
19+
```
20+
yarn run test
21+
```
22+
23+
### Lints and fixes files
24+
```
25+
yarn run lint
26+
```
27+
28+
### Run your end-to-end tests
29+
```
30+
yarn run test:e2e
31+
```
32+
33+
### Run your unit tests
34+
```
35+
yarn run test:unit
36+
```
37+
38+
### Customize configuration
39+
See [Configuration Reference](https://cli.vuejs.org/config/).

Diff for: 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+
}

Diff for: cypress.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pluginsFile": "tests/e2e/plugins/index.js"
3+
}

Diff for: package.json

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"name": "agenda",
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+
"test:e2e": "vue-cli-service test:e2e",
10+
"test:unit": "vue-cli-service test:unit"
11+
},
12+
"dependencies": {
13+
"vue": "^2.6.6",
14+
"vue-router": "^3.0.1",
15+
"vuex": "^3.0.1"
16+
},
17+
"devDependencies": {
18+
"@vue/cli-plugin-babel": "^3.5.0",
19+
"@vue/cli-plugin-e2e-cypress": "^3.5.0",
20+
"@vue/cli-plugin-eslint": "^3.5.0",
21+
"@vue/cli-plugin-unit-jest": "^3.5.0",
22+
"@vue/cli-service": "^3.5.0",
23+
"@vue/eslint-config-standard": "^4.0.0",
24+
"@vue/test-utils": "1.0.0-beta.29",
25+
"babel-core": "7.0.0-bridge.0",
26+
"babel-eslint": "^10.0.1",
27+
"babel-jest": "^23.6.0",
28+
"eslint": "^5.8.0",
29+
"eslint-plugin-vue": "^5.0.0",
30+
"lint-staged": "^8.1.4",
31+
"stylus": "^0.54.5",
32+
"stylus-loader": "^3.0.2",
33+
"vue-template-compiler": "^2.5.21"
34+
},
35+
"eslintConfig": {
36+
"root": true,
37+
"env": {
38+
"node": true
39+
},
40+
"extends": [
41+
"plugin:vue/essential",
42+
"@vue/standard"
43+
],
44+
"rules": {},
45+
"parserOptions": {
46+
"parser": "babel-eslint"
47+
}
48+
},
49+
"postcss": {
50+
"plugins": {
51+
"autoprefixer": {}
52+
}
53+
},
54+
"browserslist": [
55+
"> 1%",
56+
"last 2 versions",
57+
"not ie <= 8"
58+
],
59+
"jest": {
60+
"moduleFileExtensions": [
61+
"js",
62+
"jsx",
63+
"json",
64+
"vue"
65+
],
66+
"transform": {
67+
"^.+\\.vue$": "vue-jest",
68+
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
69+
"^.+\\.jsx?$": "babel-jest"
70+
},
71+
"transformIgnorePatterns": [
72+
"/node_modules/"
73+
],
74+
"moduleNameMapper": {
75+
"^@/(.*)$": "<rootDir>/src/$1"
76+
},
77+
"snapshotSerializers": [
78+
"jest-serializer-vue"
79+
],
80+
"testMatch": [
81+
"**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"
82+
],
83+
"testURL": "http://localhost/"
84+
},
85+
"gitHooks": {
86+
"pre-commit": "lint-staged"
87+
},
88+
"lint-staged": {
89+
"*.{js,vue}": [
90+
"vue-cli-service lint",
91+
"git add"
92+
]
93+
}
94+
}

Diff for: public/favicon.ico

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

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<template>
2+
<div id="app">
3+
<router-view/>
4+
</div>
5+
</template>
6+
<style lang="stylus">
7+
body
8+
margin 0
9+
10+
#app
11+
font-family 'Avenir', Helvetica, Arial, sans-serif
12+
-webkit-font-smoothing antialiased
13+
-moz-osx-font-smoothing grayscale
14+
color #2c3e50
15+
16+
</style>

Diff for: src/assets/logo.png

6.69 KB
Loading

Diff for: src/components/HelloWorld.vue

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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-eslint" target="_blank" rel="noopener">eslint</a></li>
13+
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-unit-jest" target="_blank" rel="noopener">unit-jest</a></li>
14+
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-cypress" target="_blank" rel="noopener">e2e-cypress</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="stylus">
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+
</style>

Diff for: src/main.js

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

Diff for: src/router.js

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import Vue from 'vue'
2+
import Router from 'vue-router'
3+
import Home from './views/Home.vue'
4+
5+
Vue.use(Router)
6+
7+
export default new Router({
8+
routes: [
9+
{
10+
path: '/',
11+
name: 'home',
12+
component: Home
13+
},
14+
{
15+
path: '/about',
16+
name: 'about',
17+
component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
18+
}
19+
]
20+
})

Diff for: src/store.js

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

Diff for: 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>

Diff for: 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>

Diff for: tests/e2e/.eslintrc.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
plugins: [
3+
'cypress'
4+
],
5+
env: {
6+
mocha: true,
7+
'cypress/globals': true
8+
},
9+
rules: {
10+
strict: 'off'
11+
}
12+
}

Diff for: tests/e2e/plugins/index.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// https://docs.cypress.io/guides/guides/plugins-guide.html
2+
3+
// if you need a custom webpack configuration you can uncomment the following import
4+
// and then use the `file:preprocessor` event
5+
// as explained in the cypress docs
6+
// https://docs.cypress.io/api/plugins/preprocessors-api.html#Examples
7+
8+
/* eslint-disable import/no-extraneous-dependencies, global-require, arrow-body-style */
9+
// const webpack = require('@cypress/webpack-preprocessor')
10+
11+
module.exports = (on, config) => {
12+
// on('file:preprocessor', webpack({
13+
// webpackOptions: require('@vue/cli-service/webpack.config'),
14+
// watchOptions: {}
15+
// }))
16+
17+
return Object.assign({}, config, {
18+
fixturesFolder: 'tests/e2e/fixtures',
19+
integrationFolder: 'tests/e2e/specs',
20+
screenshotsFolder: 'tests/e2e/screenshots',
21+
videosFolder: 'tests/e2e/videos',
22+
supportFile: 'tests/e2e/support/index.js'
23+
})
24+
}

Diff for: tests/e2e/specs/test.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// https://docs.cypress.io/api/introduction/api.html
2+
3+
describe('My First Test', () => {
4+
it('Visits the app root url', () => {
5+
cy.visit('/')
6+
cy.contains('h1', 'Welcome to Your Vue.js App')
7+
})
8+
})

0 commit comments

Comments
 (0)