Skip to content

Commit

Permalink
www
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy0803 committed Apr 7, 2024
1 parent f84c5e7 commit d03ebc9
Show file tree
Hide file tree
Showing 32 changed files with 1,315 additions and 1,474 deletions.
73 changes: 66 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,35 +58,94 @@ module.exports = function (environment) {
rootURL: '/',
locationType: 'hash',
EmberENV: {
FEATURES: {}
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},
APP: {
// API host and port
ApiUrl: '//$ip_address/',
HttpHost: 'http://$ip_address',
// HTTP mining endpoint
HttpHost: '$ip_address',
HttpPort: 8888,
// Stratum mining endpoint
StratumHost: '$ip_address',
StratumPort: 8008,
// The ETC network
Unit: 'ETC',
Currency: 'USD',
PoolFee: '1%',
Mining: 'SOLO',
// Fee and payout details
PoolFee: '1.0%',
PayoutThreshold: '0.5 ETC',
BlockReward: 2.56,
BlockTime: 13.2
// For network hashrate (change for your favourite fork)
BlockTime: 14.4,
highcharts: {
main: {
enabled: true,
height: 200,
type: 'spline',
color: '',
labelColor: '#909090',
lineColor: '#404850',
tickColor: '#404850',
gridLineColor: '#404850',
gridLineWidthX: 1,
gridLineWidthY: 1,
backgroundColor: 'transparent',
title: '',
ytitle: '',
interval: 180000,
chartInterval: 900000
},
account: {
enabled: true,
height: 300,
type: 'spline',
color: ['', ''],
title: '',
ytitle: '',
interval: 180000,
chartInterval: 900000,
paymentInterval: 30000
}
}
}
};
if (environment === 'development') {
ENV.APP.ApiUrl = 'http://localhost:8080/';
/* Override ApiUrl just for development, while you are customizing
frontend markup and css theme on your workstation.
*/
ENV.APP.ApiUrl = 'http://localhost:8080/'
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}
if (environment === 'test') {
// Testem prefers this...
ENV.locationType = 'none';
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
}
if (environment === 'production') {}
if (environment === 'production') {
}
return ENV;
};
Expand Down
24 changes: 8 additions & 16 deletions www/app/controllers/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ export default Ember.Controller.extend({
},
}),

roundSharesN: Ember.computed("stats", "model", {
get() {
return parseInt(this.get("model.stats.roundShares") / 10000000000);
},
}),

roundPercent: Ember.computed('stats', 'model', {
get() {
var percent = this.get('model.roundShares') / this.get('stats.nShares');
Expand All @@ -30,25 +36,11 @@ export default Ember.Controller.extend({
}
}),

earnPerDayToken: Ember.computed('model', {
earnPerDay: Ember.computed('model', {
get() {
return 24 * 60 * 60 / this.get('applicationController.blockTime') * this.get('config').BlockReward *
this.getWithDefault('model.hashrate') / this.get('hashrate');
}
}),

earnPerDayUsd: Ember.computed('model', {
get() {
return 24 * 60 * 60 / this.get('applicationController.blockTime') * this.get('config').BlockReward *
this.getWithDefault('model.hashrate') / this.get('hashrate') * this.get ('model.exchangedata.price_usd');
}
}),

earnTotalPaid: Ember.computed('model', {
get() {
return 1 * this.get ('model.exchangedata.price_usd') * this.get ('model.stats.paid');
}
})


});
});
Loading

0 comments on commit d03ebc9

Please sign in to comment.