Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Created September 8, 2019 16:48
Show Gist options
  • Select an option

  • Save yetanotherchris/4d79373630b3d0c9e720b53721e19639 to your computer and use it in GitHub Desktop.

Select an option

Save yetanotherchris/4d79373630b3d0c9e720b53721e19639 to your computer and use it in GitHub Desktop.
Deconstructing views/components/services needed in Roadkill V3

This is based off the UI of Roadkill v2, with no new functionality or design.

Editor view

Global UI elements

These options could be in a hamburger bar:

  1. Page last edited by ____ on _____
  2. Page info dialog - added by + on, last edit by + on, title, tags, dates
  3. Edit link
  4. History link
  5. Delete link (admin)
  6. Add link

Homepage

  1. Finds the view template (e.g. template.hbs - handlebars template) in a templates folder
  2. Finds a page with the "homepage" tag
  3. Grabs the markdown (or HTML) from the API. Could render the markdown on the client side
  4. Renders the global UI elements

Content page

  1. Finds page id from URL via the API
  2. Grabs the markdown (or HTML) from the API. Could render the markdown on the client side
  3. Renders the global UI elements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment