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 4 additions and 5 deletions
Showing only changes of commit a9edc12494 - Show all commits

View File

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

View File

@ -16,7 +16,7 @@
},
"dependencies": {
"@flaschengeist/api": "file:./api",
"@flaschengeist/users": "^1.0.0-alpha.2",
"@flaschengeist/users": "^1.0.0-alpha.3",
"axios": "^0.24.0",
"pinia": "^2.0.6",
"quasar": "^2.3.3"