-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
1,469 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Format | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' # Use the Node.js version your project requires | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run Prettier to check formatting | ||
run: npm run prettier -- --check | ||
continue-on-error: false # Fail the workflow if formatting issues are found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Lint and Format | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint-and-format: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' # or whichever version your project requires | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run Prettier to check formatting | ||
run: npm run format -- --check | ||
|
||
- name: Run ESLint to check for linting issues | ||
run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Node modules | ||
node_modules/ | ||
|
||
# Logs | ||
logs/ | ||
*.log | ||
npm-debug.log* | ||
|
||
# Dependency directories | ||
jspm_packages/ | ||
bower_components/ | ||
|
||
# Optional npm cache directory | ||
.npm/ | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Build output directories | ||
dist/ | ||
build/ | ||
|
||
# Mac OS specific files | ||
.DS_Store | ||
|
||
# Windows specific files | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
build | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"tabWidth": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import globals from 'globals'; | ||
import pluginJs from '@eslint/js'; | ||
|
||
export default [ | ||
{ | ||
files: ['**/*.js'], | ||
languageOptions: { | ||
globals: globals.browser, | ||
}, | ||
}, | ||
pluginJs.configs.recommended, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Todo-List</title> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
<link rel="stylesheet" href="style.css" /> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Todo-List</h1> | ||
|
||
<div class="js-add-grid"> | ||
<input type="text" placeholder="Share Your Thoughts" class="js-name-input"> | ||
<input type="date" class="js-date-input"> | ||
<input type="time" class="js-time-input"> | ||
<button class="js-add-button" onclick="addTodo();"> | ||
<img src="assets/add-icon.png" alt="Add" width="16" height="16"> Add | ||
</button> | ||
</div> | ||
<div class="js-add-html js-add-grid"></div> | ||
<h1>Todo-List</h1> | ||
|
||
<div class="js-add-grid"> | ||
<input | ||
type="text" | ||
placeholder="Share Your Thoughts" | ||
class="js-name-input" | ||
/> | ||
<input type="date" class="js-date-input" /> | ||
<input type="time" class="js-time-input" /> | ||
<button class="js-add-button" onclick="addTodo();"> | ||
<img src="assets/add-icon.png" alt="Add" width="16" height="16" /> Add | ||
</button> | ||
</div> | ||
<div class="js-add-html js-add-grid"></div> | ||
</div> | ||
<footer> | ||
<p>© 2024 Made with ❤ by Ansh Grover. All rights reserved.</p> | ||
</footer> | ||
|
||
|
||
<p>© 2024 Made with ❤ by Ansh Grover. All rights reserved.</p> | ||
</footer> | ||
|
||
<script src="script.js"></script> | ||
</body> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.