diff --git a/www/app/controllers/application.js b/www/app/controllers/application.js index 1e40cd9eb..20fcd3152 100644 --- a/www/app/controllers/application.js +++ b/www/app/controllers/application.js @@ -2,6 +2,7 @@ import Ember from 'ember'; import config from '../config/environment'; export default Ember.Controller.extend({ + intl: Ember.inject.service(), get config() { return config.APP; }, @@ -65,6 +66,20 @@ export default Ember.Controller.extend({ } }), + // FIXME + languages: Ember.computed({ + get() { + let intl = this.get('intl'); + return [ { name: intl.t('lang.korean'), value: 'ko'}, { name: intl.t('lang.english'), value: 'en-us'} ]; + } + }), + + selectedLanguage: Ember.computed({ + get() { + return Ember.$.cookie('lang'); + } + }), + roundVariance: Ember.computed('model', { get() { var percent = this.get('model.stats.roundShares') / this.get('difficulty'); diff --git a/www/app/router.js b/www/app/router.js index 9eac95d62..7b1970c4e 100644 --- a/www/app/router.js +++ b/www/app/router.js @@ -17,9 +17,11 @@ Router.map(function() { }); this.route('help'); + this.route('help-ko'); this.route('payments'); this.route('miners'); this.route('about'); + this.route('about-ko'); }); export default Router; diff --git a/www/app/routes/application.js b/www/app/routes/application.js index 293d5ce61..c2f793391 100644 --- a/www/app/routes/application.js +++ b/www/app/routes/application.js @@ -1,11 +1,62 @@ import Ember from 'ember'; import config from '../config/environment'; +function selectLocale(selected) { + // FIXME + let supported = ['en', 'ko', 'en-us']; + const language = navigator.languages[0] || navigator.language || navigator.userLanguage; + + let locale = selected; + + if (locale == null) { + // default locale + locale = language; + if (supported.indexOf(locale) < 0) { + locale = locale.replace(/\-[a-zA-Z]*$/, ''); + } + } + if (supported.indexOf(locale) >= 0) { + if (locale === 'en') { + locale = 'en-us'; + } + } else { + locale = 'en-us'; + } + return locale; +} + export default Ember.Route.extend({ intl: Ember.inject.service(), + selectedLanguage: null, beforeModel() { - this.get('intl').setLocale('en-us'); + let locale = this.get('selectedLanguage'); + if (!locale) { + // read cookie + locale = Ember.$.cookie('lang'); + // pick a locale + locale = selectLocale(locale); + + this.get('intl').setLocale(locale); + Ember.$.cookie('lang', locale); + console.log('INFO: locale selected - ' + locale); + this.set('selectedLanguage', locale); + } + }, + + actions: { + selectLanguage: function() { + let selected = Ember.$('option:selected').attr('value'); + if (typeof selected === 'undefined') { + return true; + } + let locale = selectLocale(selected); + this.get('intl').setLocale(locale); + this.set('selectedLanguage', locale); + Ember.$.cookie('lang', locale); + + return true; + } }, model: function() { diff --git a/www/app/templates/about-ko.hbs b/www/app/templates/about-ko.hbs new file mode 100644 index 000000000..ef5a4aa0d --- /dev/null +++ b/www/app/templates/about-ko.hbs @@ -0,0 +1,22 @@ +
이곳에서 사용하고 있는 자유 소프트웨어 때문에 발생가능할 수 있는 문제에 대해서 보증하지 않습니다.
+ 이 풀을 이용하는 사용자는 이로 인하여 발생할 수 있는 문제에 대하여 인정하는 것으로 간주합니다.
+ 풀 운영자는 되돌릴 수 없는 손실에 대해 보상할 수 없습니다만, 그렇지 않은 경우에 대해서는 최악의 상황을 막기 위해서 최선을 다하고 있습니다.
+
+
ID | -Hashrate (rough, short average) | -Hashrate (accurate, long average) | -Last Share | +{{t "account.hashrate"}} ({{t "account.short_average"}}) | +{{t "account.hashrate"}} ({{t "account.long_average"}}) | +{{t "account.last_share"}} |
---|
Time | -Tx ID | -Amount | +{{t "payout.time"}} | +{{t "payout.txid"}} | +{{t "payout.amount"}} |
---|---|---|---|---|---|
{{format-date-locale tx.timestamp}} | - {{tx.tx}} + {{tx.tx}} | {{format-balance tx.amount}} |
Pool always pay full block reward including TX fees and uncle rewards.
- - Block maturity requires up to 520 blocks. - Usually it's less indeed. - +{{t "block.pool_rewards"}}
+ + {{format-html-message "block.pool_notice.html" success=520}} +Height | -Block Hash | -Time Found | -Variance | -Reward | +{{t "block.height"}} | +{{t "block.hash"}} | +{{t "block.time_found"}} | +{{t "block.variance"}} | +{{t "block.reward"}} |
---|
Height | -Block Hash | -Time Found | -Variance | -Reward | +{{t "block.height"}} | +{{t "block.hash"}} | +{{t "block.time_found"}} | +{{t "block.variance"}} | +{{t "block.reward"}} |
---|
Height | -Time Found | -Variance | +{{t "block.height"}} | +{{t "block.time_found"}} | +{{t "block.variance"}} |
---|---|---|---|---|---|
{{format-number block.height}} | +{{format-number block.height}} | {{format-date-locale block.timestamp}} | {{#if block.isLucky}} @@ -27,5 +27,5 @@ |
다음의 GPU 마이너 프로그램중 하나를 다운로드하세요. +
> geth account new
$ geth account new
0x8b92c50e1c39466f900a578edb20a49356c4fe24
.
+ worker-1
+ Claymore 듀얼 마이너 다운로드 (AMD/NVIDIA): [ANN] Bitcointalk.org
+
+ EthDcrMiner64 -epool {{config.StratumHost}}:{{config.StratumPort}} -esm 0 -ewal 0x0000000000000000000000000000000000000000 -eworker your-worker-1 -allcoins 1 -allpools 1
+
EthDcrMiner64
- 윈도우상의 마이너 실행파일 이름. 리눅스/우분투의 경우 ./ethdcrminer64
.{{config.StratumHost}}
- Stratum Server name-esm 0
및 {{config.StratumPort}}
포트번호는 Stratum 서버의 경우.-esm 3
및 {{config.NicehashPort}}
포트번호는 Nicehash 지원 서버의 경우.{{config.StratumPort}}
- Stratum Port number0x0000000000000000000000000000000000000000
- Your wallet addressyour-worker-1
- Your worker name+ Ethminer 다운로드 (AMD/NVIDIA): Ethminer 소스/바이너리 at Github +
+
+ ethminer -SP 1 -U -S {{config.StratumHost}}:{{config.StratumPort}} -O 0x0000000000000000000000000000000000000000.your-worker-1 --farm-recheck 2000
+
-SP 1
- Stratum 서버일 경우-U
- NVIDIA GPU 의 경우 사용. AMD GPU의 경우는 -G
.-S {{config.StratumHost}}:{{config.StratumPort}}
- stratum_server_name:stratum_port_number-O 0x0000000000000000000000000000000000000000.your-worker-1
- your_wallet_address.your_worker_name--farm-recheck 2000
- 작업이 바뀔 때마다 2000ms간격을 두고 체크한다. (기본값 500ms. Stratum의 경우 2000ms으로 해야 안정적. eth-proxy의 경우 적은 값 사용)
+ ethminer -U -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 --farm-recheck 200
+
-U
- NVIDIA GPU 의 경우 사용. AMD GPU의 경우는 -G
.-F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1
+ 0x0000000000000000000000000000000000000000/your-worker-1
- your_wallet_address.your_worker_name
+ EthDcrMiner64 -epool {{config.StratumHost}}:{{config.StratumPort}} -esm 0 -ewal 0x0000000000000000000000000000000000000000 -eworker your-worker-1 -allcoins 1 -allpools 1
+
Hint 리눅스/우분투의 경우 ./ethdcrminer64
명령 사용
+
+ ethminer -U -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 --farm-recheck 200
+
Hint -U
옵션은 NVIDIA GPU 사용, -G
옵션은 AMD GPU 사용
+ EthDcrMiner64 -epool {{config.StratumHost}}:{{config.StratumPort}} -esm 0 -ewal 0x0000000000000000000000000000000000000000 -eworker your-worker-1 -allcoins 1 -allpools 1
+
Hint use ./ethdcrminer64
under Linux/ubuntu
+
+ ethminer -U -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 --farm-recheck 200
+
Hint use -U
option for NVIDIA GPU, -G
option for AMD GPU.
In order to mine on this pool you need to have an
- ethminer installation
- pointed to{{config.HttpHost}}:{{config.HttpPort}}/YOUR_ETH_ADDRESS/RIG_ID
+
Download one of the following GPU miners. +
$ geth account new
> geth account new
0xb85150eb365e7df0941f0cf08235f987ba91506a
.
+ 0x8b92c50e1c39466f900a578edb20a49356c4fe24
.
rig-1
+ Example: worker-1
- Full example:
- ethminer -F {{config.HttpHost}}:{{config.HttpPort}}/0xb85150eb365e7df0941f0cf08235f987ba91506a/myfarm -G --farm-recheck 200
.
- Hint: If you are compiling ethminer from latest source, please also use
- extra --disable-submit-hashrate
option.
-
Grab proxy from eth-proxy GitHub repo.
-Edit eth-proxy.conf
and specify our pool's HOST: {{config.StratumHost}}
, PORT: {{config.StratumPort}}
and your WALLET
.
Download Claymore Dual Miner (AMD/NVIDIA): [ANN] Bitcointalk.org
+
+ EthDcrMiner64 -epool {{config.StratumHost}}:{{config.StratumPort}} -esm 0 -ewal 0x0000000000000000000000000000000000000000 -eworker your-worker-1 -allcoins 1 -allpools 1
+
EthDcrMiner64
- executable name under Windows. use ./ethdcrminer64
under Linux/Ubuntu{{config.StratumHost}}
- Stratum Server name-esm 0
and {{config.StratumPort}}
port number for Stratum Server.-esm 3
and {{config.NicehashPort}}
port number for Nicehash Server.0x0000000000000000000000000000000000000000
- Your wallet addressyour-worker-1
- Your worker nameUse stable release of Ethereum Solo/Pool Mining Proxy.
- -CPU mining is not recommended.
-By using the pool you accept all possible risks related to experimental software usage.
- Pool owner can't compensate any irreversible losses, but will do his best to prevent worst case.
-
+ Download Ethminer (AMD/NVIDIA): Ethminer source/binary at Github +
+
+ ethminer -SP 1 -U -S {{config.StratumHost}}:{{config.StratumPort}} -O 0x0000000000000000000000000000000000000000.your-worker-1 --farm-recheck 2000
+
-SP 1
- option for Stratum server-U
- NVIDIA GPU or -G
for AMD GPU-S {{config.StratumHost}}:{{config.StratumPort}}
- stratum_server_name:stratum_port_number-O 0x0000000000000000000000000000000000000000.your-worker-1
- your_wallet_address.your_worker_name--farm-recheck 2000
- Leave 2000 ms between checks for changed work (default 500ms. use higher value to use stratum for stability)
+ ethminer -U -F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1 --farm-recheck 200
+
-U
- NVIDIA GPU or -G
for AMD GPU-F {{config.HttpHost}}:{{config.HttpPort}}/0x0000000000000000000000000000000000000000/your-worker-1
+ 0x0000000000000000000000000000000000000000/your-worker-1
- your_wallet_address.your_worker_nameBlocks | -Shares/Diff | -Uncle Rate | -Orphan Rate | +{{t "luck.blocks"}} | +{{t "luck.shares_diff"}} | +{{t "luck.uncle_rate"}} | +{{t "luck.orphan_rate"}} |
---|
Login | -Hashrate | -Last Beat | +{{t "miners.login"}} | +{{t "miners.hashrate"}} | +{{t "miners.last_beat"}} |
---|
Pool always pay tx fees from it's own pocket for now.
- Total payments sent: {{model.paymentsTotal}} +{{t "payments.pay_tx"}}
+ {{t "payments.total_payments_sent"}}: {{model.paymentsTotal}}Time | -Amount | -Address | -Tx ID | +{{t "payments.time"}} | +{{t "payments.amount"}} | +{{t "payments.address"}} | +{{t "payments.txid"}} | {{format-date-locale tx.timestamp}} | {{format-number tx.formatAmount}} | - {{tx.address}} + {{tx.address}} | - {{format-tx tx.tx}} + {{format-tx tx.tx}} | {{/each}} @@ -34,6 +34,6 @@
---|