Browse Source

update mining links

main
ghost 12 months ago
parent
commit
fafda8954f
  1. 3
      .env
  2. 3
      config/services.yaml
  3. 2
      public/css/default.css
  4. 12
      src/Controller/ModuleController.php
  5. 17
      templates/default/module/info.html.twig

3
.env

@ -38,7 +38,8 @@ APP_KEVACOIN_NAMESPACE=EDIT_ME
APP_KEVACOIN_ADDRESS=EDIT_ME APP_KEVACOIN_ADDRESS=EDIT_ME
# Share with other some mining pool to get coins # Share with other some mining pool to get coins
APP_KEVACOIN_POOL_URL=https://kevacoin.hashvault.pro APP_KEVACOIN_MINE_POOL_URL=https://miningpoolstats.stream/kevacoin
APP_KEVACOIN_MINE_SOLO_URL=https://kevacoin.org/tutorial_solo_mining.html
# Allow remotes to create new rooms (namespaces) # Allow remotes to create new rooms (namespaces)
APP_ADD_ROOM_REMOTE_IP_REGEX=/.*/ APP_ADD_ROOM_REMOTE_IP_REGEX=/.*/

3
config/services.yaml

@ -14,7 +14,8 @@ parameters:
app.kevacoin.password: '%env(APP_KEVACOIN_PASSWORD)%' app.kevacoin.password: '%env(APP_KEVACOIN_PASSWORD)%'
app.kevacoin.namespace: '%env(APP_KEVACOIN_NAMESPACE)%' app.kevacoin.namespace: '%env(APP_KEVACOIN_NAMESPACE)%'
app.kevacoin.address: '%env(APP_KEVACOIN_ADDRESS)%' app.kevacoin.address: '%env(APP_KEVACOIN_ADDRESS)%'
app.kevacoin.pool.url: '%env(APP_KEVACOIN_POOL_URL)%' app.kevacoin.mine.pool.url: '%env(APP_KEVACOIN_MINE_POOL_URL)%'
app.kevacoin.mine.solo.url: '%env(APP_KEVACOIN_MINE_SOLO_URL)%'
services: services:
# default configuration for services in *this* file # default configuration for services in *this* file

2
public/css/default.css

@ -11,7 +11,7 @@
color-scheme: light dark; color-scheme: light dark;
/* vars */ /* vars */
--container-max-width: 740px; --container-max-width: 768px;
} }
*::placeholder *::placeholder

12
src/Controller/ModuleController.php

@ -29,8 +29,16 @@ class ModuleController extends AbstractController
'block' => (int) $client->getBlockCount(), 'block' => (int) $client->getBlockCount(),
'address' => $this->getParameter('app.kevacoin.address') 'address' => $this->getParameter('app.kevacoin.address')
], ],
'pool' => [ 'mine' =>
'url' => $this->getParameter('app.kevacoin.pool.url') [
'pool' =>
[
'url' => $this->getParameter('app.kevacoin.mine.pool.url')
],
'solo' =>
[
'url' => $this->getParameter('app.kevacoin.mine.solo.url')
]
] ]
] ]
); );

17
templates/default/module/info.html.twig

@ -4,11 +4,18 @@
{{ 'balance:' | trans }} {{ wallet.balance }} {{ 'balance:' | trans }} {{ wallet.balance }}
{% if wallet.address %} {% if wallet.address %}
/ /
{% if pool.url %} {{ 'charge:' | trans }}
<a href="{{ pool.url }}" target="_blank">{{ 'charge' | trans }}</a>:
{% else %}
{{ 'charge:' | trans }}
{% endif %}
<pre>{{ wallet.address }}</pre> <pre>{{ wallet.address }}</pre>
{% endif %} {% endif %}
{% if mine.pool %}
/
{{ 'mine:' | trans }}
{% if mine.pool.url %}
<a href="{{ mine.pool.url }}" target="_blank">{{ 'pool' | trans }}</a>
{% endif %}
{% if mine.solo.url %}
|
<a href="{{ mine.solo.url }}" target="_blank">{{ 'solo' | trans }}</a>
{% endif %}
{% endif %}
</div> </div>
Loading…
Cancel
Save