Permalink
Browse files

rename

  • Loading branch information...
yaronn committed Jul 18, 2015
1 parent af3b90e commit 1b940ddcc3100eb5228c06871862ee331d8e7bc8
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -35,7 +35,7 @@ DocumentViewer.prototype.renderPage = function(pageId, msg) {

//workaround
if (classname="bigtext" && !opts.font) {
opts.font = __dirname + "/../font/ter-u12n.json"
opts.font = __dirname + "/../lib/ter-u12n.json"
}

//console.log(JSON.stringify(opts, null, 2))
File renamed without changes.
@@ -18,7 +18,7 @@ Put a report on the web (e.g. gist) and view it via curl!

<img src="../docs/images/map.png" alt="term" width="800">

([xml source](https://raw.githubusercontent.com/yaronn/wopr/master/test/sample.xml))
([xml source](https://raw.githubusercontent.com/yaronn/wopr/master/examples/sample.xml))


You can view it from the web with no installation:
@@ -34,7 +34,7 @@ You can also use a local viewer rather than curl:

`````bash
$> npm install -g wopr
$> curl https://raw.githubusercontent.com/yaronn/wopr/master/test/sample.xml > wopr-sample.xml
$> curl https://raw.githubusercontent.com/yaronn/wopr/master/examples/sample.xml > wopr-sample.xml
$> wopr wopr-sample.xml
`````

@@ -54,15 +54,15 @@ Here is a simple report with a bar chart:

You have 3 options to view this report:

**option 1: POST it to the wopr online viewer**
**Option 1: POST it to the wopr online viewer**

`````bash
$> curl --data '<document><page><item col="0" row="0" colSpan="5" rowSpan="4"><bar maxHeight="5" data-titles="A,B,C" data-data="2,5,3" /></item></page></document>' tty.zone?cols=$((COLUMNS))
`````

If you experience firewall issues replace tty.zone with ec2-23-21-64-152.compute-1.amazonaws.com.

**option 2: POST it from external url**
**Option 2: POST it from external url**

Save the report content in some url (e.g. gist) and then:

@@ -74,7 +74,7 @@ Save the report content in some url (e.g. gist) and then:

If you experience firewall issues replace tty.zone with ec2-23-21-64-152.compute-1.amazonaws.com.

**option 3: via the local viewer**
**Option 3: Via the local viewer**

Save the report xml to report.xml and then:

@@ -159,7 +159,7 @@ Then here is how you would represent it in xml:
</widget>
`````

You can also look at the [demo xml](https://raw.githubusercontent.com/yaronn/wopr/master/test/sample.xml) to get more samples.
You can also look at the [demo xml](https://raw.githubusercontent.com/yaronn/wopr/master/examples/sample.xml) to get more samples.


##Viewing Reports##
@@ -33,7 +33,7 @@ http.createServer(function (req, res) {
else {
if (req.headers["user-agent"].indexOf('curl')!=-1) {

var content = fs.readFileSync(__dirname+'/../test/sample.xml')
var content = fs.readFileSync(__dirname+'/../examples/sample.xml')
present(req, res, content, function(err) {
if (err) console.log(new Error().stack)
if (err) return contrib.serverError(req, res, err)

0 comments on commit 1b940dd

Please sign in to comment.