redirecter for ao3 that adds opengraph metadata

remove a bunch of console logs

Changed files
-9
src
app
generator
works
[workId]
chapters
[chapterId]
lib
-3
next.config.mjs
··· 1 1 /** @type {import('next').NextConfig} */ 2 2 const nextConfig = { 3 3 /* config options here */ 4 - turbopack: { 5 - root: '/var/www/fixao3' 6 - } 7 4 }; 8 5 9 6 export default nextConfig;
-2
src/app/generator/page.js
··· 62 62 const imageBlob = await image.blob() 63 63 const reader = new FileReader() 64 64 reader.onloadend = () => { 65 - console.log(reader.result) 66 65 setImgData(reader.result) 67 66 } 68 67 return ··· 74 73 const reader = new FileReader() 75 74 reader.onloadend = () => { 76 75 setImgData(reader.result) 77 - console.log(imgData) 78 76 } 79 77 reader.readAsDataURL(imageBlob) 80 78 }
-1
src/app/works/[workId]/chapters/[chapterId]/page.js
··· 27 27 const title = `${work.title} by ${authorString}, Chapter ${work.chapterInfo.index}${work.chapterInfo.name ? ": "+work.chapterInfo.name : ''} - ${fandomString}` 28 28 const summary = work.chapterInfo && work.chapterInfo.summary ? work.chapterInfo.summary : parentWork.summary 29 29 const summaryDOM = new DOM(summary, {decodeEntities: true}); 30 - console.log(summary) 31 30 const description = summaryDOM.innerHTML.replace(/\<br(?: \/)?\>/g, "\n").replace( 32 31 /(<([^>]+)>)/ig, 33 32 "",
-3
src/lib/sanitizeData.js
··· 14 14 } 15 15 16 16 const getHighestRating = async (works, archive = null) => { 17 - console.log('get rating') 18 17 const ratings = await Promise.all(works.map(async (w) => { 19 18 const work = await getWork(w.id, archive) 20 19 return work.rating ··· 32 31 } 33 32 34 33 const getHighestWarning = async (works, archive = null) => { 35 - console.log('get warning') 36 34 const warnings = await Promise.all(works.map(async (w) => { 37 35 const work = await getWork(w.id) 38 36 return work.tags.warnings ··· 47 45 } 48 46 49 47 const getCategory = async (works, archive = null) => { 50 - console.log('get category') 51 48 const categories = await Promise.all(works.map(async (w) => { 52 49 const work = await getWork(w.id) 53 50 return work.category