renew-token-check #98

Merged
jsegarra merged 8 commits from wbuezas/hedera-web-mindshore:renew-token-check into beta 2025-01-17 23:13:21 +00:00
3 changed files with 21 additions and 6 deletions
Showing only changes of commit be8a1121f8 - Show all commits

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "24.50.16",
"version": "24.50.17",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"productName": "Verdnatura",

View File

@ -22,8 +22,8 @@ const query = `SELECT i.id, i.longName, i.size, i.category,
LEFT JOIN image im
ON im.collectionFk = 'catalog'
AND im.name = i.image
WHERE i.longName LIKE CONCAT('%', #search, '%')
OR i.id = #search
WHERE (i.longName LIKE CONCAT('%', #search, '%')
OR i.id = #search) AND i.isActive = 1
ORDER BY i.longName LIMIT 50`;
const onSearch = data => (items.value = data || []);

View File

@ -1,6 +1,5 @@
<script setup>
import { ref, onMounted, inject } from 'vue';
import VnImg from 'src/components/ui/VnImg.vue';
const jApi = inject('jApi');
const news = ref([]);
const showPreview = ref(false);
@ -14,6 +13,15 @@ const fetchData = async () => {
);
};
const showImagePreview = src => {
showPreview.value = true;
selectedImageSrc.value = src;
};
const hideImagePreview = src => {
showPreview.value = false;
selectedImageSrc.value = null;
};
onMounted(async () => await fetchData());
</script>
@ -22,7 +30,14 @@ onMounted(async () => await fetchData());
<div class="q-pa-sm row items-start">
<div class="new-card q-pa-sm" v-for="myNew in news" :key="myNew.id">
<QCard>
<VnImg :id="myNew.image" storage="news" />
<QImg
:src="`${$app.imageUrl}/news/full/${myNew.image}`"
@click="
showImagePreview(
`${$app.imageUrl}/news/full/${myNew.image}`
)
"
/>
<QCardSection>
<div class="text-h5">
@ -46,7 +61,7 @@ onMounted(async () => await fetchData());
>
</QPageSticky>
</div>
<QDialog v-model="showPreview" @hide="selectedImageSrc = ''">
<QDialog v-model="showPreview" @hide="hideImagePreview">
<QImg :src="selectedImageSrc" />
</QDialog>
</template>