Skip to content
This repository was archived by the owner on Apr 14, 2024. It is now read-only.

Automatic PR: Merging development into stable (1840343) #138

Open
wants to merge 429 commits into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
429 commits
Select commit Hold shift + click to select a range
36623a1
Merge pull request #72 from TechCell-Project/refactor_services
bou2201 Jan 3, 2024
9c5c5b1
feat: init new file profile
bou2201 Jan 3, 2024
4699328
feat: :seedling: init new file feat profile
bou2201 Jan 3, 2024
1ce04ab
chore: :twisted_rightwards_arrows: merged 'development' into features…
bou2201 Jan 3, 2024
4706e95
build: :heavy_plus_sign: yarn install changed dependencies
bou2201 Jan 3, 2024
0eb770d
style: :art: format space
lehuygiang28 Jan 4, 2024
4efc200
fix: :rocket: fix ignore `.vscode`
lehuygiang28 Jan 4, 2024
300b6e3
style: :zap: plugin `prettier` to work together with `eslint` as warn…
lehuygiang28 Jan 4, 2024
5cf7001
style: :art: format code
lehuygiang28 Jan 4, 2024
9cbd656
feat: :zap: commit hook for prettier write
lehuygiang28 Jan 4, 2024
3eca013
fix: :art: using `const` instead of `let`
lehuygiang28 Jan 4, 2024
14febed
chore: :art: update rule `ban-ts-comment` to warn level
lehuygiang28 Jan 4, 2024
7ef86a4
refactor: :art: use `object` instead of `Object`
lehuygiang28 Jan 4, 2024
f04d1a7
chore: :recycle: ignore warn to fix
lehuygiang28 Jan 4, 2024
7adc135
feat(app): :zap: Add loading state to layout components
lehuygiang28 Jan 4, 2024
4b83cb2
Merge branch 'development' into Refactor_CartPage_v3
sondoannam Jan 4, 2024
c8035a5
fix(deps): :ambulance: get status code from backend api
sondoannam Jan 4, 2024
4ca77e3
Merge pull request #73 from TechCell-Project/code_style
sondoannam Jan 4, 2024
397a7ac
feat: :sparkles: handle edit profile information
bou2201 Jan 5, 2024
6dbc182
style: :twisted_rightwards_arrows: merge development to features_prof…
bou2201 Jan 5, 2024
2469543
feat: :lipstick: handle create or edit profile page
bou2201 Jan 5, 2024
100b633
Merge pull request #74 from TechCell-Project/features_profile
lehuygiang28 Jan 5, 2024
e8aa16a
refactor(hooks): :bug: close search box when move to product page
sondoannam Jan 5, 2024
8383204
Merge branch 'development' into Refactor_NextAuth_v5
sondoannam Jan 5, 2024
eee70ff
feat(hooks): :rocket: update profile hook
lehuygiang28 Jan 6, 2024
f4394e6
refactor: :recycle: optimize import statement
lehuygiang28 Jan 6, 2024
67e2152
feat(utils): :sparkles: add `resolveCallbackUrl` function to handle c…
lehuygiang28 Jan 6, 2024
9759d21
feat(app): :sparkles: handling signin with server action
lehuygiang28 Jan 6, 2024
8ccd7aa
feat(app): :sparkles: handling callback after signin
lehuygiang28 Jan 6, 2024
abb5bd7
chore: :wrench: update images patterns, expose NEXTAUTH_URL
lehuygiang28 Jan 6, 2024
5d29f65
chore(setting): :rocket: update dictionaries
lehuygiang28 Jan 6, 2024
38fa462
refactor(utils): :recycle: update `createInitialValues` function to r…
lehuygiang28 Jan 6, 2024
6c2611e
refactor(axios): :recycle: refactor axios instances and remove unused…
lehuygiang28 Jan 6, 2024
b86799a
refactor(axios): :recycle: refactor axios instances and remove unused…
lehuygiang28 Jan 6, 2024
f584f3a
Merge pull request #75 from TechCell-Project/handling_signin
bou2201 Jan 6, 2024
e8b3484
fix(actions): :bug: fix redirect error with Signin action
sondoannam Jan 6, 2024
70141ad
chore(deps): :rocket: update sdk version
lehuygiang28 Jan 6, 2024
5b09b8e
feat(hooks, redux, cart, product): :sparkles: using redux with hooks
lehuygiang28 Jan 6, 2024
aa2b6a8
refactor: :rocket: update page size of cart page
lehuygiang28 Jan 6, 2024
3c6ef88
refactor(app): :zap: refactor cart page, improve performance
lehuygiang28 Jan 6, 2024
d9ebf0a
fix(app): :bug: fix issue not refresh correctly
lehuygiang28 Jan 6, 2024
1fc8ac5
Merge pull request #76 from TechCell-Project/optimize_cart
lehuygiang28 Jan 6, 2024
fbf45d3
fix(hooks): :bug: fix wrong user'data after signin as other user
lehuygiang28 Jan 7, 2024
c8dd927
Merge pull request #79 from TechCell-Project/optimize_cart
lehuygiang28 Jan 7, 2024
be68f0b
refactor: :recycle: refactor export statements
lehuygiang28 Jan 7, 2024
08136f7
feat(store): :sparkles: create address slice for store address data
lehuygiang28 Jan 7, 2024
95085ff
fix(app): :bug: fix issue that user data not update in ui
lehuygiang28 Jan 7, 2024
240a6e6
refactor(hooks): :recycle: change data type to match with api
lehuygiang28 Jan 7, 2024
97adf86
chore: :truck: rename `ProfileInfor` to `ProfileInfo`
lehuygiang28 Jan 7, 2024
4356891
fix(app): :bug: fix issue showing, updating user avatar
lehuygiang28 Jan 7, 2024
252b862
refactor(app): :recycle: refactor to fix issue of data type
lehuygiang28 Jan 7, 2024
84e1b6c
Merge pull request #80 from TechCell-Project/fix_profile
lehuygiang28 Jan 7, 2024
a8c778e
feat(actions): :technologist: try redirect from middleware
sondoannam Jan 7, 2024
331d364
refactor: :art: setTotalAmount to zero when not select any
sondoannam Jan 7, 2024
c2a243c
feat(middleware): :technologist: try redirect when access protected r…
sondoannam Jan 7, 2024
c40bee2
refactor(actions): debounce google signin button
sondoannam Jan 7, 2024
6f6a2b1
fix(app): :bug: fix update address issue, fix infinitive call back loop
lehuygiang28 Jan 7, 2024
d4252bc
fix(app): :bug: fix issue add address
lehuygiang28 Jan 7, 2024
d242301
perf(app): :fire: remove unused condition
lehuygiang28 Jan 7, 2024
862bff8
refactor(components): :zap: change display label & selected for more …
lehuygiang28 Jan 7, 2024
d05f5de
Merge pull request #81 from TechCell-Project/fix_profile
lehuygiang28 Jan 7, 2024
d651543
refactor(actions): :technologist: debounce google login button, style…
sondoannam Jan 8, 2024
d94f2f4
refactor(cartPage): :zap: more logical condition
sondoannam Jan 8, 2024
e22c7a2
Merge branch 'development' into Refactor_NextAuth_v5
sondoannam Jan 8, 2024
6370dee
Merge branch 'stable' into development
lehuygiang28 Jan 8, 2024
803a057
fix(components): :bug: fix issue key is spreading as props
lehuygiang28 Jan 8, 2024
9617606
fix(app): :bug: fix issue not set ward to empty list when province ha…
lehuygiang28 Jan 8, 2024
d692906
fix(app): :bug: fix issue can not remove address
lehuygiang28 Jan 8, 2024
6dcea43
Merge pull request #83 from TechCell-Project/fix_profile
lehuygiang28 Jan 8, 2024
15cfd58
feat(app): :recycle: scans directory to get a data for static public …
lehuygiang28 Jan 8, 2024
727354c
chore: :zap: adding alias for ts config
lehuygiang28 Jan 8, 2024
c144f2c
fix(moment): :sparkles: use `updateLocale` intstead, to change an exi…
lehuygiang28 Jan 8, 2024
59ec02e
Merge pull request #84 from TechCell-Project/feat_static_content
lehuygiang28 Jan 8, 2024
91df5b7
refactor: :rocket: add carousel images and update home page (#85)
lehuygiang28 Jan 8, 2024
70d1586
refactor(model): :fire: remove sale price from product model
sondoannam Jan 9, 2024
bc1f321
Merge branch 'development' into Refactor_NextAuth_v5
sondoannam Jan 9, 2024
8cc74d6
refactor(import): :art: fix cannot get images src sometimes
sondoannam Jan 9, 2024
c95f95a
chore(typo/spell): :lipstick: fix spell naming
lehuygiang28 Jan 9, 2024
bb3ace7
fix(app): :bug: fix issue can not clear address form
lehuygiang28 Jan 9, 2024
a9e59ec
Merge pull request #86 from TechCell-Project/fix_address
bou2201 Jan 9, 2024
f018211
refactor(app): :bug: fix import trace for request modules error
sondoannam Jan 9, 2024
7ec714d
refactor(validate): :art: use schema in validate folder
sondoannam Jan 9, 2024
d372618
refactor(import): :bug: fix import trace for request modules error
sondoannam Jan 9, 2024
4273571
Merge branch 'development' into Refactor_NextAuth_v5
sondoannam Jan 9, 2024
7e4285c
fix(app): :bug: fix issue use before init
lehuygiang28 Jan 10, 2024
c2f8316
chore: :zap: change log format
lehuygiang28 Jan 10, 2024
b05368d
style(app): :lipstick: update ui google button
lehuygiang28 Jan 10, 2024
a9d1075
perf(app): :zap: reduce debounce time of login button
lehuygiang28 Jan 10, 2024
bc1a8f7
Merge pull request #88 from TechCell-Project/Refactor_NextAuth_V5
lehuygiang28 Jan 10, 2024
bbba0fa
Merge pull request #87 from TechCell-Project/Refactor_NextAuth_v5
lehuygiang28 Jan 10, 2024
6335979
feat(seo): :art: create `robots` and `sitemap` file
bou2201 Jan 11, 2024
5314208
chore(seo): :boom: use `slug` instead `id`
bou2201 Jan 11, 2024
99be338
refactor(hooks): :zap: using `preLoadAddressDataFromUser` whenever us…
lehuygiang28 Jan 12, 2024
825e251
Merge pull request #89 from TechCell-Project/refactor_hooks
lehuygiang28 Jan 12, 2024
bbb3aa1
refactor(components): :zap: change arrow func to declared function
lehuygiang28 Jan 13, 2024
662042a
build(deps): :arrow_up: bump next from `14.0.3` to `14.0.4`
lehuygiang28 Jan 13, 2024
cd270c6
feat(app): :sparkles: create modal parallel
lehuygiang28 Jan 13, 2024
c259e15
feat(app): :sparkles: create parallel `login` page
lehuygiang28 Jan 13, 2024
c9864bb
feat(app): :sparkles: create parallel `register` page
lehuygiang28 Jan 13, 2024
f28f978
refactor(app): :recycle: remove unused file and refactor Register and…
lehuygiang28 Jan 13, 2024
907c4ed
refactor(app): :recycle: change export/import comp
lehuygiang28 Jan 13, 2024
6945fb0
feat(app): :zap: update `status` to deps
lehuygiang28 Jan 13, 2024
b27677b
feat(app): :zap: update reload windows when user session, status change
lehuygiang28 Jan 13, 2024
75f1f65
Merge pull request #91 from TechCell-Project/feat_parallel
lehuygiang28 Jan 14, 2024
0491021
chore: [CodeFactor] Apply fixes (#94)
lehuygiang28 Jan 15, 2024
9c464f8
chore(assets): :zap: [ImgBot] Optimize images (#95)
imgbot[bot] Jan 15, 2024
ce2d5b2
style: :lipstick: add banner in `home page`, use gray for background …
bou2201 Jan 16, 2024
f03178f
Merge branch 'development' of https://github.com/TechCell-Project/tec…
bou2201 Jan 16, 2024
648e9af
chore:
bou2201 Jan 16, 2024
f487683
Merge pull request #96 from TechCell-Project/seo
bou2201 Jan 17, 2024
c8016fa
perf(images): :zap: optimize background images using `next/image`
lehuygiang28 Jan 17, 2024
2473c78
fix(app): :fire: remove unsupported import
lehuygiang28 Jan 17, 2024
1a5e395
perf(images): :zap: let image quality is auto
lehuygiang28 Jan 17, 2024
52f3478
Merge pull request #102 from TechCell-Project/optimize_image
lehuygiang28 Jan 17, 2024
79e0847
fix(app): :bug: fix issue update the user info data that doesnt need
lehuygiang28 Jan 17, 2024
88c3c02
refactor(hooks): :zap: refactor to only use needed address data from …
lehuygiang28 Jan 17, 2024
c4035ee
Merge pull request #103 from TechCell-Project/fix_profile
lehuygiang28 Jan 17, 2024
0f494f5
style(app): :art: Responsive authentication pages
sondoannam Jan 17, 2024
a1ad62c
style(app): :art: Responsive authentication pages (#104)
sondoannam Jan 17, 2024
55a306f
feat(axios): :zap: add retry axios, optimize interceptors token
lehuygiang28 Jan 18, 2024
3708e2f
Merge pull request #105 from TechCell-Project/refactor_axios
lehuygiang28 Jan 18, 2024
af44897
Merge branch 'development' into Responsive_UI
sondoannam Jan 19, 2024
c1012f5
feat(order): add UI for orders, select payment method when create ord…
tiendx161202 Jan 20, 2024
5d9dde3
perf(components): :zap: reduce information loads in header component
sondoannam Jan 20, 2024
f03af65
fix(components): :bug: fix home page display in mobile
sondoannam Jan 20, 2024
5be31e2
refactor(components): :lipstick: adjust UI and responsive payment page
sondoannam Jan 20, 2024
89a3cae
Merge branch 'development' into Responsive_UI
sondoannam Jan 20, 2024
a18ec12
refactor(components): :bug: fix home page carousel display in mobile
sondoannam Jan 20, 2024
526aabc
refactor(app): :zap: reduce data received on cart's parent page
sondoannam Jan 20, 2024
076bd40
refactor: :fire: fix conflicts from previous commit
sondoannam Jan 20, 2024
3ac9e73
refactor(components): :lipstick: responsive selecting address popup d…
sondoannam Jan 20, 2024
4b3ddb6
refactor(components): :lipstick: responsive and adjust UI in payment …
sondoannam Jan 20, 2024
42bf913
[CodeFactor] Apply fixes
code-factor Jan 22, 2024
1d580a9
feat(utils): :zap: write attributes to string function
sondoannam Jan 22, 2024
71c12f6
feat(app): :rocket: update handling getting orders logics, pages
sondoannam Jan 22, 2024
a0ff7ad
refactor(slices): update auth slices more clearly
sondoannam Jan 22, 2024
0d3ac70
refactor(app): :art: remove unused codes
sondoannam Jan 22, 2024
cc6b7e5
build(app): :rocket: create user orders page functionallity & responsive
sondoannam Jan 22, 2024
7f8e47a
Merge branch 'Responsive_UI' of https://github.com/TechCell-Project/t…
sondoannam Jan 22, 2024
1a78359
refactor(components): :art: remove comments out of codes
sondoannam Jan 22, 2024
27e15da
refactor(components): :art: remove comments out of codes
sondoannam Jan 22, 2024
95c3d62
Merge pull request #110 from TechCell-Project/Responsive_UI
bou2201 Jan 22, 2024
56fe0ca
refactor(components): :lipstick: responsive payment page UI
sondoannam Jan 24, 2024
c17ae13
feat(hooks): :zap: a hook that stored previous value of useState
sondoannam Jan 24, 2024
be55f7a
feat(components): :rocket: handle exception when fetching orders
sondoannam Jan 24, 2024
d67a650
refactor(app): :art: remove unused codes
sondoannam Jan 24, 2024
7f5327c
Merge pull request #112 from TechCell-Project/Orders_Fetching
bou2201 Jan 24, 2024
0b785af
refactor(styles): add responsive order, dialog ui (#115)
tiendx161202 Jan 26, 2024
7f19aab
build(components): :sparkles: test vnpay payment method
sondoannam Jan 27, 2024
69f3082
Merge branch 'development' into Orders_Fetching
sondoannam Jan 27, 2024
6632288
feat(ui): add order details page (#116)
tiendx161202 Jan 27, 2024
3db6e73
build(components): :lipstick: Build OrderDetail page & responsive
sondoannam Jan 31, 2024
75c8804
build(components): :lipstick: Update Select Payment method UI
sondoannam Feb 7, 2024
37b2f17
Merge branch 'development' into Orders_Fetching
sondoannam Feb 7, 2024
52e0178
refactor(constant): :art: remove custom order detail route
sondoannam Feb 7, 2024
a731666
refactor(components): :fire: remove incompatible code
sondoannam Feb 7, 2024
21563f9
style(components): :art: remove unused codes
sondoannam Feb 7, 2024
b16f29d
feat(order): :sparkles: update select payment method in order create …
sondoannam Feb 8, 2024
6f28f93
feat(deps): :arrow_up: upgrade to use yarn stable 4.1.0 version (#121)
lehuygiang28 Feb 20, 2024
27d5b43
refactor(components): :lipstick: adjust dialog UI
sondoannam Feb 21, 2024
8c576ef
style(app): :lipstick: add custom css for saving writing time
sondoannam Feb 21, 2024
63ff2be
refactor(components): :art: remove default exportation
sondoannam Feb 21, 2024
ecf8e08
refactor(components): :lipstick: responsive Review page UI
sondoannam Feb 21, 2024
acbfd3c
Merge branch 'development' into Orders_Fetching
sondoannam Feb 21, 2024
a60baf3
fix: :bug: fix bug state showReadMore in notification slice
bou2201 Feb 26, 2024
ba72a5e
Merge pull request #124 from TechCell-Project/fix_notification
bou2201 Feb 26, 2024
cdd03e7
refactor(components): :art: remove duplicated codes
sondoannam Feb 26, 2024
596c001
Merge branch 'development' into Orders_Fetching
sondoannam Feb 26, 2024
686fa9a
refactor(components): :art: remove duplicated codes
sondoannam Feb 26, 2024
fac9fa8
Merge pull request #122 from TechCell-Project/Orders_Fetching
lehuygiang28 Feb 26, 2024
045b7f4
Update NotificationList.tsx, check session condition is exist in butt…
bou2201 Feb 27, 2024
e7596bb
refactor(components): :bug: fix orders page fail on calling get order…
sondoannam Feb 28, 2024
4756f24
refactor(components): :lipstick: fix show detail product infor dialog
sondoannam Feb 28, 2024
be027b3
refactor(components): :art: add disabled warn missing dependency to u…
sondoannam Feb 28, 2024
780c60f
Merge pull request #125 from TechCell-Project/Orders_Fetching
bou2201 Feb 28, 2024
5bafe08
fix(scripts): :bug: fix issue when install sdk
lehuygiang28 Mar 1, 2024
c8e0147
Merge pull request #126 from TechCell-Project/fix_script
lehuygiang28 Mar 1, 2024
79dcb7b
fix(components): :ambulance: hot fix mistaken payment url
sondoannam Mar 6, 2024
88b3387
Merge pull request #128 from TechCell-Project/Hot_Fix
lehuygiang28 Mar 6, 2024
e5781f2
refactor(components): :art: turn CustomDialog to export const
sondoannam Mar 9, 2024
4efd4eb
build(components): :boom: Rebuild product detail page
sondoannam Mar 9, 2024
e614fbb
refactor(setting): :art: update missing type
sondoannam Mar 9, 2024
cb321b5
fix(components): :ambulance: fix mistaken payment return url
sondoannam Mar 9, 2024
de2fdaf
refactor(app): :art: update some middleware logics and refactor codes
sondoannam Mar 9, 2024
34359ef
feat(components): :sparkles: add new component scrolling to section link
sondoannam Mar 9, 2024
21b069b
refactor(actions): :art: update status on adding to cart action
sondoannam Mar 9, 2024
d3929f5
refactor(components): :lipstick: update UI
sondoannam Mar 9, 2024
e3d6f62
Merge branch 'development' into Orders_Fetching
sondoannam Mar 9, 2024
fca7730
fix(components): :bug: fix backtracking problem on regex ...
sondoannam Mar 9, 2024
a14a101
refactor(components): :art: refactor complexity & unused (comment) codes
sondoannam Mar 9, 2024
875816a
refactor(components): :art: remove unnecessary char
sondoannam Mar 9, 2024
8d7b762
refactor(components): :art: try improve vulnerable regex backtracking
sondoannam Mar 9, 2024
b53bbf3
refactor(components): :art: try second time
sondoannam Mar 9, 2024
385c792
refactor(components): :art: try third time
sondoannam Mar 9, 2024
40f8b8b
refactor(components): :art: fourth try
sondoannam Mar 9, 2024
4317875
fix(components): :sparkles: update not found page on product detail page
sondoannam Mar 9, 2024
8317174
feat(product): ✨ rebuild product detail page (#129)
sondoannam Mar 9, 2024
ae11902
[ImgBot] Optimize images (#127)
imgbot[bot] Mar 9, 2024
47a0499
fix(components): :ambulance: fix mistaken isLoadingDetails by isLoading
sondoannam Mar 9, 2024
48e56a4
Merge branch 'development' into Orders_Fetching
sondoannam Mar 9, 2024
84714d5
refactor(components): :art: remove duplicate codes
sondoannam Mar 9, 2024
4ad7192
fix(components): :art: fix can get variation image has attribute leng…
sondoannam Mar 9, 2024
db6c471
fix(service): 🐛 fix infinite calling api in product detail page (#130)
sondoannam Mar 9, 2024
1a95521
refactor(components): :lipstick: adjust products page UI
sondoannam Mar 10, 2024
b56fbd8
fix(components): :bug: fix selectable product attribute & validate un…
sondoannam Mar 10, 2024
8979842
fix(components): :bug: fix cart page showing wrong section
sondoannam Mar 10, 2024
4ca73ba
refactor(components): :art: adjust UI
sondoannam Mar 10, 2024
b76ca46
Merge branch 'development' into Orders_Fetching
sondoannam Mar 10, 2024
7b24985
refactor(components): :art: remove unused codes
sondoannam Mar 10, 2024
ac9fca5
Merge pull request #131 from TechCell-Project/Orders_Fetching
bou2201 Mar 11, 2024
e4e4786
fix(app): :ambulance: fix redirect problem on login
sondoannam Mar 11, 2024
21a968c
Merge pull request #133 from TechCell-Project/Orders_Fetching
bou2201 Mar 11, 2024
ad2c5d1
fix(scripts): :bug: fix issue when update sdk version
lehuygiang28 Mar 12, 2024
81dc8ae
Merge pull request #134 from TechCell-Project/fix_sdk
lehuygiang28 Mar 12, 2024
46aac29
refactor(components): :art: remove unused and refactor codes
sondoannam Mar 13, 2024
c32625b
feat(components): :sparkles: update order detail stuffs (in progress)
sondoannam Mar 13, 2024
0873792
Merge branch 'development' into Orders_Fetching
sondoannam Mar 13, 2024
4fadb81
Merge pull request #135 from TechCell-Project/Orders_Fetching
lehuygiang28 Mar 14, 2024
3848242
feat(components):
sondoannam Mar 15, 2024
7a03912
build(deps): :arrow_up: update sdk
sondoannam Mar 15, 2024
fc08057
refactor(components): :art: refactor codes & files structure a bit
sondoannam Mar 15, 2024
ae98e74
feat(utils): :sparkles: add util function to get error msg by status …
sondoannam Mar 15, 2024
cd564ba
refactor(components): :zap: adjust UI & refactor codes
sondoannam Mar 15, 2024
d78a71e
refactor(components): :lipstick: adjust UI (working in progress)
sondoannam Mar 15, 2024
af6e368
refactor(components): :art: remove unused codes
sondoannam Mar 15, 2024
0da1764
refactor(utils): :memo: add description comment above function getErr…
sondoannam Mar 16, 2024
3c47ecc
refactor(components): :art: just add showing err msg
sondoannam Mar 16, 2024
bb54831
Merge pull request #136 from TechCell-Project/Order_Page_Update
lehuygiang28 Mar 16, 2024
4d0a9fc
refactor(components): :art: refactor Products Page
sondoannam Mar 17, 2024
030dc3c
refactor(components): :building_construction: complete refactor produ…
sondoannam Mar 17, 2024
0b5eefa
refactor(components): :art: fix sonarcloud quality checks
sondoannam Mar 17, 2024
92cbc39
fix(components): :bug: fix missing condition on checking user carts p…
sondoannam Mar 17, 2024
edb0c21
fix(components): :fire: remove old breadcrumbs export
sondoannam Mar 17, 2024
ec30931
fix(components): :fire: remove old breadcrumbs export
sondoannam Mar 17, 2024
d841fae
Merge branch 'Products_Page_Refactor' of https://github.com/TechCell-…
sondoannam Mar 17, 2024
1840343
Merge pull request #137 from TechCell-Project/Products_Page_Refactor
lehuygiang28 Mar 17, 2024
f38cdf7
fix(components): :bug: fix create & update address in cart page
sondoannam Mar 19, 2024
85961e3
refactor(components): :sparkles: adjust header navigation items
sondoannam Mar 19, 2024
df17584
refactor(components): :art: refactor codes
sondoannam Mar 19, 2024
b81371d
refactor(components): :art: remove unused codes
sondoannam Mar 19, 2024
686f947
refactor(components): :art: remove unused codes
sondoannam Mar 19, 2024
36b89b1
refactor(components): :art: refactor codes for using MUI theme
sondoannam Mar 19, 2024
c357fa8
Merge pull request #139 from TechCell-Project/App_Fix_n_Refactor
bou2201 Mar 19, 2024
6c5eea7
feat(components): :lipstick: rebuild home page carousel with swiperjs
sondoannam Mar 20, 2024
8d69fef
refactor(components): :lipstick: responsive header & header components
sondoannam Mar 20, 2024
4ee7a74
build(components): :sparkles: refactor Product page to be ssr page
sondoannam Mar 21, 2024
9209458
refactor(components): :art: remove unused codes
sondoannam Mar 21, 2024
aba4ce9
Merge pull request #140 from TechCell-Project/App_Fix_n_Refactor
bou2201 Mar 22, 2024
8f3e826
fix(components): :ambulance: fix not redirect new payment url
sondoannam Mar 22, 2024
0de06c9
Merge pull request #141 from TechCell-Project/App_Fix_n_Refactor
lehuygiang28 Mar 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
NEXT_SHARP_PATH=node_modules/sharp

API_BASE_URL=
URL_HOST_SOCKET_IO=wss://socket.techcell.cloud

NEXTAUTH_URL=
NEXTAUTH_SECRET=

# Google Cloud
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
22 changes: 22 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Ignore artifacts:
build
coverage

# Ignore all log files:
*.log

# Ignore package-lock.json file to avoid conflicts with package.json:
package-lock.json\
yarn.lock

# Ignore Next.js specific files:
.next/
out/

# Ignore public folder:
public/

# Ignore node_modules:
node_modules/

.vscode
10 changes: 8 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"extends": "next",
"extends": ["next", "plugin:prettier/recommended", "plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint/eslint-plugin"],
"rules": {
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off"
"@next/next/no-page-custom-font": "off",
"react/display-name": "off",
"prettier/prettier": ["warn"],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/ban-ts-comment": "warn"
}
}
5 changes: 4 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
readme:
- '**/README.md'
- "**/README.md"

actions:
- .github/workflows/**/*
Expand All @@ -8,3 +8,6 @@ actions:
github:
- .github/*
- .git*

app:
- src/**/*
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,15 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

.vscode
.idea
.vscode/*
!.vscode/settings.json

.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions

.pnp.cjs
.pnp.loader.mjs
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
22 changes: 22 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Ignore artifacts:
build
coverage

# Ignore all log files:
*.log

# Ignore package-lock.json file to avoid conflicts with package.json:
package-lock.json\
yarn.lock

# Ignore Next.js specific files:
.next/
out/

# Ignore public folder:
public/

# Ignore node_modules:
node_modules/

.vscode
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"jsxSingleQuote": true,
"printWidth": 100,
"proseWrap": "preserve",
"quoteProps": "as-needed",
Expand Down
39 changes: 39 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"cSpell.words": [
"cloudinary",
"formik",
"Macbook",
"NEXTAUTH",
"Parens",
"persistor",
"plaiceholder",
"Readmore",
"reduxjs",
"Shawshank",
"signin",
"Signout",
"svgr",
"tanstack",
"toastify",
"trpc",
"unauth",
"usehooks",
"webp"
],
"conventionalCommits.scopes": [
"deps",
"utils",
"setting",
"hooks",
"app",
"actions",
"utils",
"deps",
"components",
"type",
"typo/spell",
"seo",
"images",
"scripts"
]
}
893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.0.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarnPath: .yarn/releases/yarn-4.1.0.cjs
nodeLinker: node-modules
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-opti

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

Expand Down
5 changes: 3 additions & 2 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
declare namespace NodeJS {
export interface ProcessEnv {
readonly API_BASE_URL: string;
readonly API_ENDPOINT: string;
readonly URL_HOST_SOCKET_IO: string;
}
}
}
26 changes: 19 additions & 7 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
/** @type {import('next').NextConfig} */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');

const nextConfig = {
// eslint: {
// ignoreDuringBuilds: true,
// },
typescript: {
ignoreBuildErrors: true,
},
},
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
images: {
domains: ['res.cloudinary.com'],
remotePatterns: [
{
protocol: 'https',
hostname: 'res.cloudinary.com',
port: '',
pathname: '**',
},
{
protocol: 'https',
hostname: 'images.techcell.cloud',
port: '',
pathname: '**',
},
],
},
env: {
API_ENDPOINT: process.env.API_BASE_URL,
URL_HOST_SOCKET_IO: process.env.URL_HOST_SOCKET_IO,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
},

modularizeImports: {
'@mui/icons-material': {
transform: '@mui/icons-material/{{member}}',
Expand All @@ -27,7 +39,7 @@ const nextConfig = {
// '{{#if (eq member "useTheme")}}@components/Theme/useTheme{{else}}@mui/material/{{member}}{{/if}}',
// },
},

transpilePackages: ['@TechCell-Project/tech-cell-server-node-sdk'],
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
Expand Down
129 changes: 79 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,81 @@
{
"name": "tech-cell-web-client",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.11.16",
"@mui/material": "^5.13.4",
"@react-native-async-storage/async-storage": "^1.19.3",
"@reduxjs/toolkit": "^1.9.5",
"@svgr/webpack": "^8.0.1",
"@types/node": "20.2.5",
"@types/react": "18.2.8",
"@types/react-dom": "18.2.4",
"@types/react-redux": "^7.1.25",
"aos": "^2.3.4",
"axios": "^1.4.0",
"eslint": "8.42.0",
"eslint-config-next": "13.4.4",
"formik": "^2.4.1",
"jwt-decode": "^3.1.2",
"next": "13.4.4",
"next-auth": "^4.23.2",
"next-redux-wrapper": "^8.1.0",
"plaiceholder": "^3.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-material-ui-carousel": "^3.4.2",
"react-redux": "^8.0.7",
"react-slick": "^0.29.0",
"react-spinners": "^0.13.8",
"react-toastify": "^9.1.3",
"redux-persist": "^6.0.0",
"slick-carousel": "^1.8.1",
"typescript": "5.1.3",
"usehooks-ts": "^2.9.1",
"yup": "^1.2.0"
},
"devDependencies": {
"@types/react-slick": "^0.23.10",
"eslint-config-prettier": "^9.0.0",
"sass": "^1.62.1",
"tsconfig-paths": "^4.2.0"
}
"name": "tech-cell-web-client",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --write '**/*.{ts,tsx,js,jsx,json,css,scss}'",
"clean": "rimraf ./node_modules",
"sdk": "yarn add '@TechCell-Project/tech-cell-server-node-sdk@https://github.com/TechCell-Project/tech-cell-server-node-sdk.git#master'",
"prepare": "husky install"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"dependencies": {
"@TechCell-Project/tech-cell-server-node-sdk": "https://github.com/TechCell-Project/tech-cell-server-node-sdk.git#master",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "5.14.19",
"@mui/material": "5.14.19",
"@mui/styles": "5.14.19",
"@mui/system": "5.14.19",
"@reduxjs/toolkit": "^1.9.5",
"@svgr/webpack": "^8.0.1",
"@vercel/analytics": "^1.2.1",
"@vercel/speed-insights": "^1.0.10",
"axios": "^1.6.5",
"axios-retry": "^4.0.0",
"formik": "^2.4.1",
"jwt-decode": "^3.1.2",
"moment": "^2.29.4",
"next": "^14.0.4",
"next-auth": "^5.0.0-beta.4",
"next-redux-wrapper": "^8.1.0",
"react": "18.2.0",
"react-avatar-editor": "^13.0.2",
"react-dom": "18.2.0",
"react-dropzone": "^14.2.3",
"react-loading-skeleton": "^3.3.1",
"react-material-ui-carousel": "^3.4.2",
"react-redux": "^8.0.7",
"react-slick": "^0.29.0",
"react-spinners": "^0.13.8",
"react-toastify": "^9.1.3",
"redux": "^5.0.1",
"redux-persist": "^6.0.0",
"sharp": "^0.33.0",
"slick-carousel": "^1.8.1",
"slugify": "^1.6.6",
"socket.io-client": "^4.7.2",
"swiper": "^11.0.7",
"usehooks-ts": "^2.9.1",
"utf-8-validate": "^6.0.3",
"yup": "^1.2.0"
},
"devDependencies": {
"@types/node": "20.2.5",
"@types/react": "18.2.8",
"@types/react-avatar-editor": "^13.0.2",
"@types/react-dom": "18.2.4",
"@types/react-redux": "^7.1.25",
"@types/react-slick": "^0.23.10",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"eslint": "8.42.0",
"eslint-config-next": "13.4.4",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.1.2",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"sass": "^1.62.1",
"tsconfig-paths": "^4.2.0",
"typescript": "5.1.3"
},
"packageManager": "yarn@4.1.0"
}
Binary file added public/banner/apple-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/banner/product-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/banner/samsung-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/carousel_img/img1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/carousel_img/img3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/app-store.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/avatarColor.webp
Binary file not shown.
Binary file modified public/images/download-app.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/google-play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/service-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/service-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/service-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/simpleAvatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/social-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/social-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/social-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/social-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img_payment/COD.webp
Binary file not shown.
Binary file added public/img_payment/JCB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img_payment/cod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img_payment/mastercard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img_payment/payment1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img_payment/visa-512.webp
Binary file not shown.
Binary file added public/img_payment/vnpay.webp
Binary file not shown.
Binary file added public/img_payment/vnpaydemo.webp
Binary file not shown.
Binary file added public/img_profile/Shipper_CPS3.webp
Binary file not shown.
Binary file modified public/logo-red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/logo-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/vercel.svg
8 changes: 8 additions & 0 deletions src/actions/createCookie.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use server';

import { cookies } from 'next/headers';

export async function createCookie(name: string, data: string) {
cookies().set(name, data);
console.log(name);
}
Loading