Skip to content
Snippets Groups Projects
Commit 8cd16037 authored by Adam Procter's avatar Adam Procter
Browse files

edited console logs

removed logs
parent 0dc99d16
No related branches found
No related tags found
No related merge requests found
......@@ -83,15 +83,15 @@ export default {
this.isReachable(this.getServerUrl()).then(function (online) {
if (online) {
// handle online status
console.log('online')
// console.log('online')
location.reload()
} else {
console.log('no connectivity')
// console.log('no connectivity')
}
})
} else {
// handle offline status
console.log('offline')
// console.log('offline')
ref.$emit('offlineTriggered')
}
},
......
......@@ -188,7 +188,7 @@ export default {
// mounted() {
// setTimeout(this.setFocus, delay)
// input = this.$refs.nodetext
// console.log(input)
// // console.log(input)
// },
// method
// setFocus() {
......@@ -269,7 +269,7 @@ export default {
editTrue(e) {
this.$emit('editTrue', e)
// console.log(e)
// // console.log(e)
},
editNode(e) {
......
......@@ -43,7 +43,7 @@ export default {
},
editTrue(e) {
this.$emit('editTrue', e)
//console.log(e)
//// console.log(e)
},
editNode(e) {
......
export const shortcutsMixin = {
created() {
// console.log('hey mix')
// // console.log('hey mix')
},
methods: {
handleKeyPress(e) {
......@@ -11,6 +11,6 @@ export const shortcutsMixin = {
this.addNode()
}
}
}
}
},
},
}
......@@ -62,15 +62,15 @@ export default {
this.isReachable(this.getServerUrl()).then(function (online) {
if (online) {
// handle online status
console.log('online')
// console.log('online')
location.reload()
} else {
console.log('no connectivity')
// console.log('no connectivity')
}
})
} else {
// handle offline status
console.log('offline')
// console.log('offline')
ref.$emit('offlineTriggered')
}
},
......
......@@ -98,7 +98,7 @@ export default {
this.translation,
this.scale
)
console.log(relativePoint, boardPoint)
// console.log(relativePoint, boardPoint)
},
reset() {},
onMouseDown(e) {
......@@ -123,7 +123,7 @@ export default {
if (!this.interaction.origin) {
return
}
console.log('touch')
// console.log('touch')
e.preventDefault()
const isPinchAction =
e.touches.length == 2 && this.interaction.origin.points.length > 1
......@@ -141,7 +141,7 @@ export default {
e.preventDefault()
e.stopPropagation()
// console.log(e)
// // console.log(e)
this.handleWheel(e)
},
......@@ -156,7 +156,7 @@ export default {
y: translation.y + dragY,
}
//console.log(dragX, dragY)
//// console.log(dragX, dragY)
this.$store.commit(
'ui/setTranslation',
......
......@@ -50,7 +50,7 @@ const store = {
setMode(state, mode) {
if (allModes[mode]) {
state.mode = mode
console.log(mode)
// console.log(mode)
} else {
console.warn(`${mode} is not a valid mode`)
}
......
......@@ -25,7 +25,7 @@ export const generateBezierCurve = (from, to, tension) => {
}
export const makeBezier = (fromHandle, toHandle, tension) => {
console.log(fromHandle, toHandle)
// console.log(fromHandle, toHandle)
// This is a simple way to adjust the link tension depending
// on the distance the link covers
const adjustedTension = mapRange(
......
......@@ -37,7 +37,7 @@ var remote =
//var remotetwo = 'http://127.0.0.1:5984/'
console.log(remote)
// console.log(remote)
const store = new Vuex.Store({
state: {
shortcutstate: false,
......@@ -76,7 +76,7 @@ const store = new Vuex.Store({
pouchdb.close().then(function () {
if (urlmicrocosm != undefined) {
// myclient = urldevice
microcosm = urlmicrocosm
} else {
microcosm = doc
......@@ -140,7 +140,7 @@ const store = new Vuex.Store({
}
}
}
//console.log(state.otherNodes)
//// console.log(state.otherNodes)
},
SET_CLIENT(state, doc) {
......@@ -287,7 +287,7 @@ const store = new Vuex.Store({
pouchdb
.get(state.global_pos_name)
.then(function (doc) {
// console.log(doc)
// // console.log(doc)
// put the store into pouchdb
return pouchdb.bulkDocs([
{
......@@ -447,7 +447,7 @@ const store = new Vuex.Store({
READ_FLAG(state, e) {
var i
console.log(e.e)
// console.log(e.e)
for (i = 0; i < Object.keys(state.configPositions).length; i++) {
if (e.e == state.configPositions[i].node_id) {
state.configPositions[i].read_mode = e.readmode
......@@ -457,7 +457,7 @@ const store = new Vuex.Store({
pouchdb
.get(state.global_pos_name)
.then(function (doc) {
// console.log(doc)
// // console.log(doc)
// put the store into pouchdb
return pouchdb.bulkDocs([
{
......@@ -480,7 +480,7 @@ const store = new Vuex.Store({
},
GET_EMOJI(state) {
console.log
// console.log
pouchdb
.get(state.global_emoji_name)
.then(function (doc) {
......@@ -522,7 +522,7 @@ const store = new Vuex.Store({
actions: {
getURLParam: () => {
const urlparam = Router.currentRoute.params.microcosm
// console.log(urlparam)
// // console.log(urlparam)
store.commit('GET_URL_MICROCOSM', urlparam)
},
......@@ -551,11 +551,11 @@ const store = new Vuex.Store({
})
.on('paused', function () {
// replication paused (e.g. replication up to date, user went offline)
// console.log('replication paused')
// // console.log('replication paused')
})
.on('active', function () {
// replicate resumed (e.g. new changes replicating, user went back online)
//console.log('back active')
//// console.log('back active')
})
.on('denied', function () {
// a document failed to replicate (e.g. due to permissions)
......
......@@ -50,7 +50,7 @@ import ControlsLayer from '@/components/ControlsLayer.vue'
import { mapState } from 'vuex'
import { shortcutsMixin } from '@/components/mixins/shortcutsMixin.js'
// import Router from '@/router'
// console.log(Router.currentRoute.params.microcosm)
// // console.log(Router.currentRoute.params.microcosm)
export default {
name: 'Oldhome',
......@@ -63,7 +63,7 @@ export default {
if (localStorage.myNNClient == null) {
// visiting from URL get them to name client
// localStorage.setItem('myNNClient', 'unknown client')
// console.log(localStorage.myNNClient)
// // console.log(localStorage.myNNClient)
}
},
beforeDestroy() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment