diff --git a/.env.example b/.env.example index 1b057c22..a727b71f 100644 --- a/.env.example +++ b/.env.example @@ -1,46 +1,46 @@ -NEXTAUTH_URL=http://localhost:3000 -NEXT_PUBLIC_APP_URL=http://localhost:3000 -AUTH_SECRET= # https://generate-secret.vercel.app/32 - -COMMUNITIES_CONFIG_URL='' - -# Brevo -BREVO_API_KEY= -BREVO_SENDER_EMAIL= -BREVO_SENDER_NAME= - -# Server Account -SERVER_PRIVATE_KEY= -SERVER_ACCOUNT_ADDRESS= - -# Supabase top level -SUPABASE_URL=https://... -SUPABASE_ANON_KEY=... -SUPABASE_SERVICE_ROLE_KEY=... -SUPABASE_DB_PASSWORD= - -# Supabase for chain 100 (Gnosis Chain) -SUPABASE_100_URL=https://... -SUPABASE_100_ANON_KEY=... -SUPABASE_100_SERVICE_ROLE_KEY=... - -# Supabase for chain 137 (Polygon) -SUPABASE_137_URL=https://... -SUPABASE_137_ANON_KEY=... -SUPABASE_137_SERVICE_ROLE_KEY=... - -# Supabase for chain 42220 (Celo) -SUPABASE_42220_URL=https://... -SUPABASE_42220_ANON_KEY=... -SUPABASE_42220_SERVICE_ROLE_KEY=... -SERVER_42220_ACCOUNT_ADDRESS= -SERVER_42220_WALLET_PRIVATE_KEY= - - -# Supabase for chain 8453 (Base) -SUPABASE_8453_URL=https://... -SUPABASE_8453_ANON_KEY=... -SUPABASE_8453_SERVICE_ROLE_KEY=... - -# ONRAMP +NEXTAUTH_URL=http://localhost:3000 +NEXT_PUBLIC_APP_URL=http://localhost:3000 +AUTH_SECRET= # https://generate-secret.vercel.app/32 + +COMMUNITIES_CONFIG_URL='' + +# Brevo +BREVO_API_KEY= +BREVO_SENDER_EMAIL= +BREVO_SENDER_NAME= + +# Server Account +SERVER_PRIVATE_KEY= +SERVER_ACCOUNT_ADDRESS= + +# Supabase top level +SUPABASE_URL=https://... +SUPABASE_ANON_KEY=... +SUPABASE_SERVICE_ROLE_KEY=... +SUPABASE_DB_PASSWORD= + +# Supabase for chain 100 (Gnosis Chain) +SUPABASE_100_URL=https://... +SUPABASE_100_ANON_KEY=... +SUPABASE_100_SERVICE_ROLE_KEY=... + +# Supabase for chain 137 (Polygon) +SUPABASE_137_URL=https://... +SUPABASE_137_ANON_KEY=... +SUPABASE_137_SERVICE_ROLE_KEY=... + +# Supabase for chain 42220 (Celo) +SUPABASE_42220_URL=https://... +SUPABASE_42220_ANON_KEY=... +SUPABASE_42220_SERVICE_ROLE_KEY=... +SERVER_42220_ACCOUNT_ADDRESS= +SERVER_42220_WALLET_PRIVATE_KEY= + + +# Supabase for chain 8453 (Base) +SUPABASE_8453_URL=https://... +SUPABASE_8453_ANON_KEY=... +SUPABASE_8453_SERVICE_ROLE_KEY=... + +# ONRAMP TRANSAK_API_KEY=... \ No newline at end of file diff --git a/.gitignore b/.gitignore index 961cdbcb..f7091ea0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,37 +1,37 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* -.pnpm-debug.log* - -# env files -.env* -!.env.example - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts \ No newline at end of file +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# env files +!.env.example + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts +config.bat diff --git a/app/(home)/_table/communities-table.tsx b/app/(home)/_table/communities-table.tsx index 53707ce4..f0ead667 100644 --- a/app/(home)/_table/communities-table.tsx +++ b/app/(home)/_table/communities-table.tsx @@ -1,51 +1,51 @@ -import { columns } from './columns'; -import { DataTable } from '@/components/ui/data-table'; -import { Config } from '@citizenwallet/sdk'; -import { fetchCommunitiesForAdminAction } from '@/app/_actions/community-actions'; -import { Separator } from '@/components/ui/separator'; - -interface CommunitiesTableProps { - query: string; - page: number; -} - -export async function CommunitiesTable({ query }: CommunitiesTableProps) { - let communities: Config[] = []; - let total: number = 0; - - try { - const result = await fetchCommunitiesForAdminAction({ - query: query - }); - - communities = result.communities; - total = result.total; - } catch (error) { - console.error(error); - } - - return ( -
Browse communities
-- Total: {total} -
-Browse communities
++ Total: {total} +
+{config.community.name}
-- Total: {totalCount} -
-{config.community.name}
++ Total: {totalCount} +
+- {config.community.name} -
-+ {config.community.name} +
+- {config.community.name} -
-+ {config.community.name} +
+{row.original.description}
-{row.original.description}
+- Total: {Number(totalCount).toLocaleString()} -
-+ Total: {Number(totalCount).toLocaleString()} +
+{config.community.name}
-{config.community.name}
+You are not an admin of this community
-You are not an admin of this community
+update whitelist on paymaster contract
++ Total: {paymasterdata.length} +
+@{username}
-{name}
-- Total: {count} -
-@{username}
+{name}
++ Total: {count} +
+{config.community.name}
-{config.community.name}
+{config.community.name}
-{config.community.name}
+{config.community.name}
-{config.community.name}
+- Total: {Number(totalCount).toLocaleString()} -
-+ Total: {Number(totalCount).toLocaleString()} +
+{config.community.name}
-{config.community.name}
+{config.community.name}
-- Total: {Number(totalCount).toLocaleString()} -
-{config.community.name}
++ Total: {Number(totalCount).toLocaleString()} +
+{config.community.name}
-{config.community.name}
+{config.community.name}
-{config.community.name}
+- Enter your email to continue -
-+ Enter your email to continue +
+- We've sent a 6-digit login code to your email {email}. Please - enter it below -
-+ We've sent a 6-digit login code to your email {email}. Please + enter it below +
+- Enter your email to continue -
-+ Enter your email to continue +
+- We've sent a 6-digit login code to your email {email}. Please - enter it below -
-+ We've sent a 6-digit login code to your email {email}. Please + enter it below +
+