Task #2020
Modulalize view code
Start date:
09/08/2017
Due date:
% Done:
100%
Description
Switch to Backbone or Vue.js
Subtasks
Associated revisions
Removing unnecessary functions
Reference #2020
Removing unnecessary functions
Reference #2020
Added new about dialog modal
Reference #2020
Added new about dialog modal
Reference #2020
Broke the riot tags into a separate file
Reference #2020
Broke the riot tags into a separate file
Reference #2020
History
#2 Updated by Luke Murphey over 7 years ago
#3 Updated by Luke Murphey over 7 years ago
Possible implementation:
Phase 1:- About dialog
- Content me dialog
- Wiki dialog
- Work info dialog
- Content view (could make loading dual works possible)
- Select work dialog
#4 Updated by Luke Murphey over 7 years ago
Some fixes needed:
- Need space following the progress bar
- Need to show the title even if there is no section info
- Fix the info dialog
#5 Updated by Luke Murphey over 7 years ago
- Target version changed from 1.6 to 2.0
#6 Updated by Luke Murphey over 7 years ago
- Reader view
- Work view
- Download ebook view
- Search view
- Search results
- Search result
- Search results
- Library view
- About view
- Wiki info lookup view
- Work info lookup view
#7 Updated by Luke Murphey over 7 years ago
Questions about riot:
- How do I call a function in the module (like opening a dialog)
- What directory should I put the tags into?
- How do you pass arguments to a riot tag?
- How do I load riot JS via require
- Have to make riot global in scope for it to load
- See also https://stackoverflow.com/questions/43193538/unable-to-require-tag-on-server-side-in-riot-js
- I might be able to do this using this technique: https://stackoverflow.com/questions/22210144/how-do-i-export-a-global-variable-from-require-js
- Can a custom tag be included in another tag in a loop?
- Can't get riot to load a nested tag
- Using a mount call within the nesting tag
- Using a mount call within the main code JS (that loads the nesting tag)
- https://codepen.io/marcusstenbeck/pen/aOzoOv
- Can't get riot to load a nested tag
- How can I pass data from an API call down to a tag via scripting?
- Can wire up handlers like this: https://github.com/riot/riot/issues/1001
- How can I have a tag not render until it has data?
- How do I share code
- Use mixins: http://riotjs.com/guide/#mixins
- How do I use if branches?
#8 Updated by Luke Murphey over 7 years ago
Trying to figure out a way to hand results to the searchresults tag.
#9 Updated by Luke Murphey over 7 years ago
What I like:
- Components are self-contained
- The shared code for the observable
- The use of require.js loaded code where the dependency isn't in riot
The riot tags are all over the place- These are being loaded from a central location now
- Tag not loading
- Tag was not registered (missing the script for riot/tag)
- Forgot to include the tag itself
#10 Updated by Luke Murphey about 6 years ago
- Status changed from New to Closed
- Assignee set to Luke Murphey