8cc1b02d19
Adds a 3-pane layout option for showing details, as well as a dashboard sub-route for showing contributor details in the new details pane.
25 lines
616 B
JavaScript
25 lines
616 B
JavaScript
import EmberObject from '@ember/object';
|
|
import bignumber from 'kredits-web/utils/cps/bignumber';
|
|
import kreditsValue from 'kredits-web/utils/cps/kredits';
|
|
|
|
export default EmberObject.extend({
|
|
// Contract
|
|
id: bignumber('idRaw', 'toString'),
|
|
account: null,
|
|
balance: kreditsValue('balanceRaw'),
|
|
totalKreditsEarned: bignumber('totalKreditsEarnedRaw', 'toNumber'),
|
|
contributionsCount: bignumber('contributionsCountRaw', 'toNumber'),
|
|
isCore: false,
|
|
ipfsHash: null,
|
|
|
|
// IPFS
|
|
kind: null,
|
|
name: null,
|
|
url: null,
|
|
github_username: null,
|
|
github_uid: null,
|
|
wiki_username: null,
|
|
ipfsData: ''
|
|
|
|
});
|