added seed script + renamed table fields + added field

This commit is contained in:
daniel31x13
2023-12-22 13:13:43 -05:00
parent 385bdc2343
commit 98106b9f25
15 changed files with 957 additions and 370 deletions
+4 -3
View File
@@ -25,9 +25,10 @@ export default function NewLinkModal({ onClose }: Props) {
description: "",
type: "url",
tags: [],
screenshotPath: "",
pdfPath: "",
readabilityPath: "",
preview: "",
image: "",
pdf: "",
readable: "",
textContent: "",
collection: {
name: "",
@@ -70,12 +70,12 @@ export default function PreservedFormatsModal({ onClose, activeLink }: Props) {
const isReady = () => {
return (
collectionOwner.archiveAsScreenshot ===
(link && link.pdfPath && link.pdfPath !== "pending") &&
(link && link.pdf && link.pdf !== "pending") &&
collectionOwner.archiveAsPDF ===
(link && link.pdfPath && link.pdfPath !== "pending") &&
(link && link.pdf && link.pdf !== "pending") &&
link &&
link.readabilityPath &&
link.readabilityPath !== "pending"
link.readable &&
link.readable !== "pending"
);
};
@@ -107,7 +107,7 @@ export default function PreservedFormatsModal({ onClose, activeLink }: Props) {
clearInterval(interval);
}
};
}, [link?.screenshotPath, link?.pdfPath, link?.readabilityPath]);
}, [link?.image, link?.pdf, link?.readable]);
const updateArchive = async () => {
const load = toast.loading("Sending request...");
@@ -154,7 +154,7 @@ export default function PreservedFormatsModal({ onClose, activeLink }: Props) {
name={"Screenshot"}
icon={"bi-file-earmark-image"}
format={
link?.screenshotPath?.endsWith("png")
link?.image?.endsWith("png")
? ArchivedFormat.png
: ArchivedFormat.jpeg
}
+4 -3
View File
@@ -27,9 +27,10 @@ export default function UploadFileModal({ onClose }: Props) {
description: "",
type: "url",
tags: [],
screenshotPath: "",
pdfPath: "",
readabilityPath: "",
preview: "",
image: "",
pdf: "",
readable: "",
textContent: "",
collection: {
name: "",