Skip to content

Callqh patch 1 - #86

Open
callqh wants to merge 9 commits into
mainfrom
callqh-patch-1
Open

Callqh patch 1#86
callqh wants to merge 9 commits into
mainfrom
callqh-patch-1

Conversation

@callqh

@callqh callqh commented Jun 12, 2026

Copy link
Copy Markdown
Member

Description:

BREAKING CHANGE:

Related issue (if exists):

lingyu and others added 9 commits March 20, 2024 16:52
Bumps [@farmfe/core](https://github.com/farm-fe/farm) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/farm-fe/farm/releases)
- [Changelog](https://github.com/farm-fe/farm/blob/main/release-plz.toml)
- [Commits](https://github.com/farm-fe/farm/compare/@farmfe/core@1.0.1...@farmfe/core@1.0.2)

---
updated-dependencies:
- dependency-name: "@farmfe/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…-1.0.2

chore(deps-dev): bump @farmfe/core from 1.0.1 to 1.0.2
@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
farm-react-admin Error Error Jun 12, 2026 2:48am

@changeset-bot

changeset-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b94c678

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@callqh

callqh commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

测试一下

@callqh
callqh requested review from Copilot and llyzmp and removed request for llyzmp June 12, 2026 03:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the app template to use convention-based routing via vite-plugin-pages, modernizes the entry router setup, and adds tooling/config updates (deps + Dependabot + README).

Changes:

  • Replace manual react-router route setup with vite-plugin-pages generated routes rendered via useRoutes.
  • Add TypeScript module declarations for generated routes and configure vite-plugin-pages in farm.config.ts.
  • Bump @farmfe/core and add Dependabot + README updates.

Reviewed changes

Copilot reviewed 8 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tsconfig.json Adjusts TS lib configuration (currently introduces invalid JSON).
src/typings.d.ts Adds typings for ~react-pages / virtual generated routes modules.
src/router/routers.tsx Removes the previous manual createBrowserRouter setup.
src/main.tsx Removes the previous Main component entry implementation.
src/main.css Removes the previous main.css (styles appear moved under src/pages).
src/index.tsx Switches app bootstrap to BrowserRouter + useRoutes(routes) with Suspense.
farm.config.ts Adds vite-plugin-pages configuration and module id.
package.json Bumps @farmfe/core version.
pnpm-lock.yaml Lockfile updates corresponding to dependency bump.
README.md Updates template documentation and lists vite-plugin-pages integration.
.github/dependabot.yml Adds Dependabot configuration for npm dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread farm.config.ts
Comment on lines +6 to +11
vitePlugins:[
Pages({
resolver:'react',
moduleId:"~react-pages",
})
]
Comment thread src/index.tsx
import { createRoot } from 'react-dom/client';
import { RouterProvider } from 'react-router-dom';
import { BrowserRouter as Router, useRoutes } from 'react-router-dom';
import routes from '~react-pages';
Comment thread README.md
---

## 使用
1. 将改仓库`Fork`到你的仓库中
@callqh
callqh requested review from Copilot and llyzmp and removed request for llyzmp June 12, 2026 04:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 11 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread farm.config.ts
Comment on lines +5 to +11
plugins: ['@farmfe/plugin-react'],
vitePlugins:[
Pages({
resolver:'react',
moduleId:"~react-pages",
})
]
Comment thread src/index.tsx
Comment on lines 7 to 9
const container = document.querySelector('#root');
const root = createRoot(container);

Comment thread README.md
---

## 使用
1. 将改仓库`Fork`到你的仓库中
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants