| 1 |
Resources files are collected from their respective download places as follow: |
| 2 |
|
| 3 |
jqPlot: |
| 4 |
------- |
| 5 |
|
| 6 |
mkdir jqPlot-1.0.8/ && cd jqPlot-1.0.8/ |
| 7 |
wget http://www.jqplot.com/download/jquery.jqplot.1.0.8r1250.tar.gz |
| 8 |
tar xzf jquery.jqplot.1.0.8r1250.tar.gz |
| 9 |
cp dist/jquery.jqplot.js /home/git/pgbadger/resources/ |
| 10 |
cp dist/jquery.jqplot.css /home/git/pgbadger/resources/ |
| 11 |
cp dist/jquery.js /home/git/pgbadger/resources/ |
| 12 |
cp dist/plugins/jqplot.pieRenderer.js /home/git/pgbadger/resources/ |
| 13 |
cp dist/plugins/jqplot.barRenderer.js /home/git/pgbadger/resources/ |
| 14 |
cp dist/plugins/jqplot.dateAxisRenderer.js /home/git/pgbadger/resources/ |
| 15 |
cp dist/plugins/jqplot.canvasTextRenderer.js /home/git/pgbadger/resources/ |
| 16 |
cp dist/plugins/jqplot.categoryAxisRenderer.js /home/git/pgbadger/resources/ |
| 17 |
cp dist/plugins/jqplot.canvasAxisTickRenderer.js /home/git/pgbadger/resources/ |
| 18 |
cp dist/plugins/jqplot.highlighter.js /home/git/pgbadger/resources/ |
| 19 |
cp dist/plugins/jqplot.cursor.js /home/git/pgbadger/resources/ |
| 20 |
cd .. |
| 21 |
|
| 22 |
Bootstrap: |
| 23 |
---------- |
| 24 |
|
| 25 |
wget https://github.com/twbs/bootstrap/archive/v3.3.7.zip |
| 26 |
unzip v3.3.7.zip bootstrap-3.3.7/dist/js/bootstrap.js bootstrap-3.3.7/dist/css/bootstrap.css |
| 27 |
|
| 28 |
cp bootstrap-3.3.7/dist/js/bootstrap.js /home/git/pgbadger/resources/ |
| 29 |
cp bootstrap-3.3.7/dist/css/bootstrap.css /home/git/pgbadger/resources/ |
| 30 |
|
| 31 |
Fontawesome: |
| 32 |
------------ |
| 33 |
http://fontawesome.io/3.2.1/assets/font-awesome.zip |
| 34 |
unzip font-awesome.zip font-awesome/css/font-awesome.css font-awesome/fonts/fontawesome-webfont.ttf |
| 35 |
|
| 36 |
cp font-awesome/css/font-awesome.css /home/git/pgbadger/resources/fontawesome.css |
| 37 |
cp font-awesome/font/FontAwesome.otf /home/git/pgbadger/resources/font/ |
| 38 |
|
| 39 |
Note that the hyphen is removed from font-awesome.css during the copy for |
| 40 |
backward compatibility. |
| 41 |
|
| 42 |
bean: |
| 43 |
----- |
| 44 |
|
| 45 |
wget https://github.com/fat/bean/archive/v1.0.14.tar.gz |
| 46 |
tar xzf v1.0.14.tar.gz bean-1.0.14/src/bean.js |
| 47 |
|
| 48 |
cp bean-1.0.14/src/bean.js /home/git/pgbadger/resources/ |
| 49 |
|
| 50 |
underscore.js: |
| 51 |
-------------- |
| 52 |
|
| 53 |
wget http://underscorejs.org/underscore.js -O /home/git/pgbadger/resources/underscore.js |
| 54 |
|
| 55 |
Then file are minified using yui-compressor and the font embedded using the |
| 56 |
Perl script tools/updt_embedded_rsc.pl This script also embedded all minified |
| 57 |
files into the pgbadger Perl script. |
| 58 |
|