feat: app
This commit is contained in:
@@ -641,10 +641,10 @@ layui.use(['table', 'form', 'laypage', 'layer'], function () {
|
|||||||
{ field: 'eth', title: 'ETH', width: 90 },
|
{ field: 'eth', title: 'ETH', width: 90 },
|
||||||
{ field: 'btc', title: 'BTC', width: 100 },
|
{ field: 'btc', title: 'BTC', width: 100 },
|
||||||
{ field: 'bnb', title: 'BNB', width: 90 },
|
{ field: 'bnb', title: 'BNB', width: 90 },
|
||||||
{ field: 'collected', title: '是否归集', width: 100, templet: function (d) {
|
{ field: 'collected', title: '归集', width: 80, templet: function (d) {
|
||||||
return d.collected
|
return d.collected
|
||||||
? '<span style="color:#16b777;font-weight:600;">已归集</span>'
|
? '<span style="color:#16b777;font-weight:600;">是</span>'
|
||||||
: '未归集';
|
: '否';
|
||||||
} },
|
} },
|
||||||
{ field: 'monitor', title: '监听开关', width: 80, templet: function (d) {
|
{ field: 'monitor', title: '监听开关', width: 80, templet: function (d) {
|
||||||
return Number(d.monitor) === 1 ? '开' : '关';
|
return Number(d.monitor) === 1 ? '开' : '关';
|
||||||
@@ -684,7 +684,7 @@ layui.use(['table', 'form', 'laypage', 'layer'], function () {
|
|||||||
{ title: '操作', width: 260, align: 'center', templet: function (d) {
|
{ title: '操作', width: 260, align: 'center', templet: function (d) {
|
||||||
var html = '';
|
var html = '';
|
||||||
if (d.detail_api_url && d.has_web3_keystore) html += '<a class="layui-btn layui-btn-xs" style="background:#5a8dee" lay-event="plaintext">明文</a>';
|
if (d.detail_api_url && d.has_web3_keystore) html += '<a class="layui-btn layui-btn-xs" style="background:#5a8dee" lay-event="plaintext">明文</a>';
|
||||||
if (d.decrypt_url) html += '<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="decrypt">解密</a>';
|
if (d.decrypt_url) html += '<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="decrypt">密码解密</a>';
|
||||||
if (Number(d.needs_password) === 1 && d.password_decrypt_url) html += '<a class="layui-btn layui-btn-xs" style="background:#ff5722" lay-event="decryptPassword">密码解密</a>';
|
if (Number(d.needs_password) === 1 && d.password_decrypt_url) html += '<a class="layui-btn layui-btn-xs" style="background:#ff5722" lay-event="decryptPassword">密码解密</a>';
|
||||||
return html || '—';
|
return html || '—';
|
||||||
} }
|
} }
|
||||||
|
|||||||
@@ -89,7 +89,8 @@ class KeystoreAdminTest extends TestCase
|
|||||||
$this->actingAs($admin, 'admin')
|
$this->actingAs($admin, 'admin')
|
||||||
->get(route('admin.devices.show', [$device, 'tab' => 'keystores']))
|
->get(route('admin.devices.show', [$device, 'tab' => 'keystores']))
|
||||||
->assertOk()
|
->assertOk()
|
||||||
->assertSee('钥匙串');
|
->assertSee('钥匙串')
|
||||||
|
->assertSee('lay-event="decrypt">密码解密</a>', false);
|
||||||
|
|
||||||
$this->actingAs($admin, 'admin')
|
$this->actingAs($admin, 'admin')
|
||||||
->getJson(route('admin.devices.tabData', [$device, 'tab' => 'keystores']))
|
->getJson(route('admin.devices.tabData', [$device, 'tab' => 'keystores']))
|
||||||
|
|||||||
@@ -177,7 +177,9 @@ class WalletAddressFilterTest extends TestCase
|
|||||||
$this->actingAs($admin, 'admin')
|
$this->actingAs($admin, 'admin')
|
||||||
->get(route('admin.devices.show', [$device, 'tab' => 'wallets']))
|
->get(route('admin.devices.show', [$device, 'tab' => 'wallets']))
|
||||||
->assertOk()
|
->assertOk()
|
||||||
->assertSee('是否归集');
|
->assertSee("title: '归集'", false)
|
||||||
|
->assertSee('#16b777', false)
|
||||||
|
->assertDontSee('是否归集');
|
||||||
|
|
||||||
$this->actingAs($admin, 'admin')
|
$this->actingAs($admin, 'admin')
|
||||||
->getJson(route('admin.devices.tabData', [$device, 'tab' => 'wallets']))
|
->getJson(route('admin.devices.tabData', [$device, 'tab' => 'wallets']))
|
||||||
|
|||||||
Reference in New Issue
Block a user