- removed licensed images
- replaced with new images - changed the product image to png for consistency. - changed the names of robots and their SKU.
@@ -3,17 +3,17 @@
|
||||
//
|
||||
db = db.getSiblingDB('catalogue');
|
||||
db.products.insertMany([
|
||||
{sku: 'HAL-1', name: 'HAL', description: 'Sorry Dave, I cant do that', price: 2001, instock: 2, categories: ['Artificial Intelligence']},
|
||||
{sku: 'PB-1', name: 'Positronic Brain', description: 'Highly advanced sentient processing unit with the laws of robotics burned in', price: 200, instock: 0, categories: ['Artificial Intelligence']},
|
||||
{sku: 'ROB-1', name: 'Robbie', description: 'Large mechanical workhorse, crude but effective. Comes in handy when you are lost in space', price: 1200, instock: 12, categories: ['Robot']},
|
||||
{sku: 'EVE-1', name: 'Eve', description: 'Extraterrestrial Vegetation Evaluator', price: 5000, instock: 10, categories: ['Robot']},
|
||||
{sku: 'C3P0', name: 'C3P0', description: 'Protocol android', price: 953, instock: 1, categories: ['Robot']},
|
||||
{sku: 'R2D2', name: 'R2D2', description: 'R2 maintenance robot and secret messenger. Help me Obi Wan', price: 1024, instock: 1, categories: ['Robot']},
|
||||
{sku: 'K9', name: 'K9', description: 'Time travelling companion at heel', price: 300, instock: 12, categories: ['Robot']},
|
||||
{sku: 'RD-10', name: 'Kryten', description: 'Red Drawf crew member', price: 700, instock: 5, categories: ['Robot']},
|
||||
{sku: 'HHGTTG', name: 'Marvin', description: 'Marvin, your paranoid android. Brain the size of a planet', price: 42, instock: 48, categories: ['Robot']},
|
||||
{sku: 'Alpha', name: 'Alpha', description: 'Sorry Dave, I cant do that', price: 2001, instock: 2, categories: ['Artificial Intelligence']},
|
||||
{sku: 'Ewooid', name: 'Ewooid', description: 'Highly advanced sentient processing unit with the laws of robotics burned in', price: 200, instock: 0, categories: ['Artificial Intelligence']},
|
||||
{sku: 'HPTD', name: 'High-Powered Travel Droid', description: 'Large mechanical workhorse, crude but effective. Comes in handy when you are lost in space', price: 1200, instock: 12, categories: ['Robot']},
|
||||
{sku: 'UHJ', name: 'Ultimate Harvesting Juggernaut', description: 'Extraterrestrial Vegetation Evaluator', price: 5000, instock: 10, categories: ['Robot']},
|
||||
{sku: 'EPE', name: 'Extreme Probe Emulator', description: 'Protocol android', price: 953, instock: 1, categories: ['Robot']},
|
||||
{sku: 'EMM', name: 'Exceptional Medical Machine', description: 'R2 maintenance robot and secret messenger. Help me Obi Wan', price: 1024, instock: 1, categories: ['Robot']},
|
||||
{sku: 'SHCE', name: 'Strategic Human Control Emulator', description: 'Time travelling companion at heel', price: 300, instock: 12, categories: ['Robot']},
|
||||
{sku: 'RED', name: 'Responsive Enforcer Droid', description: 'Red Drawf crew member', price: 700, instock: 5, categories: ['Robot']},
|
||||
{sku: 'RMC', name: 'Robotic Mining Cyborg', description: 'Marvin, your paranoid android. Brain the size of a planet', price: 42, instock: 48, categories: ['Robot']},
|
||||
{sku: 'STAN-1', name: 'Stan', description: 'APM guru', price: 67, instock: 1000, categories: ['Robot', 'Artificial Intelligence']},
|
||||
{sku: 'STNG', name: 'Mr Data', description: 'Could be R. Daneel Olivaw? Protype positronic brain android', price: 1000, instock: 0, categories: ['Robot']}
|
||||
{sku: 'CNA', name: 'Cybernated Neutralization Android', description: 'Could be R. Daneel Olivaw? Protype positronic brain android', price: 1000, instock: 0, categories: ['Robot']}
|
||||
]);
|
||||
|
||||
// full text index for searching
|
||||
|
@@ -18,7 +18,7 @@ server {
|
||||
location /images/ {
|
||||
expires 5s;
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri /images/placeholder.jpg;
|
||||
try_files $uri /images/placeholder.png;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
BIN
web/static/images/Aplha.png
Normal file
After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 15 KiB |
BIN
web/static/images/CNA.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
web/static/images/EMM.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
web/static/images/EPE.png
Normal file
After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 36 KiB |
BIN
web/static/images/Ewooid.png
Normal file
After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 14 KiB |
BIN
web/static/images/HPTD.png
Normal file
After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 38 KiB |
BIN
web/static/images/RED.png
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
web/static/images/RMC.png
Normal file
After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 22 KiB |
BIN
web/static/images/SHCE.png
Normal file
After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 11 KiB |
BIN
web/static/images/STAN-1.png
Normal file
After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 68 KiB |
BIN
web/static/images/UHJ.png
Normal file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 17 KiB |
BIN
web/static/images/placeholder.png
Normal file
After Width: | Height: | Size: 30 KiB |
@@ -6,7 +6,7 @@
|
||||
|
||||
<h3>{{ data.product.name }}</h3>
|
||||
<div class="productimage">
|
||||
<img src="/images/{{ data.product.sku }}.jpg"/>
|
||||
<img src="/images/{{ data.product.sku }}.png"/>
|
||||
</div>
|
||||
<div class="rating">
|
||||
Rating
|
||||
|