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.

simplify implementation, fix svg props

Steven Tey6fbf74104aef
diff --git a/apps/web/ui/guides/guide.tsx b/apps/web/ui/guides/guide.tsx
index 6f96fd1f2f..36dad6b092 100644
--- a/apps/web/ui/guides/guide.tsx
+++ b/apps/web/ui/guides/guide.tsx
@@ -101,7 +101,8 @@ export function Guide({ markdown }: { markdown: string }) {
<button
className="flex w-full cursor-pointer items-center gap-2 rounded-md p-2 text-sm text-neutral-600 transition-colors hover:bg-neutral-100"
onClick={() => {
- const chatgptUrl = `https://chatgpt.com/new?q=${encodeURIComponent(prompt)}`;
+ const chatgptUrl = `https://chatgpt.com?hints=search&prompt=${encodeURIComponent(prompt)}`;
+ console.log("chatgptUrl", chatgptUrl);
window.open(chatgptUrl, "_blank", "noopener,noreferrer");
}}
>
diff --git a/apps/web/ui/guides/icons/next-auth.tsx b/apps/web/ui/guides/icons/next-auth.tsx
index a9e089a243..0b03b2f307 100644
--- a/apps/web/ui/guides/icons/next-auth.tsx
+++ b/apps/web/ui/guides/icons/next-auth.tsx
@@ -12,29 +12,29 @@ export function NextAuth(props: SVGProps<SVGSVGElement>) {
>
<g clipPath="url(#clip0_18024_112096)">
<path
- fill-rule="evenodd"
- clip-rule="evenodd"
+ fillRule="evenodd"
+ clipRule="evenodd"
d="M36.877 5.49293L6.08523 28.919C2.30405 22.0631 0.994339 13.7927 0.896484 8.83233V5.79622C0.896484 5.3546 1.37559 5.09703 1.61519 5.02338C6.68298 3.49617 16.9735 0.397455 17.5927 0.220809C18.2118 0.0441617 18.7351 0 18.9196 0H18.9363C19.1206 0 19.6439 0.0441617 20.2632 0.220809C20.8823 0.397455 31.1729 3.49617 36.2406 5.02338C36.4189 5.07816 36.7296 5.23471 36.877 5.49293Z"
fill="url(#paint0_linear_18024_112096)"
/>
<path
- fill-rule="evenodd"
- clip-rule="evenodd"
+ fillRule="evenodd"
+ clipRule="evenodd"
d="M6.08496 28.9572L36.8767 5.53125C36.9276 5.62035 36.9591 5.72137 36.9591 5.83454V8.87065C36.7933 17.2798 33.1443 35.202 19.8759 39.6182C19.6917 39.6919 19.2567 39.8391 18.9914 39.8391H18.864C18.5986 39.8391 18.1636 39.6919 17.9794 39.6182C12.5376 37.807 8.71387 33.7241 6.08496 28.9572Z"
fill="url(#paint1_linear_18024_112096)"
/>
<path
d="M20.1622 0.22125C19.5427 0.04425 19.0191 0 18.8346 0L18.7793 39.8802H18.89C19.1555 39.8802 19.5907 39.7328 19.775 39.659C33.05 35.234 36.7007 17.2759 36.8665 8.84998V5.80781C36.8665 5.36531 36.3872 5.10717 36.1474 5.03343C31.0772 3.50312 20.7817 0.39825 20.1622 0.22125Z"
fill="url(#paint2_linear_18024_112096)"
- fill-opacity="0.21"
+ fillOpacity="0.21"
/>
<path
d="M18.9837 27.8774C23.5354 27.8774 27.2253 24.2123 27.2253 19.6911C27.2253 15.17 23.5354 11.5049 18.9837 11.5049C14.4321 11.5049 10.7422 15.17 10.7422 19.6911C10.7422 24.2123 14.4321 27.8774 18.9837 27.8774Z"
fill="#E3E2FA"
/>
<path
- fill-rule="evenodd"
- clip-rule="evenodd"
+ fillRule="evenodd"
+ clipRule="evenodd"
d="M17.4905 21.4614C16.8636 21.5168 15.278 21.2402 14.5036 20.5764C13.6722 19.8637 13.2314 18.9171 13.2314 17.5342C13.2314 15.8187 14.7802 13.9943 16.9374 14.0496C18.9863 14.1021 20.3682 15.257 20.6433 17.0917C20.787 18.0492 20.6406 18.5094 20.5268 18.8668C20.5092 18.9225 20.4923 18.9756 20.4775 19.0277C20.4221 19.2121 20.3447 19.614 20.4775 19.7468C20.6101 19.8795 22.6345 21.8302 23.6302 22.7889C23.7223 22.8995 23.9068 23.1761 23.9068 23.3973V24.4483C23.9068 24.6142 23.8625 24.6695 23.6856 24.6695H21.473C21.344 24.6511 21.0858 24.5258 21.0858 24.1718C21.0858 23.7944 21.0456 23.7389 20.9651 23.6277C20.9513 23.6085 20.9361 23.5877 20.9199 23.5633C20.8092 23.3973 20.588 23.3973 20.3668 23.3973C20.1456 23.3973 19.9795 23.342 19.869 23.2314C19.7583 23.1208 19.7583 22.9549 19.8137 22.7337C19.869 22.5123 19.8137 22.2911 19.703 22.2358C19.6854 22.227 19.6651 22.2154 19.6421 22.2023C19.5208 22.1333 19.3271 22.0233 19.0945 22.0699C18.818 22.1252 18.4308 22.0699 18.2095 21.8487C17.9883 21.6273 17.7117 21.4487 17.4905 21.4614ZM15.997 17.2578C16.4553 17.2578 16.8267 16.8863 16.8267 16.4281C16.8267 15.9699 16.4553 15.5984 15.997 15.5984C15.5388 15.5984 15.1673 15.9699 15.1673 16.4281C15.1673 16.8863 15.5388 17.2578 15.997 17.2578Z"
fill="url(#paint3_linear_18024_112096)"
/>
@@ -48,8 +48,8 @@ export function NextAuth(props: SVGProps<SVGSVGElement>) {
y2="2.59969"
gradientUnits="userSpaceOnUse"
>
- <stop stop-color="#45FFC8" />
- <stop offset="1" stop-color="#1DBBF1" />
+ <stop stopColor="#45FFC8" />
+ <stop offset="1" stopColor="#1DBBF1" />
</linearGradient>
<linearGradient
id="paint1_linear_18024_112096"
@@ -59,9 +59,9 @@ export function NextAuth(props: SVGProps<SVGSVGElement>) {
y2="32.911"
gradientUnits="userSpaceOnUse"
>
- <stop stop-color="#D14AE8" />
- <stop offset="0.552228" stop-color="#B628E3" />
- <stop offset="1" stop-color="#8315FD" />
+ <stop stopColor="#D14AE8" />
+ <stop offset="0.552228" stopColor="#B628E3" />
+ <stop offset="1" stopColor="#8315FD" />
</linearGradient>
<linearGradient
id="paint2_linear_18024_112096"
@@ -71,9 +71,9 @@ export function NextAuth(props: SVGProps<SVGSVGElement>) {
y2="31.4728"
gradientUnits="userSpaceOnUse"
>
- <stop stop-color="#20ABF5" />
- <stop offset="0.398093" stop-color="#2A8CC3" />
- <stop offset="1" stop-color="#A104DC" />
+ <stop stopColor="#20ABF5" />
+ <stop offset="0.398093" stopColor="#2A8CC3" />
+ <stop offset="1" stopColor="#A104DC" />
</linearGradient>
<linearGradient
id="paint3_linear_18024_112096"
@@ -83,8 +83,8 @@ export function NextAuth(props: SVGProps<SVGSVGElement>) {
y2="23.9506"
gradientUnits="userSpaceOnUse"
>
- <stop stop-color="#FE5B01" />
- <stop offset="1" stop-color="#FFB200" />
+ <stop stopColor="#FE5B01" />
+ <stop offset="1" stopColor="#FFB200" />
</linearGradient>
<clipPath id="clip0_18024_112096">
<rect
diff --git a/apps/web/ui/guides/icons/webflow.tsx b/apps/web/ui/guides/icons/webflow.tsx
index c810c12019..ddeef44d49 100644
--- a/apps/web/ui/guides/icons/webflow.tsx
+++ b/apps/web/ui/guides/icons/webflow.tsx
@@ -12,8 +12,8 @@ export function Webflow(props: SVGProps<SVGSVGElement>) {
>
<path
id="Vector"
- fill-rule="evenodd"
- clip-rule="evenodd"
+ fillRule="evenodd"
+ clipRule="evenodd"
d="M51.499 0L35.2256 31.985H19.9402L26.7506 18.7291H26.4451C20.8265 26.0621 12.4435 30.8895 0.499023 31.985V18.9125C0.499023 18.9125 8.14022 18.4587 12.6322 13.7104H0.499023V0.000251632H14.1355V11.2767L14.4415 11.2754L20.0138 0.000251632H30.3267V11.2052L30.6328 11.2047L36.4141 0H51.499Z"
fill="#146EF5"
/>
diff --git a/packages/ui/src/icons/card-amex.tsx b/packages/ui/src/icons/card-amex.tsx
index 1832e31f9a..95a7d5c4b4 100644
--- a/packages/ui/src/icons/card-amex.tsx
+++ b/packages/ui/src/icons/card-amex.tsx
@@ -15,8 +15,8 @@ export function CardAmex(props: SVGProps<SVGSVGElement>) {
fill="#306FC5"
/>
<path
- fill-rule="evenodd"
- clip-rule="evenodd"
+ fillRule="evenodd"
+ clipRule="evenodd"
d="M5.5378 2.01274L2.25117 9.38854H4.42952L4.96455 7.93631H8.51869L9.09194 9.38854H11.2321L7.94544 2.01274H5.5378ZM7.90723 6.40765L6.72251 3.57962L5.5378 6.40765H7.90723Z"
fill="white"
/>