lint compliance

pull/1/head
ansuz 4 years ago
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>

@ -42,7 +42,7 @@ body {
padding-top: @infopages_padding;
padding-bottom: @infopages_padding;
min-height: 75vh;
max-width:950px;
max-width: 950px;
h1 {
font-size: 3em;
margin-bottom: 0.5em;
@ -211,7 +211,7 @@ body {
font-size: 1.8em;
img {
max-width: 40px;
margin-right: 10px
margin-right: 10px;
}
@media (max-width: 326px) {
width: 180px;

@ -3,6 +3,9 @@
@import (reference) "./colortheme-all.less";
.leftside-menu_main() {
div.cp-empty-rule {
display: block; // XXX workaround lesshint complaining about empty rules
}
}
.leftside-menu-category_main() {
.unselectable_make();

@ -86,7 +86,7 @@
.list-group-item {
border-bottom: 1px solid rgba(0,0,0,0.125);
&:first-child {
border-top: 1px solid rgba(0,0,0,0.125);
border-top: 1px solid rgba(0,0,0,0.125);
}
&:last-child {
border-bottom-right-radius: 0px;

@ -125,7 +125,7 @@
font-size: 3.5em;
justify-content: center;
width: @icons-size;
padding:10px 10px 0px 10px;
padding: 10px 10px 0px 10px;
//height: @icons-size - @icons-text-size;
}
&.cp-app-disabled {
@ -134,7 +134,7 @@
}
.pad-button-text {
color: @cryptpad_text_col;
padding:5px;
padding: 5px;
}
}
h4 {

@ -57,7 +57,7 @@
}
}
#userForm {
padding:15px;
padding: 15px;
background-color: white;
height: min-content; // XXX why does the form expand without this?
.cp-shadow();

@ -0,0 +1,2 @@
* compare your conf against `cryptpad/docs/example.nginx.conf`
*

1505
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -31,7 +31,7 @@
"devDependencies": {
"jshint": "^2.10.2",
"less": "3.7.1",
"lesshint": "^4.5.0",
"lesshint": "6.3.7",
"selenium-webdriver": "^3.6.0"
},
"scripts": {

@ -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));
});
}
)
```

@ -2106,6 +2106,8 @@ define([
// Title
var colorClass = 'cp-icon-color-'+type;
colorClass = colorClass; // XXX
//$creation.append(h('h2.cp-creation-title', Messages.newButtonTitle));
var newPadH3Title = Messages['button_new' + type];

Loading…
Cancel
Save