Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AmbroseX/Awesome-AISourceHub
/ functions
Functions
31 in github.com/AmbroseX/Awesome-AISourceHub
⨍
Functions
31
◇
Types & classes
1
↓ 2 callers
Function
check_folder
检查文件夹是否存在,不存在则创建。 参数: - folder_path: 文件夹路径
scripts/utils.py:8
↓ 2 callers
Function
save_json
保存数据到JSON文件。 参数: - data: 要保存的数据 - save_path: JSON文件保存到本地的路径
scripts/utils.py:153
↓ 1 callers
Function
backup_json
(data_path:str, back_json_path:str)
scripts/utils.py:129
↓ 1 callers
Function
checkScroll
()
src/components/TopDownButton.tsx:10
↓ 1 callers
Function
decoded_url
解码URL。 参数: - url: URL地址
scripts/utils.py:22
↓ 1 callers
Function
extract_domain
从URL中提取域名。 参数: - url: URL地址
scripts/utils.py:91
↓ 1 callers
Function
get_block_info
(content)
scripts/download_readme_data.py:31
↓ 1 callers
Function
get_git_commit
# 构建API URL来获取文件的提交历史数据
scripts/utils.py:31
↓ 1 callers
Function
get_git_update_time
(repo_owner:str, repo_name:str,path:str)
scripts/utils.py:41
↓ 1 callers
Function
get_latest_files
获取指定文件夹下最新的文件。 参数: - file_path: 文件夹路径 - num: 获取的文件数量
scripts/utils.py:106
↓ 1 callers
Function
get_readme
(repo_owner:str, repo_name:str)
scripts/utils.py:52
↓ 1 callers
Function
handleResize
()
src/app/page.tsx:20
↓ 1 callers
Function
read_json
读取JSON文件。 参数: - file_path: JSON文件路径
scripts/utils.py:143
↓ 1 callers
Function
transformToolsData
(data: any)
src/data/tools-data.ts:7
↓ 1 callers
Function
transformToolsInfo
(data: any)
src/data/tools-data.ts:12
Function
Card
({ title, is_free, image, description, href, })
src/components/ContentArea/Card.tsx:7
Function
CategoryBlock
({categoryData})
src/components/ContentArea/CategoryBlock.tsx:9
Function
CategoryContent
({tools})
src/components/CategoryContent.tsx:8
Function
Contact
()
src/components/Contact.tsx:6
Function
ContentArea
({categories, categoryRefs})
src/components/ContentArea/ContentArea.tsx:14
Function
GET
()
src/app/feed.xml/route.ts:4
Function
Header
({ toggleSidebar, isSidebarOpen, lang = '', mode = 'light', })
src/components/Header/Header.tsx:16
Function
Home
()
src/app/page.tsx:12
Function
NotFound
()
src/app/not-found.tsx:5
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode }>)
src/app/layout.tsx:15
Function
Sidebar
({ categories, activeCategory, onCategoryClick, isSidebarOpen, })
src/components/Sidebar/Sidebar.tsx:14
Function
TopDownButton
()
src/components/TopDownButton.tsx:4
Function
decode_and_download_image
下载图片并保存到指定路径。 参数: - image_url: 图片的URL地址 - save_path: 图片保存到本地的路径
scripts/utils.py:64
Function
handleCategoryClick
(category: string)
src/app/page.tsx:55
Function
sitemap
()
src/app/sitemap.ts:3
Function
toggleSidebar
()
src/app/page.tsx:37