├── .gitignore ├── screenshot.png ├── babel.config.js ├── jest.config.js ├── postcss.config.js ├── tailwind.config.js ├── src ├── components │ └── alert-component.js ├── tailwind.css ├── interface │ ├── new-item.js │ ├── list-item.js │ ├── list-projects.js │ └── new-project.js ├── test │ ├── projects.test.js │ ├── to-dos.test.js │ ├── list-items.test.js │ └── new_project.test.js ├── classes │ ├── projects.js │ ├── utils.js │ ├── localstorage.js │ └── to-dos.js └── index.js ├── .stylelintrc.json ├── .eslintrc.json ├── webpack.config.js ├── dist └── index.html ├── .github └── workflows │ └── linters.yml ├── package.json └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # .gitignore 2 | node_modules/ -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rahalrazika/to-do-list/HEAD/screenshot.png -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [['@babel/preset-env', { targets: { node: 'current' } }]], 3 | }; -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | moduleNameMapper: { 3 | '\\.(css|scss)$': 'identity-obj-proxy', 4 | }, 5 | }; -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | }; -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | purge: [], 3 | darkMode: false, // or 'media' or 'class' 4 | theme: { 5 | extend: {}, 6 | }, 7 | variants: { 8 | extend: {}, 9 | }, 10 | plugins: [], 11 | }; 12 | -------------------------------------------------------------------------------- /src/components/alert-component.js: -------------------------------------------------------------------------------- 1 | const customAlert = (message) => { 2 | const html = ` 3 |