Enhance image upload functionality for admin and improve course navigation. Added support for image uploads in course forms and generic forms, utilizing a new ImageUploadField component. Updated navigation to dynamically include course tags and refined layout components for better user experience. Configured Docker for persistent uploads with a dedicated volume.
This commit is contained in:
1 parent
ef1ccea0ad
commit
66a8e8f213
29 files changed
+748
-125
No files matched your search
+25
-7
@@ -20,24 +20,42 @@ export const siteAddress = {
|
||||
mapUrl: "https://maps.google.com/?q=Amirkabir+University+of+Technology",
|
||||
};
|
||||
|
||||
/** Main nav labels for Persian users */
|
||||
/**
|
||||
* Parent label for the single courses dropdown on the home nav.
|
||||
* Change this to rename the root item; child items come from course tags.
|
||||
* See docs/LINKS.md.
|
||||
*/
|
||||
export const courseNavParentTag = "دورهها";
|
||||
|
||||
/**
|
||||
* Preferred order of tag items inside the courses dropdown.
|
||||
* Tags present on published courses but missing here still appear after these.
|
||||
* Keep in sync with admin suggested tags when possible.
|
||||
*/
|
||||
export const courseNavTagOrder: string[] = [
|
||||
"کارگاهها",
|
||||
"دورههای سازمانی",
|
||||
"گزیده دورههای برگزار شده",
|
||||
];
|
||||
|
||||
/** Main nav (static items). Courses dropdown is injected at runtime from tags. */
|
||||
export const homeNav: NavItem[] = [
|
||||
{ label: "ارزشها", href: "/values" },
|
||||
{ label: "اساتید", href: "https://mst.aut.ac.ir/content/31094/شبکه-اساتید" },
|
||||
{ label: "درباره ما", href: "/about" },
|
||||
{ label: "دورههای کوتاه", href: "/professional" },
|
||||
{ label: "دورههای صنعتی", href: "/professional" },
|
||||
{ label: "دانشگاه امیرکبیر", href: "https://mst.aut.ac.ir/", prominent: true },
|
||||
];
|
||||
|
||||
export const professionalNav: NavItem[] = [
|
||||
{
|
||||
label: "فهرست دورهها",
|
||||
label: courseNavParentTag,
|
||||
href: "/professional#programs",
|
||||
children: [
|
||||
{ label: "گواهینامهها", href: "/professional#certificates" },
|
||||
{ label: "دورههای آنلاین", href: "/professional#courses" },
|
||||
{ label: "دورههای سازمانی", href: "/professional#corporate" },
|
||||
{ label: "همه دورهها", href: "/professional" },
|
||||
...courseNavTagOrder.map((tag) => ({
|
||||
label: tag,
|
||||
href: `/professional?tag=${encodeURIComponent(tag)}`,
|
||||
})),
|
||||
],
|
||||
},
|
||||
{ label: "نحوه یادگیری", href: "/professional#digital" },
|
||||
|
||||
Reference in new issue
Block a user