mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* feat: Cal.diy — community-driven MIT-licensed fork of Cal.com This squashed commit contains all Cal.diy changes applied on top of calcom/cal.com main: - Rebrand Cal.com to Cal.diy across the entire codebase - Remove Enterprise Edition (EE) features, license checks, and AGPL restrictions - Switch license from AGPL-3.0 to MIT - Remove docs/ directory (migrated to Nextra at cal.diy) - Remove dead code: org tests, EE tips, platform nav, premium username, SAML/SSO, etc. - Clean up .env.example for self-hosted Cal.diy - Update Docker image references to calcom/cal.diy - Update README, CONTRIBUTING.md, and issue templates for Cal.diy community fork - Add PR welcome bot for Cal.diy contributors - Fix API v2 breaking changes oasdiff ignore entries - Replace Blacksmith CI runners with default GitHub Actions 3893 files changed, 20789 insertions(+), 411020 deletions(-) Co-Authored-By: [email protected] <[email protected]> * refactor: remove org-specific /organizations/:orgId endpoints from API v2 atoms controllers (#1701) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix: revert Cal.diy Inc to Cal.com, Inc. in license files, copyright notices, and package metadata (#1702) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * rip out org related comments in api v2 --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { getTranslate } from "app/_utils";
|
|
import type { Metadata } from "next";
|
|
|
|
import { IS_DUB_REFERRALS_ENABLED } from "@calcom/lib/constants";
|
|
|
|
import Shell from "~/shell/Shell";
|
|
|
|
import { DubReferralsPage } from "./DubReferralsPage";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Cal.diy referral program - Earn money by sharing your link",
|
|
description:
|
|
"Earn 20% recurring commissions for a full year by referring others to Cal.diy, while giving your referrals 20% off for 12 months. Share your link and start earning today!",
|
|
};
|
|
|
|
// Export the appropriate component based on the feature flag
|
|
export default async function ReferralsPage() {
|
|
const t = await getTranslate();
|
|
|
|
return (
|
|
<Shell withoutMain={true}>
|
|
{IS_DUB_REFERRALS_ENABLED ? (
|
|
<div className="-m-4 sm:-mt-6 md:-mt-4">
|
|
<DubReferralsPage />
|
|
</div>
|
|
) : (
|
|
<div className="mx-auto max-w-4xl p-8 text-center">
|
|
<h2 className="mb-4 text-xl font-semibold">{t("referral_program")}</h2>
|
|
<p>{t("dub_disabled_error_message")}</p>
|
|
</div>
|
|
)}
|
|
</Shell>
|
|
);
|
|
}
|