Initial commit: dashboard

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-03 23:17:36 +03:30
co-authored by Cursor
commit 3db32212ad
177 changed files with 29988 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
"use client";
import { useParams } from "next/navigation";
import AddBlogForm from "@/components/catalog/AddBlogForm";
import { en } from "@/lib/i18n/en";
export default function ManageAddBlogPage() {
const params = useParams<{ meshkeeId: string }>();
const meshkeeId = String(params.meshkeeId ?? "");
const listHref = `/manage/${encodeURIComponent(meshkeeId)}/blog`;
return (
<AddBlogForm
meshkeeId={meshkeeId}
listHref={listHref}
title={en.blog.addTitle}
lead={en.blog.addLead}
/>
);
}
+33
View File
@@ -0,0 +1,33 @@
"use client";
import Link from "next/link";
import { useParams } from "next/navigation";
import { BusinessListHeader } from "@/components/business/BusinessPageChrome";
import BlogPanel from "@/components/catalog/BlogPanel";
import { en } from "@/lib/i18n/en";
import styles from "@/components/BusinessDetailsPage.module.css";
export default function ManageBusinessBlogPage() {
const params = useParams<{ meshkeeId: string }>();
const meshkeeId = String(params.meshkeeId ?? "");
const addHref = `/manage/${encodeURIComponent(meshkeeId)}/blog/new`;
return (
<>
<BusinessListHeader
title={en.blog.title}
lead={en.blog.lead}
action={
<Link href={addHref} className={`outline-btn ${styles.actionBtn}`}>
{en.blog.add}
</Link>
}
/>
<BlogPanel
meshkeeId={meshkeeId}
emptyLabel={en.blog.empty}
addHref={addHref}
/>
</>
);
}