@sei-js/create-sei 1.0.0 → 2.0.0
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/LICENSE +21 -0
- package/README.md +5 -4
- package/dist/extensions/precompiles/src/components/default/index.tsx +44 -51
- package/dist/main.js +112 -34
- package/dist/templates/next-template/.env.example +2 -2
- package/dist/templates/next-template/.eslintrc.json +1 -3
- package/dist/templates/next-template/README.md +56 -32
- package/dist/templates/next-template/biome.json +17 -10
- package/dist/templates/next-template/gitignore +41 -0
- package/dist/templates/next-template/next.config.mjs +17 -1
- package/dist/templates/next-template/package.json +37 -26
- package/dist/templates/next-template/public/brand/powered-by-sei-light.png +0 -0
- package/dist/templates/next-template/public/brand/sei-lockup-light.svg +7 -0
- package/dist/templates/next-template/public/brand/sei-mark.png +0 -0
- package/dist/templates/next-template/src/app/development/page.tsx +29 -30
- package/dist/templates/next-template/src/app/favicon.ico/route.ts +3 -0
- package/dist/templates/next-template/src/app/globals.css +49 -10
- package/dist/templates/next-template/src/app/layout.tsx +14 -13
- package/dist/templates/next-template/src/app/page.tsx +3 -3
- package/dist/templates/next-template/src/app/resources/page.tsx +34 -51
- package/dist/templates/next-template/src/app/resources/resources.ts +19 -32
- package/dist/templates/next-template/src/components/default/examples.ts +4 -7
- package/dist/templates/next-template/src/components/default/index.tsx +46 -46
- package/dist/templates/next-template/src/components/index.ts +3 -3
- package/dist/templates/next-template/src/components/landing/index.tsx +19 -49
- package/dist/templates/next-template/src/components/providers/index.ts +1 -1
- package/dist/templates/next-template/src/components/providers/providers.tsx +39 -26
- package/dist/templates/next-template/src/components/shell/index.ts +1 -1
- package/dist/templates/next-template/src/components/shell/shell.tsx +34 -26
- package/dist/templates/next-template/src/theme.ts +1 -0
- package/dist/templates/next-template/tailwind.config.js +4 -16
- package/package.json +25 -9
- package/.rsyncignore +0 -13
- package/CHANGELOG.md +0 -114
- package/biome.json +0 -8
- package/dist/extensions/precompiles/package.json +0 -44
- package/dist/main.test.js +0 -34
- package/dist/templates/next-template/public/favicon.ico +0 -0
- package/extensions/precompiles/package.json +0 -44
- package/extensions/precompiles/src/components/default/index.tsx +0 -201
- package/jest.config.js +0 -14
- package/src/main.test.ts +0 -38
- package/src/main.ts +0 -159
- package/templates/next-template/.env.example +0 -8
- package/templates/next-template/.eslintrc.json +0 -3
- package/templates/next-template/.nvmrc +0 -1
- package/templates/next-template/README.md +0 -58
- package/templates/next-template/biome.json +0 -48
- package/templates/next-template/next-env.d.ts +0 -5
- package/templates/next-template/next.config.mjs +0 -4
- package/templates/next-template/package.json +0 -44
- package/templates/next-template/postcss.config.mjs +0 -6
- package/templates/next-template/public/favicon.ico +0 -0
- package/templates/next-template/src/app/development/page.tsx +0 -260
- package/templates/next-template/src/app/globals.css +0 -14
- package/templates/next-template/src/app/layout.tsx +0 -30
- package/templates/next-template/src/app/page.tsx +0 -10
- package/templates/next-template/src/app/resources/page.tsx +0 -175
- package/templates/next-template/src/app/resources/resources.ts +0 -56
- package/templates/next-template/src/components/default/examples.ts +0 -63
- package/templates/next-template/src/components/default/index.tsx +0 -402
- package/templates/next-template/src/components/index.ts +0 -3
- package/templates/next-template/src/components/landing/index.tsx +0 -107
- package/templates/next-template/src/components/providers/index.ts +0 -1
- package/templates/next-template/src/components/providers/providers.tsx +0 -89
- package/templates/next-template/src/components/shell/index.ts +0 -1
- package/templates/next-template/src/components/shell/shell.tsx +0 -87
- package/templates/next-template/tailwind.config.js +0 -17
- package/templates/next-template/tsconfig.json +0 -27
- package/tsconfig.json +0 -19
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { ActionIcon, AppShell, Container, Group } from '@mantine/core';
|
|
4
|
-
import { ConnectButton } from '@rainbow-me/rainbowkit';
|
|
5
|
-
import { IconBook, IconCode, IconLogout } from '@tabler/icons-react';
|
|
6
|
-
import Link from 'next/link';
|
|
7
|
-
import type { PropsWithChildren } from 'react';
|
|
8
|
-
import { useAccount, useDisconnect } from 'wagmi';
|
|
9
|
-
|
|
10
|
-
export default function Shell({ children }: PropsWithChildren) {
|
|
11
|
-
const { address, isConnected } = useAccount();
|
|
12
|
-
const { disconnect } = useDisconnect();
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<AppShell header={{ height: 64 }} padding="md">
|
|
16
|
-
<AppShell.Header>
|
|
17
|
-
<Container size="xl" h="100%">
|
|
18
|
-
<Group justify="space-between" align="center" h="100%">
|
|
19
|
-
<Link href="/" aria-label="Sei">
|
|
20
|
-
<img src="https://cdn.sei.io/assets/sei-icon.svg" alt="Sei" style={{ height: 28, display: 'block' }} />
|
|
21
|
-
</Link>
|
|
22
|
-
<Group align="center" gap="md">
|
|
23
|
-
<ActionIcon
|
|
24
|
-
component={Link}
|
|
25
|
-
href="/resources"
|
|
26
|
-
variant="light"
|
|
27
|
-
c="gray"
|
|
28
|
-
size="lg"
|
|
29
|
-
radius="md"
|
|
30
|
-
aria-label="View Resources"
|
|
31
|
-
style={{
|
|
32
|
-
transition: 'all 0.2s ease',
|
|
33
|
-
'&:hover': {
|
|
34
|
-
transform: 'translateY(-1px)',
|
|
35
|
-
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',
|
|
36
|
-
},
|
|
37
|
-
}}
|
|
38
|
-
>
|
|
39
|
-
<IconBook size={18} />
|
|
40
|
-
</ActionIcon>
|
|
41
|
-
<ActionIcon
|
|
42
|
-
component={Link}
|
|
43
|
-
href="/development"
|
|
44
|
-
variant="light"
|
|
45
|
-
c="gray"
|
|
46
|
-
size="lg"
|
|
47
|
-
radius="md"
|
|
48
|
-
aria-label="View Development Guide"
|
|
49
|
-
style={{
|
|
50
|
-
transition: 'all 0.2s ease',
|
|
51
|
-
'&:hover': {
|
|
52
|
-
transform: 'translateY(-1px)',
|
|
53
|
-
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',
|
|
54
|
-
},
|
|
55
|
-
}}
|
|
56
|
-
>
|
|
57
|
-
<IconCode size={18} />
|
|
58
|
-
</ActionIcon>
|
|
59
|
-
{isConnected && address ? (
|
|
60
|
-
<ActionIcon
|
|
61
|
-
variant="light"
|
|
62
|
-
c="red"
|
|
63
|
-
size="lg"
|
|
64
|
-
radius="md"
|
|
65
|
-
onClick={() => disconnect()}
|
|
66
|
-
aria-label="Disconnect Wallet"
|
|
67
|
-
style={{
|
|
68
|
-
transition: 'all 0.2s ease',
|
|
69
|
-
'&:hover': {
|
|
70
|
-
transform: 'translateY(-1px)',
|
|
71
|
-
boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)',
|
|
72
|
-
},
|
|
73
|
-
}}
|
|
74
|
-
>
|
|
75
|
-
<IconLogout size={18} />
|
|
76
|
-
</ActionIcon>
|
|
77
|
-
) : (
|
|
78
|
-
<ConnectButton showBalance={{ smallScreen: false, largeScreen: true }} />
|
|
79
|
-
)}
|
|
80
|
-
</Group>
|
|
81
|
-
</Group>
|
|
82
|
-
</Container>
|
|
83
|
-
</AppShell.Header>
|
|
84
|
-
<AppShell.Main>{children}</AppShell.Main>
|
|
85
|
-
</AppShell>
|
|
86
|
-
);
|
|
87
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
content: [
|
|
4
|
-
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
|
|
5
|
-
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
6
|
-
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
|
|
7
|
-
],
|
|
8
|
-
theme: {
|
|
9
|
-
extend: {
|
|
10
|
-
colors: {
|
|
11
|
-
'sei-red': '#9E1F19',
|
|
12
|
-
'sei-dark': '#1a1a1a',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
plugins: [],
|
|
17
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"skipLibCheck": true,
|
|
6
|
-
"strict": true,
|
|
7
|
-
"noEmit": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"module": "esnext",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"jsx": "preserve",
|
|
14
|
-
"incremental": true,
|
|
15
|
-
"plugins": [
|
|
16
|
-
{
|
|
17
|
-
"name": "next"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"paths": {
|
|
21
|
-
"@/*": ["./src/*"]
|
|
22
|
-
},
|
|
23
|
-
"target": "ES2017"
|
|
24
|
-
},
|
|
25
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
26
|
-
"exclude": ["node_modules"]
|
|
27
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.base.json",
|
|
3
|
-
"exclude": ["node_modules", "dist", "test"],
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"outDir": "./dist",
|
|
6
|
-
"target": "ES2020",
|
|
7
|
-
"useDefineForClassFields": true,
|
|
8
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
9
|
-
"module": "ESNext",
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"jsx": "react-jsx",
|
|
13
|
-
"strict": true,
|
|
14
|
-
"noUnusedLocals": true,
|
|
15
|
-
"noUnusedParameters": true,
|
|
16
|
-
"noFallthroughCasesInSwitch": true
|
|
17
|
-
},
|
|
18
|
-
"include": ["src"]
|
|
19
|
-
}
|