Cleanup a lot of tab stops from 4 spaces to 2 and adjust other whitespace.

This commit is contained in:
David Ball 2024-06-24 01:00:18 -04:00
parent 6979c455ef
commit e0b93cf355
15 changed files with 314 additions and 347 deletions

View File

@ -38,5 +38,5 @@ app.listen(config.appHttpPort, () => {
console.log(`To access your app, you can use the 127.0.0.1 host, http://127.0.0.1:${config.appHttpPort}.`);
console.log(`To access your app, you can use the ::1 host, http://[::1]:${config.appHttpPort}.`);
console.log(`To access your app, you might can use the app host name, ${config.appHttpUrl}.`);
console.log(`This app is configured to use the web site URL, ${config.siteUrl}.`);
console.log(`This app is configured to use the web site URL for URL generation, as needed, ${config.siteUrl}. Certain site features won't work correctly unless this is on a publicly accessible URL.`);
});

View File

@ -37,9 +37,9 @@ export interface MetadataResource {
'pdf:docinfo:created': string
'pdf:annotationSubtypes': string
'pdf:containsDamagedFont': string
}
}
export interface ContentResource {
export interface ContentResource {
'pdf:unmappedUnicodeCharsPerPage': string[]
'pdf:PDFVersion': string
'xmp:CreatorTool': string
@ -78,4 +78,4 @@ export interface MetadataResource {
'pdf:docinfo:created': string
'pdf:annotationSubtypes': string
'pdf:containsDamagedFont': string
}
}

View File

@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<style>
body {
@ -23,7 +22,6 @@
display: flex;
flex-direction: column;
}
main,
aside,
section {
@ -32,29 +30,24 @@
align-items: center;
flex-direction: column;
}
main {
height: 100%;
}
aside {
background: #000;
flex-shrink: 1;
padding: 30px 20px;
}
aside p {
margin: 0;
color: #999999;
font-size: 14px;
line-height: 24px;
}
aside a {
color: #fff;
text-decoration: none;
}
section span {
font-size: 24px;
font-weight: 500;
@ -64,59 +57,49 @@
padding-bottom: 20px;
width: 100px;
}
section p {
font-size: 14px;
font-weight: 400;
}
section span+p {
margin: 20px 0 0 0;
}
@media (min-width: 768px) {
section {
height: 40px;
flex-direction: row;
}
section span,
section p {
height: 100%;
line-height: 40px;
}
section span {
border-bottom: 0;
border-right: 1px solid #EAEAEA;
padding: 0 20px 0 0;
width: auto;
}
section span+p {
margin: 0;
padding-left: 20px;
}
aside {
padding: 50px 0;
}
aside p {
max-width: 520px;
text-align: center;
}
}
</style>
</head>
<body>
</head>
<body>
<main>
<section>
<span><% if (typeof statusCode !== 'undefined') { %><%= statusCode %><% } %></span>
<p><% if (typeof message !== 'undefined') { %><%= message %><% } %></p>
</section>
</main>
</body>
</body>
</html>

View File

@ -4,18 +4,13 @@
<title><%= (typeof fm.title !== 'undefined') ? `${fm.title} - ${h.getSiteName()}` : h.getSiteName() %></title>
<%- include('./includes/common-head.ejs') %>
</head>
<body onload="initPage()">
<%- include('./includes/top-navbar.ejs') %>
<%- include('./includes/no-trash-svg.ejs') %>
<main class="container">
<header>
<%- include('./includes/breadcrumbs.ejs') %>
</header>
<% if (typeof content !== 'undefined') {%>
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg">
<div class="col-lg-12 p-3 p-lg-5 pt-lg-3">
@ -29,7 +24,6 @@
</div>
</div>
<% } %>
<ul id="files" class="list-group shadow-lg">
<% if (typeof files !== 'undefined') files.forEach(function(value, index) { %>
<li class="list-group-item list-group-item-action flex-column align-items-start">
@ -40,7 +34,6 @@
<% }) %>
</ul>
</main>
<%- include('./includes/bottom-navbar.ejs') %>
<%- include('./includes/bottom-scripts.ejs') %>
</body>

View File

@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<title>Search Error for <%- query %> - <%- h.getSiteName() %></title>
<%- include('./includes/common-head.ejs') %>
</head>
<body>
</head>
<body>
<%- include('./includes/top-navbar.ejs') %>
<%- include('./includes/no-trash-svg.ejs') %>
<main class="container">
@ -28,8 +28,7 @@
<% } %>
<% } %>
</div>
<%- include('./includes/bottom-navbar.ejs') %>
<%- include('./includes/bottom-scripts.ejs') %>
</body>
</body>
</html>

View File

@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<title>Search Results for <%- query %> - <%- h.getSiteName() %></title>
<%- include('./includes/common-head.ejs') %>
</head>
<body>
</head>
<body>
<%- include('./includes/top-navbar.ejs') %>
<%- include('./includes/no-trash-svg.ejs') %>
<main class="container">
@ -66,8 +66,7 @@
<p class="center">Page <%= page %> out of <%= totalPages %>. Displaying results <%= (page-1)*pageSize+1 %> through <%= Math.min(page*pageSize, totalResults) %> out of <%= totalResults %> total results.</p>
<% } %>
</main>
<%- include('./includes/bottom-navbar.ejs') %>
<%- include('./includes/bottom-scripts.ejs') %>
</body>
</body>
</html>

View File

@ -4,17 +4,13 @@
<title><%=h.getDirectoryTitle(directory)%></title>
<%- include('./includes/common-head.ejs') %>
</head>
<body onload="initPage()">
<%- include('./includes/top-navbar.ejs') %>
<%- include('./includes/no-trash-svg.ejs') %>
<main class="container">
<header>
<%- include('./includes/breadcrumbs.ejs') %>
</header>
<% if (typeof videoURL !== 'undefined') {%>
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg">
<div class="col-lg-12 p-3 p-lg-5 pt-lg-3">
@ -49,7 +45,6 @@
</div>
</div>
<% } %>
<% if (typeof subtitleVTT !== 'undefined') {%>
<div class="row p-4 pb-0 pe-lg-0 pt-lg-5 align-items-center rounded-3 border shadow-lg" style="max-height:65vh;overflow-y:scroll">
<div class="col-lg-12 p-3 p-lg-5 pt-lg-3">
@ -65,9 +60,7 @@
</div>
</div>
<% } %>
</main>
<%- include('./includes/bottom-navbar.ejs') %>
<%- include('./includes/bottom-scripts.ejs') %>
</body>