From d225fedde28597d15e33c167a0e0d8a4bd4065e2 Mon Sep 17 00:00:00 2001 From: jdnichollsc Date: Tue, 17 Dec 2024 13:27:50 -0500 Subject: [PATCH 1/3] add supabase and tailwind utils --- web/.env.example | 3 +- web/app/components/Navigation.tsx | 6 +- web/app/components/dialogs/StyledDialog.tsx | 4 +- web/app/components/dialogs/WalletDialog.tsx | 4 +- web/app/components/ui/Avatar.tsx | 4 +- web/app/components/ui/Badge.tsx | 4 +- web/app/components/ui/Button.tsx | 4 +- web/app/components/ui/Figure.tsx | 7 +- web/app/components/ui/Pagination.tsx | 4 +- web/app/components/ui/ThemeButton.tsx | 6 +- web/app/components/ui/header/Header.tsx | 4 +- web/app/components/ui/search/Search.tsx | 4 +- web/app/constants/api.server.ts | 6 + web/app/constants/api.ts | 2 - web/app/constants/index.ts | 2 +- web/app/env.server.ts | 3 +- web/app/pages/Author.tsx | 393 ++++++++++++++------ web/app/pages/Marketplace.tsx | 4 +- web/app/root.tsx | 7 +- web/app/utils/misc.server.ts | 1 + web/app/utils/styles.ts | 6 + web/app/utils/supabase.ts | 5 + web/package-lock.json | 212 +++++++++++ web/package.json | 2 + 24 files changed, 541 insertions(+), 156 deletions(-) create mode 100644 web/app/constants/api.server.ts delete mode 100644 web/app/constants/api.ts create mode 100644 web/app/utils/styles.ts create mode 100644 web/app/utils/supabase.ts diff --git a/web/.env.example b/web/.env.example index bf550a5..5230657 100644 --- a/web/.env.example +++ b/web/.env.example @@ -1,4 +1,5 @@ SESSION_SECRET=fill_me SHYFT_API_KEY=fill_me WALLET_NETWORK=devnet -WALLET_ADDRESS=fill_me \ No newline at end of file +WALLET_ADDRESS=fill_me +SUPABASE_KEY=fill_me \ No newline at end of file diff --git a/web/app/components/Navigation.tsx b/web/app/components/Navigation.tsx index ac47475..0d60a8c 100644 --- a/web/app/components/Navigation.tsx +++ b/web/app/components/Navigation.tsx @@ -1,7 +1,7 @@ import { Link, useLocation } from '@remix-run/react' -import clsx from 'clsx' import { NAVIGATION } from '~/constants' +import { cn } from '~/utils/styles' export type NavigationProps = { className?: string @@ -11,7 +11,7 @@ export const Navigation: React.FC = ({ className }) => { const location = useLocation() return ( -