|
|
@@ -31,8 +31,7 @@ function pgsh(ev) {
|
|
|
'help': 'Author Information\nUsage: about',
|
|
|
'run': function(args) {
|
|
|
if (args.length > 0) { show(this.help); return }
|
|
|
- var me = 'Site by Weiyi Lou ' + new Date().getFullYear() + '\n\n'
|
|
|
- show(me)
|
|
|
+ show('Site by Weiyi Lou ' + new Date().getFullYear() + '\n\n')
|
|
|
}
|
|
|
},
|
|
|
'clear': {
|
|
|
@@ -45,19 +44,17 @@ function pgsh(ev) {
|
|
|
'help': 'Shell Information\nUsage: version',
|
|
|
'run': function(args) {
|
|
|
if (args.length > 0) { show(this.help); return }
|
|
|
- var ve = 'Parsley Gardens Shell (pgsh) 1.0.0 Built with ' +
|
|
|
- '<a target="_blank" href="http://riotjs.com/">Riot.js</a>'
|
|
|
- show(ve)
|
|
|
+ show('Parsley Gardens Shell (pgsh) 1.0.0 Built with ' +
|
|
|
+ '<a target="_blank" href="http://riotjs.com/">Riot</a>')
|
|
|
}
|
|
|
},
|
|
|
'git': {
|
|
|
'help': 'Link to Code Repository\nUsage: git',
|
|
|
'run': function(args) {
|
|
|
if (args.length > 0) { show(this.help); return }
|
|
|
- var repo = 'Self-Hosted Code Repository at <a target="_blank" ' +
|
|
|
- 'href="https://code.parsleygardens.net/explore/projects">' +
|
|
|
- 'code.parsleygardens.net</a>'
|
|
|
- show(repo)
|
|
|
+ show('Code Repository at <a target="_blank" ' +
|
|
|
+ 'href="https://code.parsleygardens.net/explore/projects">' +
|
|
|
+ 'code.parsleygardens.net</a>')
|
|
|
}
|
|
|
},
|
|
|
'hello': {
|
|
|
@@ -77,9 +74,8 @@ function pgsh(ev) {
|
|
|
'help': 'Link to Artist\nUsage: magic',
|
|
|
'run': function(args) {
|
|
|
if (args.length > 0) { show(this.help); return }
|
|
|
- var art = 'Animation and Illustration at <a target="_blank" ' +
|
|
|
- 'href="http://slightlymagic.com.au">slightlymagic.com.au</a>'
|
|
|
- show(art)
|
|
|
+ show('Animation and Illustration at <a target="_blank" ' +
|
|
|
+ 'href="http://slightlymagic.com.au">slightlymagic.com.au</a>')
|
|
|
}
|
|
|
},
|
|
|
'su': {
|
|
|
@@ -90,13 +86,12 @@ function pgsh(ev) {
|
|
|
self.su = true
|
|
|
if (!self.su_warned) {
|
|
|
self.su_warned = true
|
|
|
- var wa = 'We trust you have received the usual lecture from the ' +
|
|
|
- 'local System Administrator.\n' +
|
|
|
- 'It usually boils down to these three things:\n\n' +
|
|
|
- ' #1) Respect the privacy of others.\n' +
|
|
|
- ' #2) Think before you type.\n' +
|
|
|
- ' #3) With great power comes great\n\n'
|
|
|
- show(wa)
|
|
|
+ show('We trust you have received the usual lecture from the ' +
|
|
|
+ 'local System Administrator.\n' +
|
|
|
+ 'It usually boils down to these three things:\n\n' +
|
|
|
+ ' #1) Respect the privacy of others.\n' +
|
|
|
+ ' #2) Think before you type.\n' +
|
|
|
+ ' #3) With great power comes great\n\n')
|
|
|
}
|
|
|
ev.trigger('prompt_set', self.prompt_su)
|
|
|
}
|
|
|
@@ -132,7 +127,8 @@ function pgsh(ev) {
|
|
|
if (!self.active) {
|
|
|
self.active = 'questions'
|
|
|
ev.trigger('context_swap', 'questions')
|
|
|
- ev.trigger('disp_set', 'Welcome to the questions. Do you want to continue?')
|
|
|
+ ev.trigger('disp_set', 'Welcome to the questions. ' +
|
|
|
+ 'Do you want to continue?')
|
|
|
return
|
|
|
}
|
|
|
if (args == 'exit') {
|