MCPcopy Create free account
hub / github.com/ShareDropio/sharedrop / get

Function get

app/services/avatar.js:170–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168
169const Avatar = Service.extend({
170 get() {
171 const avatar = sample(AVATARS);
172 const prefix = sample(PREFIXES);
173
174 return {
175 url: `/assets/images/avatars/${avatar.id}.svg`,
176 label: startCase(`${prefix} ${avatar.name}`),
177 };
178 },
179});
180
181export default Avatar;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected