From f10e4983b4caae77fb42b1899576957f7a76d3b1 Mon Sep 17 00:00:00 2001 From: "Alisa | Side.one" Date: Sun, 28 May 2023 09:35:08 +0800 Subject: [PATCH] feat: input border --- package.json | 2 +- src/components/ProposalListItem.vue | 217 +++++++--- src/modules/[chain]/staking/index.vue | 580 ++++++++++++++------------ yarn.lock | 8 +- 4 files changed, 464 insertions(+), 343 deletions(-) diff --git a/package.json b/package.json index 26fd8081..f70794f3 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "md-editor-v3": "^2.8.1", "numeral": "^2.0.6", "osmojs": "^14.0.0-rc.0", - "ping-widget": "^0.0.28", + "ping-widget": "^0.0.29", "pinia": "^2.0.28", "postcss": "^8.4.23", "qrcode": "^1.5.3", diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue index c9a18a9e..c2ac75fc 100644 --- a/src/components/ProposalListItem.vue +++ b/src/components/ProposalListItem.vue @@ -3,7 +3,7 @@ import { useBlockchain, useFormatter, useStakingStore, - useTxDialog + useTxDialog, } from '@/stores'; import { select } from '@/components/dynamic/index'; import type { PaginatedProposals } from '@/types'; @@ -45,55 +45,94 @@ const proposalInfo = ref(); - +
- + {{ item?.content?.title }}
+ class="bg-[#f6f2ff] text-[#9c6cff] dark:bg-gray-600 dark:text-gray-300 inline-block rounded-full px-2 py-[1px] text-xs mb-1" + > {{ showType(item.content['@type']) }}
- +
-
-
+
+
- {{ statusMap?.[item?.status] || item?.status }} + {{ + statusMap?.[item?.status] || + item?.status + }}
+ class="truncate col-span-2 md:!col-span-1 text-xs text-gray-500 dark:text-gray-400 text-right md:!flex md:!justify-start" + > {{ format.toDay(item.voting_end_time, 'from') }}
- +
-
@@ -103,56 +142,99 @@ const proposalInfo = ref();
-
-
- {{ - item?.content?.title }} - +
+
+ {{ item?.content?.title }} +
+ class="bg-[#f6f2ff] text-[#9c6cff] dark:bg-gray-600 dark:text-gray-300 inline-block rounded-full px-2 py-[1px] text-xs mb-1" + > {{ showType(item.content['@type']) }}
-
-
+
+
{{ statusMap?.[item?.status] || item?.status }}
-
+
{{ format.toDay(item.voting_end_time, 'from') }}
- +
- -
- + +
+ {{ item?.voterStatus }}
@@ -160,15 +242,30 @@ const proposalInfo = ref();
- +