From 07137b34e7b44aee913f2d2e500f1877269ce0ab Mon Sep 17 00:00:00 2001 From: Pavel Mineev Date: Sun, 5 Jan 2020 18:35:38 +0300 Subject: [PATCH] Run prettier on all files --- frontend/.prettierrc | 16 ++-- frontend/deleteme.html | 61 ++++++++------- frontend/iframe.html | 155 +++++++++++++++++++------------------ frontend/last-comments.ejs | 79 +++++++++---------- frontend/tsconfig.json | 4 +- 5 files changed, 163 insertions(+), 152 deletions(-) diff --git a/frontend/.prettierrc b/frontend/.prettierrc index d4d8cfc4..bd27edb1 100644 --- a/frontend/.prettierrc +++ b/frontend/.prettierrc @@ -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" + } + } + ] } diff --git a/frontend/deleteme.html b/frontend/deleteme.html index 39eb2038..ff424dad 100644 --- a/frontend/deleteme.html +++ b/frontend/deleteme.html @@ -1,35 +1,36 @@ - - - - remark42 - - - - -
+ } + + + +
-
- - - +
+ + + diff --git a/frontend/iframe.html b/frontend/iframe.html index 21c5263a..17fc97aa 100644 --- a/frontend/iframe.html +++ b/frontend/iframe.html @@ -1,47 +1,48 @@ - - - - remark42 - - - - - - -
+ :focus:not(.focus-visible):not(.button) { + outline: none; + } + + + +
-
- - - + 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 }), '*'); + + + diff --git a/frontend/last-comments.ejs b/frontend/last-comments.ejs index 4bce1d8e..061f0c6f 100644 --- a/frontend/last-comments.ejs +++ b/frontend/last-comments.ejs @@ -1,44 +1,45 @@ - - - - remark42 last comments + + + + remark42 last comments - - - -
-
-
- - - - + + .container { + max-width: 400px; + margin: 40px; + } + + + +
+
+
+ + + + diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 8e124920..a831df3c 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -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/**/*"],