feat:移除了弹窗,服务器添加sls

This commit is contained in:
2026-09-08 22:39:45 +08:00
commit 6a295f9a7a
4082 changed files with 1322534 additions and 0 deletions

15
packages/utils/users.ts Normal file
View File

@ -0,0 +1,15 @@
// noinspection JSUnusedGlobalSymbols
export const getUserLink = (user) => {
return `/user/${user.username}`
}
export const isStaff = (user) => {
return user && STAFF_ROLES.includes(user.role)
}
export const isAdmin = (user) => {
return user && user.role === 'admin'
}
export const STAFF_ROLES = ['moderator', 'admin']