mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-07-27 04:20:43 +08:00
refactor: 项目整体重构与功能完善
1. 配置开发环境接口地址 2. 重构工具函数目录结构,迁移防抖节流等工具到base目录 3. 统一页面布局样式为全屏居中布局 4. 新增大量通用工具函数:深克隆、深合并、uuid、时间格式化、随机数、数组打乱、剪贴板操作等 5. 优化自定义tabbar实现,修复交互逻辑 6. 新增列表数据管理hook和请求loading封装 7. 移除无用测试文件和冗余代码 8. 完善首页内容,增加轮播图、作者卡片、金刚区等模块
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
export const randomImageUrl = {
|
||||
ycy: 'https://t.alcy.cc/ycy',
|
||||
pc: 'https://t.alcy.cc/pc',
|
||||
moemp: 'https://t.alcy.cc/moemp',
|
||||
picsum: 'https://picsum.photos/800/600',
|
||||
bing: 'https://bing.img.run/rand_uhd.php',
|
||||
xsot: 'https://api.xsot.cn/bing?jump=true',
|
||||
}
|
||||
|
||||
export const randomVideosUrl = {
|
||||
acg: 'https://t.alcy.cc/acg',
|
||||
}
|
||||
|
||||
export function getPicsum(width: number = 800, height?: number) {
|
||||
if (!height) {
|
||||
return `https://picsum.photos/${width}`
|
||||
}
|
||||
return `https://picsum.photos/${width}/${height}`
|
||||
}
|
||||
Reference in New Issue
Block a user