commit | 361018df4295a9849e7a0c15458b1b2d5521872c | [log] [tgz] |
---|---|---|
author | Jeffrey Nichols <jwnichols@google.com> | Mon Aug 24 15:58:17 2015 -0700 |
committer | Jeffrey Nichols <jwnichols@google.com> | Mon Aug 24 15:58:17 2015 -0700 |
tree | 43dff5b80e7e7eaa1052e11bd5103732550792ec | |
parent | 7fae84c6d6c24e711f6378940e7a541ba99f2425 [diff] |
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
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 install nodejs
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>