-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
1,752 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
example/wallet-ethcc/app/module/common/provider/FrakProvider.client.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { | ||
NexusConfigProvider, | ||
NexusIFrameClientProvider, | ||
} from "@frak-labs/nexus-sdk/react"; | ||
import type { PropsWithChildren } from "react"; | ||
|
||
export function FrakProvider({ children }: PropsWithChildren) { | ||
const frakWalletSdkConfig = { | ||
walletUrl: process.env.FRAK_WALLET_URL as string, | ||
metadata: { | ||
name: "Demo - EthCC", | ||
}, | ||
domain: "ethcc.news-paper.xyz", | ||
}; | ||
|
||
return ( | ||
<NexusConfigProvider config={frakWalletSdkConfig}> | ||
<NexusIFrameClientProvider>{children}</NexusIFrameClientProvider> | ||
</NexusConfigProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
.../src/module/full/component/FullDialog.tsx → .../app/module/full/component/FullDialog.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
"use client"; | ||
|
||
import { Panel } from "@/module/common/component/Panel"; | ||
import { | ||
addresses, | ||
|
2 changes: 0 additions & 2 deletions
2
...interaction/component/SendInteraction.tsx → ...interaction/component/SendInteraction.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...ion/component/SendReferralInteraction.tsx → ...ion/component/SendReferralInteraction.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
...c/module/wallet/component/WalletLogin.tsx → ...p/module/wallet/component/WalletLogin.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
"use client"; | ||
|
||
import { Panel } from "@/module/common/component/Panel"; | ||
import type { | ||
LoginModalStepType, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
import allCssUrl from "@/styles/all.css?url"; | ||
import type { LinksFunction, MetaFunction } from "@remix-run/node"; | ||
import { | ||
Links, | ||
Meta, | ||
Outlet, | ||
Scripts, | ||
ScrollRestoration, | ||
} from "@remix-run/react"; | ||
import type { ReactNode } from "react"; | ||
import { MainLayout } from "./module/common/component/MainLayout"; | ||
import { RootProvider } from "./module/common/provider/RootProvider"; | ||
|
||
export const meta: MetaFunction = () => { | ||
return [ | ||
{ title: "Frak Wallet Demo" }, | ||
{ name: "application-name", content: "Frak Wallet Demo" }, | ||
{ | ||
name: "description", | ||
content: "Simple frak wallet demo for the EthCC.", | ||
}, | ||
{ | ||
name: "author", | ||
content: "Frak labs", | ||
}, | ||
{ | ||
name: "author", | ||
content: "Rodolphe Stoclin", | ||
}, | ||
{ | ||
name: "author", | ||
content: "Quentin Nivelais", | ||
}, | ||
{ | ||
name: "creator", | ||
content: "Frak labs", | ||
}, | ||
{ | ||
name: "publisher", | ||
content: "Frak labs", | ||
}, | ||
{ | ||
name: "theme-color", | ||
content: "#001432", | ||
}, | ||
{ | ||
name: "keywords", | ||
content: "frak, wallet, frak-wallet, blockchain, ethcc", | ||
}, | ||
]; | ||
}; | ||
|
||
export const links: LinksFunction = () => [ | ||
{ | ||
rel: "icon", | ||
href: "/favicons/favicon.ico", | ||
sizes: "32x32", | ||
}, | ||
{ | ||
rel: "icon", | ||
href: "/favicons/icon.svg", | ||
type: "image/svg+xml", | ||
}, | ||
{ | ||
rel: "apple-touch-icon", | ||
href: "/favicons/icon-192.png", | ||
type: "image/png", | ||
}, | ||
{ | ||
rel: "manifest", | ||
href: "/manifest.json", | ||
crossOrigin: "use-credentials", | ||
}, | ||
{ | ||
rel: "author", | ||
href: "https://frak.id/", | ||
}, | ||
{ | ||
rel: "author", | ||
href: "https://github.com/srod", | ||
}, | ||
{ | ||
rel: "author", | ||
href: "https://github.com/KONFeature", | ||
}, | ||
{ rel: "preconnect", href: "https://fonts.googleapis.com" }, | ||
{ | ||
rel: "preconnect", | ||
href: "https://fonts.gstatic.com", | ||
crossOrigin: "anonymous", | ||
}, | ||
{ | ||
rel: "stylesheet", | ||
href: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap", | ||
}, | ||
{ | ||
rel: "stylesheet", | ||
href: allCssUrl, | ||
}, | ||
]; | ||
|
||
export function Layout({ children }: { children: ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<head> | ||
<meta charSet="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1" | ||
/> | ||
<Meta /> | ||
<Links /> | ||
</head> | ||
<body> | ||
<RootProvider> | ||
<MainLayout>{children}</MainLayout> | ||
</RootProvider> | ||
<ScrollRestoration /> | ||
<Scripts /> | ||
</body> | ||
</html> | ||
); | ||
} | ||
|
||
export default function App() { | ||
return <Outlet />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import "normalize.css/normalize.css"; | ||
@import "@frak-labs/shared/module/styles/colors.css"; | ||
@import "colors-app.css"; | ||
@import "@frak-labs/shared/module/styles/global.css"; | ||
@import "global.css"; |
File renamed without changes.
Oops, something went wrong.