MCPcopy Create free account

hub / github.com/DemoJ/ThinNav / functions

Functions290 in github.com/DemoJ/ThinNav

↓ 29 callersMethodget
单独抽离的get工具函数
frontend/nav-admin/src/utils/http/index.ts:195
↓ 21 callersMethodgetItem
(k: string)
frontend/nav-admin/src/utils/localforage/types.d.ts:158
↓ 19 callersFunctionresponsiveStorageNameSpace
()
frontend/nav-admin/src/config/index.ts:53
↓ 16 callersFunctiongetConfig
(key?: string)
frontend/nav-admin/src/config/index.ts:11
↓ 15 callersFunctionh
(t, c)
frontend/nav-admin/src/assets/iconfont/iconfont.js:13
↓ 14 callersFunctionmessage
( message: string | VNode | (() => VNode), params?: MessageParams )
frontend/nav-admin/src/utils/message.ts:38
↓ 13 callersFunctionbaseUrlApi
(url: string)
frontend/nav-admin/src/api/utils.ts:1
↓ 12 callersFunctionusePermissionStoreHook
()
frontend/nav-admin/src/store/modules/permission.ts:62
↓ 11 callersMethodkeys
(callback?: (err: any, keys: string[]) => void)
frontend/nav-admin/src/utils/localforage/types.d.ts:42
↓ 10 callersFunctiontoggleClass
(flag: boolean, clsName: string, target?: HTMLElement)
frontend/nav-admin/src/layout/hooks/useDataThemeChange.ts:44
↓ 8 callersMethodrequest
通用请求工具函数
frontend/nav-admin/src/utils/http/index.ts:159
↓ 8 callersMethodsetItem
(k: string, v: T, m: number)
frontend/nav-admin/src/utils/localforage/types.d.ts:157
↓ 8 callersFunctionuseMultiTagsStoreHook
()
frontend/nav-admin/src/store/modules/multiTags.ts:122
↓ 7 callersFunctionuseUserStoreHook
()
frontend/nav-admin/src/store/modules/user.ts:83
↓ 6 callersFunctionaddDialog
(options: DialogOptions)
frontend/nav-admin/src/components/ReDialog/index.ts:16
↓ 5 callersFunctionascending
按照路由中meta下的rank等级升序来排序路由
frontend/nav-admin/src/router/utils.ts:43
↓ 5 callersFunctionopen
()
frontend/nav-admin/src/components/ReDialog/index.ts:17
↓ 4 callersFunctionremoveToken
()
frontend/nav-admin/src/utils/auth.ts:90
↓ 4 callersFunctionrendTippyProps
(content: string)
frontend/nav-admin/src/components/RePureTableBar/src/bar.tsx:207
↓ 4 callersFunctionsetToken
(data: DataInfo<number>)
frontend/nav-admin/src/utils/auth.ts:42
↓ 4 callersMethodset_password
(self, password)
backend/app/models.py:40
↓ 4 callersFunctionuseEpThemeStoreHook
()
frontend/nav-admin/src/store/modules/epTheme.ts:45
↓ 3 callersFunctionbuildHierarchyTree
(tree: any[], pathList = [])
frontend/nav-admin/src/utils/tree.ts:56
↓ 3 callersMethodcheck_password
(self, password)
backend/app/models.py:43
↓ 3 callersFunctionconditionHandle
(item, previous, next)
frontend/nav-admin/src/layout/hooks/useTag.ts:115
↓ 3 callersFunctioncreate_tokens
( data: dict, expires_delta: timedelta = None, refresh_expires_delta: timedelta = timedelta(days=1
backend/app/auth.py:48
↓ 3 callersFunctionformatFlatteningRoutes
* 将多级嵌套路由处理成一维数组 * @param routesList 传入路由 * @returns 返回处理后的一维路由
frontend/nav-admin/src/router/utils.ts:219
↓ 3 callersFunctionformatToken
(token: string)
frontend/nav-admin/src/utils/auth.ts:97
↓ 3 callersFunctionhandleAsyncRoutes
处理动态路由(后端返回的路由)
frontend/nav-admin/src/router/utils.ts:153
↓ 3 callersMethodremoveItem
(k: string)
frontend/nav-admin/src/utils/localforage/types.d.ts:159
↓ 3 callersFunctionsetBool
(value: boolean)
frontend/nav-admin/src/layout/hooks/useBoolean.ts:6
↓ 3 callersFunctionsetEpThemeColor
(color: string)
frontend/nav-admin/src/layout/hooks/useDataThemeChange.ts:88
↓ 3 callersFunctionsetLayoutThemeColor
设置导航主题色
frontend/nav-admin/src/layout/hooks/useDataThemeChange.ts:52
↓ 2 callersFunctionaddPathMatch
()
frontend/nav-admin/src/router/utils.ts:142
↓ 2 callersMethodclear
()
frontend/nav-admin/src/utils/localforage/types.d.ts:160
↓ 2 callersFunctiond
()
frontend/nav-admin/src/assets/iconfont/iconfont.js:58
↓ 2 callersFunctionfilterTree
过滤meta中showLink为false的菜单
frontend/nav-admin/src/router/utils.ts:56
↓ 2 callersFunctionformatTwoStageRoutes
* 一维数组处理成多级嵌套数组(三级及以上的路由全部拍成二级,keep-alive 只支持到二级缓存) * https://github.com/pure-admin/vue-pure-admin/issues/67 * @param routesList 处理后的一维路由菜单数组 * @re
frontend/nav-admin/src/router/utils.ts:238
↓ 2 callersFunctiongetAsyncRoutes
()
frontend/nav-admin/src/api/routes.ts:8
↓ 2 callersFunctionhandleAliveRoute
处理缓存路由(添加、删除、刷新)
frontend/nav-admin/src/router/utils.ts:259
↓ 2 callersFunctionhandleInit
(index = curIndex.value)
frontend/nav-admin/src/components/ReSegmented/src/index.tsx:86
↓ 2 callersFunctionhasAuth
是否有按钮级别的权限
frontend/nav-admin/src/router/utils.ts:351
↓ 2 callersFunctionisOneOfArray
判断两个数组彼此是否存在相同值
frontend/nav-admin/src/router/utils.ts:76
↓ 2 callersFunctionisRippleEnabled
(value: any)
frontend/nav-admin/src/directives/ripple/index.ts:143
↓ 2 callersFunctionremoveListeners
(el: HTMLElement)
frontend/nav-admin/src/directives/ripple/index.ts:200
↓ 2 callersFunctionresetRouter
()
frontend/nav-admin/src/router/index.ts:88
↓ 2 callersFunctionsave_icon_image
保存图标图像并返回其 URL
backend/app/websites.py:59
↓ 2 callersFunctionsetPropertyPrimary
(mode: string, i: number, color: string)
frontend/nav-admin/src/layout/hooks/useDataThemeChange.ts:80
↓ 2 callersFunctionsetUserKey
(username: string, roles: Array<string>)
frontend/nav-admin/src/utils/auth.ts:66
↓ 2 callersFunctiontoCorrectRoute
如果已经登录并存在登录信息后不能跳转到路由白名单,而是继续保持在当前页面
frontend/nav-admin/src/router/index.ts:128
↓ 2 callersFunctiontransform
(el: HTMLElement, value: string)
frontend/nav-admin/src/directives/ripple/index.ts:20
↓ 2 callersFunctionupdateRipple
( el: HTMLElement, binding: RippleDirectiveBinding, wasEnabled: boolean )
frontend/nav-admin/src/directives/ripple/index.ts:173
↓ 2 callersFunctionuseAppStoreHook
()
frontend/nav-admin/src/store/modules/app.ts:83
↓ 1 callersFunctionadaptToChildrenList
(o: Record<string, any>)
frontend/nav-admin/src/utils/tree.ts:177
↓ 1 callersFunctionaddAsyncRoutes
过滤后端传来的动态路由 重新生成规范路由
frontend/nav-admin/src/router/utils.ts:294
↓ 1 callersFunctionallowed_file
检查文件扩展名是否在允许的格式中
backend/app/upload.py:22
↓ 1 callersFunctioncalculate
( e: PointerEvent, el: HTMLElement, value: RippleOptions = {} )
frontend/nav-admin/src/directives/ripple/index.ts:25
↓ 1 callersFunctionclear
()
frontend/nav-admin/src/directives/longpress/index.ts:22
↓ 1 callersMethodconfig
* Set and persist localForage options. This must be called before any other calls to localForage are made, but can be called after localForage is load
frontend/nav-admin/src/utils/localforage/types.d.ts:110
↓ 1 callersFunctioncreatCategory
(creatData: CategoryData)
frontend/nav-admin/src/api/category.ts:62
↓ 1 callersFunctioncreatWeb
(creatData: webData)
frontend/nav-admin/src/api/website.ts:84
↓ 1 callersFunctioncreate_default_admin
()
backend/main.py:50
↓ 1 callersFunctiondelCategory
(categoryId: string)
frontend/nav-admin/src/api/category.ts:58
↓ 1 callersFunctiondelWeb
(webId: string)
frontend/nav-admin/src/api/website.ts:80
↓ 1 callersFunctiondfs
(routes: RouteRecordRaw[], value: string, parents: string[])
frontend/nav-admin/src/router/utils.ts:100
↓ 1 callersFunctionfetch_website_description
从网站抓取描述
backend/test/test_fetch_des.py:4
↓ 1 callersFunctionfetch_website_description
从网站抓取描述
backend/app/websites.py:23
↓ 1 callersFunctionfilterChildrenTree
过滤children长度为0的的目录,当目录下没有菜单时,会过滤此目录,目录没有赋予roles权限,当目录下只要有一个菜单有显示权限,那么此目录就会显示
frontend/nav-admin/src/router/utils.ts:67
↓ 1 callersFunctionfilterNoPermissionTree
从localStorage里取出当前登陆用户的角色roles,过滤无权限的菜单
frontend/nav-admin/src/router/utils.ts:85
↓ 1 callersFunctionfindRouteByPath
查找对应 `path` 的路由信息
frontend/nav-admin/src/router/utils.ts:122
↓ 1 callersFunctiongenerate_letter_icon
使用网站二级域名的首字母或IP地址的首字母生成圆形图标
backend/test/test_save_image.py:23
↓ 1 callersFunctiongenerate_letter_icon
使用网站二级域名的首字母或IP地址的首字母生成圆形图标
backend/app/websites.py:139
↓ 1 callersFunctiongenerate_secret_key
(length=32)
backend/app/auth.py:15
↓ 1 callersFunctiongetAuths
获取当前页面按钮级别的权限
frontend/nav-admin/src/router/utils.ts:346
↓ 1 callersFunctiongetHistoryMode
获取路由历史模式 https://next.router.vuejs.org/zh/guide/essentials/history-mode.html
frontend/nav-admin/src/router/utils.ts:323
↓ 1 callersFunctiongetLogin
(data?: object)
frontend/nav-admin/src/api/login.ts:33
↓ 1 callersFunctiongetPlatformConfig
(app: App)
frontend/nav-admin/src/config/index.ts:30
↓ 1 callersFunctiongetToken
()
frontend/nav-admin/src/utils/auth.ts:29
↓ 1 callersFunctiongetTopMenu
获取所有菜单中的第一个菜单(顶级菜单)
frontend/nav-admin/src/router/utils.ts:363
↓ 1 callersFunctionget_favicon_or_apple_touch_icon
尝试获取网站的favicon.ico或apple-touch-icon.png的URL
backend/test/tset_icon.py:4
↓ 1 callersFunctionget_icon
尝试获取网站图标的URL
backend/app/websites.py:80
↓ 1 callersFunctionget_or_create_secret_key
()
backend/app/auth.py:20
↓ 1 callersFunctionget_title
(url)
backend/app/websites.py:191
↓ 1 callersFunctionhandRank
(routeInfo: any)
frontend/nav-admin/src/router/utils.ts:32
↓ 1 callersFunctionhandleChange
({ option, index }, event: Event)
frontend/nav-admin/src/components/ReSegmented/src/index.tsx:59
↓ 1 callersFunctionhandleCheckAllChange
(val: boolean)
frontend/nav-admin/src/components/RePureTableBar/src/bar.tsx:112
↓ 1 callersFunctionhandleCheckColumnListChange
(val: boolean, label: string)
frontend/nav-admin/src/components/RePureTableBar/src/bar.tsx:128
↓ 1 callersFunctionhandleCheckedColumnsChange
(value: string[])
frontend/nav-admin/src/components/RePureTableBar/src/bar.tsx:120
↓ 1 callersFunctionhandleMouseenter
({ option, index }, event: Event)
frontend/nav-admin/src/components/ReSegmented/src/index.tsx:69
↓ 1 callersFunctionhandleMouseleave
(_, event: Event)
frontend/nav-admin/src/components/ReSegmented/src/index.tsx:81
↓ 1 callersFunctionhandleResizeInit
()
frontend/nav-admin/src/components/ReSegmented/src/index.tsx:96
↓ 1 callersMethodhttpInterceptorsRequest
请求拦截
frontend/nav-admin/src/utils/http/index.ts:63
↓ 1 callersMethodhttpInterceptorsResponse
响应拦截
frontend/nav-admin/src/utils/http/index.ts:129
↓ 1 callersFunctioninit_db
()
backend/init_db.py:11
↓ 1 callersFunctioninjectResponsiveStorage
(app: App, config: PlatformConfigs)
frontend/nav-admin/src/utils/responsive.ts:7
↓ 1 callersFunctionisFixedColumn
(label: string)
frontend/nav-admin/src/components/RePureTableBar/src/bar.tsx:201
↓ 1 callersFunctionisImgElement
是否为`img`标签
frontend/nav-admin/src/utils/preventDefault.ts:4
↓ 1 callersFunctionisRemaining
判断路径是否参与菜单
frontend/nav-admin/src/layout/hooks/useNav.ts:110
↓ 1 callersFunctionmain
()
backend/test/test_fetch_des.py:28
↓ 1 callersFunctiononDownInter
(ev: PointerEvent)
frontend/nav-admin/src/directives/longpress/index.ts:33
next →1–100 of 290, ranked by callers