build React.

This commit is contained in:
tangly1024.com
2023-11-06 14:20:43 +08:00
parent 0a6c59ed7b
commit ecf7825dad
117 changed files with 121 additions and 206 deletions

View File

@@ -1,4 +1,3 @@
import React from 'react'
import Link from 'next/link'
import BLOG from '@/blog.config'
import CONFIG from '../config'

View File

@@ -2,7 +2,7 @@ import BLOG from '@/blog.config'
import BlogPostCard from './BlogPostCard'
import BlogPostListEmpty from './BlogPostListEmpty'
import { useGlobal } from '@/lib/global'
import React, { useEffect, useRef, useState } from 'react'
import { useEffect, useRef, useState } from 'react'
import CONFIG from '../config'
import { getListByPage } from '@/lib/utils'

View File

@@ -1,5 +1,4 @@
import Link from 'next/link'
import React from 'react'
const CategoryGroup = ({ currentCategory, categories }) => {
if (!categories) {

View File

@@ -1,4 +1,3 @@
import React from 'react'
import BLOG from '@/blog.config'
import SocialButton from './SocialButton'
import { siteConfig } from '@/lib/config'

View File

@@ -1,9 +1,9 @@
import React from 'react'
import BLOG from '@/blog.config'
import Card from '@/themes/hexo/components/Card'
import { useGlobal } from '@/lib/global'
import Link from 'next/link'
import { RecentComments } from '@waline/client'
import { useEffect, useState } from 'react'
/**
* @see https://waline.js.org/guide/get-started.html
@@ -11,10 +11,10 @@ import { RecentComments } from '@waline/client'
* @returns
*/
const HexoRecentComments = (props) => {
const [comments, updateComments] = React.useState([])
const [comments, updateComments] = useState([])
const { locale } = useGlobal()
const [onLoading, changeLoading] = React.useState(true)
React.useEffect(() => {
const [onLoading, changeLoading] = useState(true)
useEffect(() => {
RecentComments({
serverURL: BLOG.COMMENT_WALINE_SERVER_URL,
count: 5

View File

@@ -1,4 +1,3 @@
import React from 'react'
import CONFIG from '../config'
/**

View File

@@ -1,5 +1,4 @@
import { useGlobal } from '@/lib/global'
import React from 'react'
import CONFIG from '../config'
/**

View File

@@ -1,4 +1,3 @@
import React from 'react'
import Link from 'next/link'
import { useGlobal } from '@/lib/global'
import CONFIG from '../config'

View File

@@ -1,5 +1,3 @@
import React from 'react'
import Link from 'next/link'
/**

View File

@@ -1,5 +1,4 @@
import { useGlobal } from '@/lib/global'
import React from 'react'
import CONFIG from '../config'
/**