From fc027ba00b17f790eb102563b036f358eedb561d Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 1 Dec 2017 15:03:01 +0100 Subject: [PATCH 01/62] Test webworker app --- www/worker/app-worker.less | 40 +++++++++++++++++++ www/worker/index.html | 38 ++++++++++++++++++ www/worker/inner.html | 16 ++++++++ www/worker/inner.js | 68 ++++++++++++++++++++++++++++++++ www/worker/main.js | 43 ++++++++++++++++++++ www/worker/messages.js | 7 ++++ www/worker/todo.js | 80 ++++++++++++++++++++++++++++++++++++++ www/worker/worker.js | 48 +++++++++++++++++++++++ 8 files changed, 340 insertions(+) create mode 100644 www/worker/app-worker.less create mode 100644 www/worker/index.html create mode 100644 www/worker/inner.html create mode 100644 www/worker/inner.js create mode 100644 www/worker/main.js create mode 100644 www/worker/messages.js create mode 100644 www/worker/todo.js create mode 100644 www/worker/worker.js diff --git a/www/worker/app-worker.less b/www/worker/app-worker.less new file mode 100644 index 000000000..c21879f4f --- /dev/null +++ b/www/worker/app-worker.less @@ -0,0 +1,40 @@ +@import (once) "../../customize/src/less2/include/browser.less"; +@import (once) "../../customize/src/less2/include/toolbar.less"; +@import (once) "../../customize/src/less2/include/markdown.less"; +@import (once) '../../customize/src/less2/include/fileupload.less'; +@import (once) '../../customize/src/less2/include/alertify.less'; +//@import (once) '../../customize/src/less/mixins.less'; +//@import (once) '../../customize/src/less/variables.less"; + +@import (once) '../../customize/src/less2/include/avatar.less'; + + +.toolbar_main(); +.fileupload_main(); +.alertify_main(); + +// body +&.cp-app-worker { + display: flex; + flex-flow: column; + + #cp-toolbar { + display: flex; // We need this to remove a 3px border at the bottom of the toolbar + } + + .cp-cryptpad-toolbar { + padding: 0px; + display: inline-block; + } + + #cp-app-worker-container { + display: flex; + flex: 1; + flex-flow: column; + padding: 20px; + align-items: center; + background-color: lighten(@colortheme_todo-bg, 15%); + min-height: 0; + } +} + diff --git a/www/worker/index.html b/www/worker/index.html new file mode 100644 index 000000000..e3f7eacc4 --- /dev/null +++ b/www/worker/index.html @@ -0,0 +1,38 @@ + + + + CryptPad + + + + + + + +