@lexho111/plainblog 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AssetManager.js +4 -2
- package/package.json +1 -1
- package/postinstall.js +1 -1
- package/public/styles.min.css +2 -2
package/AssetManager.js
CHANGED
|
@@ -49,7 +49,8 @@ export default class AssetManager {
|
|
|
49
49
|
if (match) publicHash = match[1];
|
|
50
50
|
})
|
|
51
51
|
.catch((err) => {
|
|
52
|
-
if (err.code !== "ENOENT"
|
|
52
|
+
if (err.code !== "ENOENT" && !err.message.includes("ENOENT"))
|
|
53
|
+
console.error(err);
|
|
53
54
|
}),
|
|
54
55
|
fs.promises
|
|
55
56
|
.readFile(srcStylePath, "utf8")
|
|
@@ -57,7 +58,8 @@ export default class AssetManager {
|
|
|
57
58
|
srcStyles = content;
|
|
58
59
|
})
|
|
59
60
|
.catch((err) => {
|
|
60
|
-
if (err.code !== "ENOENT"
|
|
61
|
+
if (err.code !== "ENOENT" && !err.message.includes("ENOENT"))
|
|
62
|
+
console.error(err);
|
|
61
63
|
}),
|
|
62
64
|
]);
|
|
63
65
|
|
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -59,7 +59,7 @@ async function main() {
|
|
|
59
59
|
await fs.promises.access(destFile);
|
|
60
60
|
// If it exists, we do nothing to avoid overwriting user files.
|
|
61
61
|
} catch (error) {
|
|
62
|
-
if (error.code === "ENOENT") {
|
|
62
|
+
if (error.code === "ENOENT" || error.message.includes("ENOENT")) {
|
|
63
63
|
// File doesn't exist in the destination, so copy it.
|
|
64
64
|
try {
|
|
65
65
|
await fs.promises.copyFile(sourceFile, destFile);
|
package/public/styles.min.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
/* source-hash:
|
|
1
|
+
:root{--black:#111;--clearwhite:#fefefe;--white:#eee;--darkgray:rgba(54,54,54,.5);--text-primary:var(--black);--text-secondary:var(--clearwhite);--max-width:600px}body,html{margin:0;overflow-x:hidden}html{font-size:clamp(.85rem,1vw + .5rem,1.1rem)}body{background:var(--white_darker);color:var(--text-primary);font-family:Arial}nav{align-items:center;background:#ebebeb;box-sizing:border-box;display:flex;margin-top:10px;max-width:var(--max-width);padding:5px}#header{max-width:var(--max-width)}button,form input,form textarea{box-sizing:border-box;padding:5px 10px}button{padding:10px;width:-moz-fit-content;width:fit-content}img{max-width:100%}input,textarea{border:1px solid #ababab}input,input:focus,textarea,textarea:focus{box-shadow:6px 6px 1px 1px rgba(50,50,50,.2)}input:focus,textarea:focus{background-color:var(--clearwhite);border:2px solid #3b40c1;outline:none}.form_element{display:block;font-family:monospace;font-size:103%;margin-bottom:10px;padding:4px}.wide{width:100%}.password{width:250px}.new_title{height:35px;padding:10px}.new_content{height:300px;padding:10px;resize:none}#createNew{max-width:var(--max-width);width:100%}#search{border:1px solid var(--text-primary);box-shadow:none;font-size:1rem;margin-left:auto;padding:.4rem 1rem}hr{margin:40px 0}.articles,hr{max-width:var(--max-width)}.articles{border:0 solid #000;display:grid;gap:.25rem;grid-template-columns:1fr}.articles article{border:2px solid #a9a9a9;border-radius:4px;margin-bottom:10px;min-width:0;overflow-wrap:break-word;padding:.4rem}.articles article h2{color:#353535;margin-bottom:5px}.articles article .datetime{color:#757575;margin:0}.articles article p{margin-bottom:0;margin-top:10px}article a,article a:visited,h1{color:#696969}h2{border:0 solid #000;margin-top:0}nav a{color:#3b40c1;font-size:20px;text-decoration:underline}nav a:visited{color:#3b40c1;text-decoration-color:#3b40c1}.loginform{margin-left:25px}#wrapper{margin-left:0;max-width:1200px;padding:0 20px}#wrapper,.buttons{box-sizing:border-box;width:100%}.buttons{align-items:center;border:0 solid #000;display:flex;gap:5px;height:25px;list-style:none;margin:0 0 16px;padding:15px 15px 15px 0}.btn{border:none;border:1px solid var(--text-primary);border-radius:0;box-shadow:3px 2px 2px var(--darkgray);color:var(--text-primary);cursor:pointer;font-size:1rem;font-weight:500;padding:.4rem 1rem;text-decoration:none;width:-moz-fit-content;width:fit-content}.btn:hover{background-color:#fff;border:2px solid var(--black);color:#000}.light{background:var(--clearwhite);color:var(--black)}.light:hover{background:var(--black);color:var(--clearwhite)}.login{font-weight:600}.hide-image{display:none}.edit{background-color:blue}.delete,.edit{color:var(--clearwhite)}.delete{background-color:red}@media screen and (min-width:1000px){#wrapper,body{font-size:.75rem;margin:0 auto;max-width:1400px;padding:0 40px;width:90%}.articles article p,.form_element{font-size:105%}}
|
|
2
|
+
/* source-hash: 06ca4cd77b04644b694a191fdc98b7e2dcc42d331aa0770454ff3cbc98700962 */
|