| 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/pgcluu/resources/ |
| 10 |
cp dist/jquery.jqplot.css /home/git/pgcluu/resources/ |
| 11 |
cp dist/jquery.js /home/git/pgcluu/resources/ |
| 12 |
cp dist/plugins/jqplot.pieRenderer.js /home/git/pgcluu/resources/ |
| 13 |
cp dist/plugins/jqplot.barRenderer.js /home/git/pgcluu/resources/ |
| 14 |
cp dist/plugins/jqplot.dateAxisRenderer.js /home/git/pgcluu/resources/ |
| 15 |
cp dist/plugins/jqplot.canvasTextRenderer.js /home/git/pgcluu/resources/ |
| 16 |
cp dist/plugins/jqplot.categoryAxisRenderer.js /home/git/pgcluu/resources/ |
| 17 |
cp dist/plugins/jqplot.canvasAxisTickRenderer.js /home/git/pgcluu/resources/ |
| 18 |
cp dist/plugins/jqplot.highlighter.js /home/git/pgcluu/resources/ |
| 19 |
cp dist/plugins/jqplot.cursor.js /home/git/pgcluu/resources/ |
| 20 |
cp dist/plugins/jqplot.canvasAxisLabelRenderer.js /home/git/pgcluu/resources/ |
| 21 |
cd .. |
| 22 |
|
| 23 |
Bootstrap: |
| 24 |
---------- |
| 25 |
|
| 26 |
wget https://github.com/twbs/bootstrap/archive/v3.3.7.zip |
| 27 |
unzip v3.3.7.zip bootstrap-3.3.7/dist/js/bootstrap.js bootstrap-3.3.7/dist/css/bootstrap.css |
| 28 |
|
| 29 |
cp bootstrap-3.3.7/dist/js/bootstrap.js /home/git/pgcluu/resources/ |
| 30 |
cp bootstrap-3.3.7/dist/css/bootstrap.css /home/git/pgcluu/resources/ |
| 31 |
|
| 32 |
Bootstrap DateTimePicker: |
| 33 |
------------------------- |
| 34 |
|
| 35 |
wget https://github.com/smalot/bootstrap-datetimepicker/archive/master.zip |
| 36 |
unzip master.zip |
| 37 |
cp bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.css /home/git/pgcluu/resources/ |
| 38 |
cp bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js /home/git/pgcluu/resources/ |
| 39 |
|
| 40 |
Fontawesome: |
| 41 |
------------ |
| 42 |
http://fontawesome.io/3.2.1/assets/font-awesome.zip |
| 43 |
unzip font-awesome.zip font-awesome/css/font-awesome.css font-awesome/fonts/fontawesome-webfont.ttf |
| 44 |
|
| 45 |
cp font-awesome/css/font-awesome.css /home/git/pgcluu/resources/fontawesome.css |
| 46 |
cp font-awesome/font/FontAwesome.otf /home/git/pgcluu/resources/font/ |
| 47 |
|
| 48 |
Note that the hyphen is removed from font-awesome.css during the copy for |
| 49 |
backward compatibility. |
| 50 |
|
| 51 |
bean: |
| 52 |
----- |
| 53 |
|
| 54 |
wget https://github.com/fat/bean/archive/v1.0.14.tar.gz |
| 55 |
tar xzf v1.0.14.tar.gz bean-1.0.14/src/bean.js |
| 56 |
|
| 57 |
cp bean-1.0.14/src/bean.js /home/git/pgcluu/resources/ |
| 58 |
|
| 59 |
underscore.js: |
| 60 |
-------------- |
| 61 |
|
| 62 |
wget http://underscorejs.org/underscore.js -O /home/git/pgcluu/resources/underscore.js |
| 63 |
|
| 64 |
sorttable.js: |
| 65 |
------------- |
| 66 |
|
| 67 |
wget https://kryogenix.org/code/browser/sorttable/sorttable.js -O /home/git/pgcluu/resources/sorttable.js |
| 68 |
|
| 69 |
w3.js: |
| 70 |
------ |
| 71 |
|
| 72 |
wget https://www.w3schools.com/lib/w3.js -O /home/git/pgcluu/resources/w3.js |
| 73 |
|
| 74 |
Then file are minified using yui-compressor and the font embedded using the |
| 75 |
Perl script tools/updt_embedded_rsc.pl This script also embedded all minified |
| 76 |
files into the pgcluu Perl script and copy those files into the cgi-bin/resources/ |
| 77 |
directory. |
| 78 |
|
| 79 |
|