create-githat-app 1.0.11 → 1.0.13
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/cli.js +5 -3
- package/package.json +1 -1
- package/templates/fullstack/apps-web-nextjs/app/globals.css.hbs +4 -3
- package/templates/fullstack/apps-web-nextjs/app/layout.tsx.hbs +5 -6
- package/templates/fullstack/apps-web-nextjs/app/page.tsx.hbs +2 -3
- package/templates/fullstack/apps-web-nextjs/package.json.hbs +1 -0
- package/templates/nextjs/app/globals.css.hbs +4 -3
- package/templates/nextjs/app/layout.tsx.hbs +5 -6
- package/templates/nextjs/app/page.tsx.hbs +3 -6
- package/templates/react-vite/src/App.tsx.hbs +0 -5
- package/templates/react-vite/src/index.css.hbs +4 -3
- package/templates/react-vite/src/pages/Home.tsx.hbs +3 -6
package/dist/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ import gradient from "gradient-string";
|
|
|
11
11
|
import chalk from "chalk";
|
|
12
12
|
|
|
13
13
|
// src/constants.ts
|
|
14
|
-
var VERSION = "1.0.
|
|
14
|
+
var VERSION = "1.0.13";
|
|
15
15
|
var DEFAULT_API_URL = "https://api.githat.io";
|
|
16
16
|
var DASHBOARD_URL = "https://githat.io/dashboard/apps";
|
|
17
17
|
var BRAND_COLORS = ["#7c3aed", "#6366f1", "#8b5cf6"];
|
|
@@ -21,7 +21,8 @@ var DEPS = {
|
|
|
21
21
|
next: "^16.0.0",
|
|
22
22
|
react: "^19.0.0",
|
|
23
23
|
"react-dom": "^19.0.0",
|
|
24
|
-
"@githat/nextjs": "^0.5.0"
|
|
24
|
+
"@githat/nextjs": "^0.5.0",
|
|
25
|
+
"@githat/ui": "^1.0.0"
|
|
25
26
|
},
|
|
26
27
|
devDependencies: {
|
|
27
28
|
typescript: "^5.9.0",
|
|
@@ -35,7 +36,8 @@ var DEPS = {
|
|
|
35
36
|
react: "^19.0.0",
|
|
36
37
|
"react-dom": "^19.0.0",
|
|
37
38
|
"react-router-dom": "^7.0.0",
|
|
38
|
-
"@githat/nextjs": "^0.5.0"
|
|
39
|
+
"@githat/nextjs": "^0.5.0",
|
|
40
|
+
"@githat/ui": "^1.0.0"
|
|
39
41
|
},
|
|
40
42
|
devDependencies: {
|
|
41
43
|
vite: "^7.0.0",
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "@githat/ui/tokens.css";
|
|
1
2
|
{{#if useTailwind}}
|
|
2
3
|
@import "tailwindcss";
|
|
3
4
|
{{/if}}
|
|
@@ -9,9 +10,9 @@
|
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
body {
|
|
12
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
13
|
-
background: #09090b;
|
|
14
|
-
color: #fafafa;
|
|
13
|
+
font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
|
|
14
|
+
background: var(--bg, #09090b);
|
|
15
|
+
color: var(--fg, #fafafa);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
a {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GitHatProvider } from '@githat/nextjs';
|
|
2
|
+
import { Wordmark } from '@githat/ui';
|
|
2
3
|
import '@githat/nextjs/styles';
|
|
3
4
|
import './globals.css';
|
|
4
5
|
|
|
@@ -18,13 +19,11 @@ export default function RootLayout({ children }{{#if typescript}}: { children: R
|
|
|
18
19
|
afterSignInUrl: '/dashboard',
|
|
19
20
|
afterSignOutUrl: '/',
|
|
20
21
|
}}>
|
|
21
|
-
{
|
|
22
|
+
<header style=\{{ padding: 'var(--space-4, 1rem) var(--space-6, 1.5rem)', borderBottom: '1px solid var(--border, #e5e7eb)' }}>
|
|
23
|
+
<Wordmark name="{{businessName}}" size="md" href="/" />
|
|
24
|
+
</header>
|
|
25
|
+
<main>{children}</main>
|
|
22
26
|
</GitHatProvider>
|
|
23
|
-
<footer style=\{{ textAlign: 'center', padding: '1rem 0', fontSize: '0.75rem', color: '#52525b' }}>
|
|
24
|
-
<a href="https://githat.io" target="_blank" rel="noopener noreferrer" style=\{{ color: '#7c3aed', textDecoration: 'none' }}>
|
|
25
|
-
Powered by GitHat
|
|
26
|
-
</a>
|
|
27
|
-
</footer>
|
|
28
27
|
</body>
|
|
29
28
|
</html>
|
|
30
29
|
);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { SignInButton, SignUpButton } from '@githat/nextjs';
|
|
2
|
+
import { Wordmark } from '@githat/ui';
|
|
2
3
|
|
|
3
4
|
export default function Home() {
|
|
4
5
|
return (
|
|
5
6
|
<main {{#if useTailwind}}className="flex flex-col items-center justify-center min-h-screen gap-6 bg-[#09090b] text-[#fafafa]"{{else}}style=\{{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', minHeight: '100vh', gap: '1.5rem', background: '#09090b', color: '#fafafa' }}{{/if}}>
|
|
6
|
-
<
|
|
7
|
-
Welcome to {{businessName}}
|
|
8
|
-
</h1>
|
|
7
|
+
<Wordmark name="{{businessName}}" size="xl" />
|
|
9
8
|
<p {{#if useTailwind}}className="text-zinc-400 max-w-lg text-center"{{else}}style=\{{ color: '#a1a1aa', maxWidth: '32rem', textAlign: 'center' }}{{/if}}>
|
|
10
9
|
{{description}}
|
|
11
10
|
</p>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "@githat/ui/tokens.css";
|
|
1
2
|
{{#if useTailwind}}
|
|
2
3
|
@import "tailwindcss";
|
|
3
4
|
{{/if}}
|
|
@@ -9,9 +10,9 @@
|
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
body {
|
|
12
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
13
|
-
background: #09090b;
|
|
14
|
-
color: #fafafa;
|
|
13
|
+
font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
|
|
14
|
+
background: var(--bg, #09090b);
|
|
15
|
+
color: var(--fg, #fafafa);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
a {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GitHatProvider } from '@githat/nextjs';
|
|
2
|
+
import { Wordmark } from '@githat/ui';
|
|
2
3
|
import '@githat/nextjs/styles';
|
|
3
4
|
import './globals.css';
|
|
4
5
|
{{#if includeGithatFolder}}
|
|
@@ -25,13 +26,11 @@ export default function RootLayout({ children }{{#if typescript}}: { children: R
|
|
|
25
26
|
afterSignOutUrl: '/',
|
|
26
27
|
{{/if}}
|
|
27
28
|
}}>
|
|
28
|
-
{
|
|
29
|
+
<header style=\{{ padding: 'var(--space-4, 1rem) var(--space-6, 1.5rem)', borderBottom: '1px solid var(--border, #e5e7eb)' }}>
|
|
30
|
+
<Wordmark name="{{businessName}}" size="md" href="/" />
|
|
31
|
+
</header>
|
|
32
|
+
<main>{children}</main>
|
|
29
33
|
</GitHatProvider>
|
|
30
|
-
<footer style=\{{ textAlign: 'center', padding: '1rem 0', fontSize: '0.75rem', color: '#52525b' }}>
|
|
31
|
-
<a href="https://githat.io" target="_blank" rel="noopener noreferrer" style=\{{ color: '#7c3aed', textDecoration: 'none' }}>
|
|
32
|
-
Powered by GitHat
|
|
33
|
-
</a>
|
|
34
|
-
</footer>
|
|
35
34
|
</body>
|
|
36
35
|
</html>
|
|
37
36
|
);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SignInButton, SignUpButton } from '@githat/nextjs';
|
|
2
|
+
import { Wordmark } from '@githat/ui';
|
|
2
3
|
|
|
3
4
|
const hasKey = !!process.env.NEXT_PUBLIC_GITHAT_PUBLISHABLE_KEY;
|
|
4
5
|
|
|
@@ -6,9 +7,7 @@ function SetupGuide() {
|
|
|
6
7
|
return (
|
|
7
8
|
<main {{#if useTailwind}}className="flex flex-col items-center justify-center min-h-screen gap-8 bg-[#09090b] text-[#fafafa] px-6"{{else}}style=\{{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', minHeight: '100vh', gap: '2rem', background: '#09090b', color: '#fafafa', padding: '0 1.5rem' }}{{/if}}>
|
|
8
9
|
<div {{#if useTailwind}}className="text-center"{{else}}style=\{{ textAlign: 'center' }}{{/if}}>
|
|
9
|
-
<
|
|
10
|
-
{{businessName}}
|
|
11
|
-
</h1>
|
|
10
|
+
<Wordmark name="{{businessName}}" size="xl" />
|
|
12
11
|
<p {{#if useTailwind}}className="text-zinc-400"{{else}}style=\{{ color: '#a1a1aa' }}{{/if}}>
|
|
13
12
|
Get started in 3 steps
|
|
14
13
|
</p>
|
|
@@ -58,9 +57,7 @@ export default function Home() {
|
|
|
58
57
|
|
|
59
58
|
return (
|
|
60
59
|
<main {{#if useTailwind}}className="flex flex-col items-center justify-center min-h-screen gap-6 bg-[#09090b] text-[#fafafa]"{{else}}style=\{{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', minHeight: '100vh', gap: '1.5rem', background: '#09090b', color: '#fafafa' }}{{/if}}>
|
|
61
|
-
<
|
|
62
|
-
Welcome to {{businessName}}
|
|
63
|
-
</h1>
|
|
60
|
+
<Wordmark name="{{businessName}}" size="xl" />
|
|
64
61
|
<p {{#if useTailwind}}className="text-zinc-400 max-w-lg text-center"{{else}}style=\{{ color: '#a1a1aa', maxWidth: '32rem', textAlign: 'center' }}{{/if}}>
|
|
65
62
|
{{description}}
|
|
66
63
|
</p>
|
|
@@ -43,11 +43,6 @@ export default function App() {
|
|
|
43
43
|
{{/if}}
|
|
44
44
|
<Route path="*" element={<NotFound />} />
|
|
45
45
|
</Routes>
|
|
46
|
-
<footer style=\{{ textAlign: 'center', padding: '1rem 0', fontSize: '0.75rem', color: '#52525b' }}>
|
|
47
|
-
<a href="https://githat.io" target="_blank" rel="noopener noreferrer" style=\{{ color: '#7c3aed', textDecoration: 'none' }}>
|
|
48
|
-
Powered by GitHat
|
|
49
|
-
</a>
|
|
50
|
-
</footer>
|
|
51
46
|
</>
|
|
52
47
|
);
|
|
53
48
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "@githat/ui/tokens.css";
|
|
1
2
|
{{#if useTailwind}}
|
|
2
3
|
@import "tailwindcss";
|
|
3
4
|
{{/if}}
|
|
@@ -9,9 +10,9 @@
|
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
body {
|
|
12
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
13
|
-
background: #09090b;
|
|
14
|
-
color: #fafafa;
|
|
13
|
+
font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
|
|
14
|
+
background: var(--bg, #09090b);
|
|
15
|
+
color: var(--fg, #fafafa);
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
a {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SignInButton, SignUpButton } from '@githat/nextjs';
|
|
2
|
+
import { Wordmark } from '@githat/ui';
|
|
2
3
|
|
|
3
4
|
const hasKey = !!import.meta.env.VITE_GITHAT_PUBLISHABLE_KEY;
|
|
4
5
|
|
|
@@ -6,9 +7,7 @@ function SetupGuide() {
|
|
|
6
7
|
return (
|
|
7
8
|
<main {{#if useTailwind}}className="flex flex-col items-center justify-center min-h-screen gap-8 bg-[#09090b] text-[#fafafa] px-6"{{else}}style=\{{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', minHeight: '100vh', gap: '2rem', background: '#09090b', color: '#fafafa', padding: '0 1.5rem' }}{{/if}}>
|
|
8
9
|
<div {{#if useTailwind}}className="text-center"{{else}}style=\{{ textAlign: 'center' }}{{/if}}>
|
|
9
|
-
<
|
|
10
|
-
{{businessName}}
|
|
11
|
-
</h1>
|
|
10
|
+
<Wordmark name="{{businessName}}" size="xl" />
|
|
12
11
|
<p {{#if useTailwind}}className="text-zinc-400"{{else}}style=\{{ color: '#a1a1aa' }}{{/if}}>
|
|
13
12
|
Get started in 3 steps
|
|
14
13
|
</p>
|
|
@@ -58,9 +57,7 @@ export default function Home() {
|
|
|
58
57
|
|
|
59
58
|
return (
|
|
60
59
|
<main {{#if useTailwind}}className="flex flex-col items-center justify-center min-h-screen gap-6 bg-[#09090b] text-[#fafafa]"{{else}}style=\{{ display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', minHeight: '100vh', gap: '1.5rem', background: '#09090b', color: '#fafafa' }}{{/if}}>
|
|
61
|
-
<
|
|
62
|
-
Welcome to {{businessName}}
|
|
63
|
-
</h1>
|
|
60
|
+
<Wordmark name="{{businessName}}" size="xl" />
|
|
64
61
|
<p {{#if useTailwind}}className="text-zinc-400 max-w-lg text-center"{{else}}style=\{{ color: '#a1a1aa', maxWidth: '32rem', textAlign: 'center' }}{{/if}}>
|
|
65
62
|
{{description}}
|
|
66
63
|
</p>
|