diff --git a/www/common/curve-put.js b/www/common/curve-put.js
deleted file mode 100644
index 450b62564..000000000
--- a/www/common/curve-put.js
+++ /dev/null
@@ -1,51 +0,0 @@
-define([
- '/common/curve.js',
- '/bower_components/chainpad-listmap/chainpad-listmap.js',
-], function (Curve, Listmap) {
- var Edit = {};
-
- Edit.create = function (config, cb) { //network, channel, theirs, mine, cb) {
- var network = config.network;
- var channel = config.channel;
- var keys = config.keys;
-
- try {
- var encryptor = Curve.createEncryptor(keys);
- var lm = Listmap.create({
- network: network,
- data: {},
- channel: channel,
- readOnly: false,
- validateKey: keys.validateKey || undefined,
- crypto: encryptor,
- userName: 'lol',
- logLevel: 1,
- });
-
- var done = function () {
- // TODO make this abort and disconnect the session after the
- // user has finished making changes to the object, and they
- // have propagated.
- };
-
- lm.proxy
- .on('create', function () {
- console.log('created');
- })
- .on('ready', function () {
- console.log('ready');
- cb(lm, done);
- })
- .on('disconnect', function () {
- console.log('disconnected');
- })
- .on('change', [], function (o, n, p) {
- console.log(o, n, p);
- });
- } catch (e) {
- console.error(e);
- }
- };
-
- return Edit;
-});
diff --git a/www/invite/index.html b/www/invite/index.html
deleted file mode 100644
index 5200564ce..000000000
--- a/www/invite/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- CryptPad: Zero Knowledge, Collaborative Real Time Editing
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/invite/main.js b/www/invite/main.js
deleted file mode 100644
index 97f64ab8e..000000000
--- a/www/invite/main.js
+++ /dev/null
@@ -1,88 +0,0 @@
-define([
- 'jquery',
- '/common/cryptpad-common.js',
- '/common/common-interface.js',
- //'/common/common-hash.js',
- //'/bower_components/chainpad-listmap/chainpad-listmap.js',
- //'/common/curve.js',
- 'less!/invite/main.less',
-], function ($, Cryptpad, UI/*, Hash , Listmap, Curve*/) {
- var Messages = Cryptpad.Messages;
- var comingSoon = function () {
- return $('', {
- 'class': 'coming-soon',
- })
- .text(Messages.comingSoon)
- .append('
');
- };
-
- $(function () {
- UI.removeLoadingScreen();
- console.log("wut");
- $('body #mainBlock').append(comingSoon());
- });
- return;
-
- /* jshint ignore:start */
- var APP = window.APP = {};
-
- //var Messages = Cryptpad.Messages;
- var onInit = function () {};
-
- var onDisconnect = function () {};
- var onChange = function () {};
-
- var andThen = function () {
- var hash = window.location.hash.slice(1);
-
- var info = Hash.parseTypeHash('invite', hash);
- console.log(info);
-
- if (!info.pubkey) {
- UI.removeLoadingScreen();
- UI.alert('invalid invite');
- return;
- }
-
- var proxy = Cryptpad.getProxy();
- var mySecret = proxy.curvePrivate;
-
- var keys = Curve.deriveKeys(info.pubkey, mySecret);
- var encryptor = Curve.createEncryptor(keys);
-
- UI.removeLoadingScreen();
-
- var listmapConfig = {
- data: {},
- network: Cryptpad.getNetwork(),
- channel: info.channel,
- readOnly: false,
- validateKey: keys.validateKey,
- crypto: encryptor,
- userName: 'profile',
- logLevel: 1,
- };
- var lm = APP.lm = Listmap.create(listmapConfig);
- lm.proxy.on('create', onInit)
- .on('ready', function () {
- APP.initialized = true;
- console.log(JSON.stringify(lm.proxy));
- })
- .on('disconnect', onDisconnect)
- .on('change', [], onChange);
- };
-
- $(function () {
- var $main = $('#mainBlock');
-
- // main block is hidden in case javascript is disabled
- $main.removeClass('hidden');
-
- APP.$container = $('#container');
-
- Cryptpad.ready(function () {
- andThen();
- });
- });
- /* jshint ignore:end */
-});
diff --git a/www/invite/main.less b/www/invite/main.less
deleted file mode 100644
index 4ef2a8fa4..000000000
--- a/www/invite/main.less
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
-.cp {
- #mainBlock {
- z-index: 1;
- width: 1000px;
- max-width: 90%;
- margin: auto;
- #container {
- font-size: 25px;
- width: 100%;
- }
- }
- #header {
- display: flex;
- #rightside {
- flex: 1;
- display: flex;
- flex-flow: column;
- }
- }
- #avatar {
- width: 300px;
- //height: 350px;
- margin: 10px;
- margin-right: 20px;
- text-align: center;
- &> span {
- display: inline-block;
- text-align: center;
- height: 300px;
- width: 300px;
- border: 1px solid black;
- border-radius: 10px;
- overflow: hidden;
- position: relative;
- .delete {
- right: 0;
- position: absolute;
- opacity: 0.7;
- &:hover {
- opacity: 1;
- }
- }
- }
- img {
- max-width: 100%;
- max-height: 100%;
- vertical-align: top;
- }
- media-tag {
- height: 100%;
- width: 100%;
- display: inline-flex;
- justify-content: center;
- align-items: center;
- img {
- min-width: 100%;
- min-height: 100%;
- max-width: none;
- max-height: none;
- flex-shrink: 0;
- }
- }
- button {
- height: 40px;
- margin: 5px;
- }
- }
- #displayName, #link {
- width: 100%;
- height: 40px;
- margin: 10px 0;
- input {
- width: 100%;
- font-size: 20px;
- box-sizing: border-box;
- padding-right: 30px;
- }
- input:focus ~ .edit {
- display: none;
- }
- .edit {
- position: absolute;
- margin-left: -25px;
- margin-top: 8px;
- }
- .temp {
- font-weight: 400;
- font-family: sans-serif;
- }
- .displayName {
- font-weight: bold;
- font-size: 30px;
- }
- .displayName, .link {
- line-height: 40px;
- }
- }
- #description {
- position: relative;
- font-size: 16px;
- border: 1px solid #DDD;
- margin-bottom: 20px;
- .rendered {
- padding: 0 15px;
- }
- .ok, .spin {
- position: absolute;
- top: 2px;
- right: 2px;
- display: none;
- z-index: 1000;
- }
- textarea {
- width: 100%;
- height: 300px;
- }
- .CodeMirror {
- border: 1px solid #DDD;
- font-family: monospace;
- font-size: 16px;
- line-height: initial;
- pre {
- margin: 0;
- font-family: inherit;
- font-size: inherit;
- line-height: inherit;
- }
- }
- }
- #createProfile {
- height: 100%;
- display: flex;
- flex-flow: column;
- align-items: center;
- justify-content: center;
- }
-}
-*/
-
-.coming-soon {
- text-align: center;
- font-size: 25px;
-
- height: 100%;
- display: flex;
- flex-flow: column;
- align-items: center;
- justify-content: center;
-}