美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

COMP 315代做、代寫Java/c++編程語言

時間:2024-05-02  來源:  作者: 我要糾錯



Assignment 2: Typescript and React
COMP 315: Cloud Computing for E-Commerce
April 27, 2024
1 Introduction
A reactive website will scale and reorder elements to suit the screen size of the device being used to access it. A
dynamic website will update the elements of the page without the need for a full reload. In this assignment you
will expand upon a skeleton program in order to build a dynamic and reactive e-commerce front end website.
2 Learning outcomes
By the end of this assignment, you will:
• Be able to implement functions using Typescript.
• Be familiar with how to use React components and hooks.
• Have a template website that you could expand upon for a portfolio piece.
3 Problem description
For this task, you have been provided with a skeleton website, as well as the assets to populate it with. At
the moment the site displays the: name, picture, rating, and price of a collection of items for sale. If you type
into the search bar, it will only display items that have your search term within their name. You must add the
following functionality:
• An indicator showing the number of search results or products available.
• Sorting the items by: name, price, or rating.
• The ability to show only in stock items in the search results.
• Adding or removing items from the shopping basket.
• A total cost of products in the shopping basket.
4 Initial setup
The skeleton code has been provided for you, which is a basic e-commerce website similar to the one shown in
lectures. Ensure that you have Node.js installed on your computer, this should come with V ite. Download
the zip file of this code and extract it to a suitable place on your computer. Navigate to that folder in your
terminal, and type npm install. Once this installation has completed, type in npm run dev, which should host
the website locally for you. Take the localhost address shown in the output and type it into your browser to
see the website. There are 4 JSON files included in the ’Assets’ folder, which are random products 1, 100, 150,
and 175. Each of these JSON files contains a list of products to be shown on the website. Each product has
the attributes outlined in Table 1, with the images being generated using Adobe Firefly.
1
Attribute name Note
ID This is a unique identifier for each product, and is an integer
name The name for each product.
price The price of the product in pounds.
category This is the general category of the product.
quantity The number of this product that is currently available in stock. This is a non-negative
integer.
rating This is a real number rating of the product between 0 and 5.
image link The file location of the promotional image.
Table 1: The attributes that are stored for each product
5 Developing the website
5.1 The results indicator
When searching for products, it is often useful to know exactly how many products the current search has
returned. This can help make the website feel more reactive. In the results − indicator paragraph tag, add
a notification about how many results or products the current search query has returned. If the search bar
is empty, then the the output should be nP roducts where n is the number of products. If there is only a
single product then the output should be 1P roduct. If the search bar is not empty, then the output should be
nResults where n is the number of products returned by the search query. If there is only a single product
returned by the query, then it should say 1Result. If there are no results returned by a query then the output
should be Nosearchresultsfound.
5.2 Enhance search functionality
When looking at a list of products, a useful feature is being able to sort them by some attribute such as price
or rating. Add functionality to the select tag inside of the search − bar, so changing the selected option will
result in that form of sorting being applied to the results. Once this task has been completed, add the following
functionality to the inStock checkbox input. When this checkbox is ticked, the results should only include
products that have a quantity larger than 0. Hint: this can be accomplished by using a combination of a state
and a hook.
5.3 Adding to the shopping basket
Each product currently has a button underneath that says ’Add to basket’. Update this code so that if the
quantity available of the product is 0, the button instead says ’Out of stock’ and is disabled. Add a function
to the ’Add to basket’ button that passes the information to a shopping basket variable in App.tsx. This
variable should be a list of type BasketItem. Adding multiple instances of the same product should increase
the quantity property of the relevant basket instance. Do not worry about disabling the product’s button if
the quantity added to the basket is more than the quantity available. Hint: The parent/child example given in
Tutorial 4 - question 7 can give you a good starting point.
5.4 Visualising the basket
Now that the data about the basket is being collected, we should visualise it for the user. If there are no items
in the basket then the shopping − area div should contain a paragraph text saying ’Your basket is empty’. If
the shopping basket variable contains a product, then the shopping −area div should contain that information.
Each item in the basket should be surrounded by a div with the class ’shopping-row’, and a suitable key such as
the name of the item. Inside of that div there should be another div with the class ’shopping-information’, and
a button with ’Remove’ text. The ’shopping-information’ div should contain a paragraph tag which shows the
information about the product in the format [P roductname]([P roductprice]) − [P roductquantity]. When the
’Remove’ button is pressed, then the quantity of that product in the basket should be reduced by 1. If pressing
that button reduces the quantity of the product to 0, then that item should be removed from the shopping
basket. At the bottom of the shopping −area div should be a paragraph tag with the total cost of the shopping
basket. This should be in the form of T otal : [T otalbasketcost]. This value should be shown to 2 decimal places.
2
6 Marking
Your completed assignment will be submitted through the Canvas submission system. This will account for
10% of your overall module score. You may use any library that comes with a default installation of Node.js.
Each variable should have the appropriate type, if the ’any’ type is required than a comment must be included
that justifies it’s use. This rule is in place to encourage the use of Typescript type checking instead of just
Javascript. Your work will be submitted to an automatic plagiarism/collusion detection system, and those exceeding a threshold will be reported to the Academic Integrity Officer for investigation regarding adhesion to the
university’s policy https://www.liverpool.ac.uk/media/livacuk/tqsd/code-of-practice-on-assessment/appendix
L cop assess.pdf.
7 Deadline
The deadline is 23:59 GMT Sunday the 12th of May 2024. Late submissions will have the typical
5% penalty applied for each day late, up to 5 days. Submissions after this time will not be marked. https:
//www.liverpool.ac.uk/aqsd/academic-codes-of-practice/code-of-practice-on-assessment/
8 Expansions for a portfolio piece
If you decided to expand upon this short example in order to create a portfolio piece, which I stress is not
something you have to do for the assignment, then you will need to make several changes. My suggestion for
these changes would be:
• Redesign the site to be more visually appealing, focus on the reactivity and showing off that it works on
all form factors of device.
• Use Next.js to add individual pages for each product. This will also mean that you’ll have to look into
how to allow the user to return to the search results.
• Connect to a database, such as Neo4j, as this is crucial in showing you understand role of the front end

.請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp


















 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:代寫COM6511、代做Python設計程序
  • 下一篇:代寫program、代做c/c++,Python語言編程
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    日本亚洲一区二区三区| 成人h动漫精品一区| 少妇无套高潮一二三区| 亚洲国产美女视频| 日韩不卡av在线| 日韩黄色一区二区| 精品国产视频在线观看| 懂色av粉嫩av浪潮av| 特大黑人巨人吊xxxx| 成人精品一二三区| 亚洲一级片在线播放| theav精尽人亡av| 亚洲色偷偷色噜噜狠狠99网| 曰本三级日本三级日本三级| caoporn91| 欧美日韩午夜视频| 在线观看你懂的视频| 国产成人精品综合久久久久99 | 午夜精产品一区二区在线观看的| 日韩精品――色哟哟| 成人区人妻精品一区二| 潘金莲一级淫片aaaaa| 精品国产aⅴ一区二区三区东京热 久久久久99人妻一区二区三区 | 久久精品一区二区免费播放| 26uuu国产| 一本色道久久综合亚洲精品图片| ass精品国模裸体欣赏pics| 精品少妇一区二区三区免费观| 大尺度做爰床戏呻吟舒畅| 黄色在线免费播放| 成人免费无遮挡无码黄漫视频| 欧美a在线播放| 99热这里只有精品2| 婷婷五月精品中文字幕| 自拍偷拍你懂的| 免费在线观看日韩av| 一本加勒比波多野结衣| 国产精品69久久久久孕妇欧美| 欧美色图亚洲视频| 7788色淫网站小说| 欧美老熟妇一区二区三区| 色婷婷精品久久二区二区密| 国产日韩精品中文字无码| 亚洲视频 中文字幕| 成人三级视频在线观看| 国产精品无码电影| 青青草原在线免费观看| 蜜桃精品一区二区| 男女羞羞免费视频| 91av手机在线| 性の欲びの女javhd| 丰满少妇xbxb毛片日本| 欧洲美女女同性互添| 一区二区黄色片| 手机免费看av片| 久久久久99精品成人片试看| 少妇精品无码一区二区免费视频 | 乱码一区二区三区| 天堂网av2018| a毛片毛片av永久免费| 高清中文字幕mv的电影| 欧美一区二区三区爽爽爽| 成熟人妻av无码专区| 中文在线观看免费视频| 欧美熟妇另类久久久久久多毛| 亚洲激情视频小说| 岛国av免费观看| 国产精品一区二区在线免费观看| 91av手机在线| 国产91在线播放九色| 特级西西www444人体聚色| 亚洲一区二区在线免费| 91精品人妻一区二区三区四区| 日本中文在线视频| 91丨porny丨九色| 久久免费精品国产| 欧美激情 亚洲| www.免费av| xxxxx在线观看| 国产熟女一区二区| www.涩涩爱| www.毛片com| 亚洲色偷偷色噜噜狠狠99网| 久久久久9999| 我不卡一区二区| 小嫩苞一区二区三区| 草视频在线观看| 星空大象在线观看免费播放| xxxx日本免费| 国产激情无码一区二区三区| 亚洲区 欧美区| 亚洲AV无码国产成人久久| 在线观看免费黄色网址| 久久无码专区国产精品s| 少妇饥渴放荡91麻豆| 五月激情四射婷婷| 图片区偷拍区小说区| 超薄肉色丝袜一二三| 国产女人18水真多毛片18精品| 韩国av中国字幕| 日韩av片在线免费观看| 中国男女全黄大片| 亚洲一区二区自偷自拍| 乱码一区二区三区| 性色国产成人久久久精品| 黑森林av导航| 国产麻豆a毛片| 国产免费无遮挡吸奶头视频| 国产精品欧美性爱| 最新黄色av网址| 国产一级黄色录像| 国产午夜精品理论片| 白丝女仆被免费网站| www.黄色网| 在线免费看视频| www.色天使| 午夜免费福利影院| 日本人dh亚洲人ⅹxx| 天美传媒免费在线观看| 疯狂揉花蒂控制高潮h| 国产精品一级无码| 日本妇女毛茸茸| 疯狂撞击丝袜人妻| 91禁男男在线观看| 黄色片网站免费| 国产特黄级aaaaa片免| 7788色淫网站小说| 亚洲av成人片色在线观看高潮| 成人啪啪18免费游戏链接| 真实国产乱子伦对白在线| 国产午夜精品福利视频| 亚洲精品国产熟女久久久| 亚洲区自拍偷拍| 精品成人av一区二区三区| 好吊视频在线观看| 日韩一级av毛片| 性少妇xx生活| 国产性xxxx| 亚洲精品在线视频免费观看| 日韩精品人妻中文字幕有码| 999精品免费视频| 欧美成人午夜精品免费| 久久av无码精品人妻系列试探| 成年人网站免费在线观看| 亚洲黄色小说视频| 顶级黑人搡bbw搡bbbb搡| 少妇人妻丰满做爰xxx| 99热精品免费| 人妻无码中文久久久久专区| 舐め犯し波多野结衣在线观看| 欧美色图17p| 无码人妻一区二区三区在线| 在线精品一区二区三区| 精品亚洲aⅴ无码一区二区三区| av黄色在线免费观看| 久久精品黄色片| 给我看免费高清在线观看| 自拍偷拍视频亚洲| 糖心vlog免费在线观看| 欧美夫妇交换xxx| 成人在线手机视频| 性生交大片免费看l| 亚洲精品国产一区黑色丝袜| 欧美性猛交xxxxx少妇| www.中文字幕av| 麻豆明星ai换脸视频| mm131美女视频| 美女被爆操网站| а天堂中文在线资源| 亚洲视频在线播放免费| 日韩影院一区二区| 中文字幕人妻一区二区| 日批视频在线看| 性爱在线免费视频| av黄色免费网站| 性久久久久久久久久久| 欧美激情图片小说| 亚洲色图100p| 日本黄色网址大全| 成熟妇人a片免费看网站| 日本成人免费在线观看| a级大片在线观看| 久久免费精品国产| 国产稀缺精品盗摄盗拍| 特级西西www444人体聚色| 国产肉体xxxx裸体784大胆| 免费看91视频| 免费人成视频在线播放| 波多野结衣久久久久| 人人艹在线视频| 国产精品麻豆免费版现看视频| a天堂中文字幕| 日本污视频网站| 老头老太做爰xxx视频| mm131丰满少妇人体欣赏图| 欧美激情亚洲色图| 四虎地址8848| 性生活在线视频| 欧美性生交xxxxx| 亚洲最大的黄色网|