diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index d1a2d087..9de0004e 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -11,33 +11,16 @@ jobs:
steps:
- uses: actions/checkout@v3
- - name: Setup Node
- uses: actions/setup-node@v3
- with:
- node-version: 14
-
- - name: Get yarn cache
- id: yarn-cache
- run: echo "::set-output name=dir::$(yarn cache dir)"
-
- - name: Cache dependencies
- uses: actions/cache@v3
- with:
- path: ${{ steps.yarn-cache.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('cnwebsite/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
-
- name: Build
run: |
- cd site && yarn && yarn build && cd -
- mv site/public ./
- cp CNAME public/
- mv agreement public/agreement
- cp .nojekyll public/
+ cd site && pnpm i && pnpm build && cd -
+ mv site/out ./
+ cp CNAME out/
+ mv agreement out/agreement
+ cp .nojekyll out/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: ./public
+ publish_dir: ./out
diff --git a/.gitignore b/.gitignore
index ced25051..693a3448 100644
--- a/.gitignore
+++ b/.gitignore
@@ -45,6 +45,6 @@ config/components/package.json
# gatsby files
.cache/
-public
+# public
false
.eslintcache
diff --git a/site/.editorconfig b/site/.editorconfig
deleted file mode 100644
index 7e3649ac..00000000
--- a/site/.editorconfig
+++ /dev/null
@@ -1,16 +0,0 @@
-# http://editorconfig.org
-root = true
-
-[*]
-indent_style = space
-indent_size = 2
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[*.md]
-trim_trailing_whitespace = false
-
-[Makefile]
-indent_style = tab
diff --git a/site/.eslintignore b/site/.eslintignore
deleted file mode 100644
index 31a81298..00000000
--- a/site/.eslintignore
+++ /dev/null
@@ -1,10 +0,0 @@
-docs/
-webpack.config.js
-node_modules/
-_site
-_scaffold_site
-scaffold
-site
-config/components/es
-config/components/lib
-config/components/dist
diff --git a/site/.eslintrc.js b/site/.eslintrc.js
deleted file mode 100644
index 4594b11a..00000000
--- a/site/.eslintrc.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- extends: [require.resolve('@umijs/fabric/dist/eslint')],
-};
diff --git a/site/.eslintrc.json b/site/.eslintrc.json
new file mode 100644
index 00000000..bffb357a
--- /dev/null
+++ b/site/.eslintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "next/core-web-vitals"
+}
diff --git a/site/.gitignore b/site/.gitignore
new file mode 100644
index 00000000..8f322f0d
--- /dev/null
+++ b/site/.gitignore
@@ -0,0 +1,35 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# next.js
+/.next/
+/out/
+
+# production
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# local env files
+.env*.local
+
+# vercel
+.vercel
+
+# typescript
+*.tsbuildinfo
+next-env.d.ts
diff --git a/site/.prettierignore b/site/.prettierignore
deleted file mode 100644
index 8c998b20..00000000
--- a/site/.prettierignore
+++ /dev/null
@@ -1,5 +0,0 @@
-**/*.svg
-package.json
-.umi
-.umi-production
-.cache
\ No newline at end of file
diff --git a/site/.prettierrc b/site/.prettierrc
deleted file mode 100644
index 84d393d1..00000000
--- a/site/.prettierrc
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "singleQuote": true,
- "trailingComma": "all",
- "printWidth": 100,
- "proseWrap": "never",
- "overrides": [
- {
- "files": ".prettierrc",
- "options": {
- "parser": "json"
- }
- }
- ]
-}
diff --git a/site/.stylelintrc.js b/site/.stylelintrc.js
deleted file mode 100644
index c2030787..00000000
--- a/site/.stylelintrc.js
+++ /dev/null
@@ -1,5 +0,0 @@
-const fabric = require('@umijs/fabric');
-
-module.exports = {
- ...fabric.stylelint,
-};
diff --git a/site/README.md b/site/README.md
new file mode 100644
index 00000000..c4033664
--- /dev/null
+++ b/site/README.md
@@ -0,0 +1,36 @@
+This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
+
+## Getting Started
+
+First, run the development server:
+
+```bash
+npm run dev
+# or
+yarn dev
+# or
+pnpm dev
+# or
+bun dev
+```
+
+Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
+
+You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
+
+This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
+
+## Learn More
+
+To learn more about Next.js, take a look at the following resources:
+
+- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
+- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
+
+You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
+
+## Deploy on Vercel
+
+The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
+
+Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
diff --git a/site/_publishflow.md b/site/_publishflow.md
deleted file mode 100644
index e26e10aa..00000000
--- a/site/_publishflow.md
+++ /dev/null
@@ -1,22 +0,0 @@
-```mermaid
-flowchart TD
- codebase["🖥️ 项目代码库"]
- subgraph 发布原生基准版本
- tagNativeVersion["🏷️ (在 git 上)标记原生版本号"]
- newNativeVersion["🗂️ 新的原生基准版本"]
- nativePackage["📦 原生完整包(apk或ipa文件)"]
- tagNativeVersion--"🔨 编译"-->nativePackage
- nativePackage--"⬆️ 使用
pushy uploadApk/uploadIpa
命令上传"-->newNativeVersion
- end
- subgraph 发布热更新版本
- tagBundleVersion["🏷️ (在 git 上)标记热更新版本号"]
- bundlePackage["🎁 js代码与资源包(ppk文件)"]
- tagBundleVersion--"🔨 使用
pushy bundle
命令生成并上传"-->bundlePackage
- someNativeVersions["🗂️ 一个或多个原生基准版本"]
- bundlePackage--"🖇️ 绑定"-->someNativeVersions
- end
- user["👨👩👧👦 安装有对应原生基准版本的用户"]
- codebase--"✏️ 改动js代码,
或添加、更新js组件,
或添加、更新js代码中引用的图片等资源"-->发布热更新版本
- codebase--"🖊️ 改动原生代码、设置,
或添加、更新原生组件,
或添加、更新原生代码中引用的图片等资源"-->发布原生基准版本
- 发布热更新版本--"📲 推送增量热更新(diff文件)"-->user
-```
diff --git a/site/src/components/home/Banner.jsx b/site/components/home/Banner.jsx
similarity index 70%
rename from site/src/components/home/Banner.jsx
rename to site/components/home/Banner.jsx
index ae07b8e7..53f34d72 100644
--- a/site/src/components/home/Banner.jsx
+++ b/site/components/home/Banner.jsx
@@ -1,12 +1,13 @@
-import React from 'react';
-import GitHubButton from 'react-github-button';
+import GitHubButton from "react-github-button";
// import QueueAnim from 'rc-queue-anim';
// import TweenOne from 'rc-tween-one';
-import { Button } from 'antd';
-import { Link } from 'gatsby';
+import { Button } from "antd";
+import Link from "next/link";
+
// import BannerSVGAnim from './BannerSVGAnim';
-import logo from '../../images/logo.svg';
-import hero from '../../images/home_hero.svg';
+import logo from "../../public/images/logo.svg";
+import hero from "../../public/images/home_hero.svg";
+import Image from "next/image";
function Banner(props) {
const { isMobile } = props;
@@ -19,16 +20,17 @@ function Banner(props) {
)} */}
极速热更新框架 for React Native
- 高速节点勤分发 山河浩广若比邻
+ 高速节点勤分发 山河浩广若比邻
+
增量算法尽优化 字节四两拨千斤
React Native中文网 © {new Date().getFullYear()} 武汉青罗网络科技有限公司
++ React Native中文网 © {new Date().getFullYear()}{" "} + 武汉青罗网络科技有限公司 +
鄂ICP备20002031号-3
diff --git a/site/src/components/layout/Header.tsx b/site/components/layout/Header.tsx
similarity index 52%
rename from site/src/components/layout/Header.tsx
rename to site/components/layout/Header.tsx
index f1a7a2b6..c44708e9 100644
--- a/site/src/components/layout/Header.tsx
+++ b/site/components/layout/Header.tsx
@@ -1,38 +1,26 @@
-import React from 'react';
-import { Link } from 'gatsby';
-import { MenuOutlined } from '@ant-design/icons';
-import { Row, Col, Menu, Button, Popover } from 'antd';
-import logo from '../../images/logo.svg';
+// import React from 'react';
+// import { Link } from 'gatsby';
+import Link from "next/link";
+import { withRouter } from "next/router";
+
+import { MenuOutlined } from "@ant-design/icons";
+import { Row, Col, Menu, Button, Popover } from "antd";
+import logo from "../../public/images/logo.svg";
+import Image from "next/image";
+import { Component } from "react";
interface HeaderProps {
isMobile: boolean;
- location: {
- pathname: string;
- };
}
interface HeaderState {
inputValue?: string;
menuVisible: boolean;
- menuMode?: 'vertical' | 'vertical-left' | 'vertical-right' | 'horizontal' | 'inline';
+ menuMode?: "horizontal" | "vertical" | "inline";
}
-class Header extends React.Component
+ 新注册用户将自动获得
+ 适用于小型应用,轻度更新需求 适用于一般应用,中度更新需求 适用于一般应用,中度更新需求 适用于商业应用,高速迭代需求
+ 如您需要更高配额,我们也提供定制版本或是私有服务器部署,您可将具体需求发送至{" "}
+ hi@charmlot.com{" "}
+ 我们将第一时间回复。
+
+ *注:iOS 和 Android 版本记做不同的应用。
+
+ 对于付费业务还有其他疑问?请参考
+ 常见问题
+ 免费版
+
+
+ 标准版
+
+
+ 高级版
+
+
+ 专业版
+
+
+
+ 原生包指完整的apk/ipa安装包。热更包指pushy
+ bundle命令生成的ppk文件(不是用户实际下载的增量更新文件)。
+
+ 您可删除已不再使用的应用、原生包、热更包来有效利用配额。
+