reader: add styling and initial UI

Added styling to main PDF reading page and the PDF list page.  Also some
additional buttons in the PDF reading page, including an "Open" link to
get back to the list of PDFs (a stub for usability probably to be
replaced later) and the "Link" button that will add or remove the reader
as a member of the linked set for reading.  For now, the link button
connects to a channel that toggles the internal state, but does nothing
more.

Change-Id: I6295128cf19eb0355d0c46ab75a3a8f3fb2de1a1
7 files changed
tree: 43dff5b80e7e7eaa1052e11bd5103732550792ec
  1. browser/
  2. lib/
  3. public/
  4. test/
  5. .gitignore
  6. .jshintignore
  7. .jshintrc
  8. .v23ignore
  9. AUTHORS
  10. CONTRIBUTORS
  11. LICENSE
  12. Makefile
  13. package.json
  14. PATENTS
  15. README.md
  16. VERSION
README.md

Reader

An example PDF reader using Vanadium.

Development

Dependencies

If you have a $V23_ROOT setup you can install Node.js from $V23_ROOT/third_party by running:

v23 profile install nodejs

Optionally, it is possible to use your own install of Node.js if you would like to use a more recent version.

Building

The Makefile is setup to handle all dependencies once Node.js is installed. The default make task will install any modules listed in the package.json and build a browser bundle from browser/index.js via browserify.

make

It is possible to have the build happen automatically anytime a JavaScript file changes using the watch tool:

watch make

Running locally

To run a local dev server use:

make start

If you would like to change the host and or port that is used:

make start port=<port> host=<host>