feat: include all images
This commit is contained in:
@@ -409,7 +409,10 @@ export const getFeaturedFacilities = async (req, res) => {
|
|||||||
name: fac.name,
|
name: fac.name,
|
||||||
slug: fac.slug,
|
slug: fac.slug,
|
||||||
shortDescription: fac.shortDescription,
|
shortDescription: fac.shortDescription,
|
||||||
image: fac.images[0]?.url ?? '',
|
images: fac.images.map((img) => ({
|
||||||
|
id: img.id,
|
||||||
|
url: img.url,
|
||||||
|
})),
|
||||||
departmentName: fac.department?.name ?? '',
|
departmentName: fac.department?.name ?? '',
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ export default function FacilityModal({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label className="text-xs">Dynamic Storage Upload CDN Engine Image Target</Label>
|
<Label className="text-xs">Facility Image</Label>
|
||||||
<BytescaleUploader
|
<BytescaleUploader
|
||||||
value={img.url}
|
value={img.url}
|
||||||
folderPath="/facilities"
|
folderPath="/facilities"
|
||||||
@@ -245,10 +245,10 @@ export default function FacilityModal({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-4 p-5 border rounded-md bg-muted/20">
|
<div className="space-y-4 p-5 border rounded-md bg-muted/20">
|
||||||
<p className="text-base font-bold">Search Metadata Configurations (SEO)</p>
|
<p className="text-base font-bold">SEO Settings</p>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label className="text-sm font-semibold">Dynamic Header SEO Title</Label>
|
<Label className="text-sm font-semibold">SEO Title</Label>
|
||||||
<Input
|
<Input
|
||||||
name="seoTitle"
|
name="seoTitle"
|
||||||
placeholder="Advanced Facility Features Setup..."
|
placeholder="Advanced Facility Features Setup..."
|
||||||
@@ -259,7 +259,7 @@ export default function FacilityModal({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label className="text-sm font-semibold">Engine Meta Crawler Snippet Description</Label>
|
<Label className="text-sm font-semibold">Meta Description</Label>
|
||||||
<Textarea
|
<Textarea
|
||||||
name="metaDescription"
|
name="metaDescription"
|
||||||
placeholder="Enter target Google crawler index info context snippet description..."
|
placeholder="Enter target Google crawler index info context snippet description..."
|
||||||
@@ -270,7 +270,7 @@ export default function FacilityModal({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label className="text-sm font-semibold">Focus Core Optimization Target Phrase</Label>
|
<Label className="text-sm font-semibold">Focus Keyphrase</Label>
|
||||||
<Input
|
<Input
|
||||||
name="focusKeyphrase"
|
name="focusKeyphrase"
|
||||||
placeholder="best specialized diagnostic lab facility"
|
placeholder="best specialized diagnostic lab facility"
|
||||||
@@ -281,7 +281,7 @@ export default function FacilityModal({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label className="text-sm font-semibold">URL Custom Route Slug Segment</Label>
|
<Label className="text-sm font-semibold">URL Slug</Label>
|
||||||
<Input
|
<Input
|
||||||
name="slug"
|
name="slug"
|
||||||
placeholder="advanced-mri-center"
|
placeholder="advanced-mri-center"
|
||||||
@@ -295,7 +295,7 @@ export default function FacilityModal({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label className="text-sm font-semibold">Social Index Keywords Engine Tags</Label>
|
<Label className="text-sm font-semibold">Tags / Keywords</Label>
|
||||||
<div className="flex flex-wrap gap-2 border rounded-md p-3 min-h-[48px] bg-background">
|
<div className="flex flex-wrap gap-2 border rounded-md p-3 min-h-[48px] bg-background">
|
||||||
{form.tags?.map((tag: string, i: number) => (
|
{form.tags?.map((tag: string, i: number) => (
|
||||||
<div
|
<div
|
||||||
@@ -361,7 +361,7 @@ export default function FacilityModal({
|
|||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
<Button onClick={onSubmit} className="px-10 text-base">
|
<Button onClick={onSubmit} className="px-10 text-base">
|
||||||
{editing ? 'Commit Modifications' : 'Publish Asset Facility'}
|
Save Changes{' '}
|
||||||
</Button>
|
</Button>
|
||||||
</DialogFooter>
|
</DialogFooter>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user