Skip to content

Commit

Permalink
fix(home): fix fullpage donot work
Browse files Browse the repository at this point in the history
  • Loading branch information
hankliu62 committed Apr 7, 2024
1 parent aa8d68c commit 8c3e8c3
Show file tree
Hide file tree
Showing 14 changed files with 2,573 additions and 1,533 deletions.
5 changes: 1 addition & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ const nextConfig = {
unoptimized: true,
},
transpilePackages: ["antd"],
env: {
ROUTE_PREFIX: "",
},
// webpack: (config) => {
// config.plugins.push(new AutoBaseWebpackPlugin());
// return config;
Expand Down Expand Up @@ -50,7 +47,7 @@ if (isGithubActions) {
// 用于为静态资源(如图像、样式表、JavaScript 文件等)设置 URL 前缀
// 这在将应用部署到自定义域名或 CDN 上时特别有用,因为它允许您将静态资源存储在不同的位置
nextConfig.assetPrefix = `/${repo}/`;
// 用于为应用设置基础路径
// 用于为应用设置基础路径(Link组件中,类似 history 里面的basename,在路由跳转时自动加前缀)
// 这在将应用部署到子目录下时特别有用,因为它允许您指定应用所在的目录
nextConfig.basePath = `/${repo}`;
nextConfig.env.ROUTE_PREFIX = `/${repo}`;
Expand Down
77 changes: 38 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,66 +14,65 @@
"prepare": "husky install"
},
"dependencies": {
"@ant-design/cssinjs": "^1.10.1",
"@ant-design/icons": "^5.1.4",
"@fullpage/react-fullpage": "^0.1.40",
"@tailwindcss/forms": "^0.5.3",
"@types/node": "20.3.2",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"antd": "^5.6.3",
"@ant-design/cssinjs": "^1.19.1",
"@ant-design/icons": "^5.3.6",
"@tailwindcss/forms": "^0.5.7",
"@types/node": "20.12.5",
"@types/react": "18.2.74",
"@types/react-dom": "18.2.24",
"antd": "^5.16.1",
"aos": "^3.0.0-beta.6",
"autoprefixer": "10.4.14",
"classnames": "^2.3.2",
"eslint": "8.43.0",
"eslint-config-next": "13.4.7",
"autoprefixer": "10.4.19",
"classnames": "^2.5.1",
"eslint": "9.0.0",
"eslint-config-next": "14.1.4",
"eventemitter3": "^5.0.1",
"lodash": "^4.17.21",
"next": "13.4.7",
"postcss": "8.4.24",
"next": "14.1.4",
"postcss": "8.4.38",
"qrcode.react": "^3.1.0",
"rc-banner-anim": "^2.4.5",
"rc-queue-anim": "^2.0.0",
"rc-tween-one": "^3.0.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-fullpage": "^0.1.19",
"react-svg": "^16.1.17",
"sass": "^1.63.6",
"swiper": "^11.0.7",
"tailwindcss": "3.3.2",
"react-svg": "^16.1.34",
"sass": "^1.74.1",
"swiper": "^11.1.0",
"tailwindcss": "3.4.3",
"typed.js": "^2.1.0",
"typescript": "5.1.6"
"typescript": "5.4.4"
},
"devDependencies": {
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@tailwindcss/line-clamp": "^0.4.4",
"@testing-library/dom": "^9.3.1",
"@testing-library/dom": "^9.3.4",
"@types/aos": "^3.0.7",
"@types/lodash": "^4.14.195",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@types/lodash": "^4.17.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"autobase-webpack-plugin": "^0.0.5",
"cross-env": "^7.0.3",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-jest-dom": "^5.0.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^28.2.0",
"eslint-plugin-jest-dom": "^5.2.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-testing-library": "^5.11.0",
"eslint-plugin-unicorn": "^47.0.0",
"husky": "^8.0.3",
"eslint-plugin-simple-import-sort": "^12.0.0",
"eslint-plugin-testing-library": "^6.2.0",
"eslint-plugin-unicorn": "^52.0.0",
"husky": "^9.0.11",
"less": "^4.2.0",
"less-loader": "^12.2.0",
"lint-staged": "^13.2.3",
"lint-staged": "^15.2.2",
"next-with-less": "^3.0.1",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0",
"stylelint": "^15.9.0",
"stylelint-config-recess-order": "^4.2.0",
"stylelint-config-standard": "^33.0.0",
"stylelint-order": "^6.0.3"
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.13",
"stylelint": "^16.3.1",
"stylelint-config-recess-order": "^5.0.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-order": "^6.0.4"
},
"gitHooks": {
"pre-commit": "lint-staged"
Expand Down
Binary file modified src/app/favicon.ico
Binary file not shown.
5 changes: 5 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ import "./components.css";
// import "aos/dist/aos.css";
import { Inter } from "next/font/google";

import { getRoutePrefix } from "@/utils/route";

const inter = Inter({ subsets: ["latin"] });

export const metadata = {
icons: {
icon: `${getRoutePrefix()}/favicon.ico`,
},
title: "刘小聪 - Web前端工程师简历 | Front-end Web Developer",
description:
"刘小聪的Web前端工程师简历,精通前端,涉猎后端,对前端有着浓厚的兴趣;希望能够在前端这条路上一直走下去。",
Expand Down
Loading

0 comments on commit 8c3e8c3

Please sign in to comment.