Spaces:
Running
Running
Download script.js from freezers1/shopzone-e-commerce: direct link, hf CLI and curl.
- Browser
- Download file 3.7 kB
-
https://huggingface.co/spaces/freezers1/shopzone-e-commerce/resolve/main/script.js
- Command line
-
hf download hf://spaces/freezers1/shopzone-e-commerce/script.js
-
curl -L -o script.js https://huggingface.co/spaces/freezers1/shopzone-e-commerce/resolve/main/script.js
3.7 kB
| // Mock data for our components | |
| const categories = [ | |
| { id: 1, name: "Men's Fashion", icon: "user" }, | |
| { id: 2, name: "Women's Fashion", icon: "users" }, | |
| { id: 3, name: "Electronics", icon: "smartphone" }, | |
| { id: 4, name: "Home & Living", icon: "home" }, | |
| { id: 5, name: "Toys & Games", icon: "gift" }, | |
| { id: 6, name: "Sports & Outdoors", icon: "activity" }, | |
| { id: 7, name: "Beauty & Health", icon: "heart" }, | |
| { id: 8, name: "Automotive", icon: "truck" } | |
| ]; | |
| const flashDeals = [ | |
| { | |
| id: 1, | |
| name: "Wireless Headphones", | |
| image: "http://static.photos/technology/320x240/1", | |
| discountedPrice: 29.99, | |
| originalPrice: 59.99, | |
| soldPercentage: 65 | |
| }, | |
| { | |
| id: 2, | |
| name: "Smart Watch Series 5", | |
| image: "http://static.photos/technology/320x240/2", | |
| discountedPrice: 89.99, | |
| originalPrice: 149.99, | |
| soldPercentage: 42 | |
| }, | |
| { | |
| id: 3, | |
| name: "Bluetooth Speaker", | |
| image: "http://static.photos/technology/320x240/3", | |
| discountedPrice: 19.99, | |
| originalPrice: 39.99, | |
| soldPercentage: 78 | |
| }, | |
| { | |
| id: 4, | |
| name: "Gaming Mouse", | |
| image: "http://static.photos/technology/320x240/4", | |
| discountedPrice: 24.99, | |
| originalPrice: 49.99, | |
| soldPercentage: 30 | |
| }, | |
| { | |
| id: 5, | |
| name: "Mechanical Keyboard", | |
| image: "http://static.photos/technology/320x240/5", | |
| discountedPrice: 59.99, | |
| originalPrice: 99.99, | |
| soldPercentage: 55 | |
| } | |
| ]; | |
| const categoryTiles = [ | |
| { id: 1, name: "Phones", icon: "smartphone" }, | |
| { id: 2, name: "Laptops", icon: "monitor" }, | |
| { id: 3, name: "Cameras", icon: "camera" }, | |
| { id: 4, name: "TVs", icon: "tv" }, | |
| { id: 5, name: "Tablets", icon: "tablet" }, | |
| { id: 6, name: "Audio", icon: "headphones" }, | |
| { id: 7, name: "Gaming", icon: "gamepad" }, | |
| { id: 8, name: "Wearables", icon: "watch" } | |
| ]; | |
| const products = [ | |
| { | |
| id: 1, | |
| name: "Premium Cotton T-Shirt", | |
| price: 19.99, | |
| description: "Comfort Fit", | |
| rating: 4.5, | |
| reviews: 124, | |
| store: "FashionHub", | |
| image: "http://static.photos/people/320x240/1" | |
| }, | |
| { | |
| id: 2, | |
| name: "Running Shoes", | |
| price: 59.99, | |
| description: "Lightweight & Durable", | |
| rating: 4.8, | |
| reviews: 89, | |
| store: "Sportify", | |
| image: "http://static.photos/people/320x240/2" | |
| }, | |
| { | |
| id: 3, | |
| name: "Stainless Steel Water Bottle", | |
| price: 24.99, | |
| description: "500ml Capacity", | |
| rating: 4.3, | |
| reviews: 201, | |
| store: "EcoLife", | |
| image: "http://static.photos/abstract/320x240/3" | |
| }, | |
| { | |
| id: 4, | |
| name: "Desk Lamp with Wireless Charger", | |
| price: 39.99, | |
| description: "LED & Qi Compatible", | |
| rating: 4.6, | |
| reviews: 56, | |
| store: "HomeEssentials", | |
| image: "http://static.photos/office/320x240/4" | |
| }, | |
| { | |
| id: 5, | |
| name: "Yoga Mat", | |
| price: 29.99, | |
| description: "Non-Slip & Eco-Friendly", | |
| rating: 4.7, | |
| reviews: 142, | |
| store: "WellnessPro", | |
| image: "http://static.photos/sport/320x240/5" | |
| }, | |
| { | |
| id: 6, | |
| name: "Bluetooth Earbuds", | |
| price: 34.99, | |
| description: "Noise Cancelling", | |
| rating: 4.4, | |
| reviews: 78, | |
| store: "AudioTech", | |
| image: "http://static.photos/technology/320x240/6" | |
| }, | |
| { | |
| id: 7, | |
| name: "Backpack Laptop Bag", | |
| price: 49.99, | |
| description: "Water Resistant", | |
| rating: 4.2, | |
| reviews: 93, | |
| store: "TravelGear", | |
| image: "http://static.photos/people/320x240/7" | |
| }, | |
| { | |
| id: 8, | |
| name: "Coffee Maker", | |
| price: 79.99, | |
| description: "Programmable", | |
| rating: 4.9, | |
| reviews: 67, | |
| store: "KitchenWorld", | |
| image: "http://static.photos/office/320x240/8" | |
| } | |
| ]; | |
| // Make data available globally | |
| window.SHOPZONE_DATA = { | |
| categories, | |
| flashDeals, | |
| categoryTiles, | |
| products | |
| }; |