+
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)
+ );
};
@@ -36,7 +40,8 @@ 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 1303dcfd..28f3449d 100644
--- a/src/components/Countdown.vue
+++ b/src/components/Countdown.vue
@@ -18,7 +18,8 @@ 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 49aeb48d..a927160f 100644
--- a/src/components/PaginationBar.vue
+++ b/src/components/PaginationBar.vue
@@ -16,7 +16,11 @@ 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 dde33571..2e636e3c 100644
--- a/src/components/ProposalListItem.vue
+++ b/src/components/ProposalListItem.vue
@@ -1,5 +1,10 @@
@@ -73,7 +81,10 @@ function metaItem(metadata: string | undefined): { title: string; summary: strin
-
+
|
@@ -83,8 +94,8 @@ function metaItem(metadata: string | undefined): { title: string; summary: strin
statusMap?.[item?.status] === 'PASSED'
? 'text-yes'
: statusMap?.[item?.status] === 'REJECTED'
- ? 'text-no'
- : 'text-info'
+ ? 'text-no'
+ : 'text-info'
"
>
@@ -133,11 +144,23 @@ function metaItem(metadata: string | undefined): { title: string; summary: strin
-
-
- {{
- 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') }}
@@ -174,8 +202,8 @@ function metaItem(metadata: string | undefined): { title: string; summary: strin
statusMap?.[item?.status] === 'PASSED'
? 'text-yes'
: statusMap?.[item?.status] === 'REJECTED'
- ? 'text-no'
- : 'text-info'
+ ? 'text-no'
+ : 'text-info'
"
>
@@ -215,12 +243,18 @@ function metaItem(metadata: string | undefined): { title: string; summary: strin
|