prettier
This commit is contained in:
@@ -2,7 +2,7 @@ import * as commonmark from './commonmark.min.js';
|
||||
|
||||
async function query(sql, args) {
|
||||
let result = [];
|
||||
await ssb.sqlAsync(sql, args, function(row) {
|
||||
await ssb.sqlAsync(sql, args, function (row) {
|
||||
result.push(row);
|
||||
});
|
||||
return result;
|
||||
@@ -156,8 +156,9 @@ async function main() {
|
||||
<link rel="stylesheet" href="w3.css">
|
||||
</head>
|
||||
<body class="w3-grid" style="background-color: #fff; gap:8px;grid-template-columns:repeat(auto-fit, minmax(4in,1fr))">
|
||||
${
|
||||
data.map(x => `
|
||||
${data
|
||||
.map(
|
||||
(x) => `
|
||||
<div class="w3-card-4">
|
||||
<header class="w3-container w3-center">
|
||||
<h1>${markdown(x.title)}</h1>
|
||||
@@ -169,11 +170,12 @@ async function main() {
|
||||
<p>${markdown(x.description)}</p>
|
||||
</div>
|
||||
</div>
|
||||
`).join('\n')
|
||||
}
|
||||
`
|
||||
)
|
||||
.join('\n')}
|
||||
</body>
|
||||
</html>
|
||||
`);
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<body>
|
||||
${BODY}
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user