-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch too xterm and webpack * handle disconects clearner * stop browser from over rulling ctrl+shift+c * update pkg.json * replace log statements with events * restructure cli * reduce use of shared state * remove ssh wrapper * minify, uglify and tree shake code bundle * use seperate containers for building frontend * fit sizing errors * add helmet * fix term resize * add loger * use custom fix function * stop server crashing after disconnect * make better on mobile * use a pty as a buffer to handle all keyboard keys * unwrap var * clean up structure of code * update readme * add api * refactor event emitter * expand emmitter class * fix event emitter calls * format docs * fix docs * clean up webpack
- Loading branch information
Showing
35 changed files
with
4,674 additions
and
20,366 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
node_modules | ||
.esm-cache | ||
dist | ||
*.yml | ||
*.md | ||
*.log | ||
*.png | ||
**/*.conf | ||
**/*.service | ||
Dockerfile |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
node_modules/ | ||
public/ | ||
.esm-cache | ||
*hterm* | ||
dist |
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 |
---|---|---|
@@ -1,36 +1,16 @@ | ||
module.exports = { | ||
env: { | ||
es6 : true, | ||
es6: true, | ||
node: true, | ||
browser: true | ||
}, | ||
extends: ['airbnb'], | ||
rules : { | ||
'linebreak-style' : ['error', 'unix'], | ||
'arrow-parens' : ['error', 'as-needed'], | ||
'no-param-reassign' : ['error', { props: false }], | ||
'func-style' : ['error', 'declaration', { allowArrowFunctions: true }], | ||
'no-use-before-define': ['error', { functions: false }], | ||
'no-shadow' : [ | ||
'error', | ||
{ | ||
builtinGlobals: true, | ||
hoist : 'functions', | ||
allow : ['resolve', 'reject', 'err'], | ||
}, | ||
], | ||
'no-console': [ | ||
'error', | ||
{ | ||
allow: ['warn', 'trace', 'log', 'error'], | ||
}, | ||
], | ||
'consistent-return': 0, | ||
'key-spacing' : [ | ||
'error', | ||
{ | ||
multiLine: { beforeColon: false, afterColon: true }, | ||
align : { beforeColon: false, afterColon: true, on: 'colon', mode: 'strict' }, | ||
}, | ||
], | ||
}, | ||
root: true, | ||
extends: ["airbnb-base", "plugin:prettier/recommended"], | ||
rules: { | ||
"linebreak-style": ["error", "unix"], | ||
"arrow-parens": ["error", "as-needed"], | ||
"no-param-reassign": ["error", { props: false }], | ||
"func-style": ["error", "declaration", { allowArrowFunctions: true }], | ||
"no-use-before-define": ["error", { functions: false }] | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ results | |
npm-debug.log | ||
node_modules/* | ||
.esm-cache | ||
libapps | ||
dist |
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,13 @@ | ||
module.exports = { | ||
singleQuote: true, | ||
trailingComma: 'all', | ||
proseWrap: 'always', | ||
overrides: [ | ||
{ | ||
files: ['*.js', '*.mjs'], | ||
options: { | ||
printWidth: 80, | ||
}, | ||
}, | ||
], | ||
}; |
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 |
---|---|---|
@@ -1,9 +1,19 @@ | ||
FROM node:8-alpine | ||
MAINTAINER butlerx@notthe.cloud | ||
FROM node:alpine as builder | ||
WORKDIR /usr/src/app | ||
COPY . /usr/src/app | ||
RUN apk add -U build-base python && \ | ||
yarn && \ | ||
yarn build && \ | ||
yarn install --production --ignore-scripts --prefer-offline | ||
|
||
FROM node:alpine | ||
LABEL maintainer="butlerx@notthe.cloud" | ||
WORKDIR /app | ||
RUN adduser -D -h /home/term -s /bin/sh term && \ | ||
echo "term:term" | chpasswd | ||
ENV NODE_ENV=production | ||
RUN apk add -U openssh && \ | ||
adduser -D -h /home/term -s /bin/sh term && \ | ||
echo "term:term" | chpasswd | ||
EXPOSE 3000 | ||
COPY . /app | ||
RUN apk add --update build-base python openssh && yarn | ||
COPY --from=builder /usr/src/app /app | ||
|
||
CMD yarn 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.