commit | efca912a6b7abb4ff8d6f75f8821b29280392d61 | [log] [tgz] |
---|---|---|
author | Jeffrey Nichols <jwnichols@google.com> | Tue Jun 30 14:35:50 2015 -0700 |
committer | Jeffrey Nichols <jwnichols@google.com> | Tue Jun 30 14:37:55 2015 -0700 |
tree | 8b70f8d009fa258db728f38c0263a8e85ada31ce | |
parent | 6b90118f42b13d0c83d1b8b4782166555813cfdb [diff] |
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
An example PDF reader using Vanadium.
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.
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
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>