100 Commits
Author SHA1 Message Date
Leon Xu 994623db40 Merge pull request #1 from LeonXu260/imgbot
[ImgBot] Optimize images
2022-06-06 11:03:05 -07:00
Leon Xu 5e199c1955 Merge pull request #2 from LeonXu260/dependabot/npm_and_yarn/eventsource-1.1.1
build(deps): bump eventsource from 1.1.0 to 1.1.1
2022-06-06 11:02:52 -07:00
Leon Xu 1cb5d4a08c Merge pull request #3 from LeonXu260/dependabot/npm_and_yarn/functions/protobufjs-6.11.3
build(deps): bump protobufjs from 6.11.2 to 6.11.3 in /functions
2022-06-06 11:02:39 -07:00
Leon Xu 9178c6bdb3 Merge pull request #4 from LeonXu260/dependabot/npm_and_yarn/protobufjs-6.11.3
build(deps): bump protobufjs from 6.11.2 to 6.11.3
2022-06-06 11:02:17 -07:00
Leon Xu c69f6d65cc doc: update README 2022-05-07 16:41:31 -07:00
Leon Xu 0310e38d13 file: add screenshot 2022-05-07 16:40:05 -07:00
Leon Xu cbca9004ff fix: styling error 2022-05-07 16:09:51 -07:00
Leon Xu 92969e08d8 fix: spelling error 2022-05-07 16:09:43 -07:00
Leon Xu 23a47a5c8b fix: change from orders__error to orders__noitem 2022-05-07 16:00:46 -07:00
Leon Xu b2cf8e31cd doc: add orders__error style 2022-05-07 16:00:30 -07:00
Leon Xu 6b7c245f44 doc: add conditional rendering 2022-05-07 15:58:45 -07:00
Leon Xu 24e9fce241 doc: add hideButton to hide the button in orders page 2022-05-07 15:58:34 -07:00
Leon Xu d04cae7c01 doc: add links to order page 2022-05-07 15:50:03 -07:00
Leon Xu 298545c3d7 fix: change spelling error 2022-05-07 15:48:01 -07:00
Leon Xu 87459fa762 doc: add styles to order stylesheet 2022-05-07 15:46:35 -07:00
Leon Xu a7e7f90975 doc: add moment, CheckoutProduct and CurrencyFormat 2022-05-07 15:45:44 -07:00
Leon Xu 2bd6b8c44d doc: add styles to orders stylesheet 2022-05-07 15:44:29 -07:00
Leon Xu 76cb314096 doc: add useStateValue, db, and classes 2022-05-07 15:43:48 -07:00
Leon Xu fc3f5551a6 fix: change from id to uid 2022-05-07 15:37:35 -07:00
Leon Xu 5b7a0aadd2 doc: add database to payment component 2022-05-07 15:31:54 -07:00
Leon Xu aabbe3a95c doc: add header to order route 2022-05-07 15:26:22 -07:00
Leon Xu d4bb3b81fa file: initialize Orders component and Order component along with its stylesheet 2022-05-07 15:25:01 -07:00
Leon Xu 09259257d2 doc: add orders route with its component 2022-05-07 15:23:36 -07:00
Leon Xu 0b2b42856f doc: add eslint-config-google package 2022-05-07 15:18:03 -07:00
Leon Xu 07cfc6efc2 doc: dispatch EMPTY_BASKET type 2022-05-07 15:12:52 -07:00
Leon Xu 75ec71a467 doc: add EMPTY_BASKET case 2022-05-07 15:12:22 -07:00
Leon Xu df16a7f75f doc: add *.log to gitignore 2022-05-07 15:11:20 -07:00
Leon Xu 7bb7fc45a8 doc: add stripe test key 2022-05-07 15:11:01 -07:00
Leon Xu 8d00259af5 fix: spelling errors in API routes 2022-05-07 15:00:02 -07:00
Leon Xu 4831ae523c doc: add express, cors, and stripe along with middleware and routes to index.js 2022-05-07 14:42:13 -07:00
Leon Xu 8ecc8ef409 doc: add dotenv package 2022-05-07 14:36:32 -07:00
Leon Xu 18daea87cf doc: add cors, express, and stripe and modified versions 2022-05-07 14:33:41 -07:00
Leon Xu 81c1a5b9a4 doc: add .env to gitignore 2022-05-07 14:28:25 -07:00
Leon Xu 8822f11b42 file: initialize firebase function 2022-05-07 14:27:33 -07:00
Leon Xu 1eac6e687c doc: add axios, useEffect, useState, Link, and useHistory to payment component 2022-05-07 14:24:39 -07:00
Leon Xu 1173614e22 doc: add instance with axio.create 2022-05-07 14:19:08 -07:00
Leon Xu 6907dd7c7e file: create axios in auth directory 2022-05-07 14:17:19 -07:00
Leon Xu 1d023fd69b doc: add buy now button with conditional rendering and error conditional rendering 2022-05-07 14:13:19 -07:00
Leon Xu 2010f9423e doc: remove object inside CurrencyFormat 2022-05-07 14:08:59 -07:00
Leon Xu 8b67180daa doc: add CurrentFormat, getBasketTotal and move payment stylesheet to the bottom 2022-05-07 14:08:03 -07:00
Leon Xu 475d51c2a1 doc & fix: add setDisabled and setError to handleChange method and fix handleError to setError 2022-05-07 14:04:10 -07:00
Leon Xu 5ac0d48ec7 doc: add useState for handleError and setDisabled 2022-05-07 14:02:49 -07:00
Leon Xu 7b96e90ea8 doc: add CardElement, useElements, useStripe from react-stripe-js and handleChange and handleSubmit method 2022-05-07 14:02:02 -07:00
Leon Xu f2ebe6e580 doc: add checkout items link 2022-05-07 13:59:27 -07:00
Leon Xu 7479cc892d doc: add loadStripe and Elements 2022-05-07 13:56:19 -07:00
Leon Xu 79ce82df05 doc: add styles to payment stylesheet 2022-05-07 13:50:33 -07:00
Leon Xu 94ecbadbf3 doc: update payment component 2022-05-07 13:49:40 -07:00
Leon Xu 27e3c294a2 file: create Payment component along with its stylesheet 2022-05-07 13:37:07 -07:00
Leon Xu a6a21a2653 doc: add payment component and its route 2022-05-07 13:36:26 -07:00
Leon Xu c555899892 doc: add payment route on checkout button 2022-05-07 13:34:37 -07:00
Leon Xu 1d4b8f215c doc: add useHistory on react-router-dom 2022-05-07 13:33:52 -07:00
Leon Xu 340ef629a8 fix: change second conditional rendering 2022-05-07 13:27:37 -07:00
Leon Xu e974e40104 doc: add user to useStateValue and conditional rendering 2022-05-07 13:26:45 -07:00
Leon Xu 2e512535a0 doc: add conditional rendering to Hello text 2022-05-07 13:14:54 -07:00
Leon Xu e2a136a4ef fix: change auth from firebase to local firebaseInit 2022-05-07 13:11:26 -07:00
Leon Xu b90999b408 doc: add auth then display login route 2022-05-07 13:10:28 -07:00
Leon Xu 0c89067013 doc: add alt text to header logo class 2022-05-07 13:08:30 -07:00
Leon Xu c9e71fb06f doc: add user to useStateValue and render either login or logout and also create authHandle method 2022-05-07 13:07:56 -07:00
Leon Xu 8df07b4289 doc: dispatch userType and auth 2022-05-07 13:03:53 -07:00
Leon Xu c2072d91ad doc: add SET_USER case 2022-05-07 13:03:37 -07:00
Leon Xu 26d507fab1 doc: add user in initialState 2022-05-07 12:59:22 -07:00
Leon Xu 6e7a2637d8 doc: add loginwithEmailandPassword, then redirect the user back to homepage 2022-05-07 12:57:33 -07:00
Leon Xu b42fdbc0ca doc: add useHistory and auth with userEmailand Password 2022-05-07 12:55:34 -07:00
Leon Xu d4751e156c doc: add firebaseConfig file 2022-05-07 12:46:02 -07:00
Leon Xu 75ace4cf34 file: create firebaseInit file 2022-05-07 12:43:30 -07:00
Leon Xu 323c5c61df doc: create onClick method with prevent default added 2022-05-07 12:34:40 -07:00
Leon Xu 952e45bdb1 doc: add submit type to signInButton 2022-05-07 12:34:00 -07:00
Leon Xu a18db46151 doc: add useState, onChange, and signIn methods to login 2022-05-07 12:33:04 -07:00
Leon Xu e942f0a5c2 doc: add text-align style to h1 2022-05-07 12:30:24 -07:00
Leon Xu 156ec4dc42 fix: lower case to upper case 2022-05-07 12:30:10 -07:00
Leon Xu e5d24879d9 doc: add signInButton class 2022-05-07 12:28:29 -07:00
Leon Xu a9dae9c63f doc: add additional styles to style the form and the rest of the content on Login component 2022-05-07 12:27:47 -07:00
Leon Xu cf0f429a94 doc: add login class along with login container and registerButton and its style 2022-05-07 12:25:58 -07:00
Leon Xu d6cf1b986b doc: add link to login page 2022-05-07 12:18:54 -07:00
Leon Xu 8d359ed801 doc: add style to target links in header component 2022-05-07 12:18:43 -07:00
Leon Xu 0a885395e4 doc: add login component for login route 2022-05-07 12:16:29 -07:00
Leon Xu a8fc9bdfad file: create login component along with its own style 2022-05-07 12:16:15 -07:00
Leon Xu 0253490cd3 doc: add removeFromBasket function 2022-05-07 12:13:40 -07:00
Leon Xu f363deead4 fix: fix spelling error 2022-05-07 12:12:33 -07:00
Leon Xu 010d9af9df doc: add REMOVE_FROM_BASKET case 2022-05-05 22:16:07 -07:00
Leon Xu 135883ec9c doc: style checkOutProduct component 2022-05-05 21:51:25 -07:00
Leon Xu 58e4bea186 doc: add useStateValue along with CheckoutProduct component 2022-05-05 21:47:22 -07:00
Leon Xu 642b6db220 doc: add contents similar to product component in checkoutProduct component 2022-05-05 21:44:50 -07:00
Leon Xu 02b909ae5e file: create CheckoutProduct component along with its stylesheet 2022-05-05 21:39:33 -07:00
Leon Xu 7c6ee1d588 doc: add useStateValue and getBasketTotal 2022-05-05 21:38:18 -07:00
Leon Xu d64671d0f5 doc: add getBasketTotal method 2022-05-05 21:37:10 -07:00
Leon Xu 27462887ac doc" add useStateValue to Header component to change the hardcode value to dynamic value 2022-05-05 21:34:14 -07:00
Leon Xu 872938bdd1 doc: add id as prop to Product function 2022-05-05 21:32:37 -07:00
Leon Xu 9dc80c75ad doc: add addToBasket method 2022-05-05 21:32:15 -07:00
Leon Xu 47d41ab683 doc: add StateProvider, reducer, and initialState to entry file 2022-05-05 21:27:38 -07:00
Leon Xu 775c4fb5b1 doc: create initialState and reducer method 2022-05-05 21:26:27 -07:00
Leon Xu 9e5f2605f3 file: create reducer file in redux directory 2022-05-05 21:24:30 -07:00
Leon Xu cffbed42a5 doc: add StateProvider and StateValue 2022-05-05 21:22:41 -07:00
Leon Xu 0ecc546f6c file: create StateProvider in redux directory 2022-05-05 21:21:32 -07:00
Leon Xu fa9e1acda1 doc: add style to subtotal input and subtotal button 2022-05-05 21:19:51 -07:00
Leon Xu c379b1ec72 doc: add CurrencyFormatter to Subtotal component along with its style 2022-05-05 21:17:07 -07:00
Leon Xu 1c48a6260a doc: add subtotal component 2022-05-05 21:16:19 -07:00
Leon Xu 64da4e8f8a file: create Subtotal component with its own style 2022-05-05 21:14:36 -07:00
Leon Xu 1d7386db3f doc: add checkout ads and texts with its styles 2022-05-05 21:13:51 -07:00
Leon Xu b736a4602f doc: add checkout route to shopping cart 2022-05-05 21:08:40 -07:00