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

Switch to jqeventrouter for routing #11

Merged
merged 6 commits into from
Feb 10, 2016
Merged

Conversation

flimzy
Copy link
Contributor

@flimzy flimzy commented Feb 10, 2016

This simplifies logic, by getting rid of my horrendously complex routing, and using a more idiomatic approach, based on net/http routing methods.

  - The main routing functionality is moved to github.com/flimzy/eventrouter
  - App-specific functionality is being moved to webclient/controllers
* Stop passing around x/net/context.
  - Most of what that provides (per-request context) isn't relevant in an
    SPA, and it makes things messy
  - Instead, I've made certain sub-modules more stateful. This may need
    revisiting, especially to allow for tests.
* Moved some cordova logic to github.com/flimzy/go-cordova. If/how this
  module will exist in the future is a question.
* Add some General-purpose handlers:
 - One to strip #_=_ from Facebook redirect urls
 - One to ensure jQM events are only routed once
* Get rid of the 'state' module for now, just fall back to reading the cookie every time to see if a user is logged in
And properly clean up #_=_ in address bar
flimzy added a commit that referenced this pull request Feb 10, 2016
Switch to jqeventrouter for routing
@flimzy flimzy merged commit b73a2fe into FlashbackSRS:master Feb 10, 2016
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

Successfully merging this pull request may close these issues.

None yet

1 participant