gsg-g7 / amai-todo-list Goto Github PK
View Code? Open in Web Editor NEWusing dom, local storage and pure functions and testing
Home Page: https://gsg-g7.github.io/AMAI-TODO-List/
using dom, local storage and pure functions and testing
Home Page: https://gsg-g7.github.io/AMAI-TODO-List/
relates #16
do tests and code separately of todoFunctions.markTodo
Line 103 in e4a59a1
to avoid get element two times, in the first get just get the element and then check value and reset it as you want
let inputText = document.querySelector('input[name=description]')
this one will tell the render how to show the <li>
items
and add buttons to it, add event listeners to them.
and make it work with addTodoForm
code and tests separately
Line 93 in e4a59a1
if I click on submit with empty input or add space without any character it will add, so you can use this or try to solve it as you like
if(inputText.value.trim()){
it will remove space from the start of a string and check if there a real value
Line 17 in e4a59a1
solve the conflict in this lines , the conflict from this branch ( 60-sort-button)
relates #6
Line 104 in e4a59a1
dom.js:107 Uncaught TypeError: Cannot read property 'addEventListener' of null
at HTMLFormElement.<anonymous> (dom.js:107)
because you have a mistake when you get the element, you writ this line
var sortFormBtn = document.getElementById('add-todo input[type=button]');
but when you back to index.html there isn`t this id for sort button and getElemetBy
Id can't use as you used, so add an id for the button and use getElemetById in the right way your error will be solved.
make sure that tests coverage is good enough, and at least 95%
delete the if of the export in logic.js
Line 95 in 93795c4
relates #3
https://github.com/GSG-G7/AMAI-TODO-List/blob/e4a59a1b3557d1936017266d8de1529be7bde12c/JS/logic.js#L28is
each push make sure there aren't any comment lines
Line 85 in e4a59a1
1- creat checkbox input.
2- add mark todo function to checkbox-input.
test for the delete function
relates #16
fix conflict
between done and not done
#28
todoFunctions.addTodo in logic.js
tests before code, separate branches and pair programming
JS
CSS
test
index.html
and npm init, install tape, and .gitignore ready
relates #3
why your issues without description?
just write small description of what will do in issue
if mark must icon (/) if not mark (|_|)
Line 171 in e4a59a1
you make a test for editTodo function but this function isn't defined in the logic.js file, I think you have lost lines in the logic.js file
there no input validation
relates #31
Line 104 in e4a59a1
move the sort button out the if statement block
write body code
relates #12
create tests
relates #12
the sort and submit buttons are not responsive
relates #28
put all done todos in new array
AMAI-TODO-List/style/style.css
Line 16 in e4a59a1
don't use tag name in CSS use class name and :)
Line 91 in e4a59a1
always try to get all element in the top of the code
read this issue:
GSG-G7/Get-Organized-Team-#55
do testing and code of todoFunctions.editTodo
// should leave the input argument todos unchanged (you can use cloneArrayOfObjects)
// return a new array, this should not contain any todo with an id of idToDelete
// hint: array.filter
todoFunctions.deleteTodo in logic.js
create separate branches for test and function bod
make form on top so it stays on top and dont move when we add more stuff
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.