-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#80] Standardized formatting & now using local assets
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
Showing
2 changed files
with
62 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |