Hanzo Dev commited on
Commit ·
8728f43
1
Parent(s): 3ccbed7
Fix all TypeScript errors - remove gradient properties and fix Button variants
Browse files- components/template-data.ts +0 -4
- templates/analyticsdash.tsx +1 -1
- templates/api-docs.tsx +2 -2
- templates/devforge.tsx +2 -2
- templates/index.tsx +25 -14
- templates/mobilefirst.tsx +1 -1
- templates/saasify.tsx +1 -1
- templates/startupkit.tsx +2 -2
components/template-data.ts
CHANGED
|
@@ -283,7 +283,6 @@ export const templates: Template[] = [
|
|
| 283 |
port: 3009,
|
| 284 |
primaryColor: '#ffffff',
|
| 285 |
secondaryColor: '#9ca3af',
|
| 286 |
-
gradient: 'from-white to-gray-400',
|
| 287 |
features: [
|
| 288 |
'Model Context Protocol',
|
| 289 |
'100+ LLM Providers',
|
|
@@ -312,7 +311,6 @@ export const templates: Template[] = [
|
|
| 312 |
port: 3010,
|
| 313 |
primaryColor: '#ffffff',
|
| 314 |
secondaryColor: '#9ca3af',
|
| 315 |
-
gradient: 'from-white to-gray-400',
|
| 316 |
features: [
|
| 317 |
'AI Understanding',
|
| 318 |
'Generative UI',
|
|
@@ -341,7 +339,6 @@ export const templates: Template[] = [
|
|
| 341 |
port: 3011,
|
| 342 |
primaryColor: '#ffffff',
|
| 343 |
secondaryColor: '#9ca3af',
|
| 344 |
-
gradient: 'from-white to-gray-400',
|
| 345 |
features: [
|
| 346 |
'Sales Analytics',
|
| 347 |
'Inventory Management',
|
|
@@ -370,7 +367,6 @@ export const templates: Template[] = [
|
|
| 370 |
port: 3012,
|
| 371 |
primaryColor: '#ffffff',
|
| 372 |
secondaryColor: '#9ca3af',
|
| 373 |
-
gradient: 'from-white to-gray-400',
|
| 374 |
features: [
|
| 375 |
'Interactive Examples',
|
| 376 |
'Multiple SDKs',
|
|
|
|
| 283 |
port: 3009,
|
| 284 |
primaryColor: '#ffffff',
|
| 285 |
secondaryColor: '#9ca3af',
|
|
|
|
| 286 |
features: [
|
| 287 |
'Model Context Protocol',
|
| 288 |
'100+ LLM Providers',
|
|
|
|
| 311 |
port: 3010,
|
| 312 |
primaryColor: '#ffffff',
|
| 313 |
secondaryColor: '#9ca3af',
|
|
|
|
| 314 |
features: [
|
| 315 |
'AI Understanding',
|
| 316 |
'Generative UI',
|
|
|
|
| 339 |
port: 3011,
|
| 340 |
primaryColor: '#ffffff',
|
| 341 |
secondaryColor: '#9ca3af',
|
|
|
|
| 342 |
features: [
|
| 343 |
'Sales Analytics',
|
| 344 |
'Inventory Management',
|
|
|
|
| 367 |
port: 3012,
|
| 368 |
primaryColor: '#ffffff',
|
| 369 |
secondaryColor: '#9ca3af',
|
|
|
|
| 370 |
features: [
|
| 371 |
'Interactive Examples',
|
| 372 |
'Multiple SDKs',
|
templates/analyticsdash.tsx
CHANGED
|
@@ -80,7 +80,7 @@ const AnalyticsDashTemplate: React.FC = () => {
|
|
| 80 |
<Bell className="w-5 h-5" />
|
| 81 |
<div className="absolute top-1 right-1 w-2 h-2 bg-foreground rounded-full" />
|
| 82 |
</Button>
|
| 83 |
-
<Button variant="
|
| 84 |
<Download className="w-4 h-4" />
|
| 85 |
Export
|
| 86 |
</Button>
|
|
|
|
| 80 |
<Bell className="w-5 h-5" />
|
| 81 |
<div className="absolute top-1 right-1 w-2 h-2 bg-foreground rounded-full" />
|
| 82 |
</Button>
|
| 83 |
+
<Button variant="primary" className="flex items-center gap-2">
|
| 84 |
<Download className="w-4 h-4" />
|
| 85 |
Export
|
| 86 |
</Button>
|
templates/api-docs.tsx
CHANGED
|
@@ -93,8 +93,8 @@ export default function ApiDocsTemplate() {
|
|
| 93 |
{" "}<span className="text-gray-400">"messages":</span> [{"{"}{"\n"}
|
| 94 |
{" "}<span className="text-gray-400">"role":</span> <span className="text-gray-300">"user"</span>,{"\n"}
|
| 95 |
{" "}<span className="text-gray-400">"content":</span> <span className="text-gray-300">"Hello, API!"</span>{"\n"}
|
| 96 |
-
{" "}{"}"
|
| 97 |
-
{" "}{"}
|
| 98 |
</code>
|
| 99 |
</pre>
|
| 100 |
</CardContent>
|
|
|
|
| 93 |
{" "}<span className="text-gray-400">"messages":</span> [{"{"}{"\n"}
|
| 94 |
{" "}<span className="text-gray-400">"role":</span> <span className="text-gray-300">"user"</span>,{"\n"}
|
| 95 |
{" "}<span className="text-gray-400">"content":</span> <span className="text-gray-300">"Hello, API!"</span>{"\n"}
|
| 96 |
+
{" "}{"}"}]{"\n"}
|
| 97 |
+
{" "}{"}"}'
|
| 98 |
</code>
|
| 99 |
</pre>
|
| 100 |
</CardContent>
|
templates/devforge.tsx
CHANGED
|
@@ -47,7 +47,7 @@ const DevForgeTemplate: React.FC = () => {
|
|
| 47 |
<Button variant="ghost">
|
| 48 |
Pricing
|
| 49 |
</Button>
|
| 50 |
-
<Button variant="
|
| 51 |
Get Started
|
| 52 |
</Button>
|
| 53 |
</div>
|
|
@@ -162,7 +162,7 @@ const DevForgeTemplate: React.FC = () => {
|
|
| 162 |
<p className="text-xl text-muted-foreground mb-8">
|
| 163 |
Join thousands of developers building the future with Hanzo DevForge
|
| 164 |
</p>
|
| 165 |
-
<Button size="lg" variant="
|
| 166 |
Start Free Trial
|
| 167 |
</Button>
|
| 168 |
</CardContent>
|
|
|
|
| 47 |
<Button variant="ghost">
|
| 48 |
Pricing
|
| 49 |
</Button>
|
| 50 |
+
<Button variant="primary">
|
| 51 |
Get Started
|
| 52 |
</Button>
|
| 53 |
</div>
|
|
|
|
| 162 |
<p className="text-xl text-muted-foreground mb-8">
|
| 163 |
Join thousands of developers building the future with Hanzo DevForge
|
| 164 |
</p>
|
| 165 |
+
<Button size="lg" variant="primary">
|
| 166 |
Start Free Trial
|
| 167 |
</Button>
|
| 168 |
</CardContent>
|
templates/index.tsx
CHANGED
|
@@ -1,6 +1,23 @@
|
|
| 1 |
// Export all template components
|
| 2 |
// These are dynamically imported in the gallery
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
export { default as devforge } from './devforge'
|
| 5 |
export { default as mobilefirst } from './mobilefirst'
|
| 6 |
export { default as saasify } from './saasify'
|
|
@@ -10,22 +27,16 @@ export { default as blog } from './blog'
|
|
| 10 |
export { default as changelog } from './changelog'
|
| 11 |
export { default as portfolio } from './portfolio'
|
| 12 |
|
| 13 |
-
// New templates with hyphenated names
|
| 14 |
-
import AiChatTemplate from './ai-chat'
|
| 15 |
-
import SearchInterfaceTemplate from './search-interface'
|
| 16 |
-
import EcommerceDashTemplate from './ecommerce-dash'
|
| 17 |
-
import ApiDocsTemplate from './api-docs'
|
| 18 |
-
|
| 19 |
// Export with keys matching template IDs in template-data.ts
|
| 20 |
export const templates = {
|
| 21 |
-
'devforge':
|
| 22 |
-
'mobilefirst':
|
| 23 |
-
'saasify':
|
| 24 |
-
'startupkit':
|
| 25 |
-
'analyticsdash':
|
| 26 |
-
'blog':
|
| 27 |
-
'changelog':
|
| 28 |
-
'portfolio':
|
| 29 |
'ai-chat': AiChatTemplate,
|
| 30 |
'search-interface': SearchInterfaceTemplate,
|
| 31 |
'ecommerce-dash': EcommerceDashTemplate,
|
|
|
|
| 1 |
// Export all template components
|
| 2 |
// These are dynamically imported in the gallery
|
| 3 |
|
| 4 |
+
// Import all templates
|
| 5 |
+
import DevforgeTemplate from './devforge'
|
| 6 |
+
import MobilefirstTemplate from './mobilefirst'
|
| 7 |
+
import SaasifyTemplate from './saasify'
|
| 8 |
+
import StartupkitTemplate from './startupkit'
|
| 9 |
+
import AnalyticsdashTemplate from './analyticsdash'
|
| 10 |
+
import BlogTemplate from './blog'
|
| 11 |
+
import ChangelogTemplate from './changelog'
|
| 12 |
+
import PortfolioTemplate from './portfolio'
|
| 13 |
+
|
| 14 |
+
// New templates with hyphenated names
|
| 15 |
+
import AiChatTemplate from './ai-chat'
|
| 16 |
+
import SearchInterfaceTemplate from './search-interface'
|
| 17 |
+
import EcommerceDashTemplate from './ecommerce-dash'
|
| 18 |
+
import ApiDocsTemplate from './api-docs'
|
| 19 |
+
|
| 20 |
+
// Named exports for backward compatibility
|
| 21 |
export { default as devforge } from './devforge'
|
| 22 |
export { default as mobilefirst } from './mobilefirst'
|
| 23 |
export { default as saasify } from './saasify'
|
|
|
|
| 27 |
export { default as changelog } from './changelog'
|
| 28 |
export { default as portfolio } from './portfolio'
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
// Export with keys matching template IDs in template-data.ts
|
| 31 |
export const templates = {
|
| 32 |
+
'devforge': DevforgeTemplate,
|
| 33 |
+
'mobilefirst': MobilefirstTemplate,
|
| 34 |
+
'saasify': SaasifyTemplate,
|
| 35 |
+
'startupkit': StartupkitTemplate,
|
| 36 |
+
'analyticsdash': AnalyticsdashTemplate,
|
| 37 |
+
'blog': BlogTemplate,
|
| 38 |
+
'changelog': ChangelogTemplate,
|
| 39 |
+
'portfolio': PortfolioTemplate,
|
| 40 |
'ai-chat': AiChatTemplate,
|
| 41 |
'search-interface': SearchInterfaceTemplate,
|
| 42 |
'ecommerce-dash': EcommerceDashTemplate,
|
templates/mobilefirst.tsx
CHANGED
|
@@ -23,7 +23,7 @@ const MobileFirstTemplate: React.FC = () => {
|
|
| 23 |
</div>
|
| 24 |
<span className="text-xl font-bold">Hanzo MobileFirst</span>
|
| 25 |
</div>
|
| 26 |
-
<Button variant="
|
| 27 |
Start Building
|
| 28 |
</Button>
|
| 29 |
</nav>
|
|
|
|
| 23 |
</div>
|
| 24 |
<span className="text-xl font-bold">Hanzo MobileFirst</span>
|
| 25 |
</div>
|
| 26 |
+
<Button variant="primary">
|
| 27 |
Start Building
|
| 28 |
</Button>
|
| 29 |
</nav>
|
templates/saasify.tsx
CHANGED
|
@@ -23,7 +23,7 @@ const SaaSifyTemplate: React.FC = () => {
|
|
| 23 |
</div>
|
| 24 |
<span className="text-xl font-bold">Hanzo SaaSify</span>
|
| 25 |
</div>
|
| 26 |
-
<Button variant="
|
| 27 |
Start Free Trial
|
| 28 |
</Button>
|
| 29 |
</nav>
|
|
|
|
| 23 |
</div>
|
| 24 |
<span className="text-xl font-bold">Hanzo SaaSify</span>
|
| 25 |
</div>
|
| 26 |
+
<Button variant="primary">
|
| 27 |
Start Free Trial
|
| 28 |
</Button>
|
| 29 |
</nav>
|
templates/startupkit.tsx
CHANGED
|
@@ -34,7 +34,7 @@ const StartupKitTemplate: React.FC = () => {
|
|
| 34 |
<Button variant="ghost">Features</Button>
|
| 35 |
<Button variant="ghost">Pricing</Button>
|
| 36 |
<Button variant="ghost">Docs</Button>
|
| 37 |
-
<Button variant="
|
| 38 |
Get Started
|
| 39 |
</Button>
|
| 40 |
</div>
|
|
@@ -67,7 +67,7 @@ const StartupKitTemplate: React.FC = () => {
|
|
| 67 |
</p>
|
| 68 |
|
| 69 |
<div className="flex gap-4 mb-12">
|
| 70 |
-
<Button variant="
|
| 71 |
Start Building <ChevronRight className="w-4 h-4" />
|
| 72 |
</Button>
|
| 73 |
<Button variant="outline">
|
|
|
|
| 34 |
<Button variant="ghost">Features</Button>
|
| 35 |
<Button variant="ghost">Pricing</Button>
|
| 36 |
<Button variant="ghost">Docs</Button>
|
| 37 |
+
<Button variant="primary">
|
| 38 |
Get Started
|
| 39 |
</Button>
|
| 40 |
</div>
|
|
|
|
| 67 |
</p>
|
| 68 |
|
| 69 |
<div className="flex gap-4 mb-12">
|
| 70 |
+
<Button variant="primary" className="flex items-center gap-2">
|
| 71 |
Start Building <ChevronRight className="w-4 h-4" />
|
| 72 |
</Button>
|
| 73 |
<Button variant="outline">
|