create-frootkit 1.2.10 → 1.2.12
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../src/addons/database.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,2HAA2H,CAAC;AAE5J;;GAEG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAyHzD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAkE7D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAqB1G;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,QAAQ,EAAE,cAAc,EACxB,UAAU,GAAE,MAAkB,GAC7B,IAAI,
|
|
1
|
+
{"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../src/addons/database.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,mBAAmB,2HAA2H,CAAC;AAE5J;;GAEG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAyHzD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAkE7D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAqB1G;AAED,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,QAAQ,EAAE,cAAc,EACxB,UAAU,GAAE,MAAkB,GAC7B,IAAI,CA4wBN"}
|
package/dist/addons/database.js
CHANGED
|
@@ -137,12 +137,12 @@ export function getTemplateSeedSql(templateId) {
|
|
|
137
137
|
if (templateId === 'ecommerce') {
|
|
138
138
|
return `
|
|
139
139
|
INSERT OR IGNORE INTO products (id, name, price, category, rating, reviews_count, image, description, features, in_stock, created_at) VALUES
|
|
140
|
-
('nordic-mechanical-keyboard', 'Nordic Minimal Mechanical Keyboard', 149.0, 'Keyboards', 4.9, 128, 'https://images.unsplash.com/photo-
|
|
141
|
-
('studio-monitor-headphones', 'Studio Master Pro Headphones', 289.0, 'Audio', 4.8, 94, 'https://images.unsplash.com/photo-
|
|
140
|
+
('nordic-mechanical-keyboard', 'Nordic Minimal Mechanical Keyboard', 149.0, 'Keyboards', 4.9, 128, 'https://images.unsplash.com/photo-1595225476474-87563907a212?w=800&auto=format&fit=crop&q=80', 'Aircraft-grade CNC anodized aluminum chassis with custom factory-lubed linear switches and sound-dampening silicone base.', '["Hot-swappable switches", "Bluetooth 5.3 & 2.4GHz wireless", "CNC Aluminum Unibody", "PBT Dye-Sub Keycaps"]', 1, datetime('now')),
|
|
141
|
+
('studio-monitor-headphones', 'Studio Master Pro Headphones', 289.0, 'Audio', 4.8, 94, 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=800&auto=format&fit=crop&q=80', 'Precision 50mm dynamic drivers engineered for ultra-flat frequency response, critical mixing, and executive focus.', '["Planar Magnetic Drivers", "Memory Foam Cushions", "Detachable Braided Cable", "Hard Travel Case"]', 1, datetime('now')),
|
|
142
142
|
('ergo-master-mouse', 'ErgoMaster Wireless Precision Mouse', 89.0, 'Peripherals', 4.7, 210, 'https://images.unsplash.com/photo-1615663245857-ac93bb7c39e7?w=800&auto=format&fit=crop&q=80', 'Sculpted ergonomic contour designed to eliminate wrist fatigue during extended development sessions.', '["26,000 DPI Optical Sensor", "70-day Battery Life", "Infinite Magnetic Scroll Wheel", "Silent Click Switches"]', 1, datetime('now')),
|
|
143
|
-
('walnut-monitor-riser', 'Solid Walnut Monitor Riser Stand', 119.0, 'Desk Setup', 5.0, 62, 'https://images.unsplash.com/photo-
|
|
144
|
-
('titanium-desk-pad', 'Matte Slate Vegan Leather Desk Mat', 49.0, 'Desk Setup', 4.6, 175, 'https://images.unsplash.com/photo-
|
|
145
|
-
('usb-c-magnetic-cable', '240W Braided Kevlar Charging Cable', 29.0, 'Accessories', 4.9, 340, 'https://images.unsplash.com/photo-
|
|
143
|
+
('walnut-monitor-riser', 'Solid Walnut Monitor Riser Stand', 119.0, 'Desk Setup', 5.0, 62, 'https://images.unsplash.com/photo-1586775490184-b79f0621891f?w=800&auto=format&fit=crop&q=80', 'Handcrafted from single-origin American walnut with cork feet and an integrated aluminum tray for desk accessories.', '["Sustainable American Walnut", "Holds up to 60 lbs", "Integrated Cable Troughs", "Hand-finished Matte Oil"]', 1, datetime('now')),
|
|
144
|
+
('titanium-desk-pad', 'Matte Slate Vegan Leather Desk Mat', 49.0, 'Desk Setup', 4.6, 175, 'https://images.unsplash.com/photo-1581291518857-4e27b48ff24e?w=800&auto=format&fit=crop&q=80', 'Water-resistant, stain-proof premium desk surface that provides effortless mouse tracking and protects your workspace.', '["Water-resistant PU Leather", "Anti-slip Suede Backing", "90cm x 45cm Large Size", "Easy to Clean"]', 1, datetime('now')),
|
|
145
|
+
('usb-c-magnetic-cable', '240W Braided Kevlar Charging Cable', 29.0, 'Accessories', 4.9, 340, 'https://images.unsplash.com/photo-1583863788434-e58a36330cf0?w=800&auto=format&fit=crop&q=80', 'Ultra-durable Kevlar-reinforced charging cable supporting up to 240W Power Delivery and 40Gbps Thunderbolt data transfer.', '["240W Power Delivery", "E-Marker Smart Chip", "Braided Kevlar Weave", "2-meter Length"]', 1, datetime('now'));
|
|
146
146
|
|
|
147
147
|
INSERT OR IGNORE INTO orders (id, customer_email, total, status, items_json, created_at) VALUES
|
|
148
148
|
('ord_demo_101', 'developer@frootkit.dev', 238.0, 'completed', '[{"productId": "nordic-mechanical-keyboard", "quantity": 1}, {"productId": "ergo-master-mouse", "quantity": 1}]', datetime('now'));
|
|
@@ -430,7 +430,7 @@ async function seed() {
|
|
|
430
430
|
category: 'Keyboards',
|
|
431
431
|
rating: 4.9,
|
|
432
432
|
reviewsCount: 128,
|
|
433
|
-
image: 'https://images.unsplash.com/photo-
|
|
433
|
+
image: 'https://images.unsplash.com/photo-1595225476474-87563907a212?w=800&auto=format&fit=crop&q=80',
|
|
434
434
|
description: 'Aircraft-grade CNC anodized aluminum chassis with custom factory-lubed linear switches and sound-dampening silicone base.',
|
|
435
435
|
features: JSON.stringify(['Hot-swappable switches', 'Bluetooth 5.3 & 2.4GHz wireless', 'CNC Aluminum Unibody', 'PBT Dye-Sub Keycaps']),
|
|
436
436
|
inStock: true,
|
|
@@ -442,7 +442,7 @@ async function seed() {
|
|
|
442
442
|
category: 'Audio',
|
|
443
443
|
rating: 4.8,
|
|
444
444
|
reviewsCount: 94,
|
|
445
|
-
image: 'https://images.unsplash.com/photo-
|
|
445
|
+
image: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=800&auto=format&fit=crop&q=80',
|
|
446
446
|
description: 'Precision 50mm dynamic drivers engineered for ultra-flat frequency response, critical mixing, and executive focus.',
|
|
447
447
|
features: JSON.stringify(['Planar Magnetic Drivers', 'Memory Foam Cushions', 'Detachable Braided Cable', 'Hard Travel Case']),
|
|
448
448
|
inStock: true,
|
|
@@ -466,7 +466,7 @@ async function seed() {
|
|
|
466
466
|
category: 'Desk Setup',
|
|
467
467
|
rating: 5.0,
|
|
468
468
|
reviewsCount: 62,
|
|
469
|
-
image: 'https://images.unsplash.com/photo-
|
|
469
|
+
image: 'https://images.unsplash.com/photo-1586775490184-b79f0621891f?w=800&auto=format&fit=crop&q=80',
|
|
470
470
|
description: 'Handcrafted from single-origin American walnut with cork feet and an integrated aluminum tray for desk accessories.',
|
|
471
471
|
features: JSON.stringify(['Sustainable American Walnut', 'Holds up to 60 lbs', 'Integrated Cable Troughs', 'Hand-finished Matte Oil']),
|
|
472
472
|
inStock: true,
|
|
@@ -478,7 +478,7 @@ async function seed() {
|
|
|
478
478
|
category: 'Desk Setup',
|
|
479
479
|
rating: 4.6,
|
|
480
480
|
reviewsCount: 175,
|
|
481
|
-
image: 'https://images.unsplash.com/photo-
|
|
481
|
+
image: 'https://images.unsplash.com/photo-1581291518857-4e27b48ff24e?w=800&auto=format&fit=crop&q=80',
|
|
482
482
|
description: 'Water-resistant, stain-proof premium desk surface that provides effortless mouse tracking and protects your workspace.',
|
|
483
483
|
features: JSON.stringify(['Water-resistant PU Leather', 'Anti-slip Suede Backing', '90cm x 45cm Large Size', 'Easy to Clean']),
|
|
484
484
|
inStock: true,
|
|
@@ -490,7 +490,7 @@ async function seed() {
|
|
|
490
490
|
category: 'Accessories',
|
|
491
491
|
rating: 4.9,
|
|
492
492
|
reviewsCount: 340,
|
|
493
|
-
image: 'https://images.unsplash.com/photo-
|
|
493
|
+
image: 'https://images.unsplash.com/photo-1583863788434-e58a36330cf0?w=800&auto=format&fit=crop&q=80',
|
|
494
494
|
description: 'Ultra-durable Kevlar-reinforced charging cable supporting up to 240W Power Delivery and 40Gbps Thunderbolt data transfer.',
|
|
495
495
|
features: JSON.stringify(['240W Power Delivery', 'E-Marker Smart Chip', 'Braided Kevlar Weave', '2-meter Length']),
|
|
496
496
|
inStock: true,
|
|
@@ -813,7 +813,7 @@ async function seed() {
|
|
|
813
813
|
category: 'Keyboards',
|
|
814
814
|
rating: 4.9,
|
|
815
815
|
reviewsCount: 128,
|
|
816
|
-
image: 'https://images.unsplash.com/photo-
|
|
816
|
+
image: 'https://images.unsplash.com/photo-1595225476474-87563907a212?w=800&auto=format&fit=crop&q=80',
|
|
817
817
|
description: 'Aircraft-grade CNC anodized aluminum chassis with custom factory-lubed linear switches.',
|
|
818
818
|
features: JSON.stringify(['Hot-swappable switches', 'Bluetooth 5.3 & 2.4GHz wireless']),
|
|
819
819
|
},
|
|
@@ -824,10 +824,54 @@ async function seed() {
|
|
|
824
824
|
category: 'Audio',
|
|
825
825
|
rating: 4.8,
|
|
826
826
|
reviewsCount: 94,
|
|
827
|
-
image: 'https://images.unsplash.com/photo-
|
|
827
|
+
image: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=800&auto=format&fit=crop&q=80',
|
|
828
828
|
description: 'Precision 50mm dynamic drivers engineered for ultra-flat frequency response.',
|
|
829
829
|
features: JSON.stringify(['Planar Magnetic Drivers', 'Memory Foam Cushions']),
|
|
830
830
|
},
|
|
831
|
+
{
|
|
832
|
+
id: 'ergo-master-mouse',
|
|
833
|
+
name: 'ErgoMaster Wireless Precision Mouse',
|
|
834
|
+
price: 89.0,
|
|
835
|
+
category: 'Peripherals',
|
|
836
|
+
rating: 4.7,
|
|
837
|
+
reviewsCount: 210,
|
|
838
|
+
image: 'https://images.unsplash.com/photo-1615663245857-ac93bb7c39e7?w=800&auto=format&fit=crop&q=80',
|
|
839
|
+
description: 'Sculpted ergonomic contour designed to eliminate wrist fatigue during extended development sessions.',
|
|
840
|
+
features: JSON.stringify(['26,000 DPI Optical Sensor', '70-day Battery Life']),
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
id: 'walnut-monitor-riser',
|
|
844
|
+
name: 'Solid Walnut Monitor Riser Stand',
|
|
845
|
+
price: 119.0,
|
|
846
|
+
category: 'Desk Setup',
|
|
847
|
+
rating: 5.0,
|
|
848
|
+
reviewsCount: 62,
|
|
849
|
+
image: 'https://images.unsplash.com/photo-1586775490184-b79f0621891f?w=800&auto=format&fit=crop&q=80',
|
|
850
|
+
description: 'Handcrafted from single-origin American walnut with cork feet and an integrated aluminum tray.',
|
|
851
|
+
features: JSON.stringify(['Sustainable American Walnut', 'Holds up to 60 lbs']),
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
id: 'titanium-desk-pad',
|
|
855
|
+
name: 'Matte Slate Vegan Leather Desk Mat',
|
|
856
|
+
price: 49.0,
|
|
857
|
+
category: 'Desk Setup',
|
|
858
|
+
rating: 4.6,
|
|
859
|
+
reviewsCount: 175,
|
|
860
|
+
image: 'https://images.unsplash.com/photo-1581291518857-4e27b48ff24e?w=800&auto=format&fit=crop&q=80',
|
|
861
|
+
description: 'Water-resistant, stain-proof premium desk surface that provides effortless mouse tracking.',
|
|
862
|
+
features: JSON.stringify(['Water-resistant PU Leather', '90cm x 45cm Large Size']),
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
id: 'usb-c-magnetic-cable',
|
|
866
|
+
name: '240W Braided Kevlar Charging Cable',
|
|
867
|
+
price: 29.0,
|
|
868
|
+
category: 'Accessories',
|
|
869
|
+
rating: 4.9,
|
|
870
|
+
reviewsCount: 340,
|
|
871
|
+
image: 'https://images.unsplash.com/photo-1583863788434-e58a36330cf0?w=800&auto=format&fit=crop&q=80',
|
|
872
|
+
description: 'Ultra-durable Kevlar-reinforced charging cable supporting up to 240W Power Delivery.',
|
|
873
|
+
features: JSON.stringify(['240W Power Delivery', 'Braided Kevlar Weave']),
|
|
874
|
+
},
|
|
831
875
|
];
|
|
832
876
|
|
|
833
877
|
for (const item of items) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.js","sourceRoot":"","sources":["../../src/addons/database.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAW/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,wHAAwH,CAAC;AAE5J;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,UAAkB;IAC/C,IAAI,UAAU,KAAK,WAAW,EAAE,CAAC;QAC/B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BV,CAAC;IACA,CAAC;IAED,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;QAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BV,CAAC;IACA,CAAC;IAED,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;QAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCV,CAAC;IACA,CAAC;IAED,kBAAkB;IAClB,OAAO;;;;;;;;;;;;;;;;CAgBR,CAAC;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,UAAkB;IACnD,IAAI,UAAU,KAAK,WAAW,EAAE,CAAC;QAC/B,OAAO;;;;;;;;;;;CAWV,CAAC;IACA,CAAC;IAED,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;QAC1B,OAAO;;;;;;;;;;;;;;;;CAgBV,CAAC;IACA,CAAC;IAED,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;QAC1B,OAAO;;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,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,sBAAsB,CAAC,GAAG;;;;;;;;;;;;;;;;CAgBrC,CAAC;YAEI,KAAK,CAAC,gBAAgB,CAAC,GAAG;;;;;;;;;;;;;;;;;;CAkB/B,CAAC;QACE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;AAC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,4 +8,5 @@ High-performance digital storefront built with **FrootKit**.
|
|
|
8
8
|
- Product catalog & Cart drawer: `src/app/cart/page.tsx`
|
|
9
9
|
- Checkout API endpoint: `src/app/api/checkout/route.ts`
|
|
10
10
|
- Products API endpoint: `src/app/api/products/route.ts`
|
|
11
|
+
- FrootUI Stripe Design System components: `npx frootui add <component>`
|
|
11
12
|
- Ready for real database integration (Drizzle ORM with SQLite or Prisma)!
|
|
@@ -19,7 +19,7 @@ export const PRODUCTS: Product[] = [
|
|
|
19
19
|
category: 'Keyboards',
|
|
20
20
|
rating: 4.9,
|
|
21
21
|
reviewsCount: 128,
|
|
22
|
-
image: 'https://images.unsplash.com/photo-
|
|
22
|
+
image: 'https://images.unsplash.com/photo-1595225476474-87563907a212?w=800&auto=format&fit=crop&q=80',
|
|
23
23
|
description: 'Aircraft-grade CNC anodized aluminum chassis with custom factory-lubed linear switches and sound-dampening silicone base.',
|
|
24
24
|
features: ['Hot-swappable switches', 'Bluetooth 5.3 & 2.4GHz wireless', 'CNC Aluminum Unibody', 'PBT Dye-Sub Keycaps'],
|
|
25
25
|
inStock: true,
|
|
@@ -31,7 +31,7 @@ export const PRODUCTS: Product[] = [
|
|
|
31
31
|
category: 'Audio',
|
|
32
32
|
rating: 4.8,
|
|
33
33
|
reviewsCount: 94,
|
|
34
|
-
image: 'https://images.unsplash.com/photo-
|
|
34
|
+
image: 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=800&auto=format&fit=crop&q=80',
|
|
35
35
|
description: 'Precision 50mm dynamic drivers engineered for ultra-flat frequency response, critical mixing, and executive focus.',
|
|
36
36
|
features: ['Planar Magnetic Drivers', 'Memory Foam Cushions', 'Detachable Braided Cable', 'Hard Travel Case'],
|
|
37
37
|
inStock: true,
|
|
@@ -55,7 +55,7 @@ export const PRODUCTS: Product[] = [
|
|
|
55
55
|
category: 'Desk Setup',
|
|
56
56
|
rating: 5.0,
|
|
57
57
|
reviewsCount: 62,
|
|
58
|
-
image: 'https://images.unsplash.com/photo-
|
|
58
|
+
image: 'https://images.unsplash.com/photo-1586775490184-b79f0621891f?w=800&auto=format&fit=crop&q=80',
|
|
59
59
|
description: 'Handcrafted from single-origin American walnut with cork feet and an integrated aluminum tray for desk accessories.',
|
|
60
60
|
features: ['Sustainable American Walnut', 'Holds up to 60 lbs', 'Integrated Cable Troughs', 'Hand-finished Matte Oil'],
|
|
61
61
|
inStock: true,
|
|
@@ -67,7 +67,7 @@ export const PRODUCTS: Product[] = [
|
|
|
67
67
|
category: 'Desk Setup',
|
|
68
68
|
rating: 4.6,
|
|
69
69
|
reviewsCount: 175,
|
|
70
|
-
image: 'https://images.unsplash.com/photo-
|
|
70
|
+
image: 'https://images.unsplash.com/photo-1581291518857-4e27b48ff24e?w=800&auto=format&fit=crop&q=80',
|
|
71
71
|
description: 'Water-resistant, stain-proof premium desk surface that provides effortless mouse tracking and protects your workspace.',
|
|
72
72
|
features: ['Water-resistant PU Leather', 'Anti-slip Suede Backing', '90cm x 45cm Large Size', 'Easy to Clean'],
|
|
73
73
|
inStock: true,
|
|
@@ -79,7 +79,7 @@ export const PRODUCTS: Product[] = [
|
|
|
79
79
|
category: 'Accessories',
|
|
80
80
|
rating: 4.9,
|
|
81
81
|
reviewsCount: 340,
|
|
82
|
-
image: 'https://images.unsplash.com/photo-
|
|
82
|
+
image: 'https://images.unsplash.com/photo-1583863788434-e58a36330cf0?w=800&auto=format&fit=crop&q=80',
|
|
83
83
|
description: 'Ultra-durable Kevlar-reinforced charging cable supporting up to 240W Power Delivery and 40Gbps Thunderbolt data transfer.',
|
|
84
84
|
features: ['240W Power Delivery', 'E-Marker Smart Chip', 'Braided Kevlar Weave', '2-meter Length'],
|
|
85
85
|
inStock: true,
|
|
@@ -18,5 +18,6 @@ Open [http://localhost:3000](http://localhost:3000) in your browser.
|
|
|
18
18
|
|
|
19
19
|
- **Sub-millisecond Preact SSR**
|
|
20
20
|
- **Native Tailwind CSS v4**
|
|
21
|
+
- **FrootUI (Stripe Design System)**: Install modular components via `npx frootui add <component>`
|
|
21
22
|
- **File-based Routing & API Routes**
|
|
22
23
|
- **Zero-config Static Site Export (`pnpm build`)**
|