+
dashboardStore.chains[props.name] || {});
const addFavor = (e: Event) => {
e.stopPropagation();
e.preventDefault();
- dashboardStore.favoriteMap[props.name] =
- !dashboardStore?.favoriteMap?.[props.name];
- window.localStorage.setItem(
- 'favoriteMap',
- JSON.stringify(dashboardStore.favoriteMap)
- );
+ dashboardStore.favoriteMap[props.name] = !dashboardStore?.favoriteMap?.[props.name];
+ window.localStorage.setItem('favoriteMap', JSON.stringify(dashboardStore.favoriteMap));
};
@@ -40,8 +36,7 @@ const addFavor = (e: Event) => {
class="pl-4 text-xl"
:class="{
'text-warning': dashboardStore?.favoriteMap?.[props.name],
- 'text-gray-300 dark:text-gray-500':
- !dashboardStore?.favoriteMap?.[props.name],
+ 'text-gray-300 dark:text-gray-500': !dashboardStore?.favoriteMap?.[props.name],
}"
>
diff --git a/src/components/Countdown.vue b/src/components/Countdown.vue
index 28f3449d..1303dcfd 100644
--- a/src/components/Countdown.vue
+++ b/src/components/Countdown.vue
@@ -18,8 +18,7 @@ const s = ref(0);
>
{{ days }} days
{{ hours }} hours
- {{ minutes }}
- minutes
+ {{ minutes }} minutes
{{ seconds }}
diff --git a/src/components/PaginationBar.vue b/src/components/PaginationBar.vue
index a927160f..49aeb48d 100644
--- a/src/components/PaginationBar.vue
+++ b/src/components/PaginationBar.vue
@@ -16,11 +16,7 @@ const pages = computed(() => {
while (true) {
if (page * props.limit >= total) break;
page += 1;
- if (
- total / props.limit > 10 &&
- page > showSize &&
- page < total / props.limit - showSize + 1
- ) {
+ if (total / props.limit > 10 && page > showSize && page < total / props.limit - showSize + 1) {
if (!(page >= current.value - 1 && page <= current.value + 1)) {
continue;
}
diff --git a/src/components/ProposalListItem.vue b/src/components/ProposalListItem.vue
index 2e636e3c..dde33571 100644
--- a/src/components/ProposalListItem.vue
+++ b/src/components/ProposalListItem.vue
@@ -1,10 +1,5 @@
@@ -81,10 +73,7 @@ function metaItem(metadata: string | undefined): {
-
+
|
@@ -94,8 +83,8 @@ function metaItem(metadata: string | undefined): {
statusMap?.[item?.status] === 'PASSED'
? 'text-yes'
: statusMap?.[item?.status] === 'REJECTED'
- ? 'text-no'
- : 'text-info'
+ ? 'text-no'
+ : 'text-info'
"
>
@@ -144,23 +133,11 @@ function metaItem(metadata: string | undefined): {
-
-
- {{
- item?.content?.title ||
- item?.title ||
- metaItem(item?.metadata)?.title
- }}
+
+
+ {{
+ item?.content?.title || item?.title || metaItem(item?.metadata)?.title
+ }}
-
+
{{ format.toDay(item.voting_end_time, 'from') }}
@@ -202,8 +174,8 @@ function metaItem(metadata: string | undefined): {
statusMap?.[item?.status] === 'PASSED'
? 'text-yes'
: statusMap?.[item?.status] === 'REJECTED'
- ? 'text-no'
- : 'text-info'
+ ? 'text-no'
+ : 'text-info'
"
>
@@ -243,18 +215,12 @@ function metaItem(metadata: string | undefined): {
|