alamid-todo-example's People
Forkers
isabella232alamid-todo-example's Issues
Compatibility
Modern browser (latest: Chrome, Firefox, Opera, Safari, IE9)
Current state was developed in Chrome 22
Counter is not pluralized
The counter needs to be pluralized according to the specifictation
Counter
Displays the number of active todos in a pluralized form. Make sure the number is wrapped by a tag. Also make sure to pluralize the item word correctly: 0 items, 1 item, 2 items. Example: 2 items left
I haven't done this yet.
Routing
According to TodoMVC's specification there should be a routing:
Routing is required for all frameworks. Use the built-in capabilities if supported, otherwise use the Flatiron Director routing library located in the /assets folder. The following routes should be implemented: #/ (all - default), #/active and #/completed (#!/ is also allowed). When the route changes the todo list should be filtered on a model level and the selected class on the filter links should be toggled. When an item is updated while in a filtered state, it should be updated accordingly. E.g. if the filter is Active and the item is checked, it should be hidden. Make sure the active filter is persisted on reload.
There are still some bugs, probably with alamid's routing:
- Currently there is one route
*
implemented, that overwrites the default behavior, so that alamid's default 404 Page won't be displayed. - adding a route like
/:filter
does not work
Clear completed button
Displays the number of completed todos, and when clicked, removes them. Should be hidden when there are no completed todos.
Implemented but buggy: It should refresh the state on TodoListItemModel.on("create" ... )
and TodoListItemModel.on("delte" ... )
but it does not.
Editing
When editing mode is activated it will hide the other controls and bring forward an input that contains the todo title, which should be focused (.focus()). The edit should be saved on both blur and enter, and the editing class should be removed. Make sure to .trim() the input and then check that it's not empty. If it's empty the todo should instead be destroyed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.