ikony produktow

This commit is contained in:
s452693 2021-05-03 20:53:11 +02:00
parent a625873f75
commit dccf150887
2 changed files with 55 additions and 9 deletions

6
cozrobic.txt Normal file
View File

@ -0,0 +1,6 @@
> tablica na ilość produktów
> znalezienie fontu z ikonami
> funkcja do wypełniania tej tablicy (usunąć losowanie wartości z drawProducts() )
> funckja do odbierania ilości produktów od robota
> funkcja do usuwania losowej ilości produktów
> funkcja do zamieniania miejscami produktów na półkach (5% szansy)

View File

@ -26,51 +26,71 @@ class Product {
static get REGISTRY() { static get REGISTRY() {
// in alphabetical order // in alphabetical order
//baby, camp, cat, car, cleaning, cloathes, cocktail, dog, electronic, glas, haunting
//kitchen, moving, newborn, swimming, winter, toilet, religion, party
//40
return { return {
empty: new Product('', ''), empty: new Product('', ''),
airFrashener: new Product('airFrashener', 'fa-wind'), airFrashener: new Product('airFrashener', 'fa-wind'),
apple: new Product('apple', 'fa-apple-alt'), apple: new Product('apple', 'fa-apple-alt'),
babyAccessories: new Product('babyAccessories','fa-baby-carriage'), babyAccessories: new Product('babyAccessories','fa-baby-carriage'),
bacon: new Product('bacon', 'fa-bacon'), bacon: new Product('bacon', 'fa-bacon'),
bandAid: new Product('bandAid', 'fa-band-aid'),
basketballBall: new Product('basketballBall', 'fa-basketball-ball'),
beer: new Product('beer','fa-beer'), beer: new Product('beer','fa-beer'),
bell: new Product('bell','fa-bell'),
bicycle: new Product('bicycle','fa-bicycle'), bicycle: new Product('bicycle','fa-bicycle'),
bone: new Product('bone', 'fa-bone'), bone: new Product('bone', 'fa-bone'),
book: new Product('book', 'fa-book'), book: new Product('book', 'fa-book'),
bread: new Product('bread', 'fa-bread-slice'), bread: new Product('bread', 'fa-bread-slice'),
bread: new Product('bread','fa-bread-slice'),
cake: new Product('cake', 'fa-birthday-cake'), cake: new Product('cake', 'fa-birthday-cake'),
calculator: new Product('calculator', 'fa-calculator'),
calendar: new Product('calendar', 'fa-calendar'),
camera: new Product('camera','fa-camera'),
campAccessories: new Product('campAccessories','fa-campground'), campAccessories: new Product('campAccessories','fa-campground'),
candyCane: new Product('candy cane', 'fa-candy-cane'), candyCane: new Product('candy cane', 'fa-candy-cane'),
carrot: new Product('carrot', 'fa-carrot'), carrot: new Product('carrot', 'fa-carrot'),
carrot: new Product('carrot','fa-carrot'),
catAccessories: new Product('catAccessories','fa-cat'), catAccessories: new Product('catAccessories','fa-cat'),
camera: new Product('camera','fa-camera'),
carAccessories: new Product('carAccessories','fa-car'), carAccessories: new Product('carAccessories','fa-car'),
cigarettes: new Product('cigarettes', 'fa-smoking'),
chair: new Product('chair', 'fa-chair'),
charger: new Product('charger', 'fa-battery-half'),
cheese: new Product('cheese', 'fa-cheese'),
chess: new Product('chess', 'fa-chess'),
cleaningSupplies: new Product('cleaningSupplies', 'fa-broom'), cleaningSupplies: new Product('cleaningSupplies', 'fa-broom'),
cloathesAccessories: new Product('cloathesAccessories','fa-glasses'),
cocktailSupplies: new Product('cocktailSupplies','fa-cocktail'), cocktailSupplies: new Product('cocktailSupplies','fa-cocktail'),
coffee: new Product('cofee','fa-coffee'), coffee: new Product('cofee','fa-coffee'),
contactLenses: new Product('contactLenses', 'fa-eye'),
cookie: new Product('cookie','fa-cookie'), cookie: new Product('cookie','fa-cookie'),
couch: new Product('couch', 'fa-couch'),
coughSyrop: new Product('coughSyrop', 'fa-lungs'), coughSyrop: new Product('coughSyrop', 'fa-lungs'),
cheese: new Product('cheese', 'fa-cheese'),
cloathesAccessories: new Product('cloathesAccessories','fa-glasses'),
cookie: new Product('cookie', 'fa-cookie'), cookie: new Product('cookie', 'fa-cookie'),
dictionary: new Product('dictionary', 'fa-language'), dictionary: new Product('dictionary', 'fa-language'),
dogAccessories: new Product('dogAccessories','fa-dog'), dogAccessories: new Product('dogAccessories','fa-dog'),
drinks: new Product('drinks', 'fa-glass-whiskey'), drinks: new Product('drinks', 'fa-glass-whiskey'),
drone:new Product('drone','fa-plane'), drone: new Product('drone','fa-plane'),
drum: new Product('drum', 'fa-drum'),
envelope: new Product('envelope', 'fa-envelope'),
egg: new Product('egg','fa-egg'), egg: new Product('egg','fa-egg'),
electronicAccessories: new Product('electronicAccessories','fa-bolt'), electronicAccessories: new Product('electronicAccessories','fa-bolt'),
eraser: new Product('eraser','fa-eraser'), eraser: new Product('eraser','fa-eraser'),
extinguisher: new Product('extinguisher','fa-fire'), extinguisher: new Product('extinguisher','fa-fire'),
firstAid: new Product('firstAid','fa-first-aid'), firstAid: new Product('firstAid','fa-first-aid'),
fish: new Product('fish','fa-fish'), fish: new Product('fish','fa-fish'),
gamepad: new Product('gamepad', 'fa-gamepad'),
giftWrapping: new Product('giftWrapping', 'fa-gift'),
glassAccessories: new Product('glassAccessories','fa-wine-glass'), glassAccessories: new Product('glassAccessories','fa-wine-glass'),
gps: new Product('gps','fa-street-view'), gps: new Product('gps','fa-street-view'),
guitar: new Product('guitar','fa-guitar'),
hamburger: new Product('hamburger', 'fa-hamburger'), hamburger: new Product('hamburger', 'fa-hamburger'),
hammer: new Product('hammer', 'fa-hammer'),
halloweenAccessories: new Product('halloweenAccessories', 'fa-ghost'),
hauntingAccessories: new Product('hauntingAccessories','fa-binoculars'), hauntingAccessories: new Product('hauntingAccessories','fa-binoculars'),
headphones: new Product('headphones','fa-headphones'),
highlighter: new Product('highlighter','fa-highlighter'), highlighter: new Product('highlighter','fa-highlighter'),
hotdog: new Product('hotdog','fa-hotdog'),
homeSecurity: new Product('homeSecurity','fa-key'), homeSecurity: new Product('homeSecurity','fa-key'),
hotdog: new Product('hotdog','fa-hotdog'),
icecream: new Product('icecream','fa-ice-cream'), icecream: new Product('icecream','fa-ice-cream'),
insecticide: new Product('insecticide','fa-spider'), insecticide: new Product('insecticide','fa-spider'),
jewelry: new Product('jewelry','fa-gem'), jewelry: new Product('jewelry','fa-gem'),
@ -78,32 +98,52 @@ class Product {
kitchenSupplies: new Product('kitchenSupplies', 'fa-blender'), kitchenSupplies: new Product('kitchenSupplies', 'fa-blender'),
laptop: new Product('laptop', 'fa-laptop'), laptop: new Product('laptop', 'fa-laptop'),
lemon: new Product('lemon','fa-lemon'), lemon: new Product('lemon','fa-lemon'),
lightbulb: new Product('lightbulb', 'fa-lightbulb'),
microphone: new Product('microphone', 'fa-microphone'),
mask: new Product('mask', 'fa-head-side-mask'),
monitor: new Product('monitor', 'fa-desktop'),
movingAccessories: new Product('movingAccessories','fa-boxes'), movingAccessories: new Product('movingAccessories','fa-boxes'),
newbornAccessorries: new Product('newbornAccessorries','fa-baby-carriage'), newbornAccessorries: new Product('newbornAccessorries','fa-baby-carriage'),
newspaper: new Product('newspaper','fa-newspaper'), newspaper: new Product('newspaper','fa-newspaper'),
paintBrush: new Product('paintBrush','fa-paint-brush'), paintBrush: new Product('paintBrush','fa-paint-brush'),
paintRoller: new Product('paintRoller', 'fa-paint-roller'),
paper: new Product('paper','fa-paperclip'), paper: new Product('paper','fa-paperclip'),
partyAccessories: new Product('partyAccessories','fa-glass-cheers'), partyAccessories: new Product('partyAccessories','fa-glass-cheers'),
pen: new Product('pen','fa-pen'),
pepper: new Product('pepper','fa-pepper-hot'), pepper: new Product('pepper','fa-pepper-hot'),
personalSafetyAccessories: new Product('personalSafetyAccessories','fa-fingerprint'),
piggyBank: new Product('piggyBank', 'fa-piggy-bank'),
pills: new Product('pills','fa-pills'), pills: new Product('pills','fa-pills'),
pizza: new Product('pizza','fa-pizza-slice'), pizza: new Product('pizza','fa-pizza-slice'),
plants: new Product('plants','fa-seedling'), plants: new Product('plants','fa-seedling'),
printer: new Product('printer','fa-print'), printer: new Product('printer','fa-print'),
pen: new Product('pen','fa-pen'), puzzle: new Product('puzzle', 'fa-puzzle-piece'),
personalSafetyAccessories: new Product('personalSafetyAccessories','fa-fingerprint'),
religionAccessories: new Product('religionAccessories','fa-pray'), religionAccessories: new Product('religionAccessories','fa-pray'),
ruler: new Product('ruler', 'fa-ruler'),
runningAccessories: new Product('runningAccessories','fa-running'), runningAccessories: new Product('runningAccessories','fa-running'),
sanitizer: new Product('sanitizer', 'fa-spray-can'),
scissors: new Product('scissors', 'fa-cut'),
seeds: new Product('seeds', 'fa-seedling'),
skatingAccessories: new Product('skatingAccessories','fa-skating'), skatingAccessories: new Product('skatingAccessories','fa-skating'),
skiingAccessories: new Product('skiingAccessories','fa-skiing'), skiingAccessories: new Product('skiingAccessories','fa-skiing'),
soap: new Product('soap','fa-pump-soap'), soap: new Product('soap','fa-pump-soap'),
spaAccessories: new Product('spaAccessories','fa-spa'), spaAccessories: new Product('spaAccessories','fa-spa'),
sportCloathes: new Product('sportCloathes','fa-futbol'), sportCloathes: new Product('sportCloathes','fa-futbol'),
stamp: new Product('stamp', 'fa-stamp'),
suitcase: new Product('suitcase', 'fa-suitcase-rolling'),
summerHoliday: new Product('summerHoliday','fa-umbrella-beach'), summerHoliday: new Product('summerHoliday','fa-umbrella-beach'),
sunscreen: new Product('sunscreen','fa-sun'), sunscreen: new Product('sunscreen','fa-sun'),
swimmingAccessories: new Product('swimmingAccessories','fa-swimmer'), swimmingAccessories: new Product('swimmingAccessories','fa-swimmer'),
thermometer: new Product('thermometer', 'fa-thermometer'),
toiletSupplies: new Product('toiletSupplies','fa-toilet-paper'), toiletSupplies: new Product('toiletSupplies','fa-toilet-paper'),
tools: new Product('tools','fa-wrench'), tools: new Product('tools','fa-wrench'),
toothpaste: new Product('toothpaste', 'fa-tooth'),
toys: new Product('toys','fa-horse'), toys: new Product('toys','fa-horse'),
trashBin: new Product('trashBin', 'fa-trash'),
tv: new Product('tv', 'fa-tv'),
umbrella: new Product('umbrella', 'fa-umbrella'),
vinyl: new Product('vinyl', 'fa-record-vinyl'),
volleyballBall: new Product('volleyballBall', 'fa-volleyball-ball'),
wine: new Product('wine','fa-wine-bottle'), wine: new Product('wine','fa-wine-bottle'),
winterCloathes: new Product('winterCloathes','fa-mitten'), winterCloathes: new Product('winterCloathes','fa-mitten'),
winterHoliday: new Product('winterHoliday','fa-tree') winterHoliday: new Product('winterHoliday','fa-tree')