feat: added a profile settings and settings nav (#432)

This commit is contained in:
Ayaka Rizumu 2022-12-26 16:50:11 +08:00 committed by GitHub
parent c8a7e6e7e7
commit 613c5315b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 698 additions and 7 deletions

View file

@ -31,6 +31,8 @@ export const useIsMac = () => computed(() =>
useRequestHeaders(['user-agent'])['user-agent']?.includes('Macintosh')
?? navigator?.platform?.includes('Mac') ?? false)
export const isEmptyObject = (object: Object) => Object.keys(object).length === 0
export function removeHTMLTags(str: string) {
return str.replaceAll(HTMLTagRE, '')
}