From 98e824eb2e5a07727559c6da60ef3720f43950f8 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 16 Jul 2012 18:10:01 -0500 Subject: [PATCH] Remove tyler defaults & "toggle debug" button --- lib/app/content.js | 271 ----------------------------------------- lib/app/index.js | 45 ------- src/app/content.coffee | 52 -------- src/app/index.coffee | 13 -- views/app/index.html | 4 +- 5 files changed, 1 insertion(+), 384 deletions(-) diff --git a/lib/app/content.js b/lib/app/content.js index 08b1a939ad..980e4ec3bd 100644 --- a/lib/app/content.js +++ b/lib/app/content.js @@ -70,277 +70,6 @@ module.exports = { } ] }, - tylerDefaultTasks: { - habits: [ - { - type: 'habit', - text: 'Stairs', - notes: '', - value: 0, - up: true, - down: true - }, { - type: 'habit', - text: 'Diet', - notes: '', - value: 0, - up: true, - down: true - }, { - type: 'habit', - text: 'Ticket (Workflowy, Pivotal)', - notes: '', - value: 0, - up: true, - down: false - }, { - type: 'habit', - text: 'Temptation Control', - notes: '* meditate for 1 minute, visualize
* positive, specific, present self-talk
* do first task', - value: 0, - up: true, - down: false - }, { - type: 'habit', - text: 'Propose, not ask', - notes: '', - value: 0, - up: true, - down: false - }, { - type: 'habit', - text: 'Focus', - notes: '', - value: 0, - up: false, - down: true - }, { - type: 'habit', - text: 'Facebook/RSS out of turn', - notes: '', - value: 0, - up: false, - down: true - }, { - type: 'habit', - text: 'Negative Talk', - notes: '', - value: 0, - up: false, - down: true - }, { - type: 'habit', - text: 'Exaggeration', - notes: '', - value: 0, - up: false, - down: true - }, { - type: 'habit', - text: 'Insult Self', - notes: '', - value: 0, - up: false, - down: true - }, { - type: 'habit', - text: 'Other', - notes: '* Nail-biting
* Posture
* Visualize / Meditate to sleep
* Smile/eye-gaze', - value: 0, - up: false, - down: false - } - ], - dailys: [ - { - type: 'daily', - text: 'Review Pivotal, Asana, Workflowy', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'TMJ Exercise', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Anki (20m)', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: '30m Code Reading', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Google News', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Mint', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Anki (new / review)', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Check Meetup', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Read it later', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'RSS (Drupal)', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'RSS (Other)', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Lunch TODO', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Exercise', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Read (45m)', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Night TODO', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: 'Brain Game', - notes: '', - value: 0, - completed: false - }, { - type: 'daily', - text: '1h Personal Project', - notes: '', - value: 0, - completed: false - } - ], - todos: [ - { - type: 'todo', - text: 'VPM', - notes: '', - value: 0, - completed: false - }, { - type: 'todo', - text: 'mail', - notes: '', - value: 0, - completed: false - }, { - type: 'todo', - text: 'krav', - notes: '', - value: 0, - completed: false - }, { - type: 'todo', - text: 'rubber cement', - notes: '', - value: 0, - completed: false - }, { - type: 'todo', - text: 'bike', - notes: '', - value: 0, - completed: false - }, { - type: 'todo', - text: 'clean ~/.ievms', - notes: '', - value: 0, - completed: false - }, { - type: 'todo', - text: 'http://www.php-debug.com/www/', - notes: '', - value: 0, - completed: false - }, { - type: 'todo', - text: 'make sure IRA is setup for auto distribution', - notes: '', - value: 0, - completed: false - } - ], - rewards: [ - { - type: 'reward', - text: 'TV Show', - notes: '', - value: 20 - }, { - type: 'reward', - text: '1h Novel', - notes: '', - value: 10 - }, { - type: 'reward', - text: 'Shop', - notes: '', - value: 10 - }, { - type: 'reward', - text: 'Junk Food', - notes: '', - value: 10 - }, { - type: 'reward', - text: '9gag', - notes: '', - value: 5 - }, { - type: 'reward', - text: 'Coffee', - notes: '', - value: 5 - } - ] - }, tourSteps: [ { element: "#avatar", diff --git a/lib/app/index.js b/lib/app/index.js index 66527d851a..624662897a 100644 --- a/lib/app/index.js +++ b/lib/app/index.js @@ -202,48 +202,6 @@ ready(function(model) { }); } tour.start(); - exports.loadDebugDefaults = function(e, el) { - model.remove('_habitList', 0, 100, function() { - var task, _k, _len2, _ref3, _results; - _ref3 = content.tylerDefaultTasks.habits; - _results = []; - for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) { - task = _ref3[_k]; - _results.push(model.push('_habitList', task)); - } - return _results; - }); - model.remove('_dailyList', 0, 100, function() { - var task, _k, _len2, _ref3, _results; - _ref3 = content.tylerDefaultTasks.dailys; - _results = []; - for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) { - task = _ref3[_k]; - _results.push(model.push('_dailyList', task)); - } - return _results; - }); - model.remove('_todoList', 0, 100, function() { - var task, _k, _len2, _ref3, _results; - _ref3 = content.tylerDefaultTasks.todos; - _results = []; - for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) { - task = _ref3[_k]; - _results.push(model.push('_todoList', task)); - } - return _results; - }); - return model.remove('_rewardList', 0, 100, function() { - var task, _k, _len2, _ref3, _results; - _ref3 = content.tylerDefaultTasks.rewards; - _results = []; - for (_k = 0, _len2 = _ref3.length; _k < _len2; _k++) { - task = _ref3[_k]; - _results.push(model.push('_rewardList', task)); - } - return _results; - }); - }; exports.addTask = function(e, el, next) { var list, newModel, text; type = $(el).attr('data-task-type'); @@ -539,9 +497,6 @@ ready(function(model) { setInterval((function() { return poormanscron(); }), 3600000); - exports.toggleDebug = function() { - return model.set('_debug', !model.get('_debug')); - }; exports.revive = function(e, el) { var stats; stats = model.at('_user.stats'); diff --git a/src/app/content.coffee b/src/app/content.coffee index 0c6c259f94..a6725edf7f 100644 --- a/src/app/content.coffee +++ b/src/app/content.coffee @@ -18,58 +18,6 @@ module.exports = { {type: 'reward', text: 'Cake', notes: 'But only buy if you have enough gold - you lose HP otherwise.', value: 10 } ] - tylerDefaultTasks: - habits: [ - {type: 'habit', text: 'Stairs', notes: '', value: 0, up: true, down: true} - {type: 'habit', text: 'Diet', notes: '', value: 0, up: true, down: true} - {type: 'habit', text: 'Ticket (Workflowy, Pivotal)', notes: '', value: 0, up: true, down: false} - {type: 'habit', text: 'Temptation Control', notes: '* meditate for 1 minute, visualize
* positive, specific, present self-talk
* do first task', value: 0, up: true, down: false} - {type: 'habit', text: 'Propose, not ask', notes: '', value: 0, up: true, down: false} - {type: 'habit', text: 'Focus', notes: '', value: 0, up: false, down: true} - {type: 'habit', text: 'Facebook/RSS out of turn', notes: '', value: 0, up: false, down: true} - {type: 'habit', text: 'Negative Talk', notes: '', value: 0, up: false, down: true} - {type: 'habit', text: 'Exaggeration', notes: '', value: 0, up: false, down: true} - {type: 'habit', text: 'Insult Self', notes: '', value: 0, up: false, down: true} - {type: 'habit', text: 'Other', notes: '* Nail-biting
* Posture
* Visualize / Meditate to sleep
* Smile/eye-gaze', value: 0, up: false, down: false} - ] - dailys: [ - {type: 'daily', text: 'Review Pivotal, Asana, Workflowy', notes: '', value: 0, completed: false } - {type: 'daily', text: 'TMJ Exercise', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Anki (20m)', notes: '', value: 0, completed: false } - {type: 'daily', text: '30m Code Reading', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Google News', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Mint', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Anki (new / review)', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Check Meetup', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Read it later', notes: '', value: 0, completed: false } - {type: 'daily', text: 'RSS (Drupal)', notes: '', value: 0, completed: false } - {type: 'daily', text: 'RSS (Other)', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Lunch TODO', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Exercise', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Read (45m)', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Night TODO', notes: '', value: 0, completed: false } - {type: 'daily', text: 'Brain Game', notes: '', value: 0, completed: false } - {type: 'daily', text: '1h Personal Project', notes: '', value: 0, completed: false } - ] - todos: [ - {type: 'todo', text: 'VPM', notes: '', value: 0, completed: false } - {type: 'todo', text: 'mail', notes: '', value: 0, completed: false } - {type: 'todo', text: 'krav', notes: '', value: 0, completed: false } - {type: 'todo', text: 'rubber cement', notes: '', value: 0, completed: false } - {type: 'todo', text: 'bike', notes: '', value: 0, completed: false } - {type: 'todo', text: 'clean ~/.ievms', notes: '', value: 0, completed: false } - {type: 'todo', text: 'http://www.php-debug.com/www/', notes: '', value: 0, completed: false } - {type: 'todo', text: 'make sure IRA is setup for auto distribution', notes: '', value: 0, completed: false } - ] - rewards: [ - {type: 'reward', text: 'TV Show', notes: '', value: 20 } - {type: 'reward', text: '1h Novel', notes: '', value: 10 } - {type: 'reward', text: 'Shop', notes: '', value: 10 } - {type: 'reward', text: 'Junk Food', notes: '', value: 10 } - {type: 'reward', text: '9gag', notes: '', value: 5 } - {type: 'reward', text: 'Coffee', notes: '', value: 5 } - ] - tourSteps: [ { element: "#avatar" diff --git a/src/app/index.coffee b/src/app/index.coffee index 5aa68fa686..8701faffc2 100644 --- a/src/app/index.coffee +++ b/src/app/index.coffee @@ -153,16 +153,6 @@ ready (model) -> # @render() # return false - exports.loadDebugDefaults = (e, el) -> - model.remove '_habitList', 0, 100, -> - model.push '_habitList', task for task in content.tylerDefaultTasks.habits - model.remove '_dailyList', 0, 100, -> - model.push '_dailyList', task for task in content.tylerDefaultTasks.dailys - model.remove '_todoList', 0, 100, -> - model.push '_todoList', task for task in content.tylerDefaultTasks.todos - model.remove '_rewardList', 0, 100, -> - model.push '_rewardList', task for task in content.tylerDefaultTasks.rewards - exports.addTask = (e, el, next) -> type = $(el).attr('data-task-type') list = model.at "_#{type}List" @@ -410,9 +400,6 @@ ready (model) -> poormanscron() ), 3600000 - exports.toggleDebug = -> - model.set('_debug', !model.get('_debug')) - exports.revive = (e, el) -> stats = model.at '_user.stats' stats.set 'hp', 50; stats.set 'lvl', 1; stats.set 'exp', 0; stats.set 'money', 0 diff --git a/views/app/index.html b/views/app/index.html index 6919e72d90..00df7f07bd 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -78,7 +78,6 @@ Debugging Options

Cron Tally - Tyler Defaults {/} @@ -149,8 +148,7 @@  Bugs |  Github |  Old Site | -  Copyright © 2012 Tyler Renelle | -   +  Copyright © 2012 Tyler Renelle