2022-12-13 19:59:30 +00:00
|
|
|
// @unocss-include
|
2023-01-02 15:00:11 +00:00
|
|
|
export const accountFieldIcons: Record<string, string> = Object.fromEntries(Object.entries({
|
2023-01-05 10:26:28 +00:00
|
|
|
Alipay: 'i-ri:alipay-line',
|
|
|
|
Bilibili: 'i-ri:bilibili-line',
|
2023-01-02 15:00:11 +00:00
|
|
|
Birth: 'i-ri:calendar-line',
|
|
|
|
Blog: 'i-ri:newspaper-line',
|
2024-01-18 10:21:49 +00:00
|
|
|
Bluesky: 'i-ri:bluesky-line',
|
2023-01-02 15:00:11 +00:00
|
|
|
City: 'i-ri:map-pin-2-line',
|
2023-01-05 10:26:28 +00:00
|
|
|
Dingding: 'i-ri:dingding-line',
|
|
|
|
Discord: 'i-ri:discord-line',
|
|
|
|
Douban: 'i-ri:douban-line',
|
|
|
|
Facebook: 'i-ri:facebook-line',
|
2024-01-18 10:21:49 +00:00
|
|
|
Friendica: 'i-ri:friendica-line',
|
2023-01-05 10:26:28 +00:00
|
|
|
GitHub: 'i-ri:github-line',
|
|
|
|
GitLab: 'i-ri:gitlab-line',
|
2023-01-12 11:18:06 +00:00
|
|
|
GPG: 'i-ri:key-2-line',
|
2023-01-02 15:00:11 +00:00
|
|
|
Home: 'i-ri:home-2-line',
|
|
|
|
Instagram: 'i-ri:instagram-line',
|
|
|
|
Joined: 'i-ri:user-add-line',
|
2023-01-12 11:18:06 +00:00
|
|
|
Keyoxide: 'i-ri:key-2-line',
|
2023-01-03 00:15:51 +00:00
|
|
|
Language: 'i-ri:translate-2',
|
|
|
|
Languages: 'i-ri:translate-2',
|
2023-01-05 10:26:28 +00:00
|
|
|
LinkedIn: 'i-ri:linkedin-box-line',
|
2023-01-02 15:00:11 +00:00
|
|
|
Location: 'i-ri:map-pin-2-line',
|
|
|
|
Mastodon: 'i-ri:mastodon-line',
|
2023-03-06 12:45:14 +00:00
|
|
|
Matrix: 'i-tabler:brand-matrix',
|
2023-01-05 10:26:28 +00:00
|
|
|
Medium: 'i-ri:medium-line',
|
2023-01-12 11:18:06 +00:00
|
|
|
OpenPGP: 'i-ri:key-2-line',
|
2023-01-05 10:26:28 +00:00
|
|
|
Patreon: 'i-ri:patreon-line',
|
|
|
|
PayPal: 'i-ri:paypal-line',
|
2023-01-12 11:18:06 +00:00
|
|
|
PGP: 'i-ri:key-2-line',
|
|
|
|
Photos: 'i-ri:camera-2-line',
|
2023-11-11 09:20:41 +00:00
|
|
|
Pinterest: 'i-ri:pinterest-line',
|
2023-01-05 10:26:28 +00:00
|
|
|
PlayStation: 'i-ri:playstation-line',
|
2023-01-02 15:00:11 +00:00
|
|
|
Portfolio: 'i-ri:link',
|
2023-01-05 08:10:29 +00:00
|
|
|
Pronouns: 'i-ri:contacts-line',
|
2023-01-05 10:26:28 +00:00
|
|
|
QQ: 'i-ri:qq-line',
|
2023-01-02 15:00:11 +00:00
|
|
|
Site: 'i-ri:link',
|
|
|
|
Sponsors: 'i-ri:heart-3-line',
|
2023-01-05 10:26:28 +00:00
|
|
|
Spotify: 'i-ri:spotify-line',
|
|
|
|
Steam: 'i-ri:steam-line',
|
|
|
|
Switch: 'i-ri:switch-line',
|
|
|
|
Telegram: 'i-ri:telegram-line',
|
2023-11-17 08:40:23 +00:00
|
|
|
Threads: 'i-ri:threads-line',
|
2024-01-01 16:48:10 +00:00
|
|
|
TikTok: 'i-ri:tiktok-line',
|
2023-01-05 10:26:28 +00:00
|
|
|
Tumblr: 'i-ri:tumblr-line',
|
2023-01-02 15:00:11 +00:00
|
|
|
Twitch: 'i-ri:twitch-line',
|
|
|
|
Twitter: 'i-ri:twitter-line',
|
|
|
|
Website: 'i-ri:link',
|
2023-01-05 10:26:28 +00:00
|
|
|
WeChat: 'i-ri:wechat-line',
|
|
|
|
Weibo: 'i-ri:weibo-line',
|
|
|
|
Xbox: 'i-ri:xbox-line',
|
2023-01-02 15:00:11 +00:00
|
|
|
YouTube: 'i-ri:youtube-line',
|
2023-01-05 10:26:28 +00:00
|
|
|
Zhihu: 'i-ri:zhihu-line',
|
2023-01-02 15:00:11 +00:00
|
|
|
}).sort(([a], [b]) => a.localeCompare(b)))
|
|
|
|
|
|
|
|
const accountFieldIconsLowercase = Object.fromEntries(
|
|
|
|
Object.entries(accountFieldIcons).map(([k, v]) =>
|
|
|
|
[k.toLowerCase(), v],
|
|
|
|
),
|
|
|
|
)
|
|
|
|
|
2023-03-30 19:01:24 +00:00
|
|
|
export function getAccountFieldIcon(value: string) {
|
2023-01-02 15:00:11 +00:00
|
|
|
const name = value.trim().toLowerCase()
|
|
|
|
return accountFieldIconsLowercase[name] || undefined
|
2022-12-10 15:53:48 +00:00
|
|
|
}
|
2023-01-03 12:03:46 +00:00
|
|
|
|
|
|
|
export const statusVisibilities = [
|
|
|
|
{
|
|
|
|
value: 'public',
|
|
|
|
icon: 'i-ri:global-line',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'unlisted',
|
|
|
|
icon: 'i-ri:lock-unlock-line',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'private',
|
|
|
|
icon: 'i-ri:lock-line',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
value: 'direct',
|
|
|
|
icon: 'i-ri:at-line',
|
|
|
|
},
|
|
|
|
] as const
|