lint compliance
parent
97ec1df7ad
commit
affd221eb7
@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="cp" id="four-oh-four">
|
||||
<!-- If this file is not called customize.dist/src/template.html, it is generated -->
|
||||
<head>
|
||||
<title data-localization="main_title">CryptPad: Zero Knowledge, Collaborative Real Time Editing</title>
|
||||
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="icon" type="image/png" href="/customize/main-favicon.png" id="favicon"/>
|
||||
</head>
|
||||
<body class="html">
|
||||
|
||||
<h1>CryptPad</h1>
|
||||
<h2>We're temporarily offline while we recover from a bad data-center outage</h2>
|
||||
<h3>Your data is safe, but we need to move it to a new machine.
|
||||
<br/>
|
||||
<br/>
|
||||
We'll be back as soon as possible.
|
||||
</h3>
|
||||
<h4>For the latest updates, follow us on <a href="https://social.weho.st/@cryptpad">Mastodon</a> or <a href="https://twitter.com/cryptpad">Twitter</a>.</h4>
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
* compare your conf against `cryptpad/docs/example.nginx.conf`
|
||||
*
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,22 @@
|
||||
```javascript
|
||||
CryptPad_AsyncStore.rpc.send('ADMIN',
|
||||
['GET_WORKER_PROFILES'],
|
||||
(e, _o) => {
|
||||
var o = _o[0];
|
||||
// console.log(o[0])
|
||||
var sorted = Object.keys(o).sort(function (a, b) {
|
||||
if (o[b] - o[a] <= 0) { return -1; }
|
||||
return 1;
|
||||
});
|
||||
var x = {};
|
||||
//console.log(sorted);
|
||||
var total = 0;
|
||||
sorted.forEach(function (k) { total += o[k]; });
|
||||
sorted.forEach(function (k) {
|
||||
console.log("[%s] %ss running time (%s%)", k, o[k], Math.floor((o[k] / total) * 100));
|
||||
});
|
||||
}
|
||||
)
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue