diff --git a/components/DebugPanel.js b/components/DebugPanel.js index 053962b3..026b5ee0 100644 --- a/components/DebugPanel.js +++ b/components/DebugPanel.js @@ -32,7 +32,6 @@ const DebugPanel = () => { } function handleUpdateDebugTheme(newTheme) { - console.log('切换主题', newTheme) const query = { ...router.query, theme: newTheme } router.push({ pathname: router.pathname, query }) } diff --git a/components/Gitalk.js b/components/Gitalk.js index 166eb8c7..4df0c65d 100644 --- a/components/Gitalk.js +++ b/components/Gitalk.js @@ -16,10 +16,8 @@ const Gitalk = ({ frontMatter }) => { // distractionFreeMode: JSON.parse(BLOG.COMMENT_GITALK_DISTRACTION_FREE_MODE) // }} /> const loadGitalk = async() => { - const css = await loadExternalResource(BLOG.COMMENT_GITALK_CSS_CDN_URL, 'css') - const js = await loadExternalResource(BLOG.COMMENT_GITALK_JS_CDN_URL, 'js') - - console.log('gitalk 加载成功', css, js) + await loadExternalResource(BLOG.COMMENT_GITALK_CSS_CDN_URL, 'css') + await loadExternalResource(BLOG.COMMENT_GITALK_JS_CDN_URL, 'js') const Gitalk = window.Gitalk const gitalk = new Gitalk({ diff --git a/components/GoogleAdsense.js b/components/GoogleAdsense.js index 9cdaa406..22fca879 100644 --- a/components/GoogleAdsense.js +++ b/components/GoogleAdsense.js @@ -17,7 +17,6 @@ export default function GoogleAdsense() { setTimeout(() => { const ads = document.getElementsByClassName('adsbygoogle') const adsbygoogle = window.adsbygoogle - console.log('google-ads', adsbygoogle) if (ads.length > 0) { for (let i = 0; i <= ads.length; i++) { try { diff --git a/components/PrismMac.js b/components/PrismMac.js index b37ba503..172c6ceb 100644 --- a/components/PrismMac.js +++ b/components/PrismMac.js @@ -140,8 +140,8 @@ const renderMermaid = async() => { } if (needLoad) { loadExternalResource(BLOG.MERMAID_CDN, 'js').then(url => { - // console.log('mermaid加载成功', url, mermaid) const mermaid = window.mermaid + console.log('mermaid加载成功', url, mermaid) mermaid.contentLoaded() }) } @@ -216,7 +216,6 @@ const fixCodeLineStyle = () => { setTimeout(() => { const preCodes = document.querySelectorAll('pre.notion-code') for (const preCode of preCodes) { - // console.log('code', preCode) Prism.plugins.lineNumbers.resize(preCode) } }, 10) diff --git a/components/TwikooCommentCounter.js b/components/TwikooCommentCounter.js index b3b54ca3..87c16aaf 100644 --- a/components/TwikooCommentCounter.js +++ b/components/TwikooCommentCounter.js @@ -27,7 +27,6 @@ const TwikooCommentCounter = (props) => { urls: posts?.map(post => post.slug), // 不包含协议、域名、参数的文章路径列表,必传参数 includeReply: true // 评论数是否包括回复,默认:false }).then(function (res) { - // console.log('查询', res) commentsData = res updateCommentCount() }).catch(function (err) { diff --git a/components/ValineComponent.js b/components/ValineComponent.js index 359cff6d..3a7464b3 100644 --- a/components/ValineComponent.js +++ b/components/ValineComponent.js @@ -5,8 +5,8 @@ import { useEffect } from 'react' const ValineComponent = ({ path }) => { const loadValine = async () => { try { - const url = await loadExternalResource(BLOG.COMMENT_VALINE_CDN, 'js') - console.log('valine 加载成功', url) + await loadExternalResource(BLOG.COMMENT_VALINE_CDN, 'js') + // console.log('valine 加载成功', url) const Valine = window.Valine // eslint-disable-next-line no-unused-vars const valine = new Valine({ @@ -21,7 +21,6 @@ const ValineComponent = ({ path }) => { serverURLs: BLOG.COMMENT_VALINE_SERVER_URLS, visitor: true }) - console.log('初始化valine成功') } catch (error) { console.error('twikoo 加载失败', error) } diff --git a/lib/global.js b/lib/global.js index 0aba42d0..04d0176e 100644 --- a/lib/global.js +++ b/lib/global.js @@ -15,7 +15,6 @@ const GlobalContext = createContext() * @constructor */ export function GlobalContextProvider(props) { - console.log('global', props) const { children, siteInfo, categoryOptions, tagOptions } = props const router = useRouter() const [lang, updateLang] = useState(BLOG.LANG) // 默认语言 diff --git a/themes/medium/components/RevolverMaps.js b/themes/medium/components/RevolverMaps.js index d839d85d..a65fc4cf 100644 --- a/themes/medium/components/RevolverMaps.js +++ b/themes/medium/components/RevolverMaps.js @@ -16,7 +16,7 @@ function initRevolverMaps () { Promise.all([ loadExternalResource('https://rf.revolvermaps.com/0/0/8.js?i=5jnp1havmh9&m=0&c=ff0000&cr1=ffffff&f=arial&l=33') ]).then(() => { - console.log('地图加载完成') + // console.log('地图加载完成') }) } }