Skip to content

Refactor Site to Vue Components #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Aug 27, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix base Vue config
  • Loading branch information
Ari committed Jul 26, 2019
commit e7b4e1dd4971503598a26e365c25d277862f9cbc
1 change: 0 additions & 1 deletion debug.log

This file was deleted.

126 changes: 97 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "The new and improved Creative Commons License Chooser",
"author": "Ari <akmadian@gmail.com>",
"private": false,
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
Expand All @@ -14,11 +14,11 @@
"build": "node build/build.js"
},
"dependencies": {
"@creativecommons/vocabulary": "0.0.0-alpha.9",
"buefy": "^0.7.10",
"bulma": "^0.7.5",
"bulma-switch": "^2.0.0",
"vue": "^2.5.2",
"vue-router": "^3.0.1"
"sass-loader": "^7.1.0",
"vue": "^2.5.2"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
Expand Down
9 changes: 7 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<template>
<div id="app">
<img src="./assets/logo.png">
<router-view/>

</div>
</template>

<script>
import HelloWorld from './components/HelloWorld'

export default {
name: 'App'
name: 'App',
components: {
HelloWorld
}
}
</script>

Expand Down
3 changes: 2 additions & 1 deletion src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<template>
<div class="hello">

</div>
</template>

<script>
import Buefy from 'buefy'

export default {
name: 'HelloWorld',
data () {
Expand Down
2 changes: 0 additions & 2 deletions src/components/Modal.vue

This file was deleted.

5 changes: 2 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Buefy from 'buefy'
import App from './App'
import router from './router'
import Buefy from 'buefy'
import 'buefy/dist/buefy.css'

Vue.config.productionTip = false
Vue.use(Buefy)

/* eslint-disable no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})
15 changes: 0 additions & 15 deletions src/router/index.js

This file was deleted.

1 change: 0 additions & 1 deletion test/unit/jest.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ module.exports = {
collectCoverageFrom: [
'src/**/*.{js,vue}',
'!src/main.js',
'!src/router/index.js',
'!**/node_modules/**'
]
}