diff --git a/components/ErrorBoundary.jsx b/components/ErrorBoundary.jsx index d022e162..eec4e2be 100644 --- a/components/ErrorBoundary.jsx +++ b/components/ErrorBoundary.jsx @@ -14,7 +14,7 @@ class ErrorBoundary extends React.Component { } componentDidCatch(error, errorInfo) { // You can use your own error logging service here - console.log({ error, errorInfo }); + // console.log({ error, errorInfo }); } render() { // Check if the error is thrown diff --git a/components/Step.jsx b/components/Step.jsx index ce158f84..4bebfb97 100644 --- a/components/Step.jsx +++ b/components/Step.jsx @@ -13,7 +13,7 @@ export const Step = ({ children, order, duration = 0.5 }) => { addStep(order); } // return () => { - // console.log("removing step"); + // // console.log("removing step"); // removeStep(id.current); // }; }, [order, addStep, removeStep]); diff --git a/layouts/SlidePage.jsx b/layouts/SlidePage.jsx index ea8f6899..140dc553 100644 --- a/layouts/SlidePage.jsx +++ b/layouts/SlidePage.jsx @@ -221,7 +221,7 @@ function SlidePage({ children, next }) { setSlide(slideCount); } - console.log('generatedSlides[currentSlide]: ', generatedSlides[currentSlide]) + // console.log('generatedSlides[currentSlide]: ', generatedSlides[currentSlide]) return {generatedSlides[currentSlide]}; }; diff --git a/pages/api/etherpad/pad.js b/pages/api/etherpad/pad.js index abdaa270..e64e0c78 100644 --- a/pages/api/etherpad/pad.js +++ b/pages/api/etherpad/pad.js @@ -17,7 +17,7 @@ export default async function handler(req, res) { pad = resp.data.data?.text.text res.status(200).json({ content: pad }) } catch (error) { - console.log(error) + // console.log(error) res.status(500).json({error: 'error fetching pad: ' + error}) } } \ No newline at end of file diff --git a/pages/api/files/all-files.js b/pages/api/files/all-files.js index b4ac166b..bfd89516 100644 --- a/pages/api/files/all-files.js +++ b/pages/api/files/all-files.js @@ -8,14 +8,14 @@ export default async function handler(req, res) { glob(targetDir + '/**/*.md*', (err, files) => { if (err) { - console.log('Error', err) + // console.log('Error', err) } else { - console.log(files) + // console.log(files) res.status(200).json({ files: files, }) } }) } catch (error) { - console.log(error) + // console.log(error) } }; \ No newline at end of file diff --git a/pages/editor/index.js b/pages/editor/index.js index 3cd76864..ad609532 100644 --- a/pages/editor/index.js +++ b/pages/editor/index.js @@ -89,7 +89,7 @@ export default function Home() { // console.log('data : ', data ) }) .catch(error => { - console.log(error) + // console.log(error) }) .finally(() => { setTimeout(() => setRefreshToken(Math.random()), 5000); @@ -241,7 +241,7 @@ export default function Home() { // // console.log('data : ', data ) // }) // .catch(error => { -// console.log(error) +// // console.log(error) // }) // .finally(() => { // setTimeout(() => setRefreshToken(Math.random()), 5000); diff --git a/pages/index.js b/pages/index.js index 44ad6425..e30d2e8e 100644 --- a/pages/index.js +++ b/pages/index.js @@ -82,7 +82,7 @@ export default function Home() { setPadList(data.pads) }) .catch(error => { - console.log(error) + // console.log(error) }) .finally(() => { setTimeout(() => setRefreshToken(Math.random()), 5000); diff --git a/pages/output/[...parms].jsx b/pages/output/[...parms].jsx index f33b77f6..39386180 100644 --- a/pages/output/[...parms].jsx +++ b/pages/output/[...parms].jsx @@ -62,8 +62,8 @@ function useMdx(defaults) { }) ).default } catch (error) { - console.log('output:evalutate:Error: ', error) - console.log('output:evalutate:Error/Content: ', file) + // console.log('output:evalutate:Error: ', error) + // console.log('output:evalutate:Error/Content: ', file) const message = error instanceof VFileMessage ? error : new VFileMessage(error) @@ -73,7 +73,7 @@ function useMdx(defaults) { message.fatal = true } - console.log('output:evalutate:Success/Content: ', file) + // console.log('output:evalutate:Success/Content: ', file) setState({ ...config, file }) }, { leading: true, trailing: true, wait: 0 } @@ -140,7 +140,7 @@ function Page() { }) const mdxContent = (format, mdx, pageParms) => { - console.log('pageParms: ', pageParms) + // console.log('pageParms: ', pageParms) if (pageParms && pageParms.parms) { delete pageParms.parms }; const { content, data } = matter(mdx); let frontmatter = { ...data, ...pageParms }; @@ -167,26 +167,26 @@ function Page() { .then((res) => res.json()) .then(data => { if (data.content) { - console.log('/output/[...params].jsx:useEffect:router.query: ', router.query) + // console.log('/output/[...params].jsx:useEffect:router.query: ', router.query) - console.log('/output/[...params].jsx:useEffect:content: ', mdxContent(format, data.content, router.query)) + // console.log('/output/[...params].jsx:useEffect:content: ', mdxContent(format, data.content, router.query)) setConfig({ ...state, value: String(mdxContent(format, data.content, router.query)) }) } else if (error) { - console.log('output:error: ', error) + // console.log('output:error: ', error) } else { - console.log('output:error: unknown error') + // console.log('output:error: unknown error') } }) .catch(error => { - console.log(error) + // console.log(error) return { fileData: null, error: error } }) .finally(() => { - console.log('no timeout') + // console.log('no timeout') }); } else { - console.log('output:error: no source defined') + // console.log('output:error: no source defined') } } @@ -197,7 +197,7 @@ function Page() { .then(data => { // console.log('data.rev : ', data.rev , 'rev : ', rev) if (data.rev && data.rev > rev) { - console.log('new revision :', data.rev) + // console.log('new revision :', data.rev) const newrev = data.rev fetch(`/api/etherpad/pad?pad=${location}&rev=${newrev}`) .then((res) => res.json()) @@ -208,13 +208,13 @@ function Page() { } }) .catch(error => { - console.log(error) + // console.log(error) }) } }) .catch(error => { - console.log(error) + // console.log(error) }) .finally(() => { setTimeout(() => setRefreshToken(Math.random()), 5000); @@ -233,13 +233,13 @@ function Page() { try { return state.file.result() } catch (error) { - console.log('/output:Preview:useCallback:Error: ', error) + // console.log('/output:Preview:useCallback:Error: ', error) return } }, [state]) if (format === 'doc') { - if (state.file && state.file.result) { console.log('/output:PrintView:file: ', state.file.result) } + if (state.file && state.file.result) { // console.log('/output:PrintView:file: ', state.file.result) } return ( {state.file && state.file.result ? () : null} @@ -247,7 +247,7 @@ function Page() { ) } else { - if (state.file && state.file.result) { console.log('/output:DefaultView:file: ', state.file.result) } + if (state.file && state.file.result) { // console.log('/output:DefaultView:file: ', state.file.result) } return ( {state.file && state.file.result ? () : null} @@ -260,7 +260,7 @@ function Page() { // PDF Print View component function PrintView({ children }) { - console.log('/output:PrintView:children: ', children); + // console.log('/output:PrintView:children: ', children); const mdxContainer = useRef(null); const previewContainer = useRef(null); @@ -276,8 +276,8 @@ function PrintView({ children }) { previewContainer.current ) .then((flow) => { - console.log('====flow====') - console.log(flow) + // console.log('====flow====') + // console.log(flow) }); return () => { document.head @@ -306,7 +306,7 @@ function PrintView({ children }) { // Normal View component function DefaultView({ children }) { - console.log('DefaultView:children: ', children) + // console.log('DefaultView:children: ', children) return (