Skip to content
This repository was archived by the owner on May 7, 2021. It is now read-only.

Commit 7de3d71

Browse files
committed
ビルドできなかったのでプロジェクトを立て直した
1 parent 4052bbe commit 7de3d71

File tree

10 files changed

+893
-395
lines changed

10 files changed

+893
-395
lines changed

.editorconfig

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

babel.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
presets: [
3-
'@vue/app'
4-
]
5-
}
3+
'@vue/app',
4+
],
5+
};

package-lock.json

+839-362
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@vue/cli-plugin-babel": "^3.3.0",
1717
"@vue/cli-plugin-eslint": "^3.3.0",
1818
"@vue/cli-service": "^3.3.0",
19+
"@vue/eslint-config-airbnb": "^4.0.0",
1920
"babel-eslint": "^10.0.1",
2021
"eslint": "^5.8.0",
2122
"eslint-plugin-vue": "^5.0.0",
@@ -28,7 +29,7 @@
2829
},
2930
"extends": [
3031
"plugin:vue/essential",
31-
"eslint:recommended"
32+
"@vue/airbnb"
3233
],
3334
"rules": {},
3435
"parserOptions": {

src/App.vue

+12-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@
1515
-moz-osx-font-smoothing: grayscale;
1616
text-align: center;
1717
color: #2c3e50;
18-
margin-top: 60px;
18+
}
19+
#nav {
20+
padding: 30px;
21+
}
22+
23+
#nav a {
24+
font-weight: bold;
25+
color: #2c3e50;
26+
}
27+
28+
#nav a.router-link-exact-active {
29+
color: #42b983;
1930
}
2031
</style>

src/components/HelloWorld.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
export default {
3535
name: 'HelloWorld',
3636
props: {
37-
msg: String
38-
}
39-
}
37+
msg: String,
38+
},
39+
};
4040
</script>
4141

4242
<!-- Add "scoped" attribute to limit CSS to this component only -->

src/main.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import Vue from 'vue'
2-
import App from './App.vue'
3-
import router from './router'
4-
import store from './store'
1+
import Vue from 'vue';
2+
import App from './App.vue';
3+
import router from './router';
4+
import store from './store';
55

6-
Vue.config.productionTip = false
6+
Vue.config.productionTip = false;
77

88
new Vue({
99
router,
1010
store,
11-
render: h => h(App)
12-
}).$mount('#app')
11+
render: h => h(App),
12+
}).$mount('#app');

src/router.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
import Vue from 'vue'
2-
import Router from 'vue-router'
3-
import Home from './views/Home.vue'
1+
import Vue from 'vue';
2+
import Router from 'vue-router';
3+
import Home from './views/Home.vue';
44

5-
Vue.use(Router)
5+
Vue.use(Router);
66

77
export default new Router({
8+
mode: 'history',
9+
base: process.env.BASE_URL,
810
routes: [
911
{
1012
path: '/',
1113
name: 'home',
12-
component: Home
14+
component: Home,
1315
},
1416
{
1517
path: '/about',
1618
name: 'about',
1719
// route level code-splitting
1820
// this generates a separate chunk (about.[hash].js) for this route
1921
// which is lazy-loaded when the route is visited.
20-
component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
21-
}
22-
]
23-
})
22+
component: () => import(/* webpackChunkName: "about" */ './views/About.vue'),
23+
},
24+
],
25+
});

src/store.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import Vue from 'vue'
2-
import Vuex from 'vuex'
1+
import Vue from 'vue';
2+
import Vuex from 'vuex';
33

4-
Vue.use(Vuex)
4+
Vue.use(Vuex);
55

66
export default new Vuex.Store({
77
state: {
@@ -12,5 +12,5 @@ export default new Vuex.Store({
1212
},
1313
actions: {
1414

15-
}
16-
})
15+
},
16+
});

src/views/Home.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
<script>
99
// @ is an alias to /src
10-
import HelloWorld from '@/components/HelloWorld.vue'
10+
import HelloWorld from '@/components/HelloWorld.vue';
1111
1212
export default {
1313
name: 'home',
1414
components: {
15-
HelloWorld
16-
}
17-
}
15+
HelloWorld,
16+
},
17+
};
1818
</script>

0 commit comments

Comments
 (0)