Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Componentize branch - planning and testing #46

Open
5 tasks
djplaner opened this issue Jul 11, 2021 · 1 comment
Open
5 tasks

Componentize branch - planning and testing #46

djplaner opened this issue Jul 11, 2021 · 1 comment

Comments

@djplaner
Copy link
Owner

djplaner commented Jul 11, 2021

Leave behind the mess of jQuery and 00s Javascript with a new design that

  1. Uses web components and contemporary JS to provide a flexible, platform independent tool
  2. Can work with the existing tweak code (i.e. not require changes) NOT GOING TO HAPPEN

Tasks

  • Plan initial operation
  • Test it
  • Plan conversion - including analysis of Card Interface
@djplaner
Copy link
Owner Author

Plan A

Tweak code stays the same

  • include content.js
  • call cardsInterface

Transform cardsInterface into

  • add a web component to the Card Interface item
  • use a Javascript object to create the Card Interface data structure
    • Eventually this becomes a factory that detects the context of the page and uses the correct data model
  • Pass it to the component (perhaps as singleton)

Question is whether we can include the components in the Javascript - perhaps having to change the tweak code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant