Skip to content

Commit

Permalink
Improve list page table (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab authored Mar 12, 2024
1 parent e1b1ca3 commit 6f60d4a
Show file tree
Hide file tree
Showing 16 changed files with 327 additions and 402 deletions.
8 changes: 4 additions & 4 deletions components/Fields/Field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ export default defineNuxtComponent({
v-else-if="isWebsite"
:key="`website_${item}`"
>
<ExternalLink :href="item">
{{ item }}
<ExternalLink :title="item" :href="item">
{{ context !== 'label_list' ? item : '' }}
</ExternalLink>
</div>

Expand All @@ -240,8 +240,8 @@ export default defineNuxtComponent({
v-else-if="field.field === 'email'"
:key="`email_${item}`"
>
<ExternalLink :href="`mailto:${item}`" icon="envelope">
{{ item }}
<ExternalLink :title="item" :href="`mailto:${item}`" icon="envelope">
{{ context !== 'label_list' ? item : '' }}
</ExternalLink>
</div>

Expand Down
2 changes: 2 additions & 0 deletions components/Layout/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export default defineNuxtComponent({
:logo-url="theme && theme.logo_url"
/>

<slot name="search" />

<div class="tw-flex tw-justify-end print:tw-hidden">
<slot />
<NavMenu :entries="navMenuEntries" />
Expand Down
6 changes: 3 additions & 3 deletions components/PoisList/Actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import type { PropType } from 'vue'
import { defineNuxtComponent, useRequestHeaders } from '#app'
import { defineNuxtComponent } from '#app'
import IconButton from '~/components/UI/IconButton.vue'
import IconsBar from '~/components/UI/IconsBar.vue'
import { getPoiByCategoryIdUrl } from '~/lib/apiPois'
import { siteStore as useSiteStore } from '~/stores/site'
export default defineNuxtComponent({
components: {
FontAwesomeIcon,
IconsBar,
IconButton,
},
props: {
categoryId: {
type: Number,
Expand Down Expand Up @@ -42,7 +42,7 @@ export default defineNuxtComponent({
methods: {
url(format: 'geojson' | 'csv'): string {
return getPoiByCategoryIdUrl(
this.$vidoConfig(useRequestHeaders()),
useSiteStore().config!,
this.categoryId,
{
geometry_as: 'point',
Expand Down
144 changes: 0 additions & 144 deletions components/PoisList/PoisList.vue

This file was deleted.

Loading

0 comments on commit 6f60d4a

Please sign in to comment.