├── fe ├── src │ ├── App.css │ ├── pages │ │ ├── login │ │ │ ├── index.jsx │ │ │ └── login.jsx │ │ ├── home │ │ │ ├── index.jsx │ │ │ └── home.jsx │ │ ├── error │ │ │ ├── index.jsx │ │ │ └── error.jsx │ │ └── register │ │ │ ├── index.jsx │ │ │ └── register.jsx │ ├── App.jsx │ ├── components │ │ ├── Layout.jsx │ │ ├── Title.jsx │ │ ├── HeroContainer.jsx │ │ ├── Notify.jsx │ │ ├── AddTaskForm.jsx │ │ ├── flexi_button.jsx.bckp │ │ └── features_form.jsx.bckp │ ├── utils │ │ ├── time.js │ │ └── router.jsx │ ├── main.jsx │ ├── index.css │ ├── hooks │ │ └── useNotification.jsx │ ├── actions │ │ ├── features.action.js │ │ └── users.action.js │ └── assets │ │ └── react.svg ├── .env.example ├── postcss.config.js ├── vite.config.js ├── tailwind.config.js ├── .gitignore ├── index.html ├── README.md ├── .eslintrc.cjs ├── package.json └── public │ └── vite.svg ├── .gitignore ├── api ├── src │ ├── type │ │ ├── users.type.ts │ │ ├── features.type.ts │ │ └── query.type.ts │ ├── config │ │ ├── database.config.ts │ │ └── response.config.ts │ ├── controllers │ │ ├── features.controller.ts │ │ └── users.controller.ts │ ├── routes │ │ ├── main.route.ts │ │ ├── features.route.ts │ │ ├── users.route.ts │ │ └── features.route.ts_ │ ├── middleware.ts │ ├── server.ts │ ├── libs │ │ └── token-creation.libs.ts │ └── models │ │ └── mapping.ts ├── .env.example ├── globals.d.ts ├── docker-compose.yaml ├── tsconfig.json ├── package.json ├── tsconfig.tsbuildinfo └── package-lock.json ├── app.sh ├── app.cmd ├── cuymodoro.sql └── README.md /fe/src/App.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fe/.env.example: -------------------------------------------------------------------------------- 1 | VITE_API_URL="http://localhost:3002" 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | fe/node_m* 2 | api/node_m* 3 | fe/.env 4 | api/.env 5 | dist 6 | build -------------------------------------------------------------------------------- /fe/src/pages/login/index.jsx: -------------------------------------------------------------------------------- 1 | import Login from "./login"; 2 | 3 | export default Login; 4 | -------------------------------------------------------------------------------- /fe/src/pages/home/index.jsx: -------------------------------------------------------------------------------- 1 | import HomePage from "./home"; 2 | 3 | export default HomePage; 4 | -------------------------------------------------------------------------------- /fe/src/pages/error/index.jsx: -------------------------------------------------------------------------------- 1 | import ErrorPage from "./error"; 2 | 3 | export default ErrorPage; 4 | -------------------------------------------------------------------------------- /fe/src/pages/register/index.jsx: -------------------------------------------------------------------------------- 1 | import Register from "./register"; 2 | 3 | export default Register; 4 | -------------------------------------------------------------------------------- /api/src/type/users.type.ts: -------------------------------------------------------------------------------- 1 | export type UserFormParams = { 2 | username: string; 3 | password: string; 4 | }; -------------------------------------------------------------------------------- /fe/postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /api/.env.example: -------------------------------------------------------------------------------- 1 | DATABASE_HOST="127.0.0.1" 2 | DATABASE_USER="sqluser" 3 | DATABASE_NAME="cuymodoro" 4 | DATABASE_PASSWORD="1234" 5 | PORT=8080 -------------------------------------------------------------------------------- /fe/src/pages/error/error.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | function ErrorPage() { 4 | return
An error occurred
80 | ) : null} 81 | {data?.features?.status && status: {data?.features?.status}} 82 | {data?.features?.status && data?.features?.status == "break" ? ( 83 |take a break for xx:xx minutes
84 | ) : null} 85 |