Track HiveGrid Cloud planning reference

This commit is contained in:
david committed 2026-06-26 20:48:01 +02:00
1 parent b3d5ea6764
commit e341c5938a
5784 files changed
+1104929 -3

No files matched your search

@@ -0,0 +1,59 @@
import { LoaderFunctionArgs } from "react-router";
import { Link } from "react-router";
import { useTranslation } from "react-i18next";
type LoaderData = {};
export const loader = async ({ params }: LoaderFunctionArgs) => {
const data: LoaderData = {};
return data;
};
type CreateTemplateType = {
titleKey: string;
descriptionKey: string;
href: string;
enterprise?: boolean;
underConstruction?: boolean;
};
const types: CreateTemplateType[] = [
{
titleKey: "models.entityTemplate.manual",
descriptionKey: "models.entityTemplate.uploadJsonConfiguration",
href: "manual",
},
];
export default function AdminEntityNoCodeRoute() {
const { t } = useTranslation();
return (
<div className="mx-auto w-full max-w-5xl space-y-3 px-4 py-2 pb-6 sm:px-6 sm:pt-3 lg:px-8 xl:max-w-full">
<div className="md:border-border md:border-b md:py-2">
<div className="flex items-center justify-between">
<h3 className="text-foreground text-lg font-medium leading-6">{t("models.entityTemplate.plural")}</h3>
{/* <div className="flex items-center space-x-2">
<InputFilters withSearch={false} filters={data.filterableProperties} />
</div> */}
</div>
</div>
<div className="grid gap-2 md:grid-cols-2 lg:grid-cols-3">
{types.map((item) => {
return (
<Link
key={item.titleKey}
to={item.href}
className="border-border focus:bg-background hover:border-border relative flex w-full flex-col justify-center space-y-2 rounded-lg border-2 border-dashed p-3 text-center focus:border-2 focus:border-gray-600 focus:outline-hidden"
>
<div className="text-foreground block text-sm font-medium">
{t(item.titleKey)} {item.enterprise && <span className="text-xs font-extrabold">({t("shared.pro")})</span>}
</div>
<div className="text-muted-foreground block text-xs">{t(item.descriptionKey)}</div>
{item.underConstruction && <div className="text-muted-foreground text-xs">{t("shared.underConstruction")}</div>}
</Link>
);
})}
</div>
</div>
);
}