2 Commits

Author SHA1 Message Date
Ayush Anand
7ba3f13216 Merge f7429b47c0 into b13a9f1409 2024-03-13 16:26:53 +05:30
Ayush Anand
f7429b47c0 Update app.js 2024-03-13 16:26:01 +05:30
5 changed files with 3297 additions and 3368 deletions

View File

@@ -1,2 +0,0 @@
node_modules
Dockerfile

3349
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,25 +4,30 @@
"main": "index.js", "main": "index.js",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"prettify": "prettier -l --write \"**/*.js\"",
"test": "jest",
"dev": "nodemon -L src/index.js" "dev": "nodemon -L src/index.js"
}, },
"dependencies": { "dependencies": {
"express": "^5.2.1", "express": "^4.18.2",
"mysql2": "^3.16.1", "mysql2": "^2.3.3",
"sqlite3": "^5.1.7", "sqlite3": "^5.1.2",
"uuid": "^13.0.0", "uuid": "^9.0.0",
"wait-port": "^1.1.0" "wait-port": "^1.0.4"
},
"resolutions": {
"ansi-regex": "5.0.1"
},
"prettier": {
"trailingComma": "all",
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": true
}, },
"devDependencies": { "devDependencies": {
"nodemon": "^3.1.9" "jest": "^29.3.1",
}, "nodemon": "^2.0.20",
"overrides": { "prettier": "^2.7.1"
"tar": "7.5.4",
"glob": "11.1.0",
"semver": "7.5.2",
"cross-spawn": "7.0.5",
"braces": "3.0.3",
"http-cache-semantics": "4.1.1",
"socks": "2.8.1"
} }
} }

View File

@@ -53,7 +53,7 @@ function TodoListCard() {
<React.Fragment> <React.Fragment>
<AddItemForm onNewItem={onNewItem} /> <AddItemForm onNewItem={onNewItem} />
{items.length === 0 && ( {items.length === 0 && (
<p className="text-center">No items yet! Add one above!</p> <p className="text-center">You have no todo items yet! Add one above!</p>
)} )}
{items.map(item => ( {items.map(item => (
<ItemDisplay <ItemDisplay

3275
yarn.lock Normal file

File diff suppressed because it is too large Load Diff