Skip to content

Commit d28bde8

Browse files
authored
Add additional file for file search and remove enter key capture for refresh button (#99)
* more files for file search * removed enter-key for refresh button
1 parent abee513 commit d28bde8

32 files changed

+3781
-4
lines changed

src/api/templates/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656
<div id="chat-area" class="text-light px-4 py-2 rounded-top text-dark d-flex flex-column justify-content-center background-user">
5757
<form id="chat-form" onsubmit="event.preventDefault();">
5858
<div class="input-group">
59-
<button class="btn btn-outline-dark" onclick="chatUI.clearChat()" aria-label="Start a new chat">
59+
<button type="button" class="btn btn-outline-dark" onclick="chatUI.clearChat()" aria-label="Start a new chat">
6060
<i class="bi bi-arrow-repeat" aria-hidden="true"></i>
61-
</button>
61+
</button>
6262
<i class="bi bi-body-text input-group-text dark-border" aria-hidden="true"></i>
63-
<input id="message" name="message" class="form-control form-control-sm dark-border" type="text" placeholder="Your Message" aria-label="Ask ChatGPT"></input>
63+
<input id="message" name="message" class="form-control form-control-sm dark-border" type="text" placeholder="Your Message" aria-label="Ask ChatGPT" />
6464
<button type="submit" class="btn btn-outline-dark" style="border-left-width: 0" aria-label="Submit">
6565
Send <i class="bi bi-send-fill" aria-hidden="true"></i>
6666
</button>

src/files/customer_info_1.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "1",
3+
"firstName": "John",
4+
"lastName": "Smith",
5+
"age": 35,
6+
"email": "[email protected]",
7+
"phone": "555-123-4567",
8+
"address": "123 Main St, Anytown USA, 12345",
9+
"membership": "Base",
10+
"orders": [
11+
{
12+
"id": 29,
13+
"productId": 8,
14+
"quantity": 2,
15+
"total": 700.0,
16+
"date": "2/10/2023",
17+
"name": "Alpine Explorer Tent",
18+
"unitprice": 350.0,
19+
"category": "Tents",
20+
"brand": "AlpineGear",
21+
"description": "Welcome to the joy of camping with the Alpine Explorer Tent! This robust, 8-person, 3-season marvel is from the responsible hands of the AlpineGear brand. Promising an enviable setup that is as straightforward as counting sheep, your camping experience is transformed into a breezy pastime. Looking for privacy? The detachable divider provides separate spaces at a moment's notice. Love a tent that breathes? The numerous mesh windows and adjustable vents fend off any condensation dragon trying to dampen your adventure fun. The waterproof assurance keeps you worry-free during unexpected rain dances. With a built-in gear loft to stash away your outdoor essentials, the Alpine Explorer Tent emerges as a smooth balance of privacy, comfort, and convenience. Simply put, this tent isn't just a shelter - it's your second home in the heart of nature! Whether you're a seasoned camper or a nature-loving novice, this tent makes exploring the outdoors a joyous journey."
22+
},
23+
{
24+
"id": 1,
25+
"productId": 1,
26+
"quantity": 2,
27+
"total": 500.0,
28+
"date": "1/5/2023",
29+
"name": "TrailMaster X4 Tent",
30+
"unitprice": 250.0,
31+
"category": "Tents",
32+
"brand": "OutdoorLiving",
33+
"description": "Unveiling the TrailMaster X4 Tent from OutdoorLiving, your home away from home for your next camping adventure. Crafted from durable polyester, this tent boasts a spacious interior perfect for four occupants. It ensures your dryness under drizzly skies thanks to its water-resistant construction, and the accompanying rainfly adds an extra layer of weather protection. It offers refreshing airflow and bug defence, courtesy of its mesh panels. Accessibility is not an issue with its multiple doors and interior pockets that keep small items tidy. Reflective guy lines grant better visibility at night, and the freestanding design simplifies setup and relocation. With the included carry bag, transporting this convenient abode becomes a breeze. Be it an overnight getaway or a week-long nature escapade, the TrailMaster X4 Tent provides comfort, convenience, and concord with the great outdoors. Comes with a two-year limited warranty to ensure customer satisfaction."
34+
},
35+
{
36+
"id": 19,
37+
"productId": 5,
38+
"quantity": 1,
39+
"total": 60.0,
40+
"date": "1/25/2023",
41+
"name": "BaseCamp Folding Table",
42+
"unitprice": 60.0,
43+
"category": "Camping Tables",
44+
"brand": "CampBuddy",
45+
"description": "CampBuddy's BaseCamp Folding Table is an adventurer's best friend. Lightweight yet powerful, the table is a testament to fun-meets-function and will elevate any outing to new heights. Crafted from resilient, rust-resistant aluminum, the table boasts a generously sized 48 x 24 inches tabletop, perfect for meal times, games and more. The foldable design is a godsend for on-the-go explorers. Adjustable legs rise to the occasion to conquer uneven terrains and offer height versatility, while the built-in handle simplifies transportation. Additional features like non-slip feet, integrated cup holders and mesh pockets add a pinch of finesse. Quick to set up without the need for extra tools, this table is a silent yet indispensable sidekick during camping, picnics, and other outdoor events. Don't miss out on the opportunity to take your outdoor experiences to a new level with the BaseCamp Folding Table. Get yours today and embark on new adventures tomorrow!"
46+
}
47+
]
48+
}

src/files/customer_info_10.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "10",
3+
"firstName": "Amanda",
4+
"lastName": "Perez",
5+
"age": 26,
6+
"email": "[email protected]",
7+
"phone": "555-123-4567",
8+
"address": "654 Pine St, Suburbia USA, 23456",
9+
"membership": "Gold",
10+
"orders": [
11+
{
12+
"id": 5,
13+
"productId": 1,
14+
"quantity": 1,
15+
"total": 250.0,
16+
"date": "5/1/2023",
17+
"name": "TrailMaster X4 Tent",
18+
"unitprice": 250.0,
19+
"category": "Tents",
20+
"brand": "OutdoorLiving",
21+
"description": "Unveiling the TrailMaster X4 Tent from OutdoorLiving, your home away from home for your next camping adventure. Crafted from durable polyester, this tent boasts a spacious interior perfect for four occupants. It ensures your dryness under drizzly skies thanks to its water-resistant construction, and the accompanying rainfly adds an extra layer of weather protection. It offers refreshing airflow and bug defence, courtesy of its mesh panels. Accessibility is not an issue with its multiple doors and interior pockets that keep small items tidy. Reflective guy lines grant better visibility at night, and the freestanding design simplifies setup and relocation. With the included carry bag, transporting this convenient abode becomes a breeze. Be it an overnight getaway or a week-long nature escapade, the TrailMaster X4 Tent provides comfort, convenience, and concord with the great outdoors. Comes with a two-year limited warranty to ensure customer satisfaction."
22+
},
23+
{
24+
"id": 37,
25+
"productId": 10,
26+
"quantity": 1,
27+
"total": 75.0,
28+
"date": "4/30/2023",
29+
"name": "TrailBlaze Hiking Pants",
30+
"unitprice": 75.0,
31+
"category": "Hiking Clothing",
32+
"brand": "MountainStyle",
33+
"description": "Meet the TrailBlaze Hiking Pants from MountainStyle, the stylish khaki champions of the trails. These are not just pants; they're your passport to outdoor adventure. Crafted from high-quality nylon fabric, these dapper troopers are lightweight and fast-drying, with a water-resistant armor that laughs off light rain. Their breathable design whisks away sweat while their articulated knees grant you the flexibility of a mountain goat. Zippered pockets guard your essentials, making them a hiker's best ally. Designed with durability for all your trekking trials, these pants come with a comfortable, ergonomic fit that will make you forget you're wearing them. Sneak a peek, and you are sure to be tempted by the sleek allure that is the TrailBlaze Hiking Pants. Your outdoors wardrobe wouldn't be quite complete without them."
34+
},
35+
{
36+
"id": 28,
37+
"productId": 7,
38+
"quantity": 1,
39+
"total": 100.0,
40+
"date": "4/15/2023",
41+
"name": "CozyNights Sleeping Bag",
42+
"unitprice": 100.0,
43+
"category": "Sleeping Bags",
44+
"brand": "CozyNights",
45+
"description": "Embrace the great outdoors in any season with the lightweight CozyNights Sleeping Bag! This durable three-season bag is superbly designed to give hikers, campers, and backpackers comfort and warmth during spring, summer, and fall. With a compact design that folds down into a convenient stuff sack, you can whisk it away on any adventure without a hitch. The sleeping bag takes comfort seriously, featuring a handy hood, ample room and padding, and a reliable temperature rating. Crafted from high-quality polyester, it ensures long-lasting use and can even be zipped together with another bag for shared comfort. Whether you're gazing at stars or catching a quick nap between trails, the CozyNights Sleeping Bag makes it a treat. Don't just sleep\u2014 dream with CozyNights."
46+
}
47+
]
48+
}

src/files/customer_info_11.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"id": "11",
3+
"firstName": "Robert",
4+
"lastName": "Johnson",
5+
"age": 36,
6+
"email": "[email protected]",
7+
"phone": "555-555-1212",
8+
"address": "123 Main St, Anytown USA, 12345",
9+
"membership": "Base",
10+
"orders": [
11+
{
12+
"id": 10,
13+
"productId": 2,
14+
"quantity": 2,
15+
"total": 180.0,
16+
"date": "5/5/2023",
17+
"name": "Adventurer Pro Backpack",
18+
"unitprice": 90.0,
19+
"category": "Backpacks",
20+
"brand": "HikeMate",
21+
"description": "Venture into the wilderness with the HikeMate's Adventurer Pro Backpack! Uniquely designed with ergonomic comfort in mind, this backpack ensures a steadfast journey no matter the mileage. It boasts a generous 40L capacity wrapped up in durable nylon fabric ensuring its long-lasting performance on even the most rugged pursuits. It's meticulously fashioned with multiple compartments and pockets for organized storage, hydration system compatibility, and adjustable padded shoulder straps all in a lightweight construction. The added features of a sternum strap and hip belt enhance stability without compromising on comfort. The Adventurer Pro Backpack also prioritizes your safety with its reflective accents for when night falls. This buoyant beauty does more than carry your essentials; it carries the promise of a stress-free adventure!"
22+
}
23+
]
24+
}

src/files/customer_info_12.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"id": "12",
3+
"firstName": "Karen",
4+
"lastName": "Williams",
5+
"age": 29,
6+
"email": "[email protected]",
7+
"phone": "555-987-6543",
8+
"address": "456 Oak St, Another City USA, 67890",
9+
"membership": "Gold",
10+
"orders": [
11+
{
12+
"id": 14,
13+
"productId": 3,
14+
"quantity": 3,
15+
"total": 360.0,
16+
"date": "4/30/2023",
17+
"name": "Summit Breeze Jacket",
18+
"unitprice": 120.0,
19+
"category": "Hiking Clothing",
20+
"brand": "MountainStyle",
21+
"description": "Discover the joy of hiking with MountainStyle's Summit Breeze Jacket. This lightweight jacket is your perfect companion for outdoor adventures. Sporting a trail-ready, windproof design and a water-resistant fabric, it's ready to withstand any weather. The breathable polyester material and adjustable cuffs keep you comfortable, whether you're ascending a mountain or strolling through a park. And its sleek black color adds style to function. The jacket features a full-zip front closure, adjustable hood, and secure zippered pockets. Experience the comfort of its inner lining and the convenience of its packable design. Crafted for night trekkers too, the jacket has reflective accents for enhanced visibility. Rugged yet chic, the Summit Breeze Jacket is more than a hiking essential, it's the gear that inspires you to reach new heights. Choose adventure, choose the Summit Breeze Jacket."
22+
}
23+
]
24+
}

src/files/customer_info_2.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "2",
3+
"firstName": "Jane",
4+
"lastName": "Doe",
5+
"age": 28,
6+
"email": "[email protected]",
7+
"phone": "555-987-6543",
8+
"address": "456 Oak St, Another City USA, 67890",
9+
"membership": "Gold",
10+
"orders": [
11+
{
12+
"id": 23,
13+
"productId": 6,
14+
"quantity": 1,
15+
"total": 80.0,
16+
"date": "1/30/2023",
17+
"name": "EcoFire Camping Stove",
18+
"unitprice": 80.0,
19+
"category": "Camping Stoves",
20+
"brand": "EcoFire",
21+
"description": "Introducing EcoFire's Camping Stove, your ultimate companion for every outdoor adventure! This portable wonder is precision-engineered with a lightweight and compact design, perfect for capturing that spirit of wanderlust. Made from high-quality stainless steel, it promises durability and steadfast performance. This stove is not only fuel-efficient but also offers an easy, intuitive operation that ensures hassle-free cooking. Plus, it's flexible, accommodating a variety of cooking methods whether you're boiling, grilling, or simmering under the starry sky. Its stable construction, quick setup, and adjustable flame control make cooking a breeze, while safety features protect you from any potential mishaps. And did we mention it also includes an effective wind protector and a carry case for easy transportation? But that's not all! The EcoFire Camping Stove is eco-friendly, designed to minimize environmental impact. So get ready to enhance your camping experience and enjoy delicious outdoor feasts with this unique, versatile stove!"
22+
},
23+
{
24+
"id": 15,
25+
"productId": 4,
26+
"quantity": 1,
27+
"total": 140.0,
28+
"date": "1/20/2023",
29+
"name": "TrekReady Hiking Boots",
30+
"unitprice": 140.0,
31+
"category": "Hiking Footwear",
32+
"brand": "TrekReady",
33+
"description": "Introducing the TrekReady Hiking Boots - stepping up your hiking game, one footprint at a time! Crafted from leather, these stylistic Trailmates are made to last. TrekReady infuses durability with its reinforced stitching and toe protection, making sure your journey is never stopped short. Comfort? They have that covered too! The boots are a haven with their breathable materials, cushioned insole, with padded collar and tongue; all nestled neatly within their lightweight design. As they say, it's what's inside that counts - so inside you'll find a moisture-wicking lining that quarantines stank and keeps your feet fresh as that mountaintop breeze. Remember the fear of slippery surfaces? With these boots, you can finally tell it to 'take a hike'! Their shock-absorbing midsoles and excellent traction capabilities promise stability at your every step. Beautifully finished in a traditional lace-up system, every adventurer deserves a pair of TrekReady Hiking Boots. Hike more, worry less!"
34+
},
35+
{
36+
"id": 6,
37+
"productId": 2,
38+
"quantity": 1,
39+
"total": 90.0,
40+
"date": "1/10/2023",
41+
"name": "Adventurer Pro Backpack",
42+
"unitprice": 90.0,
43+
"category": "Backpacks",
44+
"brand": "HikeMate",
45+
"description": "Venture into the wilderness with the HikeMate's Adventurer Pro Backpack! Uniquely designed with ergonomic comfort in mind, this backpack ensures a steadfast journey no matter the mileage. It boasts a generous 40L capacity wrapped up in durable nylon fabric ensuring its long-lasting performance on even the most rugged pursuits. It's meticulously fashioned with multiple compartments and pockets for organized storage, hydration system compatibility, and adjustable padded shoulder straps all in a lightweight construction. The added features of a sternum strap and hip belt enhance stability without compromising on comfort. The Adventurer Pro Backpack also prioritizes your safety with its reflective accents for when night falls. This buoyant beauty does more than carry your essentials; it carries the promise of a stress-free adventure!"
46+
}
47+
]
48+
}

src/files/customer_info_3.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "3",
3+
"firstName": "Michael",
4+
"lastName": "Johnson",
5+
"age": 45,
6+
"email": "[email protected]",
7+
"phone": "555-555-1212",
8+
"address": "789 Elm St, Smallville USA, 34567",
9+
"membership": "Base",
10+
"orders": [
11+
{
12+
"id": 20,
13+
"productId": 5,
14+
"quantity": 2,
15+
"total": 120.0,
16+
"date": "2/28/2023",
17+
"name": "BaseCamp Folding Table",
18+
"unitprice": 60.0,
19+
"category": "Camping Tables",
20+
"brand": "CampBuddy",
21+
"description": "CampBuddy's BaseCamp Folding Table is an adventurer's best friend. Lightweight yet powerful, the table is a testament to fun-meets-function and will elevate any outing to new heights. Crafted from resilient, rust-resistant aluminum, the table boasts a generously sized 48 x 24 inches tabletop, perfect for meal times, games and more. The foldable design is a godsend for on-the-go explorers. Adjustable legs rise to the occasion to conquer uneven terrains and offer height versatility, while the built-in handle simplifies transportation. Additional features like non-slip feet, integrated cup holders and mesh pockets add a pinch of finesse. Quick to set up without the need for extra tools, this table is a silent yet indispensable sidekick during camping, picnics, and other outdoor events. Don't miss out on the opportunity to take your outdoor experiences to a new level with the BaseCamp Folding Table. Get yours today and embark on new adventures tomorrow!"
22+
},
23+
{
24+
"id": 38,
25+
"productId": 11,
26+
"quantity": 1,
27+
"total": 110.0,
28+
"date": "2/25/2023",
29+
"name": "TrailWalker Hiking Shoes",
30+
"unitprice": 110.0,
31+
"category": "Hiking Footwear",
32+
"brand": "TrekReady",
33+
"description": "Meet the TrekReady TrailWalker Hiking Shoes, the ideal companion for all your outdoor adventures. Constructed with synthetic leather and breathable mesh, these shoes are tough as nails yet surprisingly airy. Their cushioned insoles offer fabulous comfort for long hikes, while the supportive midsoles and traction outsoles with multidirectional lugs ensure stability and excellent grip. A quick-lace system, padded collar and tongue, and reflective accents make these shoes a dream to wear. From combating rough terrain with the reinforced toe cap and heel, to keeping off trail debris with the protective mudguard, the TrailWalker Hiking Shoes have you covered. These waterproof warriors are made to endure all weather conditions. But they're not just about being rugged, they're light as a feather too, minimizing fatigue during epic hikes. Each pair can be customized for a perfect fit with removable insoles and availability in multiple sizes and widths. Navigate hikes comfortably and confidently with the TrailWalker Hiking Shoes. Adventure, here you come!"
34+
},
35+
{
36+
"id": 11,
37+
"productId": 3,
38+
"quantity": 1,
39+
"total": 120.0,
40+
"date": "1/15/2023",
41+
"name": "Summit Breeze Jacket",
42+
"unitprice": 120.0,
43+
"category": "Hiking Clothing",
44+
"brand": "MountainStyle",
45+
"description": "Discover the joy of hiking with MountainStyle's Summit Breeze Jacket. This lightweight jacket is your perfect companion for outdoor adventures. Sporting a trail-ready, windproof design and a water-resistant fabric, it's ready to withstand any weather. The breathable polyester material and adjustable cuffs keep you comfortable, whether you're ascending a mountain or strolling through a park. And its sleek black color adds style to function. The jacket features a full-zip front closure, adjustable hood, and secure zippered pockets. Experience the comfort of its inner lining and the convenience of its packable design. Crafted for night trekkers too, the jacket has reflective accents for enhanced visibility. Rugged yet chic, the Summit Breeze Jacket is more than a hiking essential, it's the gear that inspires you to reach new heights. Choose adventure, choose the Summit Breeze Jacket."
46+
}
47+
]
48+
}

0 commit comments

Comments
 (0)