release/projects/reader: componentization and page control

Added a page control component that allows the user to scroll through
the pages of the PDF being displayed.  Also componentized the file
picker widget and removed it from the pdf component.  Finally, some
small changes made to the existing PDF component and widget to enable
display of different pages.

Change-Id: Ia2bb067ef770a607958f2f1b244659fe1d11ff95
11 files changed
tree: 8b70f8d009fa258db728f38c0263a8e85ada31ce
  1. browser/
  2. public/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTORS
  6. LICENSE
  7. Makefile
  8. package.json
  9. PATENTS
  10. README.md
  11. 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 setup web

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>