Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 2.34 KB

README.md

File metadata and controls

36 lines (25 loc) · 2.34 KB

Democracy.io FE

Directory structure

Angular Components

  • address-form - Shows a form to enter the user's address
  • captcha - Shows a form displaying captcha's from reps, allowing the user to solve them and submit their message
  • legislator-picker - Displays a picker for selecting the reps to write to
  • message-form - Shows a form for writing a message and supplying metadata, e.g. topic, to send to their reps
  • send-message - Wraps the entire message send process and manages some routing logic and state
  • thanks - Shows a thanks dialog and social media links to share the app
  • api - API to talk to the dio backend
  • dio-data - Session storage wrapper, provides getter / setter access to app data, e.g. user's verified address
  • models-http-interceptor - Middleware to coerce API responses to model objects
  • api - Helpers for working with the API, e.g. model coercion
  • message-form - Helpers for working with the message form, mostly parsers to take legislator form elements and build usable data structures for rendering the corresponding form
  • page-location - Helpers for getting page and location state