mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-17 11:32:16 +00:00
Remove tyler defaults & "toggle debug" button
This commit is contained in:
parent
89f4e228c2
commit
98e824eb2e
5 changed files with 1 additions and 384 deletions
|
|
@ -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<br/>* positive, specific, present self-talk<br/>* 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<br/>* Posture<br/>* Visualize / Meditate to sleep<br/>* 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",
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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<br/>* positive, specific, present self-talk<br/>* 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<br/>* Posture<br/>* Visualize / Meditate to sleep<br/>* 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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@
|
|||
<i class="icon-warning-sign"></i> <b>Debugging Options</b><br/><br/>
|
||||
<a x-bind=click:poormanscron class="btn">Cron</a>
|
||||
<a x-bind=click:endOfDayTally class="btn">Tally</a>
|
||||
<a x-bind=click:loadDebugDefaults class="btn">Tyler Defaults</a>
|
||||
</div>
|
||||
{/}
|
||||
|
||||
|
|
@ -149,8 +148,7 @@
|
|||
<a href="https://github.com/lefnire/habitrpg/issues">Bugs</a> |
|
||||
<a href="https://github.com/lefnire/habitrpg">Github</a> |
|
||||
<a href="http://habitrpg-rails.herokuapp.com/">Old Site</a> |
|
||||
Copyright © 2012 Tyler Renelle |
|
||||
<a x-bind=click:toggleDebug><i class="icon-warning-sign"></i></a>
|
||||
Copyright © 2012 Tyler Renelle
|
||||
</footer>
|
||||
</div>
|
||||
<!--<% if !current_user %>
|
||||
|
|
|
|||
Loading…
Reference in a new issue