From ba4df1a22c2e47ebeafd16404ece4c5899c06534 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 30 Dec 2016 13:22:01 +0100 Subject: [PATCH] create examples directory with old prototypes --- www/{ => examples}/board/board.js | 0 www/{ => examples}/board/index.html | 2 +- www/{ => examples}/board/main.js | 3 +-- www/{ => examples}/form/index.html | 0 www/{ => examples}/form/main.js | 3 +-- www/{ => examples}/form/types.md | 0 www/{ => examples}/form/ula.js | 0 www/{ => examples}/hack/index.html | 0 www/{ => examples}/hack/main.js | 0 www/examples/index.html | 22 ++++++++++++++++++++++ www/{ => examples}/json/README.md | 0 www/{ => examples}/json/index.html | 0 www/{ => examples}/json/main.js | 1 - www/{ => examples}/read/index.html | 0 www/{ => examples}/read/main.js | 0 www/{ => examples}/render/index.html | 0 www/{ => examples}/render/main.js | 1 - www/{ => examples}/style/index.html | 0 www/{ => examples}/style/main.js | 3 +-- www/{ => examples}/text/index.html | 0 www/{ => examples}/text/main.js | 1 - www/{ => examples}/upload/index.html | 0 www/{ => examples}/upload/main.js | 0 23 files changed, 26 insertions(+), 10 deletions(-) rename www/{ => examples}/board/board.js (100%) rename www/{ => examples}/board/index.html (99%) rename www/{ => examples}/board/main.js (98%) rename www/{ => examples}/form/index.html (100%) rename www/{ => examples}/form/main.js (99%) rename www/{ => examples}/form/types.md (100%) rename www/{ => examples}/form/ula.js (100%) rename www/{ => examples}/hack/index.html (100%) rename www/{ => examples}/hack/main.js (100%) create mode 100644 www/examples/index.html rename www/{ => examples}/json/README.md (100%) rename www/{ => examples}/json/index.html (100%) rename www/{ => examples}/json/main.js (98%) rename www/{ => examples}/read/index.html (100%) rename www/{ => examples}/read/main.js (100%) rename www/{ => examples}/render/index.html (100%) rename www/{ => examples}/render/main.js (99%) rename www/{ => examples}/style/index.html (100%) rename www/{ => examples}/style/main.js (96%) rename www/{ => examples}/text/index.html (100%) rename www/{ => examples}/text/main.js (99%) rename www/{ => examples}/upload/index.html (100%) rename www/{ => examples}/upload/main.js (100%) diff --git a/www/board/board.js b/www/examples/board/board.js similarity index 100% rename from www/board/board.js rename to www/examples/board/board.js diff --git a/www/board/index.html b/www/examples/board/index.html similarity index 99% rename from www/board/index.html rename to www/examples/board/index.html index dc83f7bad..ed36db678 100644 --- a/www/board/index.html +++ b/www/examples/board/index.html @@ -1,5 +1,5 @@ - + diff --git a/www/board/main.js b/www/examples/board/main.js similarity index 98% rename from www/board/main.js rename to www/examples/board/main.js index 6143d6e27..ca690bdc4 100644 --- a/www/board/main.js +++ b/www/examples/board/main.js @@ -1,7 +1,7 @@ define([ '/api/config?cb=' + Math.random().toString(16).substring(2), '/customize/messages.js', - '/board/board.js', + 'board.js', '/bower_components/textpatcher/TextPatcher.js', '/bower_components/chainpad-listmap/chainpad-listmap.js', '/bower_components/chainpad-crypto/crypto.js', @@ -10,7 +10,6 @@ define([ '/common/notify.js', '/bower_components/file-saver/FileSaver.min.js', '/bower_components/jquery/dist/jquery.min.js', - '/customize/pad.js' ], function (Config, Messages, Board, TextPatcher, Listmap, Crypto, Cryptpad, Visible, Notify) { var $ = window.jQuery; var saveAs = window.saveAs; diff --git a/www/form/index.html b/www/examples/form/index.html similarity index 100% rename from www/form/index.html rename to www/examples/form/index.html diff --git a/www/form/main.js b/www/examples/form/main.js similarity index 99% rename from www/form/main.js rename to www/examples/form/main.js index 034e45110..bdb10065a 100644 --- a/www/form/main.js +++ b/www/examples/form/main.js @@ -5,11 +5,10 @@ define([ '/bower_components/chainpad-crypto/crypto.js', '/bower_components/textpatcher/TextPatcher.amd.js', 'json.sortify', - '/form/ula.js', + 'ula.js', '/bower_components/chainpad-json-validator/json-ot.js', '/common/cryptpad-common.js', '/bower_components/jquery/dist/jquery.min.js', - '/customize/pad.js' ], function (Config, Realtime, Crypto, TextPatcher, Sortify, Formula, JsonOT, Cryptpad) { var $ = window.jQuery; diff --git a/www/form/types.md b/www/examples/form/types.md similarity index 100% rename from www/form/types.md rename to www/examples/form/types.md diff --git a/www/form/ula.js b/www/examples/form/ula.js similarity index 100% rename from www/form/ula.js rename to www/examples/form/ula.js diff --git a/www/hack/index.html b/www/examples/hack/index.html similarity index 100% rename from www/hack/index.html rename to www/examples/hack/index.html diff --git a/www/hack/main.js b/www/examples/hack/main.js similarity index 100% rename from www/hack/main.js rename to www/examples/hack/main.js diff --git a/www/examples/index.html b/www/examples/index.html new file mode 100644 index 000000000..e4266b005 --- /dev/null +++ b/www/examples/index.html @@ -0,0 +1,22 @@ + + + + + + + + +

What can be built on top of CryptPad?

+ + + diff --git a/www/json/README.md b/www/examples/json/README.md similarity index 100% rename from www/json/README.md rename to www/examples/json/README.md diff --git a/www/json/index.html b/www/examples/json/index.html similarity index 100% rename from www/json/index.html rename to www/examples/json/index.html diff --git a/www/json/main.js b/www/examples/json/main.js similarity index 98% rename from www/json/main.js rename to www/examples/json/main.js index aa6f58237..8b018ebd7 100644 --- a/www/json/main.js +++ b/www/examples/json/main.js @@ -4,7 +4,6 @@ define([ '/bower_components/chainpad-crypto/crypto.js', '/common/cryptpad-common.js', '/bower_components/jquery/dist/jquery.min.js', - //'/customize/pad.js' ], function (Config, RtListMap, Crypto, Common) { var $ = window.jQuery; diff --git a/www/read/index.html b/www/examples/read/index.html similarity index 100% rename from www/read/index.html rename to www/examples/read/index.html diff --git a/www/read/main.js b/www/examples/read/main.js similarity index 100% rename from www/read/main.js rename to www/examples/read/main.js diff --git a/www/render/index.html b/www/examples/render/index.html similarity index 100% rename from www/render/index.html rename to www/examples/render/index.html diff --git a/www/render/main.js b/www/examples/render/main.js similarity index 99% rename from www/render/main.js rename to www/examples/render/main.js index 376c43426..caf1f00c6 100644 --- a/www/render/main.js +++ b/www/examples/render/main.js @@ -7,7 +7,6 @@ define([ '/common/cryptpad-common.js', '/bower_components/jquery/dist/jquery.min.js', '/bower_components/diff-dom/diffDOM.js', - //'/customize/pad.js' ], function (Config, Realtime, Crypto, Marked, Hyperjson, Cryptpad) { var $ = window.jQuery; var DiffDom = window.diffDOM; diff --git a/www/style/index.html b/www/examples/style/index.html similarity index 100% rename from www/style/index.html rename to www/examples/style/index.html diff --git a/www/style/main.js b/www/examples/style/main.js similarity index 96% rename from www/style/main.js rename to www/examples/style/main.js index c32d779c2..1b41e8300 100644 --- a/www/style/main.js +++ b/www/examples/style/main.js @@ -5,7 +5,6 @@ define([ '/bower_components/textpatcher/TextPatcher.amd.js', '/common/cryptpad-common.js', '/bower_components/jquery/dist/jquery.min.js', - '/customize/pad.js' ], function (Config, Realtime, Crypto, TextPatcher, Cryptpad) { // TODO consider adding support for less.js var $ = window.jQuery; @@ -73,7 +72,7 @@ define([ }; - $edit.attr('href', '/text/'+ window.location.hash); + $edit.attr('href', '/examples/text/'+ window.location.hash); var rt = Realtime.start(config); }); diff --git a/www/text/index.html b/www/examples/text/index.html similarity index 100% rename from www/text/index.html rename to www/examples/text/index.html diff --git a/www/text/main.js b/www/examples/text/main.js similarity index 99% rename from www/text/main.js rename to www/examples/text/main.js index 94890aeb9..64b510383 100644 --- a/www/text/main.js +++ b/www/examples/text/main.js @@ -5,7 +5,6 @@ define([ '/bower_components/textpatcher/TextPatcher.amd.js', '/common/cryptpad-common.js', '/bower_components/jquery/dist/jquery.min.js', - '/customize/pad.js' ], function (Config, Realtime, Crypto, TextPatcher, Cryptpad) { var $ = window.jQuery; diff --git a/www/upload/index.html b/www/examples/upload/index.html similarity index 100% rename from www/upload/index.html rename to www/examples/upload/index.html diff --git a/www/upload/main.js b/www/examples/upload/main.js similarity index 100% rename from www/upload/main.js rename to www/examples/upload/main.js