From 7d22bcdaa1fd3bbf6765e4af98a81ff397b952bf Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Wed, 10 Jan 2018 09:39:11 +1300 Subject: Added new themes --- README.md | 47 ++++++++++++++++++++++++++++------------------- assets/apollo.svg | 12 ++++++++++++ assets/donsol.svg | 12 ++++++++++++ assets/mahou.svg | 2 +- assets/marble.svg | 4 ++-- assets/solitaire.svg | 12 ++++++++++++ assets/swiss.svg | 6 +++--- index.js | 6 +++--- npm-debug.log | 45 +++++++++++++++++++++++++++++++++++++++++++++ themes/apollo.thm | 11 +++++++++++ 10 files changed, 129 insertions(+), 28 deletions(-) create mode 100644 assets/apollo.svg create mode 100644 assets/donsol.svg create mode 100644 assets/solitaire.svg create mode 100644 npm-debug.log create mode 100644 themes/apollo.thm diff --git a/README.md b/README.md index e983b55..f01a8a9 100644 --- a/README.md +++ b/README.md @@ -1,45 +1,54 @@ # Themes This collection of themes are meant to be used with [Ronin](https://github.com/hundredrabbits/Marabu), [Left](https://github.com/hundredrabbits/Left) and [Dotgrid](https://github.com/hundredrabbits/Dotgrid). To install a theme, simply drag the `thm` file onto the application window. You are welcome to submit your own themes to this collection! -## [battlestation](collection/battlestation.thm) +## [apollo](themes/apollo.thm) +![apollo](assets/apollo.svg) + +## [battlestation](themes/battlestation.thm) ![battlestation](assets/battlestation.svg) -## [berry](collection/berry.thm) +## [blanc](themes/blanc.thm) +![blanc](assets/blanc.svg) + +## [berry](themes/berry.thm) ![berry](assets/berry.svg) -## [cina](collection/cina.thm) +## [cina](themes/cina.thm) ![cina](assets/cina.svg) -## [blanc](collection/blanc.thm) -![blanc](assets/blanc.svg) +## [commodore](themes/commodore.thm) +![commodore](assets/commodore.svg) + +## [donsol](themes/donsol.thm) +![donsol](assets/donsol.svg) -## [gameboy](collection/gameboy.thm) +## [gameboy](themes/gameboy.thm) ![gameboy](assets/gameboy.svg) -## [marble](collection/marble.thm) +## [mahou](themes/mahou.thm) +![mahou](assets/mahou.svg) + +## [marble](themes/marble.thm) ![marble](assets/marble.svg) -## [noir](collection/noir.thm) +## [noir](themes/noir.thm) ![noir](assets/noir.svg) -## [raspberry](collection/raspberry.thm) +## [raspberry](themes/raspberry.thm) ![raspberry](assets/raspberry.svg) -## [commodore](collection/commodore.thm) -![commodore](assets/commodore.svg) - -## [mahou](collection/mahou.thm) -![mahou](assets/mahou.svg) - -## [pale](collection/pale.thm) +## [pale](themes/pale.thm) ![pale](assets/pale.svg) -## [seaweed](collection/seaweed.thm) +## [seaweed](themes/seaweed.thm) ![seaweed](assets/seaweed.svg) -## [soyuz](collection/soyuz.thm) +## [solitaire](themes/solitaire.thm) +![solitaire](assets/solitaire.svg) + +## [soyuz](themes/soyuz.thm) ![soyuz](assets/soyuz.svg) -## [swiss](collection/swiss.thm) +## [swiss](themes/swiss.thm) ![swiss](assets/swiss.svg) diff --git a/assets/apollo.svg b/assets/apollo.svg new file mode 100644 index 0000000..195cce3 --- /dev/null +++ b/assets/apollo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/donsol.svg b/assets/donsol.svg new file mode 100644 index 0000000..bc9a77e --- /dev/null +++ b/assets/donsol.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/mahou.svg b/assets/mahou.svg index 710853f..10e63e9 100644 --- a/assets/mahou.svg +++ b/assets/mahou.svg @@ -5,7 +5,7 @@ - + diff --git a/assets/marble.svg b/assets/marble.svg index 863b639..48e8168 100644 --- a/assets/marble.svg +++ b/assets/marble.svg @@ -6,7 +6,7 @@ - + - + \ No newline at end of file diff --git a/assets/solitaire.svg b/assets/solitaire.svg new file mode 100644 index 0000000..fa06887 --- /dev/null +++ b/assets/solitaire.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/assets/swiss.svg b/assets/swiss.svg index 2703897..da4da41 100644 --- a/assets/swiss.svg +++ b/assets/swiss.svg @@ -2,11 +2,11 @@ - + - + - + \ No newline at end of file diff --git a/index.js b/index.js index 35a347a..c468384 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ fs = require('fs'); -var normalizedPath = require("path").join(__dirname, "collection"); +var normalizedPath = require("path").join(__dirname, "themes"); var html = "# Themes\nThis collection of themes are meant to be used with [Ronin](https://github.com/hundredrabbits/Marabu), [Left](https://github.com/hundredrabbits/Left) and [Dotgrid](https://github.com/hundredrabbits/Dotgrid). To install a theme, simply drag the `thm` file onto the application window. You are welcome to submit your own themes to this collection!\n\n" @@ -30,7 +30,7 @@ function build_svg(n,theme) function build_theme(n,theme) { var name = n.split(".")[0]; - return `## [${name}](collection/${name}.thm)\n![${name}](assets/${name}.svg)\n\n` + return `## [${name}](themes/${name}.thm)\n![${name}](assets/${name}.svg)\n\n` } function is_json(text) @@ -53,7 +53,7 @@ function generate(html) } require("fs").readdirSync(normalizedPath).forEach(function(file_name) { - fs.readFile('collection/'+file_name, 'utf8', function (err,data){ + fs.readFile('themes/'+file_name, 'utf8', function (err,data){ if(err) { return console.log(err); } if(is_json(data)){ var theme = JSON.parse(data) diff --git a/npm-debug.log b/npm-debug.log new file mode 100644 index 0000000..9fcf5ca --- /dev/null +++ b/npm-debug.log @@ -0,0 +1,45 @@ +0 info it worked if it ends with ok +1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ] +2 info using npm@3.10.10 +3 info using node@v6.11.4 +4 verbose run-script [ 'prestart', 'start', 'poststart' ] +5 info lifecycle themes@1.0.0~prestart: themes@1.0.0 +6 silly lifecycle themes@1.0.0~prestart: no script for prestart, continuing +7 info lifecycle themes@1.0.0~start: themes@1.0.0 +8 verbose lifecycle themes@1.0.0~start: unsafe-perm in lifecycle true +9 verbose lifecycle themes@1.0.0~start: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/VillaMoirai/Github/HundredRabbits/Themes/node_modules/.bin://anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/Github/Neauoire/Jiin:/opt/X11/bin:/Applications/Muse +10 verbose lifecycle themes@1.0.0~start: CWD: /Users/VillaMoirai/Github/HundredRabbits/Themes +11 silly lifecycle themes@1.0.0~start: Args: [ '-c', 'node .' ] +12 silly lifecycle themes@1.0.0~start: Returned: code: 1 signal: null +13 info lifecycle themes@1.0.0~start: Failed to exec start script +14 verbose stack Error: themes@1.0.0 start: `node .` +14 verbose stack Exit status 1 +14 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16) +14 verbose stack at emitTwo (events.js:106:13) +14 verbose stack at EventEmitter.emit (events.js:191:7) +14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14) +14 verbose stack at emitTwo (events.js:106:13) +14 verbose stack at ChildProcess.emit (events.js:191:7) +14 verbose stack at maybeClose (internal/child_process.js:920:16) +14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5) +15 verbose pkgid themes@1.0.0 +16 verbose cwd /Users/VillaMoirai/Github/HundredRabbits/Themes +17 error Darwin 16.7.0 +18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" +19 error node v6.11.4 +20 error npm v3.10.10 +21 error code ELIFECYCLE +22 error themes@1.0.0 start: `node .` +22 error Exit status 1 +23 error Failed at the themes@1.0.0 start script 'node .'. +23 error Make sure you have the latest version of node.js and npm installed. +23 error If you do, this is most likely a problem with the themes package, +23 error not with npm itself. +23 error Tell the author that this fails on your system: +23 error node . +23 error You can get information on how to open an issue for this project with: +23 error npm bugs themes +23 error Or if that isn't available, you can get their info via: +23 error npm owner ls themes +23 error There is likely additional logging output above. +24 verbose exit [ 1, true ] diff --git a/themes/apollo.thm b/themes/apollo.thm new file mode 100644 index 0000000..db9556e --- /dev/null +++ b/themes/apollo.thm @@ -0,0 +1,11 @@ +{ + "background": "#d6ded9", + "f_high": "white", + "f_med": "#e47464", + "f_low": "#cccccc", + "f_inv": "#000000", + "b_high": "#ffffff", + "b_med": "#5f5353", + "b_low": "#afb7b2", + "b_inv": "#e47464" +} \ No newline at end of file -- cgit v1.2.3