This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from darwinia-network/aki-ui2
Update UI
- Loading branch information
Showing
11 changed files
with
96 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// Entry point for the build script in your package.json | ||
import "@hotwired/turbo-rails" | ||
import "./controllers" | ||
|
||
import "flowbite/dist/flowbite.turbo.js"; | ||
import "flowbite/dist/datepicker.turbo.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
<tr id="message_<%= message.identifier %>" class="border-b dark:border-neutral-500"> | ||
<td class="whitespace-nowrap px-6 py-2 text-left"><%= time_ago_in_words(message.block_timestamp) %> ago</td> | ||
<td class="whitespace-nowrap px-6 py-2"> | ||
<%= link_to message.from_network.name, network_messages_path(message.from_network.name), class: 'underline' %> | ||
-> | ||
<%= link_to message.to_network.name, network_messages_path('_', message.to_network.name), class: 'underline' %> | ||
<td class="whitespace-nowrap px-6 py-2">#<%= message.index %></td> | ||
<td class="whitespace-nowrap px-6 py-2"><%= block_link(message.from_network, message.block_number) %></td> | ||
<td class="whitespace-nowrap px-6 py-2"><%= link_to short(message.msg_hash), message_by_tx_or_hash_path(message.msg_hash), class: 'underline' %></td> | ||
<td class="whitespace-nowrap px-6 py-2"><%= short(message.root) %></td> | ||
<td class="whitespace-nowrap px-6 py-2 text-left"><%= address_link_short(message.from_network, message.from) %></td> | ||
<td class="whitespace-nowrap px-6 py-2 text-left"><%= address_link_short(message.to_network, message.to) %></td> | ||
<td class="whitespace-nowrap px-6 py-2"> | ||
<tr id="message_<%= message.identifier %>" class="bg-white border-b dark:bg-gray-800 dark:border-gray-700"> | ||
<td class="whitespace-nowrap px-6 py-4"><%= link_to short(message.msg_hash), message_by_tx_or_hash_path(message.msg_hash), class: 'underline' %></td> | ||
<td class="whitespace-nowrap px-6 py-4"> | ||
<div class="<%= status_style(message.status) %>"> | ||
<%= link_to message.status_label, "#{request.path}?status=#{message.status}" %> | ||
</div> | ||
</td> | ||
<td class="whitespace-nowrap px-6 py-2"> | ||
<td class="whitespace-nowrap px-6 py-4"> | ||
<%= link_to message.from_network.name, network_messages_path(message.from_network.name), class: 'underline' %> > <%= link_to message.to_network.name, network_messages_path('_', message.to_network.name), class: 'underline' %> | ||
<td class="whitespace-nowrap px-6 py-4 text-left"><%= address_link_short(message.from_network, message.from) %></td> | ||
<td class="whitespace-nowrap px-6 py-4 text-left"><%= address_link_short(message.to_network, message.to) %></td> | ||
<td class="whitespace-nowrap px-6 py-4 text-left"><%= time_ago_in_words(message.block_timestamp) %> ago</td> | ||
<td class="whitespace-nowrap px-6 py-4"> | ||
<% if message.dispatch_block_timestamp %> | ||
<%= time_consumption(message) %> | ||
<% end %> | ||
</td> | ||
<td class="whitespace-nowrap px-6 py-2"><%= link_to "Detail", message_by_tx_or_hash_path(message.msg_hash), class: "underline" %></td> | ||
<td class="whitespace-nowrap px-6 py-2"><%= link_to "MORE", message_by_tx_or_hash_path(message.msg_hash), class: "underline" %></td> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<span id="messages_count" class="text-center text-sm text-gray-500">Total <%= messages_count %></span> | ||
<span id="messages_count" class="text-center text-sm text-gray-500"><%= messages_count %> messages</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<%= turbo_stream_from("messages") %> | ||
|
||
<div class="flex flex-col"> | ||
<div class="overflow-x-auto sm:-mx-6 lg:-mx-8"> | ||
<div class="inline-block min-w-full py-2 sm:px-6 lg:px-8"> | ||
<div class="overflow-hidden"> | ||
<table class="min-w-full text-center text-sm font-light"> | ||
<thead class="border-b font-medium dark:border-neutral-500"> | ||
<div class="overflow-x-auto"> | ||
<div class="w-full inline-block"> | ||
<div class="relative overflow-hidden"> | ||
|
||
|
||
<table class="w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400"> | ||
<thead class="text-xs text-gray-700 uppercase dark:text-gray-400"> | ||
<tr> | ||
<th scope="col" class="px-6 py-2 text-left">Age</th> | ||
<th scope="col" class="px-6 py-2">Direction</th> | ||
<th scope="col" class="px-6 py-2">Index</th> | ||
<th scope="col" class="px-6 py-2">Block</th> | ||
<th scope="col" class="px-6 py-2">MsgHash</th> | ||
<th scope="col" class="px-6 py-2">Root</th> | ||
<th scope="col" class="px-6 py-2 text-left">From</th> | ||
<th scope="col" class="px-6 py-2 text-left">To</th> | ||
<th scope="col" class="px-6 py-2">Status</th> | ||
<th scope="col" class="px-6 py-2">Time Spent</th> | ||
<th scope="col" class="px-6 py-2"></th> | ||
<th scope="col" class="px-6 py-3">Hash</th> | ||
<th scope="col" class="px-6 py-3">Status</th> | ||
<th scope="col" class="px-6 py-3">Direction</th> | ||
<th scope="col" class="px-6 py-3 text-left">From</th> | ||
<th scope="col" class="px-6 py-3 text-left">To</th> | ||
<th scope="col" class="px-6 py-3 text-left">Age</th> | ||
<th scope="col" class="px-6 py-3">Time Spent</th> | ||
<th scope="col" class="px-6 py-3"></th> | ||
</tr> | ||
</thead> | ||
<tbody id="messages"> | ||
<%= render @messages %> | ||
</tbody> | ||
</table> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="px-6 py-2"> | ||
<div class="p-6"> | ||
<%= paginate @messages %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.