-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,042 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"ignore": [ | ||
"/node_modules/jquery-ui-bundle/jquery-ui.js", | ||
"/node_modules/angular/angular.js", | ||
"/node_modules/brace/index.js", | ||
"/node_modules/katex/dist/katex.js", | ||
"/node_modules" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.gitignore | ||
.npmignore | ||
LICENSE | ||
VERSION | ||
Makefile | ||
docker-compose.yml | ||
node_modules | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.DS_Store | ||
.env | ||
|
||
#Dillinger | ||
node_modules/* | ||
logs/* | ||
downloads/files/md/*.md | ||
downloads/files/html/*.html | ||
downloads/css/style.css | ||
|
||
*-config.json | ||
backup/* | ||
|
||
# IntelliJ - PhpStorm and PyCharm | ||
.idea | ||
.idea/ | ||
.idea/* | ||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# Netbeans | ||
nbproject | ||
.nbproject | ||
.nbproject/* | ||
nbproject/* | ||
nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
nbactions.xml | ||
nb-configuration.xml | ||
|
||
# Mac OSX | ||
.DS_Store | ||
# Thumbnails | ||
._* | ||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# SublimeText project files | ||
/*.sublime-project | ||
*.sublime-workspace | ||
|
||
# NPM debug log | ||
npm-debug.log | ||
|
||
# Vim | ||
*.swp | ||
|
||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
// JSHint Default Configuration File (as on JSHint website) | ||
// See http://jshint.com/docs/ for more details | ||
|
||
"maxerr" : 50, // {int} Maximum error before stopping | ||
|
||
// Enforcing | ||
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | ||
"camelcase" : true, // true: Identifiers must be in camelCase | ||
"curly" : true, // true: Require {} for every new block or scope | ||
"eqeqeq" : true, // true: Require triple equals (===) for comparison | ||
"freeze" : true, // true: prohibits overwriting prototypes of native objects such as Array, Date etc. | ||
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty() | ||
"immed" : true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());` | ||
"indent" : 2, // {int} Number of spaces to use for indentation | ||
"latedef" : false, // true: Require variables/functions to be defined before being used | ||
"newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()` | ||
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee` | ||
"noempty" : true, // true: Prohibit use of empty blocks | ||
"nonbsp" : true, // true: Prohibit "non-breaking whitespace" characters. | ||
"nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment) | ||
"plusplus" : false, // true: Prohibit use of `++` & `--` | ||
"quotmark" : "single", // Quotation mark consistency: | ||
// false : do nothing (default) | ||
// true : ensure whatever is used is consistent | ||
// "single" : require single quotes | ||
// "double" : require double quotes | ||
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks) | ||
"unused" : false, // true: Require all defined variables be used | ||
"strict" : true, // true: Requires all functions run in ES5 Strict Mode | ||
"maxparams" : 10, // {int} Max number of formal params allowed per function | ||
"maxdepth" : 4, // {int} Max depth of nested blocks (within functions) | ||
"maxstatements" : 40, // {int} Max number statements per function | ||
"maxcomplexity" : 8, // {int} Max cyclomatic complexity per function | ||
"maxlen" : 120, // {int} Max number of characters per line | ||
|
||
// Relaxing | ||
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons) | ||
"boss" : false, // true: Tolerate assignments where comparisons would be expected | ||
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints. | ||
"eqnull" : true, // true: Tolerate use of `== null` | ||
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters) | ||
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`) | ||
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features) | ||
// (ex: `for each`, multiple try/catch, function expression…) | ||
"evil" : false, // true: Tolerate use of `eval` and `new Function()` | ||
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs | ||
"funcscope" : false, // true: Tolerate defining variables inside control statements | ||
"globalstrict" : true, // true: Allow global "use strict" (also enables 'strict') | ||
"iterator" : false, // true: Tolerate using the `__iterator__` property | ||
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block | ||
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings | ||
"laxcomma" : false, // true: Tolerate comma-first style coding | ||
"loopfunc" : false, // true: Tolerate functions being defined in loops | ||
"multistr" : false, // true: Tolerate multi-line strings | ||
"noyield" : false, // true: Tolerate generator functions with no yield statement in them. | ||
"notypeof" : false, // true: Tolerate invalid typeof operator values | ||
"proto" : false, // true: Tolerate using the `__proto__` property | ||
"scripturl" : false, // true: Tolerate script-targeted URLs | ||
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;` | ||
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation | ||
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;` | ||
"validthis" : true, // true: Tolerate using this in a non-constructor function | ||
|
||
// Environments | ||
"browser" : true, // Web Browser (window, document, etc) | ||
"browserify" : true, // Browserify (node.js code in the browser) | ||
"couch" : false, // CouchDB | ||
"devel" : true, // Development/debugging (alert, confirm, etc) | ||
"dojo" : false, // Dojo Toolkit | ||
"jasmine" : false, // Jasmine | ||
"jquery" : true, // jQuery | ||
"mocha" : true, // Mocha | ||
"mootools" : false, // MooTools | ||
"node" : true, // Node.js | ||
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc) | ||
"prototypejs" : false, // Prototype and Scriptaculous | ||
"qunit" : false, // QUnit | ||
"rhino" : false, // Rhino | ||
"shelljs" : false, // ShellJS | ||
"worker" : false, // Web Workers | ||
"wsh" : false, // Windows Scripting Host | ||
"yui" : false, // Yahoo User Interface | ||
|
||
// Custom Globals | ||
"globals" : { // additional predefined global variables | ||
"angular": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"trailingComma": "none", | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
language: node_js | ||
node_js: | ||
- 8.9.0 | ||
before_install: | ||
- npm install -g gulp | ||
script: | ||
- gulp build --prod | ||
- gulp dist | ||
after_success: | ||
# Build the snap. | ||
- docker run -v $(pwd):/cwd snapcore/snapcraft sh -c 'cd /cwd && snapcraft' | ||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: D3HtvuI2WsuIFGGji0U7Bh5N++HEG3ZI6HiFdElFyxTokDg90pDhJZ++Sd83V5HzF1xOIimxhVGAOsRBminunn5qGZDuRn87YNEaheAfCan+2h/PvNv09Vl8EsfKbfdFM9wjZCHuYleuzOC0KojelKZeQ9J0eXyTqMq0tfVsPq973OhmF1N+rjqHUfK13+gSnWgmdjIknXJGqFggC3XC9LxDJ8t4jGjgPDBxtPX0hPeWoA3XnEku+tf+cyio47Ueh68lnXG6RWYbGNFQT255EnGly51WemNae75fZyCE/37lGwvjoqwnoTzeGq9udsZSiJSeSCJvo/emmelmUJKvESNGng268R5ZkD4i/RAXchbD6c06z4heJJ+WFLLeQUK8Pmk6fZwX0KwkUAgPBtz1HTx9dt8J5QQPX/7OpSewImKijamzakby+RrSz98liPS+WhHgV2kDrs89FUo0pDdYdOXM7ycCxpoxS4CfCuBq9LRvXcmoyUbrYLe54yNPjqVaXPMvjOHE/Hp74AsYwxUUMmImk7RahlUIM5O2BPrCYqMRz5UlnNk+ihRSewUUz4l9T5S7XxCAaoMYSkRzPmvWH7CZnpwVqufPveStLz2rbZK0AmxRpKIhmm17TOqLzD+oLTT470ekXN3xrOhksb1k8lV0TNRDlFB3zqPv14EhC+g= | ||
file: | ||
- dist/pre-built.zip | ||
- dist/pre-built.tar.gz | ||
on: | ||
skip_cleanup: true | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
FROM nodesource/nsolid:latest | ||
|
||
LABEL maintainer "Joe McCann <[email protected]>" | ||
WORKDIR /dillinger | ||
# Install our dependencies (libfontconfig for phantomjs) | ||
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ | ||
bzip2 \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
libfontconfig \ | ||
ttf-wqy-microhei \ | ||
ttf-wqy-zenhei \ | ||
software-properties-common \ | ||
gconf-service \ | ||
libasound2 \ | ||
libatk1.0-0 \ | ||
libatk-bridge2.0-0 \ | ||
libc6 \ | ||
libcairo2 \ | ||
libcups2 \ | ||
libdbus-1-3 \ | ||
libexpat1 \ | ||
libfontconfig1 \ | ||
libgcc1 \ | ||
libgconf-2-4 \ | ||
libgdk-pixbuf2.0-0 \ | ||
libglib2.0-0 \ | ||
libgtk-3-0 \ | ||
libnspr4 \ | ||
libpango-1.0-0 \ | ||
libpangocairo-1.0-0 \ | ||
libstdc++6 \ | ||
libx11-6 \ | ||
libx11-xcb1 \ | ||
libxcb1 \ | ||
libxcomposite1 \ | ||
libxcursor1 \ | ||
libxdamage1 \ | ||
libxext6 \ | ||
libxfixes3 \ | ||
libxi6 \ | ||
libxrandr2 \ | ||
libxrender1 \ | ||
libxss1 \ | ||
libxtst6 \ | ||
fonts-liberation \ | ||
libappindicator1 \ | ||
libnss3 \ | ||
lsb-release \ | ||
xdg-utils \ | ||
wget \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# this is faster via npm run build-docker | ||
COPY package.json ./package.json | ||
RUN npm install --devDependencies \ | ||
&& npm cache verify | ||
# Copy source over and create configs dir | ||
|
||
RUN rm -rf /configs | ||
RUN mkdir -p /configs | ||
COPY . . | ||
|
||
RUN echo 'kernel.unprivileged_userns_clone=1' > /etc/sysctl.d/userns.conf | ||
RUN adduser --disabled-password --gecos '' dillinger | ||
RUN chown -R dillinger:dillinger public | ||
USER dillinger | ||
|
||
EXPOSE 8080 | ||
ENV NODE_ENV=production | ||
|
||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Copyright (c) 2011-2020 Joe McCann | ||
|
||
All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: node app.js |
Oops, something went wrong.