This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/presenters.js
2016-05-07 11:52:08 -07:00

26 lines
488 B
JavaScript

export function presentUser(user) {
return {
id: user.id,
name: user.name,
username: user.username,
email: user.email,
avatarUrl: user.slackData.profile.image_192,
};
}
export function presentTeam(team) {
return {
id: team.id,
name: team.name,
};
}
export function presentAtlas(atlas) {
return {
id: atlas.id,
name: atlas.name,
description: atlas.description,
type: atlas.type,
recentDocuments: atlas.getRecentDocuments(),
}
}