Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update shortDomain relation, cleanup old icons

Steven Teyea7eff6c4098
diff --git a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx
index 6f50389e81..037c36e8a5 100644
--- a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx
+++ b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx
@@ -41,7 +41,7 @@ export default async function DeepLinkPreviewPage({
// if the link domain doesn't have an AASA file configured,
// we skip the deep link preview and redirect to the link's URL
- if (!link.shortDomain?.appleAppSiteAssociation) {
+ if (!link.shortDomain.appleAppSiteAssociation) {
redirect(link.ios ?? link.url);
}
diff --git a/packages/prisma/schema/link.prisma b/packages/prisma/schema/link.prisma
index 247c9ace30..202d1edc9d 100644
--- a/packages/prisma/schema/link.prisma
+++ b/packages/prisma/schema/link.prisma
@@ -65,7 +65,7 @@ model Link {
updatedAt DateTime @updatedAt
// Link short domain
- shortDomain Domain? @relation(fields: [domain], references: [slug])
+ shortDomain Domain @relation(fields: [domain], references: [slug])
// Link tags
tags LinkTag[]
diff --git a/packages/ui/src/content.ts b/packages/ui/src/content.ts
index e1b93a41ba..7198c38d40 100644
--- a/packages/ui/src/content.ts
+++ b/packages/ui/src/content.ts
@@ -15,9 +15,7 @@ import {
LinkedIn,
MicrophoneFill,
Php,
- ProductHunt,
Python,
- Raycast,
Ruby,
Toggle2Fill,
Twitter,
@@ -26,7 +24,6 @@ import {
YouTube,
} from "./icons";
import { DubApiIcon } from "./icons/dub-api";
-import { Elxo } from "./icons/elxo";
import { Logo } from "./logo";
export type NavItemChild = {
@@ -79,30 +76,6 @@ export const FEATURES_LIST = [
},
];
-export const CUSTOMER_STORIES = [
- {
- icon: Raycast,
- iconClassName: "group-hover:text-[#FF6363]",
- title: "Raycast",
- description: "Programmatic link sharing",
- href: "/customers/raycast",
- },
- {
- icon: ProductHunt,
- iconClassName: "group-hover:text-[#FF6154]",
- title: "Product Hunt",
- description: "Unlocking new growth",
- href: "/customers/product-hunt",
- },
- {
- icon: Elxo,
- iconClassName: "group-hover:text-[#353D7C]",
- title: "Elxo",
- description: "Overcoming API latency",
- href: "/customers/elxo",
- },
-];
-
export const SDKS = [
{
icon: Typescript,
diff --git a/packages/ui/src/icons/elxo.tsx b/packages/ui/src/icons/elxo.tsx
deleted file mode 100644
index c3e6790e67..0000000000
--- a/packages/ui/src/icons/elxo.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import { SVGProps } from "react";
-
-export function Elxo(props: SVGProps<SVGSVGElement>) {
- return (
- <svg
- width="16"
- height="11"
- viewBox="0 0 16 11"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- {...props}
- >
- <path
- d="M10.1552 10.5H5.8442C3.15868 10.5 0.840663 8.4364 0.706388 5.75088C0.565045 2.88163 2.86186 0.5 5.70285 0.5H10.1622C12.9184 0.5 15.3071 2.74028 15.3 5.50353C15.3 5.95583 14.9325 6.32332 14.4732 6.32332H3.8442C3.61805 6.32332 3.4343 6.13958 3.4343 5.91343V5.08657C3.4343 4.86042 3.61805 4.67668 3.8442 4.67668H13.2647C12.8972 3.22792 11.5827 2.14664 10.0138 2.14664H6.10568C4.32476 2.14664 2.76292 3.4894 2.64278 5.27032C2.51557 7.22085 4.06328 8.85336 5.98554 8.85336H10.1552C11.2435 8.85336 12.1198 8.33039 12.7488 7.43993L12.9891 7.10777C13.1233 6.92403 13.3778 6.88163 13.5615 7.00883L14.5156 7.4894C14.6993 7.62367 14.7417 7.87809 14.6145 8.06184L14.3742 8.39399C13.4414 9.71555 11.7806 10.5 10.1552 10.5Z"
- fill="currentColor"
- />
- </svg>
- );
-}
diff --git a/packages/ui/src/icons/index.tsx b/packages/ui/src/icons/index.tsx
index 58caeaa340..83034023e3 100644
--- a/packages/ui/src/icons/index.tsx
+++ b/packages/ui/src/icons/index.tsx
@@ -34,12 +34,9 @@ export * from "./github";
export * from "./google";
export * from "./instagram";
export * from "./linkedin";
-export * from "./prisma";
export * from "./product-hunt";
-export * from "./raycast";
export * from "./slack";
export * from "./tiktok";
-export * from "./tinybird";
export * from "./twitter";
export * from "./unsplash";
export * from "./youtube";
diff --git a/packages/ui/src/icons/prisma.tsx b/packages/ui/src/icons/prisma.tsx
deleted file mode 100644
index 1496d6d6ae..0000000000
--- a/packages/ui/src/icons/prisma.tsx
+++ /dev/null
@@ -1,19 +0,0 @@
-import { SVGProps } from "react";
-
-export function Prisma(props: SVGProps<SVGSVGElement>) {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 159 194"
- fill="none"
- {...props}
- >
- <path
- fill="currentColor"
- fillRule="evenodd"
- d="M2.397 122.867a9.632 9.632 0 0 0 .077 10.192l35.622 56.193a9.633 9.633 0 0 0 10.905 4.069l102.797-30.839c5.61-1.683 8.432-7.941 5.98-13.26L91.695 5.872c-3.222-6.99-12.938-7.564-16.961-1.001L2.397 122.867ZM89.94 38.644c-1.404-3.25-6.16-2.75-6.857.722L57.64 166.044c-.537 2.671 1.964 4.952 4.575 4.173l71.025-21.202a3.61 3.61 0 0 0 2.282-4.894L89.94 38.644Z"
- clipRule="evenodd"
- />
- </svg>
- );
-}
diff --git a/packages/ui/src/icons/tinybird.tsx b/packages/ui/src/icons/tinybird.tsx
deleted file mode 100644
index 0e367e88f1..0000000000
--- a/packages/ui/src/icons/tinybird.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { SVGProps } from "react";
-
-export function Tinybird(props: SVGProps<SVGSVGElement>) {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 25 26"
- fill="none"
- {...props}
- >
- <path
- fill="currentColor"
- d="M25 2.64 17.195.5 14.45 6.635 25 2.64Zm-7.465 15.13-7.145-2.555L6.195 25.5l11.34-7.73Z"
- opacity={0.6}
- />
- <path
- fill="currentColor"
- d="m0 11.495 17.535 6.275L20.41 4.36 0 11.495Z"
- />
- </svg>
- );
-}