├── .gitignore ├── README.md ├── index.html ├── package.json ├── public └── vite.svg ├── src ├── App.css ├── App.tsx ├── Message.tsx ├── assets │ └── react.svg ├── components │ ├── Alert.tsx │ ├── Button │ │ ├── Button.module.css │ │ └── Button.tsx │ ├── Cart.tsx │ ├── ExpandableText.tsx │ ├── Form.tsx │ ├── Like.tsx │ ├── ListGroup │ │ ├── ListGroup.css │ │ └── ListGroup.tsx │ ├── Message.tsx │ ├── NavBar.tsx │ ├── ProductList.tsx │ └── UserList.tsx ├── expense-tracker │ ├── categories.ts │ └── components │ │ ├── ExpenseFilter.tsx │ │ ├── ExpenseForm.tsx │ │ └── ExpenseList.tsx ├── hooks │ └── useUsers.ts ├── index.css ├── main.tsx ├── services │ ├── api-client.ts │ ├── http-service.ts │ └── user-service.ts └── vite-env.d.ts ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/README.md -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/package.json -------------------------------------------------------------------------------- /public/vite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/public/vite.svg -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/App.tsx -------------------------------------------------------------------------------- /src/Message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/Message.tsx -------------------------------------------------------------------------------- /src/assets/react.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/assets/react.svg -------------------------------------------------------------------------------- /src/components/Alert.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/Alert.tsx -------------------------------------------------------------------------------- /src/components/Button/Button.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/Button/Button.module.css -------------------------------------------------------------------------------- /src/components/Button/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/Button/Button.tsx -------------------------------------------------------------------------------- /src/components/Cart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/Cart.tsx -------------------------------------------------------------------------------- /src/components/ExpandableText.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/ExpandableText.tsx -------------------------------------------------------------------------------- /src/components/Form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/Form.tsx -------------------------------------------------------------------------------- /src/components/Like.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/Like.tsx -------------------------------------------------------------------------------- /src/components/ListGroup/ListGroup.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/ListGroup/ListGroup.css -------------------------------------------------------------------------------- /src/components/ListGroup/ListGroup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/ListGroup/ListGroup.tsx -------------------------------------------------------------------------------- /src/components/Message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/Message.tsx -------------------------------------------------------------------------------- /src/components/NavBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/NavBar.tsx -------------------------------------------------------------------------------- /src/components/ProductList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/ProductList.tsx -------------------------------------------------------------------------------- /src/components/UserList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/components/UserList.tsx -------------------------------------------------------------------------------- /src/expense-tracker/categories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/expense-tracker/categories.ts -------------------------------------------------------------------------------- /src/expense-tracker/components/ExpenseFilter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/expense-tracker/components/ExpenseFilter.tsx -------------------------------------------------------------------------------- /src/expense-tracker/components/ExpenseForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/expense-tracker/components/ExpenseForm.tsx -------------------------------------------------------------------------------- /src/expense-tracker/components/ExpenseList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/expense-tracker/components/ExpenseList.tsx -------------------------------------------------------------------------------- /src/hooks/useUsers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/hooks/useUsers.ts -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 20px; 3 | } -------------------------------------------------------------------------------- /src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/main.tsx -------------------------------------------------------------------------------- /src/services/api-client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/services/api-client.ts -------------------------------------------------------------------------------- /src/services/http-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/services/http-service.ts -------------------------------------------------------------------------------- /src/services/user-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/src/services/user-service.ts -------------------------------------------------------------------------------- /src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/tsconfig.node.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/react-course-part1/HEAD/vite.config.ts --------------------------------------------------------------------------------