Browse Source
Implement stronger content-security-policy except in /pad/ which does not allow it.
Implement stronger content-security-policy except in /pad/ which does not allow it.
Implement a "loader" which allows for applying a version number to everything. Added a cache control for anything which has a version.master
34 changed files with 107 additions and 209 deletions
Split View
Diff Options
-
41config.js.dist
-
12customize.dist/about.html
-
12customize.dist/contact.html
-
12customize.dist/index.html
-
12customize.dist/privacy.html
-
3customize.dist/src/fragments/appscript.html
-
1customize.dist/src/fragments/empty.html
-
3customize.dist/src/fragments/script.html
-
9customize.dist/src/template.html
-
12customize.dist/terms.html
-
24server.js
-
14www/code/index.html
-
5www/common/boot.js
-
6www/common/boot2.js
-
2www/common/cryptpad-common.js
-
3www/common/noscriptfix.js
-
14www/drive/index.html
-
2www/drive/main.js
-
8www/examples/board/index.html
-
5www/examples/canvas/index.html
-
5www/examples/form/index.html
-
3www/examples/hack/index.html
-
3www/examples/json/index.html
-
7www/examples/read/index.html
-
4www/examples/render/index.html
-
15www/examples/style/index.html
-
3www/examples/text/index.html
-
8www/examples/upload/index.html
-
10www/login/index.html
-
14www/pad/index.html
-
6www/poll/index.html
-
9www/register/index.html
-
15www/settings/index.html
-
14www/slide/index.html
@ -1,3 +1,2 @@ |
|||
<link rel="stylesheet" type="text/css" href="main.css" /> |
|||
<script data-main="main" src="/bower_components/requirejs/require.js"></script> |
|||
|
|||
<script data-bootload="main.js" data-main="/common/boot.js" src="/bower_components/requirejs/require.js"></script> |
|||
@ -1,2 +1 @@ |
|||
<script data-main="main" src="/bower_components/requirejs/require.js"></script> |
|||
<div id="container"></div> |
|||
@ -1,2 +1 @@ |
|||
<script data-main="/customize/main" src="/bower_components/requirejs/require.js"></script> |
|||
|
|||
<script data-bootload="/customize/main.js" data-main="/common/boot.js" src="/bower_components/requirejs/require.js"></script> |
|||
@ -0,0 +1,5 @@ |
|||
// Stage 0, this gets cached which means we can't change it. boot2.js is changable.
|
|||
define(['/api/config?cb=' + (+new Date()).toString(16)], function (Config) { |
|||
if (Config.requireConf) { require.config(Config.requireConf); } |
|||
require(['/common/boot2.js']); |
|||
}); |
|||
@ -0,0 +1,6 @@ |
|||
// This is stage 1, it can be changed but you must bump the version of the project.
|
|||
define([], function () { |
|||
// fix up locations so that relative urls work.
|
|||
require.config({ baseUrl: window.location.pathname }); |
|||
require([document.querySelector('script[data-bootload]').getAttribute('data-bootload')]); |
|||
}); |
|||
@ -0,0 +1,3 @@ |
|||
// Fix for noscript bugs when caching iframe content.
|
|||
// Caution, this file will get cached, you must change the name if you change it.
|
|||
document.getElementById('pad-iframe').setAttribute('src', 'inner.html?cb=' + (+new Date())); |
|||
Write
Preview
Loading…
Cancel
Save