Skip to content

Commit

Permalink
Merge branch 'main' into issue-9095
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo committed Jan 23, 2024
2 parents 2ec4dab + c13c91b commit d8fc785
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module.exports = {
},
plugins: ['prettier', '@typescript-eslint', 'unicorn'],
rules: {
'prettier/prettier': 'error',
'no-empty-function': 'warn',
'no-trailing-spaces': 'error',
'unicorn/no-for-loop': 'error',
Expand All @@ -38,7 +37,7 @@ module.exports = {
'no-useless-catch': 1,
'no-var': 'error',
'linebreak-style': 0,
quotes: ['error', 'single'],
quotes: ['error', 'single', { avoidEscape: true }],
semi: ['error', 'never'],
'max-classes-per-file': ['error', 2],
'sort-imports': [
Expand Down
8 changes: 4 additions & 4 deletions components/explore/DesktopControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import GridLayoutControls from '@/components/shared/GridLayoutControls.vue'
const route = useRoute()
const isCollection = computed(() =>
route.name?.toString().includes('prefix-explore-collectibles'),
const isCollection = computed(
() => route.name?.toString().includes('prefix-explore-collectibles'),
)
const isActivityTab = computed(() =>
route.name?.toString().includes('prefix-collection-id-activity'),
const isActivityTab = computed(
() => route.name?.toString().includes('prefix-collection-id-activity'),
)
</script>
Expand Down
4 changes: 2 additions & 2 deletions components/explore/MobileControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import ChainDropdown from '@/components/common/ChainDropdown.vue'
const route = useRoute()
const isActivityTab = computed(() =>
route.name?.toString().includes('prefix-collection-id-activity'),
const isActivityTab = computed(
() => route.name?.toString().includes('prefix-collection-id-activity'),
)
</script>
Expand Down
4 changes: 2 additions & 2 deletions components/migrate/steps/SignLoader3.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const { $consola } = useNuxtApp()
const from = route.query.source as Prefix
const fromAccountId = route.query.accountId?.toString()
const fromCollectionId = route.query.collectionId?.toString()
const nextCollectionId = computed(() =>
route.query.nextCollectionId?.toString(),
const nextCollectionId = computed(
() => route.query.nextCollectionId?.toString(),
)
const itemCount = route.query.itemCount?.toString()
Expand Down
5 changes: 3 additions & 2 deletions components/navbar/NavbarExploreOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ const prefixToExploreOptionName = {
}
const filteredChains = computed(() => {
return ['ahk', 'ahp', 'ksm']
.map((prefix) =>
availableChains?.value.find((chain) => chain.value === prefix),
.map(
(prefix) =>
availableChains?.value.find((chain) => chain.value === prefix),
)
.filter(Boolean)
.map((option) => ({
Expand Down
10 changes: 6 additions & 4 deletions components/shared/BreadcrumbsFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ const collectionIdList = computed(
() => breads.value.collections?.split(',') || [],
)
const collections = computed<Collection[]>(() =>
collectionArray.value?.filter((collection) =>
collectionIdList.value?.find((id) => collection.id === id),
),
const collections = computed<Collection[]>(
() =>
collectionArray.value?.filter(
(collection) =>
collectionIdList.value?.find((id) => collection.id === id),
),
)
const { isCollectionSearchMode } = useCollectionSearch()
Expand Down
4 changes: 2 additions & 2 deletions layouts/explore-layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ useHead({
})
const isExplore = computed(() => route.path.includes('/explore'))
const isCollection = computed(() =>
route.name?.toString().includes('prefix-collection-id'),
const isCollection = computed(
() => route.name?.toString().includes('prefix-collection-id'),
)
const getExploreTitle = computed(() => {
Expand Down
4 changes: 1 addition & 3 deletions pages/cookie-notice.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<template>
<section class="mb-5">
<h1 class="heading heading-is-4 font-bold uppercase">
Cookie Policy
</h1>
<h1 class="heading heading-is-4 font-bold uppercase">Cookie Policy</h1>

<time class="mb-6">Last updated May 16, 2023</time>

Expand Down
4 changes: 1 addition & 3 deletions pages/privacy-policy.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<template>
<section class="mb-5">
<h1 class="heading heading-is-4 font-bold uppercase">
PRIVACY POLICY
</h1>
<h1 class="heading heading-is-4 font-bold uppercase">PRIVACY POLICY</h1>

<time class="mb-6">Last updated September 01, 2023</time>

Expand Down

0 comments on commit d8fc785

Please sign in to comment.