react-toolkits 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +39 -26
- package/dist/index.esm.js +155 -145
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FilterForm/index.tsx +1 -0
- package/src/components/QueryList/index.tsx +8 -21
- package/src/constants/index.ts +0 -2
- package/src/features/permission/hooks/index.ts +13 -28
- package/src/hooks/index.ts +1 -1
- package/src/hooks/{use-fetcher.tsx → use-http-client.tsx} +16 -42
- package/src/hooks/use-permission.tsx +10 -4
- package/src/index.ts +1 -0
- package/src/layouts/Layout.tsx +75 -37
- package/src/layouts/NavBar.tsx +8 -21
- package/src/pages/Login/index.tsx +3 -0
- package/src/pages/NoMatch/index.tsx +27 -0
- package/src/pages/index.ts +2 -1
- package/src/pages/permission/RoleList.tsx +11 -11
- package/src/types/index.ts +0 -17
package/src/types/index.ts
CHANGED
|
@@ -1,20 +1,3 @@
|
|
|
1
|
-
import type { ItemType2 } from '@/layouts/NavBar'
|
|
2
|
-
|
|
3
|
-
export interface UserInfo {
|
|
4
|
-
authorityId: string
|
|
5
|
-
exp: number
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface LoaderData {
|
|
9
|
-
navs: ItemType2[] // 导航栏数据
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface BackendResponse<T> {
|
|
13
|
-
code: number
|
|
14
|
-
msg: string
|
|
15
|
-
data: T
|
|
16
|
-
}
|
|
17
|
-
|
|
18
1
|
export interface ListResponse<T> {
|
|
19
2
|
List: T[]
|
|
20
3
|
Page: number
|