File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- import type { RouteKey } from '@elegant-router/types ' ;
1
+ import type { RouteKey } from '@soybean-react/vite-plugin-react-router ' ;
2
2
import ElegantReactRouter from '@soybean-react/vite-plugin-react-router' ;
3
3
4
4
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
Original file line number Diff line number Diff line change @@ -72,14 +72,14 @@ declare namespace Api {
72
72
* backend api module: "route"
73
73
*/
74
74
namespace Route {
75
- type ElegantConstRoute = import ( '@elegant-router/types ' ) . ElegantConstRoute ;
75
+ type ElegantConstRoute = import ( '@soybean-react/vite-plugin-react-router ' ) . ElegantConstRoute ;
76
76
77
77
interface MenuRoute extends ElegantConstRoute {
78
78
id : string ;
79
79
}
80
80
81
81
interface UserRoute {
82
- home : import ( '@elegant-router/types ' ) . LastLevelRouteKey ;
82
+ home : import ( '@soybean-react/vite-plugin-react-router ' ) . LastLevelRouteKey ;
83
83
routes : MenuRoute [ ] ;
84
84
}
85
85
}
Original file line number Diff line number Diff line change @@ -161,10 +161,10 @@ declare namespace App {
161
161
162
162
/** Global namespace */
163
163
namespace Global {
164
- type RouteKey = import ( '@elegant-router/types ' ) . RouteKey ;
165
- type RouteMap = import ( '@elegant-router/types ' ) . RouteMap ;
166
- type RoutePath = import ( '@elegant-router/types ' ) . RoutePath ;
167
- type LastLevelRouteKey = import ( '@elegant-router/types ' ) . LastLevelRouteKey ;
164
+ type RouteKey = import ( '@soybean-react/vite-plugin-react-router ' ) . RouteKey ;
165
+ type RouteMap = import ( '@soybean-react/vite-plugin-react-router ' ) . RouteMap ;
166
+ type RoutePath = import ( '@soybean-react/vite-plugin-react-router ' ) . RoutePath ;
167
+ type LastLevelRouteKey = import ( '@soybean-react/vite-plugin-react-router ' ) . LastLevelRouteKey ;
168
168
169
169
/** The global header props */
170
170
interface HeaderProps {
@@ -267,7 +267,7 @@ declare namespace App {
267
267
* Locales type
268
268
*/
269
269
namespace I18n {
270
- type RouteKey = import ( '@elegant-router/types ' ) . RouteKey ;
270
+ type RouteKey = import ( '@soybean-react/vite-plugin-react-router ' ) . RouteKey ;
271
271
272
272
type LangType = 'en-US' | 'zh-CN' ;
273
273
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ declare namespace Env {
65
65
* It only has effect when the auth route mode is static, if the route mode is dynamic, the home route key is
66
66
* defined in the back-end
67
67
*/
68
- readonly VITE_ROUTE_HOME : import ( '@elegant-router/types ' ) . LastLevelRouteKey ;
68
+ readonly VITE_ROUTE_HOME : import ( '@soybean-react/vite-plugin-react-router ' ) . LastLevelRouteKey ;
69
69
/** The router history mode */
70
70
readonly VITE_ROUTER_HISTORY_MODE ?: RouterHistoryMode ;
71
71
/** backend service base url */
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ declare namespace Router {
10
10
* @example
11
11
* the route is "user_detail", if it is set to "user_list", the menu "user_list" will be activated
12
12
*/
13
- activeMenu ?: import ( '@elegant-router/types ' ) . RouteKey | null ;
13
+ activeMenu ?: import ( '@soybean-react/vite-plugin-react-router ' ) . RouteKey | null ;
14
14
/**
15
15
* Is constant route
16
16
*
You can’t perform that action at this time.
0 commit comments