Few layout updates and collection page naming fix.
This commit is contained in:
parent
674ae033af
commit
571391b1e7
|
@ -63,12 +63,11 @@ export default defineComponent({
|
||||||
const thumbnailPlaceholder = computed (() => require('../../assets/placeholder_square_small.png'))
|
const thumbnailPlaceholder = computed (() => require('../../assets/placeholder_square_small.png'))
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const goToCollectionPage = (collection: any) => {
|
const goToCollectionPage = (collection: any) => {
|
||||||
router .push({
|
router.push({
|
||||||
name: 'collection',
|
name: 'collection',
|
||||||
params: {
|
params: {
|
||||||
id: collection.id,
|
id: collection.id
|
||||||
collection: JSON.stringify(collection)
|
},
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -7,6 +7,7 @@ export const translationStrings = {
|
||||||
label_loading: 'Loading...',
|
label_loading: 'Loading...',
|
||||||
label_items_list: 'Items list',
|
label_items_list: 'Items list',
|
||||||
label_collections_list: 'Collections list',
|
label_collections_list: 'Collections list',
|
||||||
|
label_collection_items_list: 'Collection items list',
|
||||||
collection: 'Collection',
|
collection: 'Collection',
|
||||||
label_site_url: 'Archive site URL',
|
label_site_url: 'Archive site URL',
|
||||||
placeholder_site_url: 'https://my-tainacan-archive.com',
|
placeholder_site_url: 'https://my-tainacan-archive.com',
|
||||||
|
@ -45,6 +46,7 @@ export const translationStrings = {
|
||||||
label_loading: 'Carregando...',
|
label_loading: 'Carregando...',
|
||||||
label_items_list: 'Lista de itens',
|
label_items_list: 'Lista de itens',
|
||||||
label_collections_list: 'Lista de coleções',
|
label_collections_list: 'Lista de coleções',
|
||||||
|
label_collection_items_list: 'Lista de itens da coleção',
|
||||||
collection: 'Coleção',
|
collection: 'Coleção',
|
||||||
label_site_url: 'URL do Site do Acervo',
|
label_site_url: 'URL do Site do Acervo',
|
||||||
placeholder_site_url: 'https://meu-acervo-tainacan.com',
|
placeholder_site_url: 'https://meu-acervo-tainacan.com',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<base-layout
|
<base-layout
|
||||||
:page-title="(collectionObject && collectionObject.name) ? collectionObject.name : $t('collection')"
|
:page-title="$t('label_collection_items_list')"
|
||||||
page-default-back-link="/collections">
|
page-default-back-link="/collections">
|
||||||
<ion-refresher slot="fixed" @ionRefresh="doRefresh($event)">
|
<ion-refresher slot="fixed" @ionRefresh="doRefresh($event)">
|
||||||
<ion-refresher-content></ion-refresher-content>
|
<ion-refresher-content></ion-refresher-content>
|
||||||
|
@ -75,8 +75,7 @@ export default defineComponent({
|
||||||
IonInfiniteScrollContent
|
IonInfiniteScrollContent
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
id: String,
|
id: String
|
||||||
collection: String
|
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const isLoading = ref(false);
|
const isLoading = ref(false);
|
||||||
|
@ -186,8 +185,7 @@ export default defineComponent({
|
||||||
const { role, data } = await actionSheet.onDidDismiss();
|
const { role, data } = await actionSheet.onDidDismiss();
|
||||||
console.log('onDidDismiss resolved with role and data', role, data);
|
console.log('onDidDismiss resolved with role and data', role, data);
|
||||||
}
|
}
|
||||||
const collectionObject = props.collection ? JSON.parse(props.collection + '') : false;
|
|
||||||
|
|
||||||
let tainacanStore = useTainacanStore();
|
let tainacanStore = useTainacanStore();
|
||||||
return {
|
return {
|
||||||
isLoading,
|
isLoading,
|
||||||
|
@ -201,7 +199,6 @@ export default defineComponent({
|
||||||
add,
|
add,
|
||||||
actionSheetLabels,
|
actionSheetLabels,
|
||||||
setActionSheetLabels,
|
setActionSheetLabels,
|
||||||
collectionObject,
|
|
||||||
infiniteScroll,
|
infiniteScroll,
|
||||||
handleSearch,
|
handleSearch,
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,10 @@
|
||||||
size="small"
|
size="small"
|
||||||
routerLink="/collections">
|
routerLink="/collections">
|
||||||
{{ $t('label_view_all_collections', [tainacanStore.totalHomeCollections]) }}
|
{{ $t('label_view_all_collections', [tainacanStore.totalHomeCollections]) }}
|
||||||
|
<ion-icon
|
||||||
|
slot="end"
|
||||||
|
:icon="arrowForwardOutline"
|
||||||
|
></ion-icon>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
<ion-list>
|
<ion-list>
|
||||||
<ion-list-header>
|
<ion-list-header>
|
||||||
|
@ -32,6 +36,10 @@
|
||||||
size="small"
|
size="small"
|
||||||
routerLink="/items">
|
routerLink="/items">
|
||||||
{{ $t('label_view_all_items', [tainacanStore.totalHomeItems]) }}
|
{{ $t('label_view_all_items', [tainacanStore.totalHomeItems]) }}
|
||||||
|
<ion-icon
|
||||||
|
slot="end"
|
||||||
|
:icon="arrowForwardOutline"
|
||||||
|
></ion-icon>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
</base-layout>
|
</base-layout>
|
||||||
|
@ -46,7 +54,9 @@ import { ref } from 'vue';
|
||||||
import CollectionsList from '@/components/lists/CollectionsList.vue';
|
import CollectionsList from '@/components/lists/CollectionsList.vue';
|
||||||
import ItemsList from '@/components/lists/ItemsList.vue';
|
import ItemsList from '@/components/lists/ItemsList.vue';
|
||||||
import BaseLayout from '@/components/base/BaseLayout.vue';
|
import BaseLayout from '@/components/base/BaseLayout.vue';
|
||||||
|
import { arrowForwardOutline } from "ionicons/icons";
|
||||||
import {
|
import {
|
||||||
|
IonIcon,
|
||||||
IonButton,
|
IonButton,
|
||||||
IonLoading,
|
IonLoading,
|
||||||
IonList,
|
IonList,
|
||||||
|
@ -57,6 +67,7 @@ import {
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
IonIcon,
|
||||||
CollectionsList,
|
CollectionsList,
|
||||||
ItemsList,
|
ItemsList,
|
||||||
BaseLayout,
|
BaseLayout,
|
||||||
|
@ -83,6 +94,7 @@ export default {
|
||||||
let tainacanStore = useTainacanStore();
|
let tainacanStore = useTainacanStore();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
arrowForwardOutline,
|
||||||
tainacanStore,
|
tainacanStore,
|
||||||
isLoading,
|
isLoading,
|
||||||
setIsLoading,
|
setIsLoading,
|
||||||
|
|
|
@ -19,6 +19,7 @@ ion-card {
|
||||||
.searchbar-input {
|
.searchbar-input {
|
||||||
border-radius: 30px !important;
|
border-radius: 30px !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
|
--background: var(--ion-color-light-shade);
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-md::after {
|
.header-md::after {
|
||||||
|
|
Loading…
Reference in New Issue