From e54b3010073fa46e336d82271eb8fc5dbb447abb Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Sat, 16 Feb 2013 12:51:09 -0800 Subject: [PATCH] hn crap --- build/bundle.js | 92 +++++++++++++++++++++++++++++++++++++-- index.html | 5 ++- src/js/app/index.js | 10 +++++ src/js/dialogs/sandbox.js | 36 ++++++++++++++- 4 files changed, 136 insertions(+), 7 deletions(-) diff --git a/build/bundle.js b/build/bundle.js index 1f00ec16..9943100b 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -6569,6 +6569,16 @@ var init = function() { "help; levels" ].join('')); }); + } else { + sandbox.mainVis.customEvents.on('gitEngineReady', function() { + eventBaton.trigger( + 'commandSubmitted', + [ + "git help;", + "delay 3000;", + "help" + ].join('')); + }); } if (/command=/.test(window.location.href)) { var commandRaw = window.location.href.split('command=')[1].split('&')[0]; @@ -18293,7 +18303,13 @@ require.define("/src/js/dialogs/sandbox.js",function(require,module,exports,__di 'the powerful concepts behind branching when working ', 'with git. We hope you enjoy this application and maybe ', 'even learn something!', - '' + '', + '# Attention HN!!', + '', + 'Unfortunately this was submitted before I finished all the help ', + 'and tutorial sections, so forgive the scarcity. See the demo here:', + '', + '[http://pcottle.github.com/learnGitBranching/?demo](http://pcottle.github.com/learnGitBranching/?demo)' ] } }, { @@ -18308,8 +18324,34 @@ require.define("/src/js/dialogs/sandbox.js",function(require,module,exports,__di ' * git commands (to interact with git)', ' * level commands (to get level hints or solutions)', ' * sandbox commands (like this one)', + '' + ] + } +}, { + type: 'ModalAlert', + options: { + markdowns: [ + '## Levels', '', - '# This dialog is NOT FINISHED TODO' + 'The best way to learn is with levels. Type in "levels" to get started!' + ] + } +}, { + type: 'ModalAlert', + options: { + markdowns: [ + '## Git commands', + '', + 'You have a large variety of git commands available in sandbox mode. These include', + '', + ' * commit', + ' * branch', + ' * checkout', + ' * cherry-pick', + ' * reset', + ' * revert', + ' * rebase', + ' * merge' ] } }]; @@ -18567,6 +18609,16 @@ var init = function() { "help; levels" ].join('')); }); + } else { + sandbox.mainVis.customEvents.on('gitEngineReady', function() { + eventBaton.trigger( + 'commandSubmitted', + [ + "git help;", + "delay 3000;", + "help" + ].join('')); + }); } if (/command=/.test(window.location.href)) { var commandRaw = window.location.href.split('command=')[1].split('&')[0]; @@ -18674,7 +18726,13 @@ require.define("/src/js/dialogs/sandbox.js",function(require,module,exports,__di 'the powerful concepts behind branching when working ', 'with git. We hope you enjoy this application and maybe ', 'even learn something!', - '' + '', + '# Attention HN!!', + '', + 'Unfortunately this was submitted before I finished all the help ', + 'and tutorial sections, so forgive the scarcity. See the demo here:', + '', + '[http://pcottle.github.com/learnGitBranching/?demo](http://pcottle.github.com/learnGitBranching/?demo)' ] } }, { @@ -18689,8 +18747,34 @@ require.define("/src/js/dialogs/sandbox.js",function(require,module,exports,__di ' * git commands (to interact with git)', ' * level commands (to get level hints or solutions)', ' * sandbox commands (like this one)', + '' + ] + } +}, { + type: 'ModalAlert', + options: { + markdowns: [ + '## Levels', '', - '# This dialog is NOT FINISHED TODO' + 'The best way to learn is with levels. Type in "levels" to get started!' + ] + } +}, { + type: 'ModalAlert', + options: { + markdowns: [ + '## Git commands', + '', + 'You have a large variety of git commands available in sandbox mode. These include', + '', + ' * commit', + ' * branch', + ' * checkout', + ' * cherry-pick', + ' * reset', + ' * revert', + ' * rebase', + ' * merge' ] } }]; diff --git a/index.html b/index.html index 70ebd432..43e0622b 100644 --- a/index.html +++ b/index.html @@ -66,7 +66,10 @@ - Fork me on GitHub + + + Fork me on GitHub + diff --git a/src/js/app/index.js b/src/js/app/index.js index f0a72d51..50e7064f 100644 --- a/src/js/app/index.js +++ b/src/js/app/index.js @@ -131,6 +131,16 @@ var init = function() { "help; levels" ].join('')); }); + } else { + sandbox.mainVis.customEvents.on('gitEngineReady', function() { + eventBaton.trigger( + 'commandSubmitted', + [ + "git help;", + "delay 3000;", + "help" + ].join('')); + }); } if (/command=/.test(window.location.href)) { var commandRaw = window.location.href.split('command=')[1].split('&')[0]; diff --git a/src/js/dialogs/sandbox.js b/src/js/dialogs/sandbox.js index 90da0770..ff91f24e 100644 --- a/src/js/dialogs/sandbox.js +++ b/src/js/dialogs/sandbox.js @@ -8,7 +8,13 @@ exports.dialog = [{ 'the powerful concepts behind branching when working ', 'with git. We hope you enjoy this application and maybe ', 'even learn something!', - '' + '', + '# Attention HN!!', + '', + 'Unfortunately this was submitted before I finished all the help ', + 'and tutorial sections, so forgive the scarcity. See the demo here:', + '', + '[http://pcottle.github.com/learnGitBranching/?demo](http://pcottle.github.com/learnGitBranching/?demo)' ] } }, { @@ -23,8 +29,34 @@ exports.dialog = [{ ' * git commands (to interact with git)', ' * level commands (to get level hints or solutions)', ' * sandbox commands (like this one)', + '' + ] + } +}, { + type: 'ModalAlert', + options: { + markdowns: [ + '## Levels', '', - '# This dialog is NOT FINISHED TODO' + 'The best way to learn is with levels. Type in "levels" to get started!' + ] + } +}, { + type: 'ModalAlert', + options: { + markdowns: [ + '## Git commands', + '', + 'You have a large variety of git commands available in sandbox mode. These include', + '', + ' * commit', + ' * branch', + ' * checkout', + ' * cherry-pick', + ' * reset', + ' * revert', + ' * rebase', + ' * merge' ] } }];