Skip to content

Commit

Permalink
[#80] Standardized formatting & now using local assets
Browse files Browse the repository at this point in the history
The code changes replace the placeholder user profile images in the request sample data with a consistent local placeholder image. Additionally, the sample data and various strings are reformatted to use consistent double quotes and whitespace style.

This standardizes the sample data formatting to follow project conventions, removes external image references, and improves placeholder visual consistency. The changes help prepare the sample data for integration in additional views across the application.
  • Loading branch information
delano committed Mar 21, 2024
1 parent 94f214e commit adf192d
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 63 deletions.
47 changes: 24 additions & 23 deletions apps/ui/pages/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,30 @@ definePageMeta({
},
})
const requests = [{
id: '8a36e9c2-966b-4573-ad8a-ce3c01e98e26',
date: '2024-01-01',
address_full: '123 Maple Street, Toronto, Ontario, M5V 2T6, Canada',
payload: '2 bags of dog food and 1 bag of cat food.',
imageUrl:
'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
}, {
id: '9d4c52f7-1e9d-430f-b6dd-1c0a3377f290',
date: '2024-02-02',
address_full: '456 Oak Avenue, Vancouver, British Columbia, V5Z 0B3, Canada',
payload: '3 bags of cat food.',
imageUrl:
'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
}, {
id: '62d77fa2-4f6e-427d-8744-258d12ceae49',
date: '2024-03-03',
address_full: '789 Pine Road, Calgary, Alberta, T2P 2M5, Canada',
payload: '1 bag of dog food and 2 cans of cat food.',
imageUrl:
'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
}]
const requests = [
{
id: "8a36e9c2-966b-4573-ad8a-ce3c01e98e26",
date: "2024-01-01",
address_full: "123 Maple Street, Toronto, Ontario, M5V 2T6, Canada",
payload: "2 bags of dog food and 1 bag of cat food.",
imageUrl: "/img/Dog-Cat-Eating-240x240-1.png",
},
{
id: "9d4c52f7-1e9d-430f-b6dd-1c0a3377f290",
date: "2024-02-02",
address_full:
"456 Oak Avenue, Vancouver, British Columbia, V5Z 0B3, Canada",
payload: "3 bags of cat food.",
imageUrl: "/img/Dog-Cat-Eating-240x240-1.png",
},
{
id: "62d77fa2-4f6e-427d-8744-258d12ceae49",
date: "2024-03-03",
address_full: "789 Pine Road, Calgary, Alberta, T2P 2M5, Canada",
payload: "1 bag of dog food and 2 cans of cat food.",
imageUrl: "/img/Dog-Cat-Eating-240x240-1.png",
},
];
</script>

Expand Down Expand Up @@ -68,7 +70,6 @@ const requests = [{

</UDashboardPanelContent>


</UDashboardPanel>
</UDashboardPage>
</template>
78 changes: 38 additions & 40 deletions apps/ui/pages/requests/index.vue
Original file line number Diff line number Diff line change
@@ -1,63 +1,61 @@

<script setup lang="ts">
definePageMeta({
layout: 'dashboard',
layout: "dashboard",
auth: {
unauthenticatedOnly: true,
navigateAuthenticatedTo: '/login',
navigateAuthenticatedTo: "/login",
},
})
const q = ref('')
});
const q = ref("");
const requests = [{
id: '8a36e9c2-966b-4573-ad8a-ce3c01e98e26',
date: '2024-01-01',
address_full: '123 Maple Street, Toronto, Ontario, M5V 2T6, Canada',
payload: '2 bags of dog food and 1 bag of cat food.',
imageUrl:
'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
}, {
id: '9d4c52f7-1e9d-430f-b6dd-1c0a3377f290',
date: '2024-02-02',
address_full: '456 Oak Avenue, Vancouver, British Columbia, V5Z 0B3, Canada',
payload: '3 bags of cat food.',
imageUrl:
'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
}, {
id: '62d77fa2-4f6e-427d-8744-258d12ceae49',
date: '2024-03-03',
address_full: '789 Pine Road, Calgary, Alberta, T2P 2M5, Canada',
payload: '1 bag of dog food and 2 cans of cat food.',
imageUrl:
'https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80',
}]
const requests = [
{
id: "8a36e9c2-966b-4573-ad8a-ce3c01e98e26",
date: "2024-01-01",
address_full: "123 Maple Street, Toronto, Ontario, M5V 2T6, Canada",
payload: "2 bags of dog food and 1 bag of cat food.",
imageUrl: "/img/Dog-Cat-Eating-240x240-1.png",
},
{
id: "9d4c52f7-1e9d-430f-b6dd-1c0a3377f290",
date: "2024-02-02",
address_full:
"456 Oak Avenue, Vancouver, British Columbia, V5Z 0B3, Canada",
payload: "3 bags of cat food.",
imageUrl: "/img/Dog-Cat-Eating-240x240-1.png",
},
{
id: "62d77fa2-4f6e-427d-8744-258d12ceae49",
date: "2024-03-03",
address_full: "789 Pine Road, Calgary, Alberta, T2P 2M5, Canada",
payload: "1 bag of dog food and 2 cans of cat food.",
imageUrl: "/img/Dog-Cat-Eating-240x240-1.png",
},
];
</script>

<template>
<UDashboardPage>
<UDashboardPanel>
<UDashboardNavbar title="Requests">

</UDashboardNavbar>
<UDashboardNavbar title="Requests"> </UDashboardNavbar>

<UDashboardPanelContent class="pb-24">

<UDashboardSection
icon="i-streamline-shipping-truck"
title="Request History"
description="Your previous requests for food."
icon="i-streamline-shipping-truck"
title="Request History"
description="Your previous requests for food."
/>

<!-- <h2 class="text-2xl sm:text-xl font-bold text-gray-900 dark:text-white tracking-tight"></h2> -->

<RequestList title="Request History" description="" :cta="true" :requests="requests" />

<RequestList
title="Request History"
description=""
:cta="true"
:requests="requests"
/>
</UDashboardPanelContent>
</UDashboardPanel>
</UDashboardPage>

</template>

0 comments on commit adf192d

Please sign in to comment.