release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 6c219c5226 - Show all commits

View File

@ -5,5 +5,6 @@ export * from './src/stores/';
export * from './src/utils/datetime';
export * from './src/utils/permission';
export * from './src/utils/persistent';
export * from './src/utils/user';
export * from './src/utils/validators';
export * from './src/utils/misc';

7
api/src/utils/user.ts Normal file
View File

@ -0,0 +1,7 @@
import { api } from '../internal';
export function avatarURL(user: FG.User, thumbnail = true) {
return `${api.defaults?.baseURL || ''}/users/${user.userid}/avatar${
thumbnail ? '?thumbnail' : ''
}`;
}