This commit is contained in:
parent
f6699095d3
commit
bcf7f109df
|
@ -457,40 +457,57 @@ await commander.program
|
||||||
response: express.Response<HTML, ResponseLocalsBase>;
|
response: express.Response<HTML, ResponseLocalsBase>;
|
||||||
head: HTML;
|
head: HTML;
|
||||||
body: HTML;
|
body: HTML;
|
||||||
}) => html`
|
}) => {
|
||||||
<!DOCTYPE html>
|
const layoutBody = html`
|
||||||
<html lang="en">
|
<body
|
||||||
<head>
|
css="${response.locals.css(css`
|
||||||
<meta name="version" content="${application.version}" />
|
background-color: var(--color--cyan--50);
|
||||||
|
color: var(--color--cyan--900);
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
background-color: var(--color--cyan--900);
|
||||||
|
color: var(--color--cyan--50);
|
||||||
|
}
|
||||||
|
`)}"
|
||||||
|
>
|
||||||
|
$${body}
|
||||||
|
</body>
|
||||||
|
`;
|
||||||
|
|
||||||
<meta
|
return html`
|
||||||
name="description"
|
<!DOCTYPE html>
|
||||||
content="Convert email newsletters into Atom feeds"
|
<html lang="en">
|
||||||
/>
|
<head>
|
||||||
|
<meta name="version" content="${application.version}" />
|
||||||
|
|
||||||
<meta
|
<meta
|
||||||
name="viewport"
|
name="description"
|
||||||
content="width=device-width, initial-scale=1, maximum-scale=1"
|
content="Convert email newsletters into Atom feeds"
|
||||||
/>
|
/>
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="https://${application.configuration.hostname}/${application
|
|
||||||
.static["index.css"]}"
|
|
||||||
/>
|
|
||||||
$${response.locals.css.toString()}
|
|
||||||
|
|
||||||
<script
|
<meta
|
||||||
src="https://${application.configuration.hostname}/${application
|
name="viewport"
|
||||||
.static["index.mjs"]}"
|
content="width=device-width, initial-scale=1, maximum-scale=1"
|
||||||
defer
|
/>
|
||||||
></script>
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="https://${application.configuration
|
||||||
|
.hostname}/${application.static["index.css"]}"
|
||||||
|
/>
|
||||||
|
$${response.locals.css.toString()}
|
||||||
|
|
||||||
$${head}
|
<script
|
||||||
</head>
|
src="https://${application.configuration.hostname}/${application
|
||||||
|
.static["index.mjs"]}"
|
||||||
|
defer
|
||||||
|
></script>
|
||||||
|
|
||||||
$${body} $${response.locals.javascript.toString()}
|
$${head}
|
||||||
</html>
|
</head>
|
||||||
`;
|
|
||||||
|
$${layoutBody} $${response.locals.javascript.toString()}
|
||||||
|
</html>
|
||||||
|
`;
|
||||||
|
};
|
||||||
|
|
||||||
application.web.get<{}, any, {}, {}, ResponseLocalsBase>(
|
application.web.get<{}, any, {}, {}, ResponseLocalsBase>(
|
||||||
"/",
|
"/",
|
||||||
|
|
Loading…
Reference in New Issue