chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:27:50 +08:00
commit cc8f841fc5
422 changed files with 70222 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
const AvatarCount = 15;
const publicPath = process.env.PublicPath || '/';
/**
* 获取随机头像
*/
export default function getRandomAvatar() {
const number = Math.floor(Math.random() * AvatarCount);
return `${publicPath}avatar/${number}.jpg`;
}
/**
* 获取默认头像
*/
export function getDefaultAvatar() {
return `${publicPath}avatar/0.jpg`;
}