Skip to content

Commit

Permalink
feat: add connext integration (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
marthendalnunes authored Jul 12, 2023
1 parent dbd59b7 commit 3f815ad
Show file tree
Hide file tree
Showing 95 changed files with 6,408 additions and 123 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-turbo-eth",
"version": "0.1.2",
"version": "0.1.3",
"description": "Create web3 apps in turbo mode.",
"author": "Vitor @marthendalnunes",
"license": "MIT",
Expand Down
15 changes: 15 additions & 0 deletions src/config/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,21 @@ export const integrationOptions: Integrations = {
},
],
},
connext: {
name: 'Connext',
pageDependencies: [
{
dependencyPath: dataConfigPath,
type: 'snippet',
regexList: [/\n\s*connext: \{\s*name: 'Connext',[\s\S]*?imgDark: '\/integrations\/connext.png',\s*\},/g],
},
{
dependencyPath: indexPagePath,
type: 'snippet',
regexList: [/\n\s*{\s*title: turboIntegrations\.connext\.name,[\s\S]*?<\/IsDarkTheme>\s*<\/div>\s*\),\s*},/g],
},
],
},
starter: {
name: 'Starter',
pageDependencies: [
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export type AvailableIntegrations =
| 'openai'
| 'pooltogether-v4'
| 'session-keys'
| 'connext'
| 'starter'

export type Integrations = Record<AvailableIntegrations, Integration>
Expand Down
15 changes: 15 additions & 0 deletions template/base/app/(general)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,21 @@ const features = [
</div>
),
},
{
title: turboIntegrations.connext.name,
description: turboIntegrations.connext.description,
href: turboIntegrations.connext.href,
demo: (
<div className="flex items-center justify-center space-x-20">
<IsLightTheme>
<Image alt="PoolTogether logo" height={100} src={turboIntegrations.connext.imgDark} width={100} />
</IsLightTheme>
<IsDarkTheme>
<Image alt="PoolTogether logo" height={100} src={turboIntegrations.connext.imgLight} width={100} />
</IsDarkTheme>
</div>
),
},
{
title: turboIntegrations.starter.name,
description: turboIntegrations.starter.description,
Expand Down
8 changes: 8 additions & 0 deletions template/base/data/turbo-integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ export const turboIntegrations = {
imgLight: '/integrations/pooltogether.svg',
imgDark: '/integrations/pooltogether.svg',
},
connext: {
name: 'Connext',
href: '/integration/connext',
url: 'https://docs.connext.network/',
description: 'Connext is a modular protocol for securely passing funds and data between chains.',
imgLight: '/integrations/connext.png',
imgDark: '/integrations/connext.png',
},
starter: {
name: 'Starter Template',
href: '/integration/starter',
Expand Down
3 changes: 3 additions & 0 deletions template/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
},
"packageManager": "[email protected]",
"dependencies": {
"@connext/nxtp-utils": "^2.0.3",
"@connext/sdk": "2.0.4-alpha.2",
"@lit-protocol/lit-node-client": "2.1.161",
"@prisma/client": "^4.8.1",
"@radix-ui/react-accordion": "^1.1.0",
Expand Down Expand Up @@ -80,6 +82,7 @@
"iron-session": "^6.3.1",
"jotai": "^1.13.0",
"luxon": "^3.2.1",
"moment": "^2.29.4",
"next": "13.4.0",
"next-themes": "^0.2.1",
"react": "^18.2.0",
Expand Down
Loading

0 comments on commit 3f815ad

Please sign in to comment.