diff --git a/src/site/SW.yotsuba.Build/CatalogThreadHtml.tsx b/src/site/SW.yotsuba.Build/CatalogThreadHtml.tsx
index 43f5be7..cd59623 100644
--- a/src/site/SW.yotsuba.Build/CatalogThreadHtml.tsx
+++ b/src/site/SW.yotsuba.Build/CatalogThreadHtml.tsx
@@ -1,25 +1,63 @@
-import h, { hFragment, EscapedHtml } from "../../globals/jsx";
+import h, { hFragment, EscapedHtml } from '../../globals/jsx'
export default function generateCatalogThreadHtml(
- thread, src, imgClass, data, postCount, fileCount, pageCount, staticPath, gifIcon,
+ thread,
+ src,
+ imgClass,
+ data,
+ postCount,
+ fileCount,
+ pageCount,
+ staticPath,
+ gifIcon,
): EscapedHtml {
- return <>
-
- {imgClass ?
-
:
-
- }
-
-
+
{'File: '}
-
+
{file.isSpoiler ? 'Spoiler Image' : shortFilename}
- {` (${file.size}, ${file.dimensions || "PDF"})`}
+ {` (${file.size}, ${file.dimensions || 'PDF'})`}
,
-
- );
+ ,
+ )
}
- return
{...fileContent}
;
+ return (
+
+ {...fileContent}
+
+ )
} else if (o.fileDeleted) {
- return
-
-
-
-
;
+ return (
+
+
+
+
+
+ )
}
- return { innerHTML: '', [isEscaped]: true };
+ return { innerHTML: '', [isEscaped]: true }
}
diff --git a/src/site/SW.yotsuba.Build/PostInfoHtml.tsx b/src/site/SW.yotsuba.Build/PostInfoHtml.tsx
index e226fb2..7eaf061 100644
--- a/src/site/SW.yotsuba.Build/PostInfoHtml.tsx
+++ b/src/site/SW.yotsuba.Build/PostInfoHtml.tsx
@@ -1,24 +1,62 @@
-import { g } from "../../globals/globals";
-import h, { EscapedHtml } from "../../globals/jsx";
+import { g } from '../../globals/globals'
+import h, { EscapedHtml } from '../../globals/jsx'
export default function generatePostInfoHtml(
- ID, o, subject, capcode, email, name, tripcode, pass, capcodeLC, capcodePlural, staticPath, gifIcon,
- capcodeDescription, uniqueID, flag, flagCode, flagCodeTroll, dateUTC, dateText, postLink, quoteLink, boardID,
+ ID,
+ o,
+ subject,
+ capcode,
+ email,
+ name,
+ tripcode,
+ pass,
+ capcodeLC,
+ capcodePlural,
+ staticPath,
+ gifIcon,
+ capcodeDescription,
+ uniqueID,
+ flag,
+ flagCode,
+ flagCodeTroll,
+ dateUTC,
+ dateText,
+ postLink,
+ quoteLink,
+ boardID,
threadID,
): EscapedHtml {
- const nameHtml: (EscapedHtml | string)[] = [
{name}];
- if (tripcode) nameHtml.push(' ',
{tripcode});
- if (pass) nameHtml.push(' ',
)
+ const nameHtml: (EscapedHtml | string)[] = [
+
{name},
+ ]
+ if (tripcode) nameHtml.push(' ',
{tripcode})
+ if (pass)
+ nameHtml.push(
+ ' ',
+
,
+ )
if (capcode) {
nameHtml.push(
' ',
-
## {capcode}
+
+ ## {capcode}
+ ,
)
}
- const nameBlockContent: (EscapedHtml | string)[] =
- email ? [' ',
{...nameHtml}] : nameHtml;
- if (!(boardID === "f" && !o.isReply || capcodeDescription)) nameBlockContent.push(' ');
+ const nameBlockContent: (EscapedHtml | string)[] = email
+ ? [
+ ' ',
+
+ {...nameHtml}
+ ,
+ ]
+ : nameHtml
+ if (!((boardID === 'f' && !o.isReply) || capcodeDescription))
+ nameBlockContent.push(' ')
if (capcodeDescription) {
nameBlockContent.push(
![{`This {`${capcode}]()
- );
+ />,
+ )
if (uniqueID && !capcode) {
nameBlockContent.push(
- (ID: ${uniqueID})
-
+ (ID:{' '}
+
+ ${uniqueID}
+
+ )
+ ,
)
}
}
- if (flagCode) nameBlockContent.push(' ',
);
- if (flagCodeTroll) nameBlockContent.push(' ',
);
+ if (flagCode)
+ nameBlockContent.push(
+ ' ',
+
,
+ )
+ if (flagCodeTroll)
+ nameBlockContent.push(
+ ' ',
+
,
+ )
const postNumContent: (EscapedHtml | string)[] = [
-
No.,
-
{ID},
- ];
+
+ No.
+ ,
+
+ {ID}
+ ,
+ ]
if (o.isSticky) {
- const src = `${staticPath}sticky${gifIcon}`;
- postNumContent.push(' ');
- if (boardID === "f") {
- postNumContent.push(

);
+ const src = `${staticPath}sticky${gifIcon}`
+ postNumContent.push(' ')
+ if (boardID === 'f') {
+ postNumContent.push(
+

,
+ )
} else {
- postNumContent.push(

)
+ postNumContent.push(
+

,
+ )
}
}
if (o.isClosed && !o.isArchived) {
- postNumContent.push(' ');
+ postNumContent.push(' ')
const src = `${staticPath}closed${gifIcon}`
- if (boardID === "f") {
- postNumContent.push(

)
+ if (boardID === 'f') {
+ postNumContent.push(
+

,
+ )
} else {
- postNumContent.push(

)
+ postNumContent.push(
+

,
+ )
}
}
if (o.isArchived) {
postNumContent.push(
' ',
-

+

,
)
}
- if (!o.isReply && g.VIEW === "index") {
+ if (!o.isReply && g.VIEW === 'index') {
// \u00A0 is nbsp
postNumContent.push(' \u00A0 ')
- postNumContent.push(
[Reply])
+ postNumContent.push(
+
+ [
+
+ Reply
+
+ ]
+ ,
+ )
}
- return
-
- {' '}
- {...((!o.isReply || boardID === "f" || subject) ? [{subject}, ' '] : [])}
-
- {...nameBlockContent}
-
- {' '}
- {dateText}
- {' '}
-
- {...postNumContent}
-
-
;
+ return (
+
+ {' '}
+ {...!o.isReply || boardID === 'f' || subject
+ ? [{subject}, ' ']
+ : []}
+ {...nameBlockContent}{' '}
+
+ {dateText}
+ {' '}
+
+ {...postNumContent}
+
+
+ )
}