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

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

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

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

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

1499
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -31,7 +31,7 @@
"devDependencies": { "devDependencies": {
"jshint": "^2.10.2", "jshint": "^2.10.2",
"less": "3.7.1", "less": "3.7.1",
"lesshint": "^4.5.0", "lesshint": "6.3.7",
"selenium-webdriver": "^3.6.0" "selenium-webdriver": "^3.6.0"
}, },
"scripts": { "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 // Title
var colorClass = 'cp-icon-color-'+type; var colorClass = 'cp-icon-color-'+type;
colorClass = colorClass; // XXX
//$creation.append(h('h2.cp-creation-title', Messages.newButtonTitle)); //$creation.append(h('h2.cp-creation-title', Messages.newButtonTitle));
var newPadH3Title = Messages['button_new' + type]; var newPadH3Title = Messages['button_new' + type];

Loading…
Cancel
Save