Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Oct 24, 2020
1 parent 8b9e630 commit 58202bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- name: Get dependencies and run test
run: |
npm install
npm run lint
make test
make
- name: Build
Expand Down
6 changes: 2 additions & 4 deletions src/pages/overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default {
return (this.pointer / this.file.size) * 100
},
isServer() {
return this.$route.params.id ? false : true
return !this.$route.params.id
}
},
methods: {
Expand Down Expand Up @@ -224,7 +224,7 @@ export default {
pc.addEventListener('iceconnectionstatechange', () => {
console.log('iceconnectionstatechange', pc.iceConnectionState)
this.p2pConnect = pc.iceConnectionState === 'connected' ? true : false
this.p2pConnect = pc.iceConnectionState === 'connected'
})
pc.addEventListener('icecandidate', ev => {
if (ev.candidate === null) {
Expand All @@ -246,7 +246,6 @@ export default {
pc.setLocalDescription(offer)
this.cable.send(JSON.stringify(offer))
})
},
onAnswer(sdp) {
this.pc.setRemoteDescription(sdp)
Expand Down Expand Up @@ -360,7 +359,6 @@ export default {
}
this.file.slice(p, p + this.step).arrayBuffer().then(buffer => {
// Md5
this.spark.append(buffer)
Expand Down
12 changes: 6 additions & 6 deletions src/router.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
import Vue from 'vue'
import Router from 'vue-router'

import Overview from './pages/overview.vue';
import Overview from './pages/overview.vue'
Vue.use(Router)

const routes = [
{
Expand All @@ -12,9 +12,9 @@ const routes = [
{
path: '/t/:id',
component: Overview
},
}
]

export default new Router({
routes
});
})

1 comment on commit 58202bb

@vercel
Copy link

@vercel vercel bot commented on 58202bb Oct 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.