delete unused template files

This commit is contained in:
aar2dee2 2023-08-25 15:00:51 +05:30
parent 230ebbd92f
commit 70c1f3eec3
3 changed files with 0 additions and 113 deletions

View File

@ -11,7 +11,6 @@ export const InstallAppButtonMap = {
vital: dynamic(() => import("./vital/components/InstallAppButton")),
};
export const AppSettingsComponentsMap = {
make: dynamic(() => import("./make/components/AppSettingsInterface")),
"general-app-settings": dynamic(() =>
import("./templates/general-app-settings/components/AppSettingsInterface")
),

View File

@ -1,75 +0,0 @@
import { useLocale } from "@calcom/lib/hooks/useLocale";
import TemplateCard from "./TemplateCard";
export type Template = {
icon: string;
app: string;
text: string;
link: string;
};
const templates: Template[] = [
{
icon: "gmail.svg",
app: "Gmail",
text: "Send emails via Gmail for scheduled events",
link: "https://zapier.com/app/editor/template/1071345",
},
{
icon: "googleSheets.svg",
app: "Google Sheets",
text: "Create Google Sheets rows for scheduled events",
link: "https://zapier.com/app/editor/template/1082047",
},
{
icon: "salesforce.svg",
app: "Salesforce",
text: "Create Salesforce leads from new bookings",
link: "https://zapier.com/app/editor/template/1082050",
},
{
icon: "todoist.svg",
app: "Todoist",
text: "Create Todoist tasks for scheduled events",
link: "https://zapier.com/app/editor/template/1082073",
},
{
icon: "gmail.svg",
app: "Gmail",
text: "Send emails via Gmail for rescheduled events",
link: "https://zapier.com/app/editor/template/1083605",
},
{
icon: "gmail.svg",
app: "Gmail",
text: "Send emails via Gmail for cancelled events",
link: "https://zapier.com/app/editor/template/1083609",
},
{
icon: "gmail.svg",
app: "Gmail",
text: "Send emails via Gmail after scheduled meetings end",
link: "https://zapier.com/app/editor/template/1083613",
},
{
icon: "googleCalendar.svg",
app: "Google Calendar",
text: "Add new bookings to Google Calendar",
link: "https://zapier.com/app/editor/template/1083651",
},
];
export default function AppSettings() {
const { t } = useLocale();
return (
<>
<div className="text-sm font-semibold leading-4 ">{t("get_started_make_templates")}</div>
<div className="mt-4 grid gap-4 md:grid-cols-2">
{templates.map((template, index) => (
<TemplateCard key={index} template={template} />
))}
</div>
</>
);
}

View File

@ -1,37 +0,0 @@
import { Button } from "@calcom/ui";
import type { Template } from "./AppSettingsInterface";
export default function TemplateCard({ template }: { template: Template }) {
return (
<div className="min-h-16 bg-default border-subtle sticky flex flex-col justify-between gap-4 rounded-md border p-5">
<div className="flex items-start justify-start">
<div>
<div className="mr-4 flex h-12 w-12 items-center justify-center rounded-md p-1">
<img className="h-8" alt={template.app} src={`/api/app-store/make/${template.icon}`} />
</div>
</div>
<div className="mr-4">
<div>
<p className="text-emphasis truncate text-sm font-medium leading-4">{template.app}</p>
<p className="text-subtle mt-[2px] text-sm">{template.text}</p>
</div>
</div>
</div>
<div className="hidden w-full sm:block">
<div className="float-right">
<Button color="secondary" className=" w-[90px]" target="_blank" href={template.link}>
Create Scenario
</Button>
</div>
</div>
<div className="mt-2 block w-full sm:hidden">
<div className="float-right">
<Button color="secondary" className="w-[90px]" target="_blank" href={template.link}>
Create Scenario
</Button>
</div>
</div>
</div>
);
}