aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-04-19 13:51:22 +0900
committerDevine Lu Linvega <[email protected]>2019-04-19 13:51:22 +0900
commit8f5a7177f7d15b040a9193c71caf7ff3568897b0 (patch)
tree078359778538e1d252eba1db114bb88421d77979
parentb8336c44ddad29430bf983e0ac12b90614bf3745 (diff)
downloadOrca-8f5a7177f7d15b040a9193c71caf7ff3568897b0.tar.gz
Orca-8f5a7177f7d15b040a9193c71caf7ff3568897b0.zip
Added extra logs
-rw-r--r--desktop/sources/scripts/clock.js1
-rw-r--r--desktop/sources/scripts/lib/controller.js1
-rw-r--r--desktop/sources/scripts/patterns.js4
-rw-r--r--desktop/sources/scripts/terminal.js1
4 files changed, 5 insertions, 2 deletions
diff --git a/desktop/sources/scripts/clock.js b/desktop/sources/scripts/clock.js
index e746c89..349507a 100644
--- a/desktop/sources/scripts/clock.js
+++ b/desktop/sources/scripts/clock.js
@@ -89,6 +89,7 @@ function Clock (terminal) {
}
this.setTimer = function (bpm) {
+ console.log('Clock', `Setting new ${bpm} timer..`)
this.clearTimer()
this.timer = setInterval(() => { terminal.run(); this.update() }, (60000 / bpm) / 4)
}
diff --git a/desktop/sources/scripts/lib/controller.js b/desktop/sources/scripts/lib/controller.js
index cc6dfef..425c2c5 100644
--- a/desktop/sources/scripts/lib/controller.js
+++ b/desktop/sources/scripts/lib/controller.js
@@ -60,6 +60,7 @@ function Controller () {
}
this.commit = function () {
+ console.log('Controller', 'Changing..')
this.app.injectMenu(this.format())
}
diff --git a/desktop/sources/scripts/patterns.js b/desktop/sources/scripts/patterns.js
index 610ed77..a8e97ad 100644
--- a/desktop/sources/scripts/patterns.js
+++ b/desktop/sources/scripts/patterns.js
@@ -29,13 +29,13 @@ const Patterns = function (terminal) {
if (terminal.source.path) {
const path = terminal.source.folder() + '/' + name + '.orca'
if (fs.existsSync(path)) {
- return this.add(name,fs.readFileSync(path, 'utf8'))
+ return this.add(name, fs.readFileSync(path, 'utf8'))
}
}
return null
}
- this.add = function(name,data){
+ this.add = function (name, data) {
console.log('Patterns', `Added "${name}".`)
this.collection[name] = data
return data
diff --git a/desktop/sources/scripts/terminal.js b/desktop/sources/scripts/terminal.js
index 76493fd..6f14978 100644
--- a/desktop/sources/scripts/terminal.js
+++ b/desktop/sources/scripts/terminal.js
@@ -92,6 +92,7 @@ function Terminal () {
this.toggleRetina = function () {
this.scale = this.scale === 1 ? window.devicePixelRatio : 1
+ console.log('Terminal', `Pixel resolution: ${this.scale}`)
this.resize(true)
}