mirror of
https://github.com/danbulant/ester_os
synced 2026-05-22 05:38:32 +00:00
Dummy user getter
This commit is contained in:
parent
060501caa6
commit
721f35042f
1 changed files with 16 additions and 0 deletions
16
client/src/ui/system/utils/settings.js
Normal file
16
client/src/ui/system/utils/settings.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import User from './dataHolders/user';
|
||||
|
||||
//To-Do: Fetch data of currently loged in user from server
|
||||
function getSettings(){
|
||||
return new Promise((resolve, reject) => {
|
||||
let user = new User;
|
||||
|
||||
user.name = "Admin";
|
||||
user.avatar = "https://api.adorable.io/avatars/285/" + user.name;
|
||||
user.background = "/images/backgrounds/pexels_1.jpg";
|
||||
|
||||
resolve(user);
|
||||
})
|
||||
}
|
||||
|
||||
export default getSettings;
|
||||
Loading…
Reference in a new issue