dark
7 months ago
58 changed files with 676 additions and 742 deletions
-
2src/Auth.tsx
-
2src/components/avatar/index.tsx
-
2src/components/department-tree/DepartmentCascader.tsx
-
4src/components/department-tree/DepartmentTree.tsx
-
2src/components/error/404.tsx
-
2src/components/role-picker/RolePicker.tsx
-
2src/components/user-picker/UserPicker.tsx
-
2src/components/user-picker/store.ts
-
2src/global.d.ts
-
2src/layout/RootLayout.tsx
-
2src/pages/login/index.tsx
-
4src/pages/system/departments/components/DepartmentTree.tsx
-
2src/pages/system/departments/components/TreeNodeRender.tsx
-
2src/pages/system/departments/index.tsx
-
2src/pages/system/logs/login/index.tsx
-
2src/pages/system/menus/components/BatchButton.tsx
-
2src/pages/system/menus/components/MenuTree.tsx
-
2src/pages/system/menus/components/TreeNodeRender.tsx
-
2src/pages/system/menus/index.tsx
-
6src/pages/system/roles/index.tsx
-
2src/pages/system/users/index.tsx
-
8src/pages/websites/ssl/components/AcmeList.tsx
-
8src/pages/websites/ssl/components/CAList.tsx
-
8src/pages/websites/ssl/components/DNSList.tsx
-
8src/pages/websites/ssl/index.tsx
-
2src/routes.tsx
-
24src/service/system.ts
-
13src/service/websites.ts
-
10src/store/system/department.ts
-
0src/store/system/logs.ts
-
7src/store/system/menu.ts
-
6src/store/system/role.ts
-
20src/store/system/user.ts
-
6src/store/websites/acme.ts
-
6src/store/websites/ca.ts
-
6src/store/websites/dns.ts
-
5src/store/websites/ssl.ts
-
14src/types/index.d.ts
-
5src/types/index.ts
-
30src/types/roles.d.ts
-
0src/types/system/department.d.ts
-
10src/types/system/login.d.ts
-
0src/types/system/logs.d.ts
-
36src/types/system/menus.d.ts
-
10src/types/system/roles.d.ts
-
0src/types/system/user.d.ts
-
2src/utils/index.ts
-
2src/utils/uuid.ts
@ -1,4 +1,4 @@ |
|||
import { IUser } from '@/types/user' |
|||
import { IUser } from '@/types/system/user' |
|||
import { atom } from 'jotai' |
|||
|
|||
export const userSelectedAtom = atom<IUser[]>([]) |
|||
|
@ -1,21 +1,18 @@ |
|||
import { createCURD } from '@/service/base.ts' |
|||
import { ISSL } from '@/types/website/ssl' |
|||
import { IAcmeAccount } from '@/types/website/acme' |
|||
import { IDnsAccount } from '@/types/website/dns' |
|||
import { ICA } from '@/types/website/ca' |
|||
import { WebSite } from '@/types' |
|||
|
|||
const websitesServ = { |
|||
ssl: { |
|||
...createCURD<any, ISSL>('/website/ssl') |
|||
...createCURD<any, WebSite.ISSL>('/website/ssl') |
|||
}, |
|||
acme:{ |
|||
...createCURD<any, IAcmeAccount>('/website/acme') |
|||
...createCURD<any, WebSite.IAcmeAccount>('/website/acme') |
|||
}, |
|||
dns:{ |
|||
...createCURD<any, IDnsAccount>('/website/dns') |
|||
...createCURD<any, WebSite.IDnsAccount>('/website/dns') |
|||
}, |
|||
ca:{ |
|||
...createCURD<any, ICA>('/website/ca') |
|||
...createCURD<any, WebSite.ICA>('/website/ca') |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
export namespace System { |
|||
export { IDepartment } from './system/department' |
|||
export { IUser, IUserInfo } from './system/user' |
|||
export { LoginRequest, LoginResponse } from './system/login' |
|||
export { IRole } from './system/roles' |
|||
export { IMenu } from './system/menus' |
|||
} |
|||
|
|||
export namespace WebSite { |
|||
export { IAcmeAccount } from './website/acme' |
|||
export { ICA } from './website/ca' |
|||
export { IDnsAccount } from './website/dns' |
|||
export { ISSL, ProviderType, SSLSearchParam } from './website/ssl' |
|||
} |
@ -1,5 +0,0 @@ |
|||
export * from './department' |
|||
export * from './user' |
|||
export * from './login' |
|||
export * from './roles' |
|||
export * from './menus' |
@ -1,30 +0,0 @@ |
|||
export interface IRole { |
|||
id: number, |
|||
sort: number, |
|||
code: string, |
|||
name: string, |
|||
description: string, |
|||
sequence: number, |
|||
status: string | boolean, |
|||
menu_ids: number[] |
|||
} |
|||
|
|||
export interface RoleRequest extends IRole { |
|||
|
|||
} |
|||
|
|||
export interface RoleListResponse { |
|||
key: string, |
|||
order: string, |
|||
prop: string, |
|||
page: number, |
|||
pageSize: number |
|||
|
|||
} |
|||
|
|||
export interface RoleListResponse { |
|||
page: number, |
|||
pageSize: number, |
|||
total: number, |
|||
rows: IRole[] |
|||
} |
@ -1,12 +1,4 @@ |
|||
export interface LoginLogRequest { |
|||
key: string, |
|||
start: string, |
|||
end: string, |
|||
order: string, |
|||
prop: string, |
|||
page: number, |
|||
pageSize: number |
|||
} |
|||
|
|||
|
|||
export interface LoginRequest { |
|||
'mfa_status': boolean; |
@ -0,0 +1,10 @@ |
|||
export interface IRole { |
|||
id: number, |
|||
sort: number, |
|||
code: string, |
|||
name: string, |
|||
description: string, |
|||
sequence: number, |
|||
status: string | boolean, |
|||
menu_ids: number[] |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue