From c57ae28a72c0a86458f05bc9b50b7ffe81869754 Mon Sep 17 00:00:00 2001 From: patrikx3 Date: Sat, 12 May 2018 20:05:48 +0200 Subject: [PATCH] p3x-robot sunday release 2018-5-12 20:05:48 --- INSTALL.md | 2 +- README.md | 4 ++-- artifacts/php-7.2-ubuntu.md | 2 +- changelog.md | 29 ++++++++++++++++++++++++++++- package.json | 2 +- public/js/bundle.js | 25 +++++++++++++++++++++---- scripts/init.sh | 1 + scripts/optimize.sh | 2 +- scripts/release.sh | 2 ++ 9 files changed, 58 insertions(+), 11 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 45a8e0f1..55c03c2d 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -175,7 +175,7 @@ UrlToolkit { --- -[**GITLIST**](https://pages.corifeus.com/gitlist) Build v1.1.6 +[**GITLIST**](https://pages.corifeus.com/gitlist) Build v1.1.7 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/README.md b/README.md index 6858963a..20c22cff 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ -# 🤖 P3X Gitlist v1.1.6 +# 🤖 P3X Gitlist v1.1.7 # Description @@ -108,7 +108,7 @@ npm run less-watch --- -[**GITLIST**](https://pages.corifeus.com/gitlist) Build v1.1.6 +[**GITLIST**](https://pages.corifeus.com/gitlist) Build v1.1.7 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/artifacts/php-7.2-ubuntu.md b/artifacts/php-7.2-ubuntu.md index 06120c49..3d5941f1 100644 --- a/artifacts/php-7.2-ubuntu.md +++ b/artifacts/php-7.2-ubuntu.md @@ -19,7 +19,7 @@ sudo apt upgrade -y --- -[**GITLIST**](https://pages.corifeus.com/gitlist) Build v1.1.6 +[**GITLIST**](https://pages.corifeus.com/gitlist) Build v1.1.7 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/changelog.md b/changelog.md index ee462707..bd191622 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,33 @@ [//]: #@corifeus-header:end +### v1.1.7 +The following `CodeMirror` syntax highlighting has been added: +```js +require('codemirror/mode/cmake/cmake'); +require('codemirror/mode/css/css'); +require('codemirror/mode/dockerfile/dockerfile'); +require('codemirror/mode/go/go'); +require('codemirror/mode/handlebars/handlebars'); +require('codemirror/mode/htmlmixed/htmlmixed'); +require('codemirror/mode/javascript/javascript'); +require('codemirror/mode/jsx/jsx'); +require('codemirror/mode/perl/perl'); +require('codemirror/mode/php/php'); +require('codemirror/mode/powershell/powershell'); +require('codemirror/mode/python/python'); +require('codemirror/mode/ruby/ruby'); +require('codemirror/mode/sass/sass'); +require('codemirror/mode/shell/shell'); +require('codemirror/mode/sql/sql'); +require('codemirror/mode/swift/swift'); +require('codemirror/mode/twig/twig'); +require('codemirror/mode/vue/vue'); +require('codemirror/mode/xml/xml'); +require('codemirror/mode/xquery/xquery'); +require('codemirror/mode/yaml/yaml'); +``` + ### v1.1.6 * All `PHP` files will be in the `root` and only `index.php`, `images`, `icons`, `svg`, `css`, `js`bundle files will be in the `public` subdir. @@ -76,7 +103,7 @@ --- -[**GITLIST**](https://pages.corifeus.com/gitlist) Build v1.1.6 +[**GITLIST**](https://pages.corifeus.com/gitlist) Build v1.1.7 [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software) [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) diff --git a/package.json b/package.json index 44a8c7d8..5e2dc27f 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "less-watch": "grunt watch:less" }, "description": "🤖 P3X Gitlist", - "version": "1.1.6", + "version": "1.1.7", "main": "index.js", "repository": "https://github.com/patrikx3/gitlist", "author": "patrikx3 ", diff --git a/public/js/bundle.js b/public/js/bundle.js index f8208d9d..dbea5dbb 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -13,13 +13,30 @@ global.htmlEncode = require('js-htmlencode') global.CodeMirror = require('codemirror'); require('codemirror/addon/mode/simple'); require('codemirror/addon/mode/multiplex'); -require('codemirror/mode/xml/xml'); -require('codemirror/mode/javascript/javascript'); + +require('codemirror/mode/cmake/cmake'); require('codemirror/mode/css/css'); -require('codemirror/mode/htmlmixed/htmlmixed'); +require('codemirror/mode/dockerfile/dockerfile'); +require('codemirror/mode/go/go'); require('codemirror/mode/handlebars/handlebars'); -require('codemirror/mode/yaml/yaml'); +require('codemirror/mode/htmlmixed/htmlmixed'); +require('codemirror/mode/javascript/javascript'); +require('codemirror/mode/jsx/jsx'); +require('codemirror/mode/perl/perl'); +require('codemirror/mode/php/php'); +require('codemirror/mode/powershell/powershell'); +require('codemirror/mode/python/python'); +require('codemirror/mode/ruby/ruby'); require('codemirror/mode/sass/sass'); +require('codemirror/mode/shell/shell'); +require('codemirror/mode/sql/sql'); +require('codemirror/mode/swift/swift'); +require('codemirror/mode/twig/twig'); +require('codemirror/mode/vue/vue'); +require('codemirror/mode/xml/xml'); +require('codemirror/mode/xquery/xquery'); +require('codemirror/mode/yaml/yaml'); + require('eve-raphael/eve.js'); global.Raphael = require('raphael') global.twemoji = require('twemoji') diff --git a/scripts/init.sh b/scripts/init.sh index dead6691..e57b105c 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +set -e sudo rm -rf ./cache mkdir -p ./cache touch ./cache/.gitkeep diff --git a/scripts/optimize.sh b/scripts/optimize.sh index 129e6cfe..065b246b 100755 --- a/scripts/optimize.sh +++ b/scripts/optimize.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" TOP=$DIR/.. - +set -e pushd $TOP composer install composer install --no-dev diff --git a/scripts/release.sh b/scripts/release.sh index d9525853..78a0ed89 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -2,6 +2,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" TOP=$DIR/.. +set -e + version=$( node -e "console.log(require('$TOP/package.json').version)" ) name=gitlist-$version repo=$TOP/build/$name