not quite finished
This commit is contained in:
7
customize.dist/DecorateToolbar.js
Normal file
7
customize.dist/DecorateToolbar.js
Normal file
@@ -0,0 +1,7 @@
|
||||
define([
|
||||
'/bower_components/jquery/dist/jquery.min.js'
|
||||
], function ($) {
|
||||
var main = function ($toolbar) {
|
||||
$toolbar.append('<p>Made With <img src="/customize/"> in Paris</p>')
|
||||
Dt.main($('.rtwysiwyg-toolbar-rightside'));
|
||||
});
|
||||
BIN
customize.dist/fr.png
Executable file
BIN
customize.dist/fr.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 545 B |
BIN
customize.dist/france.png
Normal file
BIN
customize.dist/france.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 545 B |
BIN
customize.dist/heart.png
Normal file
BIN
customize.dist/heart.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 749 B |
4301
customize.dist/index.css
Normal file
4301
customize.dist/index.css
Normal file
File diff suppressed because it is too large
Load Diff
68
customize.dist/index.html
Normal file
68
customize.dist/index.html
Normal file
@@ -0,0 +1,68 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!--<title>Sample - CKEditor</title>-->
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||
<link rel="stylesheet" type="text/css" href="customize/index.css" />
|
||||
<style>
|
||||
#whatis {
|
||||
padding-left: 15%;
|
||||
padding-right: 15%;
|
||||
font-size: medium;
|
||||
}
|
||||
.create {
|
||||
background-color: rgb(77, 146, 68);
|
||||
background-image: linear-gradient(rgb(39, 100, 0) 0%, rgb(77, 146, 68) 100%);
|
||||
border-bottom-color: rgb(77, 146, 68);
|
||||
color: rgb(243, 243, 243);
|
||||
font-weight:bold;
|
||||
font-size:large;
|
||||
margin-right: 5px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.buttons {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.button {
|
||||
padding: 2px 6px 2px 6px;
|
||||
border-top: 1px solid #CCCCCC;
|
||||
border-right: 1px solid #333333;
|
||||
border-bottom: 1px solid #333333;
|
||||
border-left: 1px solid #CCCCCC;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a href="https://github.com/xwiki-labs/cryptpad"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/121cd7cbdc3e4855075ea8b558508b91ac463ac2/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png"></a>
|
||||
<div id="whatis">
|
||||
<h1>CryptPad: Unity is Strength - Collaboration is Key</h1>
|
||||
<p>CryptPad is the <strong>zero knowledge</strong> realtime collaborative editor.
|
||||
Encryption carried out in your web browser protects the data from the server, the cloud
|
||||
and the NSA. This project uses the <a href="http://ckeditor.com/">CKEditor</a> Visual Editor and the <a href="https://github.com/xwiki-contrib/chainpad">ChainPad</a> realtime
|
||||
engine. The secret key is stored in the URL <a href="https://en.wikipedia.org/wiki/Fragment_identifier">fragment identifier</a> which is never sent to
|
||||
the server but is available to javascript so by sharing the URL, you give authorization
|
||||
to others who want to participate.</p>
|
||||
</code></pre><h2 id="security">Security</h2>
|
||||
<p>CryptPad is <em>private</em> not <em>anonymous</em>. Privacy protects your data, anonymity protects you.
|
||||
As such, it is possible for a collaborator on the pad to include some silly/ugly/nasty things
|
||||
in a CryptPad such as an image which reveals your IP address when your browser automatically
|
||||
loads it or a script which plays Rick Asleys's greatest hits. It is acceptable for anyone
|
||||
who does not have the key to be able to change anything in the pad or add anything, even the
|
||||
server.</p>
|
||||
<p>The server does have a certain power, it can send you evil javascript which does the wrong
|
||||
thing (leaks the key or the data back to the server or to someone else). This is however an
|
||||
<a href="https://en.wikipedia.org/wiki/Attack_(computing)#Types_of_attacks">active attack</a> which makes it detectable. The NSA really hates doing these because they might
|
||||
get caught and laughed at and humiliated in front of the whole world (again). If you're making
|
||||
the NSA mad enough for them to use an active attack against you, Great Success Highfive, now take
|
||||
the battery out of your computer before it spawns Agent Smith.</p>
|
||||
<center>
|
||||
<h5>Try it out!</h5>
|
||||
<div class="buttons">
|
||||
<a class="button create" href="pad">CREATE PAD</a>
|
||||
<a class="button create" href="sheet">CREATE SPREADSHEET</a>
|
||||
</div>
|
||||
</center>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
6
customize.dist/pad.js
Normal file
6
customize.dist/pad.js
Normal file
@@ -0,0 +1,6 @@
|
||||
require([
|
||||
'/customize/DecorateToolbar.js',
|
||||
'/bower_components/jquery/dist/jquery.min.js'
|
||||
], function (Dt, $) {
|
||||
Dt.main($('.rtwysiwyg-toolbar-rightside'));
|
||||
});
|
||||
18
customize.dist/readme.md
Normal file
18
customize.dist/readme.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Customizing CryptPad
|
||||
|
||||
In order allow the content of the main page to be changed and to allow site-specific changes
|
||||
to the pad and sheet while still keeping the git repository pristine, this directory exists
|
||||
to allow a set of hooks to be run.
|
||||
|
||||
The server is configured to check for a directory called `/customize/` and if that is not
|
||||
found, to fallback on `/customize.dist/`. In order to customize cryptpad, please **copy**
|
||||
`/customize.dist/` to `/customize` and then edit it there, this way you will still be able
|
||||
to pull from (and make pull requests to (!) the git repository.
|
||||
|
||||
|
||||
* pad.js will be run whenever the (CKEditor) **pad** is loaded.
|
||||
* sheet.js will be run whenever the (JQuery.sheet) **spreadsheet** is loaded.
|
||||
* index.html is the main page.
|
||||
|
||||
All other content which is placed in this directory will be referencable at the `/customize/`
|
||||
URL location.
|
||||
Reference in New Issue
Block a user