@roboticela/devkit 3.0.0 → 4.1.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/README.md +12 -0
- package/dist/commands/add.js +103 -4
- package/dist/commands/eject.d.ts +1 -0
- package/dist/commands/eject.js +60 -0
- package/dist/index.js +10 -19
- package/dist/lib/bundled-registry.d.ts +18 -0
- package/dist/lib/bundled-registry.js +82 -0
- package/dist/lib/component-entry.d.ts +16 -0
- package/dist/lib/component-entry.js +1 -0
- package/dist/lib/config.d.ts +2 -0
- package/dist/lib/config.js +3 -1
- package/dist/lib/installer.js +9 -7
- package/dist/lib/registry.d.ts +2 -16
- package/dist/lib/registry.js +10 -0
- package/package.json +4 -2
- package/registry/components/auth/component.json +29 -0
- package/registry/components/auth/nextjs-compact/v1/files/app/api/auth/[...route]/route.ts +140 -0
- package/registry/components/auth/nextjs-compact/v1/files/app/auth/forgot-password/page.tsx +150 -0
- package/registry/components/auth/nextjs-compact/v1/files/app/auth/login/page.tsx +45 -0
- package/registry/components/auth/nextjs-compact/v1/files/app/auth/register/page.tsx +45 -0
- package/registry/components/auth/nextjs-compact/v1/files/app/auth/reset-password/page.tsx +139 -0
- package/registry/components/auth/nextjs-compact/v1/files/components/auth/AuthProvider.tsx +89 -0
- package/registry/components/auth/nextjs-compact/v1/files/components/auth/LoginForm.tsx +123 -0
- package/registry/components/auth/nextjs-compact/v1/files/components/auth/RegisterForm.tsx +106 -0
- package/registry/components/auth/nextjs-compact/v1/files/lib/auth/authService.ts +43 -0
- package/registry/components/auth/nextjs-compact/v1/manifest.json +37 -0
- package/registry/components/auth/vite-express-tauri/v1/files/server/middleware/requireAuth.ts +14 -0
- package/registry/components/auth/vite-express-tauri/v1/files/server/routes/auth.ts +83 -0
- package/registry/components/auth/vite-express-tauri/v1/files/server/services/jwtService.ts +19 -0
- package/registry/components/auth/vite-express-tauri/v1/files/src/contexts/AuthContext.tsx +72 -0
- package/registry/components/auth/vite-express-tauri/v1/manifest.json +47 -0
- package/registry/components/hero-section/component.json +28 -0
- package/registry/components/hero-section/nextjs-compact/v1/variants/centered/files/components/hero/HeroSection.tsx +97 -0
- package/registry/components/hero-section/nextjs-compact/v1/variants/centered/manifest.json +17 -0
- package/registry/components/hero-section/nextjs-compact/v1/variants/gradient-mesh/files/components/hero/HeroSection.tsx +146 -0
- package/registry/components/hero-section/nextjs-compact/v1/variants/gradient-mesh/manifest.json +17 -0
- package/registry/components/hero-section/nextjs-compact/v1/variants/split-image/files/components/hero/HeroSection.tsx +110 -0
- package/registry/components/hero-section/nextjs-compact/v1/variants/split-image/manifest.json +17 -0
- package/registry/components/registry.json +31 -0
- package/schemas/devkit-config.json +63 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"template": "nextjs-compact",
|
|
4
|
+
"variant": "centered",
|
|
5
|
+
"files": [
|
|
6
|
+
{ "source": "files/components/hero/HeroSection.tsx", "destination": "components/hero/HeroSection.tsx" }
|
|
7
|
+
],
|
|
8
|
+
"injections": [
|
|
9
|
+
{
|
|
10
|
+
"file": "app/page.tsx",
|
|
11
|
+
"marker": "/* devkit:hero-section */",
|
|
12
|
+
"importLine": "import { HeroSection } from '@/components/hero/HeroSection';",
|
|
13
|
+
"componentLine": "<HeroSection />"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"dependencies": { "frontend": [], "devFrontend": [] }
|
|
17
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
export function HeroSection({
|
|
4
|
+
headline = "Build faster. Ship smarter.",
|
|
5
|
+
subheadline = "The DevKit that turns your ideas into production-ready apps in minutes.",
|
|
6
|
+
primaryCta = { label: "Get started", href: "/auth/register" },
|
|
7
|
+
secondaryCta = { label: "View docs", href: "/docs" },
|
|
8
|
+
}: {
|
|
9
|
+
headline?: string;
|
|
10
|
+
subheadline?: string;
|
|
11
|
+
primaryCta?: { label: string; href: string };
|
|
12
|
+
secondaryCta?: { label: string; href: string };
|
|
13
|
+
}) {
|
|
14
|
+
return (
|
|
15
|
+
<section
|
|
16
|
+
style={{
|
|
17
|
+
position: "relative",
|
|
18
|
+
minHeight: "100vh",
|
|
19
|
+
display: "flex",
|
|
20
|
+
flexDirection: "column",
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
justifyContent: "center",
|
|
23
|
+
textAlign: "center",
|
|
24
|
+
padding: "var(--space-20) var(--space-4)",
|
|
25
|
+
gap: "var(--space-6)",
|
|
26
|
+
overflow: "hidden",
|
|
27
|
+
background: "var(--color-bg)",
|
|
28
|
+
}}
|
|
29
|
+
>
|
|
30
|
+
{/* Animated gradient blobs */}
|
|
31
|
+
<div aria-hidden style={{ position: "absolute", inset: 0, zIndex: 0, overflow: "hidden" }}>
|
|
32
|
+
<div
|
|
33
|
+
style={{
|
|
34
|
+
position: "absolute",
|
|
35
|
+
top: "-20%",
|
|
36
|
+
left: "-10%",
|
|
37
|
+
width: "60%",
|
|
38
|
+
height: "60%",
|
|
39
|
+
borderRadius: "var(--radius-full)",
|
|
40
|
+
background: "var(--color-primary)",
|
|
41
|
+
opacity: 0.15,
|
|
42
|
+
filter: "blur(80px)",
|
|
43
|
+
animation: "drift1 12s ease-in-out infinite alternate",
|
|
44
|
+
}}
|
|
45
|
+
/>
|
|
46
|
+
<div
|
|
47
|
+
style={{
|
|
48
|
+
position: "absolute",
|
|
49
|
+
bottom: "-20%",
|
|
50
|
+
right: "-10%",
|
|
51
|
+
width: "60%",
|
|
52
|
+
height: "60%",
|
|
53
|
+
borderRadius: "var(--radius-full)",
|
|
54
|
+
background: "var(--color-secondary)",
|
|
55
|
+
opacity: 0.12,
|
|
56
|
+
filter: "blur(80px)",
|
|
57
|
+
animation: "drift2 15s ease-in-out infinite alternate",
|
|
58
|
+
}}
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<style>{`
|
|
63
|
+
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(5%,8%) scale(1.1); } }
|
|
64
|
+
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-5%,-8%) scale(1.15); } }
|
|
65
|
+
`}</style>
|
|
66
|
+
|
|
67
|
+
{/* Content */}
|
|
68
|
+
<span
|
|
69
|
+
style={{
|
|
70
|
+
position: "relative",
|
|
71
|
+
zIndex: 1,
|
|
72
|
+
display: "inline-block",
|
|
73
|
+
padding: "var(--space-1) var(--space-3)",
|
|
74
|
+
borderRadius: "var(--radius-full)",
|
|
75
|
+
background: "var(--color-primary-subtle)",
|
|
76
|
+
color: "var(--color-primary)",
|
|
77
|
+
fontSize: "var(--text-sm)",
|
|
78
|
+
fontWeight: "var(--weight-medium)",
|
|
79
|
+
}}
|
|
80
|
+
>
|
|
81
|
+
Now in public beta
|
|
82
|
+
</span>
|
|
83
|
+
|
|
84
|
+
<h1
|
|
85
|
+
style={{
|
|
86
|
+
position: "relative",
|
|
87
|
+
zIndex: 1,
|
|
88
|
+
fontSize: "clamp(var(--text-4xl), 6vw, var(--text-6xl))",
|
|
89
|
+
fontWeight: "var(--weight-extrabold)",
|
|
90
|
+
fontFamily: "var(--font-display)",
|
|
91
|
+
color: "var(--color-text)",
|
|
92
|
+
lineHeight: "var(--leading-tight)",
|
|
93
|
+
maxWidth: "720px",
|
|
94
|
+
}}
|
|
95
|
+
>
|
|
96
|
+
{headline}
|
|
97
|
+
</h1>
|
|
98
|
+
|
|
99
|
+
<p
|
|
100
|
+
style={{
|
|
101
|
+
position: "relative",
|
|
102
|
+
zIndex: 1,
|
|
103
|
+
fontSize: "var(--text-xl)",
|
|
104
|
+
color: "var(--color-text-muted)",
|
|
105
|
+
maxWidth: "560px",
|
|
106
|
+
lineHeight: "var(--leading-relaxed)",
|
|
107
|
+
}}
|
|
108
|
+
>
|
|
109
|
+
{subheadline}
|
|
110
|
+
</p>
|
|
111
|
+
|
|
112
|
+
<div style={{ position: "relative", zIndex: 1, display: "flex", gap: "var(--space-4)", flexWrap: "wrap", justifyContent: "center" }}>
|
|
113
|
+
<a
|
|
114
|
+
href={primaryCta.href}
|
|
115
|
+
style={{
|
|
116
|
+
padding: "var(--space-3) var(--space-8)",
|
|
117
|
+
borderRadius: "var(--radius-md)",
|
|
118
|
+
background: "var(--color-primary)",
|
|
119
|
+
color: "var(--color-primary-text)",
|
|
120
|
+
fontWeight: "var(--weight-semibold)",
|
|
121
|
+
textDecoration: "none",
|
|
122
|
+
fontSize: "var(--text-base)",
|
|
123
|
+
}}
|
|
124
|
+
>
|
|
125
|
+
{primaryCta.label}
|
|
126
|
+
</a>
|
|
127
|
+
<a
|
|
128
|
+
href={secondaryCta.href}
|
|
129
|
+
style={{
|
|
130
|
+
padding: "var(--space-3) var(--space-8)",
|
|
131
|
+
borderRadius: "var(--radius-md)",
|
|
132
|
+
background: "rgba(255,255,255,0.1)",
|
|
133
|
+
backdropFilter: "blur(8px)",
|
|
134
|
+
color: "var(--color-text)",
|
|
135
|
+
fontWeight: "var(--weight-semibold)",
|
|
136
|
+
textDecoration: "none",
|
|
137
|
+
border: "1px solid var(--color-border)",
|
|
138
|
+
fontSize: "var(--text-base)",
|
|
139
|
+
}}
|
|
140
|
+
>
|
|
141
|
+
{secondaryCta.label}
|
|
142
|
+
</a>
|
|
143
|
+
</div>
|
|
144
|
+
</section>
|
|
145
|
+
);
|
|
146
|
+
}
|
package/registry/components/hero-section/nextjs-compact/v1/variants/gradient-mesh/manifest.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"template": "nextjs-compact",
|
|
4
|
+
"variant": "gradient-mesh",
|
|
5
|
+
"files": [
|
|
6
|
+
{ "source": "files/components/hero/HeroSection.tsx", "destination": "components/hero/HeroSection.tsx" }
|
|
7
|
+
],
|
|
8
|
+
"injections": [
|
|
9
|
+
{
|
|
10
|
+
"file": "app/page.tsx",
|
|
11
|
+
"marker": "/* devkit:hero-section */",
|
|
12
|
+
"importLine": "import { HeroSection } from '@/components/hero/HeroSection';",
|
|
13
|
+
"componentLine": "<HeroSection />"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"dependencies": { "frontend": [], "devFrontend": [] }
|
|
17
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import Image from "next/image";
|
|
2
|
+
|
|
3
|
+
export function HeroSection({
|
|
4
|
+
headline = "Build faster. Ship smarter.",
|
|
5
|
+
subheadline = "The DevKit that turns your ideas into production-ready apps in minutes.",
|
|
6
|
+
primaryCta = { label: "Get started", href: "/auth/register" },
|
|
7
|
+
secondaryCta = { label: "View docs", href: "/docs" },
|
|
8
|
+
imageSrc = "/hero-screenshot.png",
|
|
9
|
+
imageAlt = "App screenshot",
|
|
10
|
+
}: {
|
|
11
|
+
headline?: string;
|
|
12
|
+
subheadline?: string;
|
|
13
|
+
primaryCta?: { label: string; href: string };
|
|
14
|
+
secondaryCta?: { label: string; href: string };
|
|
15
|
+
imageSrc?: string;
|
|
16
|
+
imageAlt?: string;
|
|
17
|
+
}) {
|
|
18
|
+
return (
|
|
19
|
+
<section
|
|
20
|
+
style={{
|
|
21
|
+
display: "grid",
|
|
22
|
+
gridTemplateColumns: "1fr 1fr",
|
|
23
|
+
gap: "var(--space-16)",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
padding: "var(--space-20) var(--space-8)",
|
|
26
|
+
maxWidth: "1280px",
|
|
27
|
+
margin: "0 auto",
|
|
28
|
+
background: "var(--color-bg)",
|
|
29
|
+
}}
|
|
30
|
+
>
|
|
31
|
+
{/* Left — Text */}
|
|
32
|
+
<div style={{ display: "flex", flexDirection: "column", gap: "var(--space-6)" }}>
|
|
33
|
+
<span
|
|
34
|
+
style={{
|
|
35
|
+
display: "inline-block",
|
|
36
|
+
padding: "var(--space-1) var(--space-3)",
|
|
37
|
+
borderRadius: "var(--radius-full)",
|
|
38
|
+
background: "var(--color-primary-subtle)",
|
|
39
|
+
color: "var(--color-primary)",
|
|
40
|
+
fontSize: "var(--text-sm)",
|
|
41
|
+
fontWeight: "var(--weight-medium)",
|
|
42
|
+
width: "fit-content",
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
45
|
+
Now in public beta
|
|
46
|
+
</span>
|
|
47
|
+
|
|
48
|
+
<h1
|
|
49
|
+
style={{
|
|
50
|
+
fontSize: "clamp(var(--text-3xl), 4vw, var(--text-5xl))",
|
|
51
|
+
fontWeight: "var(--weight-extrabold)",
|
|
52
|
+
fontFamily: "var(--font-display)",
|
|
53
|
+
color: "var(--color-text)",
|
|
54
|
+
lineHeight: "var(--leading-tight)",
|
|
55
|
+
}}
|
|
56
|
+
>
|
|
57
|
+
{headline}
|
|
58
|
+
</h1>
|
|
59
|
+
|
|
60
|
+
<p style={{ fontSize: "var(--text-lg)", color: "var(--color-text-muted)", lineHeight: "var(--leading-relaxed)" }}>
|
|
61
|
+
{subheadline}
|
|
62
|
+
</p>
|
|
63
|
+
|
|
64
|
+
<div style={{ display: "flex", gap: "var(--space-4)" }}>
|
|
65
|
+
<a
|
|
66
|
+
href={primaryCta.href}
|
|
67
|
+
style={{
|
|
68
|
+
padding: "var(--space-3) var(--space-6)",
|
|
69
|
+
borderRadius: "var(--radius-md)",
|
|
70
|
+
background: "var(--color-primary)",
|
|
71
|
+
color: "var(--color-primary-text)",
|
|
72
|
+
fontWeight: "var(--weight-semibold)",
|
|
73
|
+
textDecoration: "none",
|
|
74
|
+
fontSize: "var(--text-base)",
|
|
75
|
+
}}
|
|
76
|
+
>
|
|
77
|
+
{primaryCta.label}
|
|
78
|
+
</a>
|
|
79
|
+
<a
|
|
80
|
+
href={secondaryCta.href}
|
|
81
|
+
style={{
|
|
82
|
+
padding: "var(--space-3) var(--space-6)",
|
|
83
|
+
borderRadius: "var(--radius-md)",
|
|
84
|
+
background: "transparent",
|
|
85
|
+
color: "var(--color-text)",
|
|
86
|
+
fontWeight: "var(--weight-semibold)",
|
|
87
|
+
textDecoration: "none",
|
|
88
|
+
border: "1px solid var(--color-border)",
|
|
89
|
+
fontSize: "var(--text-base)",
|
|
90
|
+
}}
|
|
91
|
+
>
|
|
92
|
+
{secondaryCta.label}
|
|
93
|
+
</a>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
{/* Right — Image */}
|
|
98
|
+
<div
|
|
99
|
+
style={{
|
|
100
|
+
borderRadius: "var(--radius-xl)",
|
|
101
|
+
overflow: "hidden",
|
|
102
|
+
border: "1px solid var(--color-border)",
|
|
103
|
+
boxShadow: "var(--shadow-xl)",
|
|
104
|
+
}}
|
|
105
|
+
>
|
|
106
|
+
<Image src={imageSrc} alt={imageAlt} width={720} height={480} style={{ width: "100%", height: "auto", display: "block" }} />
|
|
107
|
+
</div>
|
|
108
|
+
</section>
|
|
109
|
+
);
|
|
110
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"template": "nextjs-compact",
|
|
4
|
+
"variant": "split-image",
|
|
5
|
+
"files": [
|
|
6
|
+
{ "source": "files/components/hero/HeroSection.tsx", "destination": "components/hero/HeroSection.tsx" }
|
|
7
|
+
],
|
|
8
|
+
"injections": [
|
|
9
|
+
{
|
|
10
|
+
"file": "app/page.tsx",
|
|
11
|
+
"marker": "/* devkit:hero-section */",
|
|
12
|
+
"importLine": "import { HeroSection } from '@/components/hero/HeroSection';",
|
|
13
|
+
"componentLine": "<HeroSection />"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"dependencies": { "frontend": [], "devFrontend": [] }
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1",
|
|
3
|
+
"updatedAt": "2026-04-05T00:00:00Z",
|
|
4
|
+
"components": [
|
|
5
|
+
{
|
|
6
|
+
"name": "auth",
|
|
7
|
+
"displayName": "Authentication",
|
|
8
|
+
"description": "Complete authentication system: email/password login, registration, email verification, forgot/reset password, and Google OAuth.",
|
|
9
|
+
"category": "authentication",
|
|
10
|
+
"icon": "lock",
|
|
11
|
+
"templates": ["nextjs-compact", "vite-express-tauri"],
|
|
12
|
+
"platforms": ["web", "desktop"],
|
|
13
|
+
"hasVariants": false,
|
|
14
|
+
"latestVersion": "1.0.0",
|
|
15
|
+
"tags": ["auth", "login", "register", "oauth", "jwt", "email"]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "hero-section",
|
|
19
|
+
"displayName": "Hero Section",
|
|
20
|
+
"description": "Landing page hero banner with 4 design variants: centered, split-image, gradient-mesh, and minimal.",
|
|
21
|
+
"category": "marketing",
|
|
22
|
+
"icon": "layout",
|
|
23
|
+
"templates": ["nextjs-compact", "vite-express-tauri"],
|
|
24
|
+
"platforms": ["web"],
|
|
25
|
+
"hasVariants": true,
|
|
26
|
+
"variants": ["centered", "split-image", "gradient-mesh", "minimal"],
|
|
27
|
+
"latestVersion": "1.0.0",
|
|
28
|
+
"tags": ["hero", "landing", "marketing", "banner"]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/Roboticela/DevKit/main/cli/schemas/devkit-config.json",
|
|
4
|
+
"title": "DevKit project configuration",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["devkit", "template", "site"],
|
|
7
|
+
"additionalProperties": true,
|
|
8
|
+
"properties": {
|
|
9
|
+
"$schema": { "type": "string", "format": "uri" },
|
|
10
|
+
"devkit": { "type": "string", "description": "DevKit config format version" },
|
|
11
|
+
"template": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": ["nextjs-compact", "vite-express-tauri"],
|
|
14
|
+
"description": "Project template this repo was scaffolded from"
|
|
15
|
+
},
|
|
16
|
+
"site": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"required": ["name", "url"],
|
|
19
|
+
"properties": {
|
|
20
|
+
"name": { "type": "string" },
|
|
21
|
+
"url": { "type": "string", "format": "uri" },
|
|
22
|
+
"icon": { "type": "string" },
|
|
23
|
+
"description": { "type": "string" }
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": true
|
|
26
|
+
},
|
|
27
|
+
"theme": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"additionalProperties": true,
|
|
30
|
+
"properties": {
|
|
31
|
+
"preset": { "type": "string" },
|
|
32
|
+
"colors": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"primary": { "type": "string" },
|
|
36
|
+
"secondary": { "type": "string" }
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": true
|
|
39
|
+
},
|
|
40
|
+
"fonts": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"properties": {
|
|
43
|
+
"sans": { "type": "string" },
|
|
44
|
+
"mono": { "type": "string" },
|
|
45
|
+
"display": { "type": "string" }
|
|
46
|
+
},
|
|
47
|
+
"additionalProperties": true
|
|
48
|
+
},
|
|
49
|
+
"radius": { "type": "string" },
|
|
50
|
+
"darkMode": { "type": "boolean" },
|
|
51
|
+
"darkModeStrategy": { "type": "string", "enum": ["class", "media"] }
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"auth": { "type": "object", "additionalProperties": true },
|
|
55
|
+
"subscriptions": { "type": "object", "additionalProperties": true },
|
|
56
|
+
"storage": { "type": "object", "additionalProperties": true },
|
|
57
|
+
"database": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": { "url": { "type": "string" } },
|
|
60
|
+
"additionalProperties": true
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|