MCPcopy Create free account

hub / github.com/ahwgs/fast_h5_umi / functions

Functions78 in github.com/ahwgs/fast_h5_umi

↓ 10 callersMethodlog
(errorInfo: AnyObject)
src/utils/report.ts:75
↓ 4 callersFunctionrequest
(config: AxiosRequestConfig)
src/utils/request.ts:92
↓ 2 callersFunctionformatterMenu
(routes: any[])
src/utils/utils.ts:14
↓ 2 callersFunctiongetAuthority
(str?: string)
src/utils/authority.ts:6
↓ 2 callersFunctionisComponentClass
(component: React.ComponentClass | React.ReactNode)
src/components/Authorized/Secured.tsx:10
↓ 2 callersFunctionrenderAuthorize
(Authorized: T)
src/components/Authorized/renderAuthorize.ts:10
↓ 2 callersMethodsetRenderComponent
(props: PromiseRenderProps<T, K>)
src/components/Authorized/PromiseRender.tsx:39
↓ 1 callersFunctionGet
(url: string, params?: object, config?: AxiosRequestConfig)
src/utils/request.ts:97
↓ 1 callersFunctioncheck
(authority: IAuthorityType, target: T, Exception: K)
src/components/Authorized/CheckPermissions.tsx:79
↓ 1 callersFunctioncheckIsInstantiation
(target: React.ComponentClass | React.ReactNode)
src/components/Authorized/Secured.tsx:21
↓ 1 callersFunctioncheckPermissions
( authority: IAuthorityType, currentAuthority: string | string[], target: T, Exception: K, )
src/components/Authorized/CheckPermissions.tsx:21
↓ 1 callersFunctionclear
(url)
clearSourceMap.js:6
↓ 1 callersFunctionerrorReport
( url: string, error: string | Error, requestOptions: AxiosRequestConfig, response?: AnyObject, )
src/utils/request.ts:11
↓ 1 callersFunctionfindProConfig
(key: string)
src/utils/url.config.ts:27
↓ 1 callersFunctionflattenMenuData
(data: any[])
src/utils/utils.ts:17
↓ 1 callersFunctiongetCookie
(name?: string)
src/utils/cookie.ts:5
↓ 1 callersMethodgetInstance
(options: ReportOptions)
src/utils/report.ts:25
↓ 1 callersFunctiongetMenuRoute
(routes: any[])
src/utils/utils.ts:38
↓ 1 callersFunctiongetRouteAuthority
(path: string, routeData: any[])
src/utils/utils.ts:63
↓ 1 callersMethodinstall
()
src/utils/report.ts:35
↓ 1 callersFunctionmatchComponent
()
src/pages/Authorized.tsx:42
↓ 1 callersMethodregisterGlobalError
()
src/utils/report.ts:45
↓ 1 callersFunctionreloadAuthorized
()
src/utils/Authorized.ts:8
↓ 1 callersFunctionsetAuthority
(authority: string | string[])
src/utils/authority.ts:26
↓ 1 callersFunctionsetCookie
(name: string, value: string | object)
src/utils/cookie.ts:9
↓ 1 callersFunctionsetOptions
(options: NavigationBarOption)
src/utils/nav.ts:6
↓ 1 callersFunctionsetPageOption
()
src/pages/setting/index.tsx:22
FunctionAuthComponent
({ children, route = { routes: [], }, location = { pathname: '', }, user, })
src/pages/Authorized.tsx:22
FunctionAuthorized
({ children, authority, noMatch })
src/components/Authorized/Authorized.tsx:18
FunctionAuthorizedRoute
({ component: Component, render, authority, redirectPath, ...rest })
src/components/Authorized/AuthorizedRoute.tsx:15
FunctionBasicLayout
src/layouts/BasicLayout.tsx:16
FunctionBlankLayout
({ children })
src/layouts/BlankLayout.tsx:3
FunctionComponentPage
()
src/pages/component/index.tsx:19
FunctionDelete
(url: string, data?: object, config?: AxiosRequestConfig)
src/utils/request.ts:124
FunctionException403
()
src/components/Authorized/Secured.tsx:8
FunctionException403
()
src/pages/exception/404.tsx:4
FunctionException403
()
src/pages/exception/403.tsx:5
FunctionExpandAuthPage
()
src/pages/expand/auth/index.tsx:3
FunctionExpandPage
()
src/pages/expand/index.tsx:19
FunctionHomePage
src/pages/home/index.tsx:11
FunctionLoginPage
src/pages/login/index.tsx:10
FunctionMainLayout
src/layouts/index.tsx:4
FunctionMenuBar
src/components/MenuBar/index.tsx:14
FunctionMinePage
src/pages/mine/index.tsx:11
FunctionPost
(url: string, data?: object, config?: AxiosRequestConfig)
src/utils/request.ts:106
FunctionPut
(url: string, data?: object, config?: AxiosRequestConfig)
src/utils/request.ts:115
FunctionSettingPage
src/pages/setting/index.tsx:13
FunctionUserLayout
({ children })
src/layouts/UserLayout.tsx:3
Functionauthorize
(authority: string, error?: React.ReactNode)
src/components/Authorized/Secured.tsx:47
FunctionchainWebpack
(config)
config/config.ts:117
FunctionchangeLoginStatus
(state, { payload })
src/models/user.ts:106
MethodcomponentDidCatch
(error: any, info: any)
src/components/ErrorBoundary/index.tsx:31
MethodcomponentDidMount
()
src/components/Authorized/PromiseRender.tsx:25
Methodconstructor
(props: IErrorBoundaryProps)
src/components/ErrorBoundary/index.tsx:15
Methodconstructor
(props: NavigationBarProps)
src/components/NavigationBar/index.tsx:25
Methodconstructor
(options: ReportOptions)
src/utils/report.ts:20
FunctionfetchCurrent
* 获取用户信息
src/models/user.ts:38
FunctionfetchLogin
(req: any, res: any)
mock/user.ts:9
FunctionfetchLoginStatus
* 检查登录状态与权限
src/models/user.ts:58
FunctionfetchLogout
* 退出登录
src/models/user.ts:52
FunctionfetchUserService
()
src/services/user.ts:5
FunctiongenerateScopedName
(name: string, filename: string)
config/babel.config.ts:12
FunctiongetAuthorityFromRouter
( router: T[] = [], pathname: string, )
src/utils/utils.ts:50
FunctiongoPage
()
src/pages/mine/index.tsx:14
MethodleftContentRender
()
src/components/NavigationBar/index.tsx:60
FunctiononSetting
()
src/pages/setting/index.tsx:18
FunctionremoveCookie
(name?: string)
src/utils/cookie.ts:13
Methodrender
()
src/components/Authorized/PromiseRender.tsx:73
Methodrender
()
src/components/ErrorBoundary/index.tsx:45
Methodrender
()
src/components/NavigationBar/index.tsx:47
FunctionrequestFail
(error: any)
src/utils/request.ts:50
FunctionrequestSuccess
(config: any)
src/utils/request.ts:37
FunctionresponseFail
(error: AxiosError)
src/utils/request.ts:80
FunctionresponseSuccess
(response: AxiosResponse)
src/utils/request.ts:54
MethodrightContentRender
()
src/components/NavigationBar/index.tsx:52
Functionsave
(state, { payload })
src/models/user.ts:100
Functionsave
(state, { payload })
src/models/app.ts:23
Functiontest
({ resource })
config/config.ts:126