Run prettier on all files
This commit is contained in:
@@ -5,11 +5,13 @@
|
||||
"singleQuote": true,
|
||||
"trailingComma": "es5",
|
||||
"bracketSpacing": true,
|
||||
"arrowParens": "avoid",
|
||||
"overrides": [{
|
||||
"files": ["*.ejs"],
|
||||
"options": {
|
||||
"trailingComma": "none"
|
||||
}
|
||||
}]
|
||||
"arrowParens": "avoid",
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ejs", "*.html"],
|
||||
"options": {
|
||||
"trailingComma": "none"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
+31
-30
@@ -1,35 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>remark42</title>
|
||||
<base target="_blank">
|
||||
<style>
|
||||
html, body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<title>remark42</title>
|
||||
<base target="_blank" />
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.preloader {
|
||||
width: 60px;
|
||||
text-align: center;
|
||||
font-size: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.preloader_view_iframe {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.preloader__bounce {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-right: 3px;
|
||||
background-color: #333;
|
||||
border-radius: 100%;
|
||||
animation: iframePreloaderBounce 1.4s infinite ease-in-out both;
|
||||
}
|
||||
}
|
||||
|
||||
.preloader__bounce:first-child {
|
||||
animation-delay: -.32s;
|
||||
@@ -37,11 +38,11 @@
|
||||
|
||||
.preloader__bounce:nth-child(2) {
|
||||
animation-delay: -.16s;
|
||||
}
|
||||
}
|
||||
|
||||
.preloader__bounce:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes iframePreloaderBounce {
|
||||
0% {
|
||||
@@ -55,22 +56,22 @@
|
||||
80%, 100% {
|
||||
transform: scale(0);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="remark42">
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="remark42">
|
||||
<div class="preloader preloader_view_iframe">
|
||||
<div class="preloader__bounce"></div>
|
||||
<div class="preloader__bounce"></div>
|
||||
<div class="preloader__bounce"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var remark_config = {
|
||||
host: window.location.origin
|
||||
}
|
||||
</script>
|
||||
<script src="deleteme.js"></script>
|
||||
</body>
|
||||
</div>
|
||||
<script>
|
||||
var remark_config = {
|
||||
host: window.location.origin
|
||||
};
|
||||
</script>
|
||||
<script src="deleteme.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+81
-74
@@ -1,47 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>remark42</title>
|
||||
<base target="_blank">
|
||||
<script>
|
||||
if (window.location.search === '?selfClose') {
|
||||
window.close();
|
||||
}
|
||||
</script>
|
||||
<link rel="stylesheet" href="remark.css">
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<title>remark42</title>
|
||||
<base target="_blank" />
|
||||
<script>
|
||||
if (window.location.search === '?selfClose') {
|
||||
window.close();
|
||||
}
|
||||
</script>
|
||||
<link rel="stylesheet" href="remark.css" />
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.preloader {
|
||||
width: 60px;
|
||||
text-align: center;
|
||||
font-size: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.preloader_view_iframe {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
.preloader__bounce {
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-right: 3px;
|
||||
background-color: #888;
|
||||
border-radius: 100%;
|
||||
animation: iframePreloaderBounce 1.4s infinite ease-in-out both;
|
||||
}
|
||||
}
|
||||
|
||||
.preloader__bounce:first-child {
|
||||
animation-delay: -.32s;
|
||||
}
|
||||
}
|
||||
|
||||
.preloader__bounce:nth-child(2) {
|
||||
animation-delay: -.16s;
|
||||
@@ -49,7 +50,7 @@
|
||||
|
||||
.preloader__bounce:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes iframePreloaderBounce {
|
||||
0% {
|
||||
@@ -63,65 +64,71 @@
|
||||
80%, 100% {
|
||||
transform: scale(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:focus:not(.focus-visible):not(.button) {
|
||||
outline: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="remark42">
|
||||
:focus:not(.focus-visible):not(.button) {
|
||||
outline: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="remark42">
|
||||
<div class="preloader preloader_view_iframe">
|
||||
<div class="preloader__bounce"></div>
|
||||
<div class="preloader__bounce"></div>
|
||||
<div class="preloader__bounce"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
/* REMOVE-START */
|
||||
if (window.parent !== window) {
|
||||
try {
|
||||
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
} catch (e){}
|
||||
}
|
||||
/* REMOVE-END */
|
||||
var lastHeight = 0;
|
||||
setInterval(function() {
|
||||
if (document.body.offsetHeight !== lastHeight && document.body.offsetHeight > 10) {
|
||||
lastHeight = document.body.offsetHeight;
|
||||
window.parent.postMessage(JSON.stringify({ remarkIframeHeight: lastHeight }), '*');
|
||||
</div>
|
||||
<script>
|
||||
/* REMOVE-START */
|
||||
if (window.parent !== window) {
|
||||
try {
|
||||
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
} catch (e) {}
|
||||
}
|
||||
}, 200);
|
||||
|
||||
window.addEventListener('message', receiveMessages);
|
||||
|
||||
function receiveMessages(event) {
|
||||
try {
|
||||
const data = typeof event.data === 'string' ? JSON.parse(event.data) : event.data;
|
||||
const isItHash = data.hash && data.hash.indexOf("#") === 0;
|
||||
|
||||
if (isItHash) {
|
||||
location.replace(data.hash);
|
||||
/* REMOVE-END */
|
||||
var lastHeight = 0;
|
||||
setInterval(function() {
|
||||
if (document.body.offsetHeight !== lastHeight && document.body.offsetHeight > 10) {
|
||||
lastHeight = document.body.offsetHeight;
|
||||
window.parent.postMessage(JSON.stringify({ remarkIframeHeight: lastHeight }), '*');
|
||||
}
|
||||
}, 200);
|
||||
|
||||
if (data.title) {
|
||||
document.title = data.title;
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
window.addEventListener('message', receiveMessages);
|
||||
|
||||
var remark_config = window.location.search.length < 2 ? {} : window.location.search.substr(1).split("&").reduce(function (c, x) {
|
||||
var splitted = x.split("=")
|
||||
if(!splitted[1]) {
|
||||
splitted[1] = ""
|
||||
function receiveMessages(event) {
|
||||
try {
|
||||
const data = typeof event.data === 'string' ? JSON.parse(event.data) : event.data;
|
||||
const isItHash = data.hash && data.hash.indexOf('#') === 0;
|
||||
|
||||
if (isItHash) {
|
||||
location.replace(data.hash);
|
||||
}
|
||||
|
||||
if (data.title) {
|
||||
document.title = data.title;
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
c[splitted[0]] = decodeURIComponent(splitted[1])
|
||||
return c
|
||||
}, {})
|
||||
|
||||
window.parent.postMessage(JSON.stringify({ inited: true }), '*');
|
||||
</script>
|
||||
<script type="text/javascript" src="remark.js"></script>
|
||||
</body>
|
||||
var remark_config =
|
||||
window.location.search.length < 2
|
||||
? {}
|
||||
: window.location.search
|
||||
.substr(1)
|
||||
.split('&')
|
||||
.reduce(function(c, x) {
|
||||
var splitted = x.split('=');
|
||||
if (!splitted[1]) {
|
||||
splitted[1] = '';
|
||||
}
|
||||
c[splitted[0]] = decodeURIComponent(splitted[1]);
|
||||
return c;
|
||||
}, {});
|
||||
|
||||
window.parent.postMessage(JSON.stringify({ inited: true }), '*');
|
||||
</script>
|
||||
<script type="text/javascript" src="remark.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+40
-39
@@ -1,44 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>remark42 last comments</title>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<title>remark42 last comments</title>
|
||||
|
||||
<style>
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 400px;
|
||||
margin: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="remark42__last-comments" data-max="50"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var remark_config = {
|
||||
site_id: 'remark',
|
||||
host: window.location.origin,
|
||||
components: ["last-comments"]
|
||||
};
|
||||
|
||||
(function(c) {
|
||||
for(var i = 0; i < c.length; i++){
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = remark_config.host + '/web/' +c[i] +'.js';
|
||||
(d.head || d.body).appendChild(s);
|
||||
<style>
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
})(remark_config.components || ['embed']);
|
||||
</script>
|
||||
<noscript>
|
||||
Please enable JavaScript to view the comments powered by Remark.
|
||||
</noscript>
|
||||
</body>
|
||||
|
||||
.container {
|
||||
max-width: 400px;
|
||||
margin: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="remark42__last-comments" data-max="50"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var remark_config = {
|
||||
site_id: 'remark',
|
||||
host: window.location.origin,
|
||||
components: ['last-comments']
|
||||
};
|
||||
|
||||
(function(c) {
|
||||
for (var i = 0; i < c.length; i++) {
|
||||
var d = document,
|
||||
s = d.createElement('script');
|
||||
s.src = remark_config.host + '/web/' + c[i] + '.js';
|
||||
(d.head || d.body).appendChild(s);
|
||||
}
|
||||
})(remark_config.components || ['embed']);
|
||||
</script>
|
||||
<noscript>
|
||||
Please enable JavaScript to view the comments powered by Remark.
|
||||
</noscript>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"incremental": true,
|
||||
"incremental": true,
|
||||
"lib": ["es2017", "dom"],
|
||||
"target": "es2017",
|
||||
"jsx": "react",
|
||||
@@ -19,7 +19,7 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"*": ["@types/*"],
|
||||
"@app/*": ["app/*"],
|
||||
"@app/*": ["app/*"]
|
||||
}
|
||||
},
|
||||
"include": ["app/**/*"],
|
||||
|
||||
Reference in New Issue
Block a user