create-openfort 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +52 -216
- package/package.json +7 -6
- package/dist/raw-templates/README.md +0 -19
- package/dist/raw-templates/template-nextjs/README.md +0 -34
- package/dist/raw-templates/template-nextjs/_.gitignore +0 -41
- package/dist/raw-templates/template-nextjs/eslint.config.mjs +0 -16
- package/dist/raw-templates/template-nextjs/next-env.d.ts +0 -5
- package/dist/raw-templates/template-nextjs/next.config.ts +0 -7
- package/dist/raw-templates/template-nextjs/package.json +0 -27
- package/dist/raw-templates/template-nextjs/postcss.config.mjs +0 -5
- package/dist/raw-templates/template-nextjs/src/app/globals.css +0 -1
- package/dist/raw-templates/template-nextjs/src/app/layout.tsx +0 -19
- package/dist/raw-templates/template-nextjs/src/app/page.tsx +0 -7
- package/dist/raw-templates/template-nextjs/tsconfig.json +0 -27
- package/dist/raw-templates/template-vite/README.md +0 -54
- package/dist/raw-templates/template-vite/eslint.config.js +0 -28
- package/dist/raw-templates/template-vite/index.html +0 -13
- package/dist/raw-templates/template-vite/package.json +0 -29
- package/dist/raw-templates/template-vite/public/vite.svg +0 -1
- package/dist/raw-templates/template-vite/src/App.css +0 -42
- package/dist/raw-templates/template-vite/src/App.tsx +0 -35
- package/dist/raw-templates/template-vite/src/assets/react.svg +0 -1
- package/dist/raw-templates/template-vite/src/index.css +0 -68
- package/dist/raw-templates/template-vite/src/main.tsx +0 -10
- package/dist/raw-templates/template-vite/src/vite-env.d.ts +0 -1
- package/dist/raw-templates/template-vite/tsconfig.app.json +0 -26
- package/dist/raw-templates/template-vite/tsconfig.json +0 -7
- package/dist/raw-templates/template-vite/tsconfig.node.json +0 -24
- package/dist/raw-templates/template-vite/vite.config.ts +0 -7
- package/dist/updated-files/README.md +0 -3
- package/dist/updated-files/common/template-vite/index.html +0 -13
- package/dist/updated-files/common/template-vite/public/favicon.ico +0 -0
- package/dist/updated-files/openfortkit/common/package.json +0 -8
- package/dist/updated-files/openfortkit/template-nextjs/src/app/layout.tsx +0 -22
- package/dist/updated-files/openfortkit/template-nextjs/src/app/page.tsx +0 -13
- package/dist/updated-files/openfortkit/template-nextjs/src/app/providers.tsx +0 -45
- package/dist/updated-files/openfortkit/template-vite/src/App.css +0 -6
- package/dist/updated-files/openfortkit/template-vite/src/App.tsx +0 -13
- package/dist/updated-files/openfortkit/template-vite/src/index.css +0 -22
- package/dist/updated-files/openfortkit/template-vite/src/providers.tsx +0 -42
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import "./globals.css";
|
|
3
|
-
import { Providers } from "./providers";
|
|
4
|
-
|
|
5
|
-
export const metadata: Metadata = {
|
|
6
|
-
title: "OpenfortKit demo",
|
|
7
|
-
description: "Generated by openfort",
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default function RootLayout({
|
|
11
|
-
children,
|
|
12
|
-
}: Readonly<{
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}>) {
|
|
15
|
-
return (
|
|
16
|
-
<Providers>
|
|
17
|
-
<html lang="en">
|
|
18
|
-
<body>{children}</body>
|
|
19
|
-
</html>
|
|
20
|
-
</Providers>
|
|
21
|
-
);
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { OpenfortKitButton } from '@openfort/openfort-kit'
|
|
4
|
-
|
|
5
|
-
export default function Home() {
|
|
6
|
-
return (
|
|
7
|
-
<main>
|
|
8
|
-
<div className="flex items-center justify-center w-full min-h-screen">
|
|
9
|
-
<OpenfortKitButton />
|
|
10
|
-
</div>
|
|
11
|
-
</main>
|
|
12
|
-
);
|
|
13
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import React from 'react'
|
|
4
|
-
import { OpenfortKitProvider, getDefaultConfig, RecoveryMethod, AuthProvider, OpenfortWalletConfig } from '@openfort/openfort-kit';
|
|
5
|
-
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
6
|
-
import { WagmiProvider, createConfig } from 'wagmi'
|
|
7
|
-
import { polygonAmoy } from 'viem/chains'
|
|
8
|
-
|
|
9
|
-
const config = createConfig(
|
|
10
|
-
getDefaultConfig({
|
|
11
|
-
appName: 'OpenfortKit demo',
|
|
12
|
-
walletConnectProjectId: WALLET_CONNECT_PROJECT_ID,
|
|
13
|
-
chains: [polygonAmoy], // Add your chain here
|
|
14
|
-
ssr: true,
|
|
15
|
-
})
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
const queryClient = new QueryClient()
|
|
19
|
-
|
|
20
|
-
const walletConfig: OpenfortWalletConfig = WALLET_CONFIG
|
|
21
|
-
|
|
22
|
-
const authProviders: AuthProvider[] = AUTH_PROVIDERS
|
|
23
|
-
|
|
24
|
-
export function Providers({ children }: { children?: React.ReactNode }) {
|
|
25
|
-
return (
|
|
26
|
-
<WagmiProvider config={config}>
|
|
27
|
-
<QueryClientProvider client={queryClient}>
|
|
28
|
-
<OpenfortKitProvider
|
|
29
|
-
// Set the publishable key of your OpenfortKit account. This field is required.
|
|
30
|
-
publishableKey={OPENFORT_PUBLISHABLE_KEY}
|
|
31
|
-
|
|
32
|
-
options={{
|
|
33
|
-
authProviders,
|
|
34
|
-
}}
|
|
35
|
-
|
|
36
|
-
theme="VAR_THEME"
|
|
37
|
-
|
|
38
|
-
walletConfig={walletConfig}
|
|
39
|
-
>
|
|
40
|
-
{children}
|
|
41
|
-
</OpenfortKitProvider>
|
|
42
|
-
</QueryClientProvider>
|
|
43
|
-
</WagmiProvider>
|
|
44
|
-
)
|
|
45
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
3
|
-
line-height: 1.5;
|
|
4
|
-
font-weight: 400;
|
|
5
|
-
|
|
6
|
-
color-scheme: light dark;
|
|
7
|
-
color: rgba(255, 255, 255, 0.87);
|
|
8
|
-
background-color: #242424;
|
|
9
|
-
|
|
10
|
-
font-synthesis: none;
|
|
11
|
-
text-rendering: optimizeLegibility;
|
|
12
|
-
-webkit-font-smoothing: antialiased;
|
|
13
|
-
-moz-osx-font-smoothing: grayscale;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
body {
|
|
17
|
-
margin: 0;
|
|
18
|
-
display: flex;
|
|
19
|
-
place-items: center;
|
|
20
|
-
min-width: 320px;
|
|
21
|
-
min-height: 100vh;
|
|
22
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { OpenfortKitProvider, getDefaultConfig, RecoveryMethod, AuthProvider, OpenfortWalletConfig } from '@openfort/openfort-kit';
|
|
3
|
-
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
|
4
|
-
import { WagmiProvider, createConfig } from 'wagmi'
|
|
5
|
-
import { polygonAmoy } from 'viem/chains'
|
|
6
|
-
|
|
7
|
-
const config = createConfig(
|
|
8
|
-
getDefaultConfig({
|
|
9
|
-
appName: 'OpenfortKit demo',
|
|
10
|
-
walletConnectProjectId: WALLET_CONNECT_PROJECT_ID,
|
|
11
|
-
chains: [polygonAmoy], // Add your chain here
|
|
12
|
-
})
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
const queryClient = new QueryClient()
|
|
16
|
-
|
|
17
|
-
const walletConfig: OpenfortWalletConfig = WALLET_CONFIG
|
|
18
|
-
|
|
19
|
-
const authProviders: AuthProvider[] = AUTH_PROVIDERS
|
|
20
|
-
|
|
21
|
-
export function Providers({ children }: { children?: React.ReactNode }) {
|
|
22
|
-
return (
|
|
23
|
-
<WagmiProvider config={config}>
|
|
24
|
-
<QueryClientProvider client={queryClient}>
|
|
25
|
-
<OpenfortKitProvider
|
|
26
|
-
// Set the publishable key of your OpenfortKit account. This field is required.
|
|
27
|
-
publishableKey={OPENFORT_PUBLISHABLE_KEY}
|
|
28
|
-
|
|
29
|
-
options={{
|
|
30
|
-
authProviders,
|
|
31
|
-
}}
|
|
32
|
-
|
|
33
|
-
theme="VAR_THEME"
|
|
34
|
-
|
|
35
|
-
walletConfig={walletConfig}
|
|
36
|
-
>
|
|
37
|
-
{children}
|
|
38
|
-
</OpenfortKitProvider>
|
|
39
|
-
</QueryClientProvider>
|
|
40
|
-
</WagmiProvider>
|
|
41
|
-
)
|
|
42
|
-
}
|