From ccdf936304ab583776bda1eeb35b178a6aa1914f Mon Sep 17 00:00:00 2001 From: mhelander Date: Mon, 11 Sep 2017 12:51:24 +0300 Subject: [PATCH] sea.js bugfix & Gun chat to have SEA & User stuff in comments --- .eslintrc | 29 + .gitignore | 1 + examples/chat/index.html | 13 +- index.js | 9 +- lib/cryptography.js | 12051 +++++++++++++++++++------------------ lib/gunwrapper.js | 15 + lib/serve.mjs | 41 + lib/server.mjs | 7 + package.json | 8 +- sea.js | 7 +- 10 files changed, 6150 insertions(+), 6031 deletions(-) create mode 100644 .eslintrc create mode 100644 lib/gunwrapper.js create mode 100644 lib/serve.mjs create mode 100644 lib/server.mjs diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 00000000..1e642a74 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,29 @@ +{ + "parser": "babel-eslint", + "extends": [ + "standard", + "eslint:recommended" + ], + "plugins": [ + "babel", + "promise" + ], + "env": { + "browser" : true + }, + "globals": { + "__DEV__" : false, + "__TEST__" : false, + "__PROD__" : false, + "__COVERAGE__" : false + }, + "rules": { + "key-spacing" : 0, + "jsx-quotes" : [2, "prefer-single"], + "max-len" : [2, 80, 2], + "object-curly-spacing" : [2, "always"], + "semi" : [2, "never"], + "no-mixed-spaces-and-tabs": [2], + "arrow-parens" : [2, "always"] + } +} diff --git a/.gitignore b/.gitignore index 3080e15d..d29ca697 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ yarn.lock *.bak *.new *.DS_store +.esm-cache diff --git a/examples/chat/index.html b/examples/chat/index.html index 201b8e82..2724b1af 100644 --- a/examples/chat/index.html +++ b/examples/chat/index.html @@ -34,7 +34,7 @@ .poiret { font-family: 'Poiret One', sans-serif; } - .large { + .large { font-size: 200%; } #converse .what, #converse .who { @@ -68,8 +68,19 @@ +