Просмотр исходного кода

Remove questions, update text and packages

It was fun to have.
cinaeco 6 лет назад
Родитель
Сommit
3b38555e16
5 измененных файлов с 9 добавлено и 39 удалено
  1. 1 1
      Makefile
  2. 6 9
      README.md
  3. 1 8
      js/pgfs.js
  4. 1 20
      js/pgsh.js
  5. 0 1
      js/vendor/riot+compiler.min.js

+ 1 - 1
Makefile

@@ -41,7 +41,7 @@ APPTAG_TAG = <script type='riot/tag' src='tags/app.tag'></script>
 
 update: ## Get latest js/css library versions.
 	# -- Update Riot --
-	@curl https://raw.githubusercontent.com/riot/riot/master/riot+compiler.min.js \
+	@curl https://cdn.jsdelivr.net/npm/riot@3.13/riot+compiler.min.js \
 	  -o js/vendor/riot+compiler.min.js -#
 	# -- Update Skeleton --
 	@curl https://raw.githubusercontent.com/skeleton-framework/skeleton-framework/master/dist/skeleton.min.css \

+ 6 - 9
README.md

@@ -1,6 +1,6 @@
 # Parsley Gardens Command Line Interface
 
-It is really just the main website of [parsleygardens.net][].
+Just the main website of [parsleygardens.net][].
 
 Built with:
 
@@ -9,22 +9,19 @@ Built with:
 - [Highlight.js][].
 
 [parsleygardens.net]: http://www.parsleygardens.net
-[Riot.js]: http://riotjs.com
+[Riot.js]: http://riot.js.org
 [Skeleton]: https://skeleton-framework.github.io
 [highlight.js]: https://highlightjs.org
 
 ## Develop
 
-`riot` compilation happens in the browser, so viewing the app is a matter of
-opening `index.html`:
-
-    $ open index.html
+`riot` compilation happens in the browser, so working on this site app is a
+matter of opening `index.html`.
 
 ## Build
 
-A distribution of the app can be built that will concatenate assets and modify
-`index.html` to minimize HTTP requests:
+Make a compacted version of the site with:
 
     $ make dist
 
-This creates `dist/`, which can be copied to a live webserver.
+Copy the contents of `dist/` to a webserver.

+ 1 - 8
js/pgfs.js

@@ -7,16 +7,9 @@ var pgfs = {
         'Code Repository at <a target="_blank"' +
         'href="https://code.parsleygardens.net/explore/repos">' +
         'code.parsleygardens.net</a>',
-      'magic.txt':
-        'Animation & Illustration at <a target="_blank"' +
-        'href="http://slightlymagic.com.au">' +
-        'slightlymagic.com.au</a>',
       'about.md':
         '# Parsley Gardens Website\n\n' +
-        '1. Made by Weiyi Lou ' + new Date().getFullYear() + '\n' +
-        '2. Done for fun.\n' +
-        '3. Not a real terminal.\n' +
-        '4. But <a target="_blank" href="https://hyper.is/">this</a> is.'
+        'Weiyi Lou ' + new Date().getFullYear()
     }
   },
   'mnt': {},

+ 1 - 20
js/pgsh.js

@@ -74,15 +74,12 @@ function pgsh(ev) {
     'hello':    { order: 2, help: 'Say hello to the computer\nUsage: hello [name]' },
     'help':     { order: 1, help: 'List commands or view information for one\nUsage: help [command]' },
     'ls':       { order: 2, help: 'List folder contents' },
-    'magic':    { order: 1, help: 'The Website of an Artist' },
     'pwd':      { order: 2, help: 'Show the current working directory' },
-    'question': { order: 1, help: 'Displays a question' },
     'search':   { order: 2, help: 'Search the Web (with a Duck)\nUsage: search [query]' },
     'su':       { order: 2, help: 'Gain Phenomenal Cosmic Power' },
     'version':  { order: 1, help: 'Display shell information' }
   }
   this.about = function(args) { self.cat(['/home/pgs/about.md']) }
-  this.magic = function(args) { self.cat(['/home/pgs/magic.txt']) }
   this.cat = function(args) {
     var arg = args.join(' ').trim()
     var path = resolveAbsPath(arg)
@@ -170,22 +167,6 @@ function pgsh(ev) {
     }
   }
   this.pwd = function(args) { show(self.cwd) }
-  this.question = function(args) {
-    var questions = [
-      'Isn\'t <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"' +
-      ' target="_blank">this song</a> the best?',
-      '1 + 2 = ?',
-      'Am I a sandwich?',
-      'Where were you at 3:15am on April 14th?',
-      "Don't you mean prism?",
-      'Butts twelve by pies?',
-      'I say there, Monstrosity. Do you know the times?',
-      'What is the name of the spaces between the teeth of a comb?',
-      'Why are you dressed up like Ship\'s Captain?'
-    ]
-    var rand = Math.floor(Math.random() * questions.length);
-    show(questions[rand])
-  }
   this.search = function(args) {
     if (!args.join(' ').trim()) { return show(self.commands.search.help) }
     ev.trigger('prompt_hide')
@@ -213,7 +194,7 @@ function pgsh(ev) {
   }
   this.version = function(args) {
     show('Parsley Gardens Shell (pgsh) 1.2.0\nBuilt with: ' +
-         '<a target="_blank" href="http://riotjs.com">Riot</a> ' +
+         '<a target="_blank" href="http://riot.js.org">Riot</a> ' +
          '<a target="_blank" href="https://skeleton-framework.github.io">Skeleton</a> ' +
          '<a target="_blank" href="https://highlightjs.org">highlight.js</a>')
   }

Разница между файлами не показана из-за своего большого размера
+ 0 - 1
js/vendor/riot+compiler.min.js


Некоторые файлы не были показаны из-за большого количества измененных файлов