Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit e704c4c
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 15 06:05:46 2024 -0300

    chore: update package version to 1.0.0

commit ed203b7
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Aug 14 08:42:23 2024 -0300

    feat: disable input and buttons

    This ensures that the user cannot add a new task while another one is in progress.

commit 3d62686
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Aug 14 08:35:38 2024 -0300

    feat: adds toasts to the user

commit 53040c0
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Aug 14 07:06:32 2024 -0300

    refactor: converts task state update logic to use a reducer

    therefore, it was necessary to change all the places that referenced the previous logic.

commit b32fcee
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Aug 12 06:39:24 2024 -0300

    fix: bug when trying to get invalid tasks from memory

commit cb530ad
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Aug 12 06:16:27 2024 -0300

    feat: show saved tasks in suggestions

commit 41e9dc6
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Aug 10 13:44:27 2024 -0300

    fix: bug that showed wrong time when changing screen

commit 025f413
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Aug 10 12:44:46 2024 -0300

    fix: multiple tasks with ongoing status

commit ef18fdf
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Aug 10 12:22:24 2024 -0300

    feat: saves tasks in memory

commit ffce8ef
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Aug 10 10:21:02 2024 -0300

    fix: table information styles

commit 569a27e
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Aug 10 10:14:50 2024 -0300

    fix: duplicate tasks bug

commit 4c1e1f5
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Aug 10 09:36:09 2024 -0300

    feat: shows existing tasks in history

commit a4a7ad4
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 9 08:15:46 2024 -0300

    fix: adds typing required for countdown

commit e9ce9d3
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 9 08:09:03 2024 -0300

    refactor: routine to create a task

    Therefore, it was necessary to increase typing and adjust the locations that used them.

commit ddd0e92
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 9 07:11:22 2024 -0300

    refactor: time segmentation

    With this, the logic becomes interconnected, that is, the seconds to be shown will be explicitly
    dependent on the minutes.

commit 6f89051
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 8 08:29:53 2024 -0300

    feat: add the functionality to finish the task

    This should occur when the desired time is up.

commit c753a97
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 8 08:10:51 2024 -0300

    refactor: remove unnecessary logic

commit ade1140
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 8 07:36:58 2024 -0300

    fix: problem of not showing the initial time

commit fcc51c4
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 8 06:21:16 2024 -0300

    refactor: isolates the countdown logic in a hook

commit b0733dd
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 8 06:12:05 2024 -0300

    chore: adds a file to specify the node version

commit a334859
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 8 06:10:29 2024 -0300

    feat: adds the functionality to stop the countdown

commit fe4bc48
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Aug 5 07:39:44 2024 -0300

    fix: lint issues

commit aea8d9f
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Aug 5 07:28:54 2024 -0300

    chore: remove unnecessary aliases

commit af990b0
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Aug 5 07:17:13 2024 -0300

    feat: adds a favicon to the application

commit fe4a9b4
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Aug 5 07:05:08 2024 -0300

    feat: add logic to clear timeout

    With this, the counter logic will not be executed when the component is unmounted.

commit d66450b
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sun Aug 4 17:03:02 2024 -0300

    feat: adds countdown functionality

commit e147d78
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 2 16:50:04 2024 -0300

    fix: wip3 - adds functionality to start the counter

    prevents the countdown from being rendered every time any form input changes

commit 42b1326
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 2 12:31:08 2024 -0300

    refactor: rename the state to be more meaningful

commit d0a421c
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 2 12:22:38 2024 -0300

    refactor: transports the state to the context

    This made it necessary to make the task type and its utilities global, having to change everyone who
    used them.

commit 37d88e3
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 2 10:45:34 2024 -0300

    feat: wip2 - adds functionality to start the counter

    creates the context that will be used in the future to handle tasks

commit 6dcfefd
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 1 08:32:15 2024 -0300

    feat(home/hook.ts): wip - adds functionality to start the counter

commit c3928bf
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 29 07:17:30 2024 -0300

    ci: add the dependencies file

commit b019e15
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 29 07:05:17 2024 -0300

    refactor: separates numbers into a component

commit a8f7203
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 27 13:56:14 2024 -0300

    refactor: bug of adding wrong numbers

    For example, if a user adds numbers like "1.", "2.", "3.", the data would be invalid.

commit a80d44a
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 27 13:53:40 2024 -0300

    feat: add logic to enable or disable the StartStopButton

commit 40bbab4
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 27 13:06:40 2024 -0300

    refactor: leaving names and logic more concise

commit bee5454
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 27 10:21:34 2024 -0300

    feat: add title to buttons

commit 0e478bf
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 27 10:15:41 2024 -0300

    refactor: the logic of registering form fields

commit cc18914
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 27 09:55:25 2024 -0300

    feat: integrates the form with zod and react hook form

commit 4fc16e2
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Jul 25 06:30:23 2024 -0300

    refactor: changes the StartStopButton component to its place

commit 1016500
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Jul 25 06:18:38 2024 -0300

    chore: changes the development flow

commit d0576f7
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Jul 24 08:48:37 2024 -0300

    refactor: use aliases in imports

commit 06afc64
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Jul 24 08:42:51 2024 -0300

    style: adds settings for import aliases

commit f3d4a85
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 22 08:33:59 2024 -0300

    refactor: add more meaningful names for functions

commit 9844ca5
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 22 08:24:38 2024 -0300

    feat: adds function to ensure minimum time

commit 938ad96
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 22 08:14:03 2024 -0300

    fix: glitch that allows you to add letters to the desired time field

commit f51e202
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 22 07:25:45 2024 -0300

    fix: visual bug in the desired time input

    Now, when starting the application, the placeholder text is shown to the user.

commit 36178a0
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 22 07:18:26 2024 -0300

    fix: problem with a zero appearing on the left

    This problem is reported in the following Facebook post:
    facebook/react#9402

commit 711596f
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 20 11:59:11 2024 -0300

    feat: adds functionality to time buttons

commit 9e6d44b
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 20 10:22:07 2024 -0300

    feat: add styles to table rows

commit 0d48466
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 20 10:11:57 2024 -0300

    fix: the visible height of the table container

commit 3d0661b
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Jul 19 11:12:10 2024 -0300

    feat: adds styles for when there are no tasks

commit 9ec2d43
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Jul 19 09:24:16 2024 -0300

    fix: cell text styles

commit fd64d91
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Jul 19 09:14:57 2024 -0300

    feat: add colors to statuses

commit e7351b4
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Jul 18 07:08:22 2024 -0300

    feat: adds a list of suggestions to the input

commit 8c9e271
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Jul 18 06:34:50 2024 -0300

    refactor: isolates the home button logic in a component

commit 83e85d2
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Jul 17 08:51:51 2024 -0300

    refactor: start and pause buttons

commit 6875f9d
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Jul 17 08:48:29 2024 -0300

    feat: add more styles for buttons and anchors

commit baae09b
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Jul 17 07:41:38 2024 -0300

    fix: start and stop button icon styles

commit 645d6bf
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Jul 17 07:16:33 2024 -0300

    feat: change global styles for buttons and anchors

commit 866a992
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Jul 17 06:44:41 2024 -0300

    feat: add a tooltip for the play button

commit 7fa7adb
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Jul 17 06:43:26 2024 -0300

    refactor: elevates the tooltip styles to the body

commit 85cd0b6
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Jul 17 06:19:06 2024 -0300

    fix: tooltip styles

commit 428d624
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 15 08:49:40 2024 -0300

    fix: adjust the style of the history page

commit 0686597
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 15 08:44:38 2024 -0300

    fix: task name input color

commit d6eecc4
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 15 08:14:16 2024 -0300

    chore: change lint rules

commit 16c5e4e
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 15 08:03:53 2024 -0300

    fix: adds typing to the styles component

commit e1a5016
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 15 07:43:52 2024 -0300

    chore: modifies the Developer Experience

commit 7df728c
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 15 07:41:20 2024 -0300

    refactor: isolates routing logic

commit 4800d5b
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Mon Jul 15 07:29:37 2024 -0300

    refactor: isolates general style logic

commit ac9418b
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 13 14:06:36 2024 -0300

    feat: add styles to header links

commit 1042df9
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 13 12:30:00 2024 -0300

    fix: content container styles

commit 73742f5
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 13 11:21:37 2024 -0300

    ci: change hook file permissions

commit 524d5c3
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 13 11:18:29 2024 -0300

    build: change the package manager

commit ebec772
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 13 11:14:47 2024 -0300

    fix: customSimpleBar styles

    Therefore, the spacing and sizes will follow the proposed layout.

commit 06ee7bb
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 25 00:57:44 2023 -0300

    refactor: isolates the CustomSimpleBar in a component

commit 3aa055c
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 25 00:25:54 2023 -0300

    feat: add History page responsiveness

commit 323acdb
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 24 00:18:23 2023 -0300

    feat: starts creating the history page

commit 43d57e3
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Aug 23 01:02:58 2023 -0300

    refactor: improves home page responsiveness

commit dc16f7f
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Aug 19 13:55:56 2023 -0300

    feat: create the DefaultLayout

commit a7ef386
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Wed Aug 9 22:35:21 2023 -0300

    refactor: remakes the way icons are styled

commit 7493e63
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Aug 5 15:36:50 2023 -0300

    feat: makes the home page responsive

commit bfb22c6
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Aug 5 00:25:31 2023 -0300

    feat: makes the styles of the buttons play and stop

commit 5475bee
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 4 23:57:41 2023 -0300

    feat: makes the style of numbers

commit d97c9e0
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Fri Aug 4 23:19:12 2023 -0300

    feat: start the styles of the form

commit 92bf762
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Thu Aug 3 00:38:16 2023 -0300

    feat: does the initial styling of the Header

commit 0602667
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 29 13:54:07 2023 -0300

    feat: creates the general styles of the application

commit fa30d41
Author: Gustavo Santos <devgustavosantos@gmail.com>
Date:   Sat Jul 29 12:33:00 2023 -0300

    feat: adds linters and a workflow
  • Loading branch information
devgustavosantos committed Aug 15, 2024
1 parent ff01200 commit 7dbbe9f
Show file tree
Hide file tree
Showing 68 changed files with 6,817 additions and 181 deletions.
5 changes: 5 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"@commitlint/config-conventional"
]
}
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "./node_modules/cz-conventional-changelog"
}
78 changes: 78 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"react",
"eslint-plugin-import-helpers",
"unused-imports",
"react-hooks"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"react/react-in-jsx-scope": 0,
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [
"module",
"/^@/",
[
"parent",
"sibling",
"index"
]
],
"alphabetize": {
"order": "asc",
"ignoreCase": true
}
}
],
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"react": {
"version": "detect"
}
}
}
18 changes: 0 additions & 18 deletions .eslintrc.cjs

This file was deleted.

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

npx --no -- commitlint --edit
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint-staged
npm run build
12 changes: 12 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

COMMIT_MSG_FILE=$1
COMMIT_SOURCE=$2
SHA1=$3

if [ "${COMMIT_SOURCE}" = merge ];then
exit 0
fi

exec < /dev/tty && npx cz --hook || true
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{ts,tsx}": ["prettier --write", "eslint --fix"],
"./src/**/styles.ts": ["stylelint"]
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.15.0
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 80,
"arrowParens": "always",
"singleAttributePerLine": true
}
39 changes: 39 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"extends": [
"stylelint-config-recommended",
"stylelint-config-styled-components"
],
"customSyntax": "postcss-styled-components",
"rules": {
"rule-empty-line-before": ["always", { "except": "first-nested" }],
"at-rule-empty-line-before": "always",
"color-no-invalid-hex": true,
"shorthand-property-no-redundant-values": true,
"color-function-notation": "legacy",
"selector-class-pattern": null,
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["extends"]
}
],
"block-no-empty": [
true,
{
"ignore": ["comments"]
}
],
"unit-allowed-list": [
"em",
"rem",
"%",
"px",
"s",
"deg",
"vh",
"ms",
"fr",
"vw"
]
}
}
33 changes: 28 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,36 @@
<!doctype html>
<html lang="en">
<html lang="pt-br">
<head>
<link
rel="preconnect"
href="https://fonts.googleapis.com"
/>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin
/>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Ignite Timer</title>
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@700&family=Roboto:wght@400;700&display=swap"
rel="stylesheet"
/>
<link
rel="icon"
type="image/png"
href="./src/assets/ignite-logo.svg"
/>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script
type="module"
src="/src/main.tsx"
></script>
</body>
</html>
46 changes: 41 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,63 @@
{
"name": "ignite-timer",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"prepare": "husky install",
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"prettier": "prettier --write .",
"eslint": "eslint src/**/*.tsx --fix",
"stylelint": "stylelint ./src/**/styles.ts",
"lint-staged": "lint-staged",
"commitizen": "cz"
},
"dependencies": {
"@hookform/resolvers": "^3.9.0",
"@phosphor-icons/react": "^2.0.10",
"date-fns": "^3.6.0",
"immer": "^10.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-hook-form": "^7.52.1",
"react-router-dom": "^6.15.0",
"react-toastify": "^10.0.5",
"react-tooltip": "^5.27.1",
"simplebar-react": "^3.2.4",
"styled-components": "^6.0.5",
"superjson": "^2.2.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
"@types/node": "^20.14.12",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@types/styled-components": "^5.1.26",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"@vitejs/plugin-react": "^4.0.3",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.45.0",
"eslint-plugin-import-helpers": "^1.3.1",
"eslint-plugin-react": "^7.33.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"postcss-lit": "^1.1.0",
"postcss-styled-components": "^0.2.1",
"prettier": "3.0.0",
"stylelint": "^15.10.2",
"stylelint-config-recommended": "^13.0.0",
"stylelint-config-standard": "^34.0.0",
"stylelint-config-styled-components": "^0.1.1",
"typescript": "^5.0.2",
"vite": "^4.4.5"
}
Expand Down
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

42 changes: 0 additions & 42 deletions src/App.css

This file was deleted.

44 changes: 14 additions & 30 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,19 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
import { FormProvider } from '@/contexts/Form';
import { TasksProvider } from '@/contexts/Tasks';

function App() {
const [count, setCount] = useState(0)
import { Router } from './Router';
import { Styles } from './styles';

function App() {
return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
)
<Styles>
<TasksProvider>
<FormProvider>
<Router />
</FormProvider>
</TasksProvider>
</Styles>
);
}

export default App
export default App;
Loading

0 comments on commit 7dbbe9f

Please sign in to comment.