This repository has been archived by the owner on Oct 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82dda7e
commit f106465
Showing
66 changed files
with
7,791 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
.PHONY: | ||
|
||
##ROOT = ~/repo/sgvizler | ||
|
||
UGLIFY = uglifyjs | ||
#../node_modules/uglify-js/bin/uglifyjs | ||
##--jscomp_off externsValidation \--externs lib/raphael-dracula.pack.js \--externs lib/jquery.min.js | ||
GCLOSURE = java -jar tool/google-closure/compiler.jar \ | ||
--compilation_level SIMPLE_OPTIMIZATIONS \ | ||
--js | ||
MINIFIER = $(UGLIFY) | ||
#MINIFIER = $(GCLOSURE) | ||
|
||
XSLT = java -jar bin/saxon9he.jar | ||
|
||
##JSDOCROOT = tool/jsdoc2 | ||
##JSDOC = $ java -jar $(JSDOCROOT)/jsrun.jar $(JSDOCROOT)/app/run.js | ||
|
||
|
||
JS_FILES = \ | ||
sgvizler.js \ | ||
lib/raphael-dracula.pack.js | ||
|
||
|
||
## Dependencies | ||
# util.js: [none] | ||
# namespace.js: util | ||
# registry.js util | ||
# logger.js util | ||
# charts.js util | ||
# datatables.js util | ||
# parser.js: namespace | ||
# loader.js util, logger, registry | ||
# defaults.js registry | ||
# Query.js util, namespace, parser, loader, logger, option | ||
# container.js util, loader, logger, Query | ||
# form.js util, namespace, registry, loader, Query | ||
sgvizler.pack.js: \ | ||
src/start.js.part \ | ||
src/core.js \ | ||
src/util.js \ | ||
src/namespace.js \ | ||
src/registry.js \ | ||
src/logger.js \ | ||
src/charts.js \ | ||
src/datatables.js \ | ||
src/parser.js \ | ||
src/loader.js \ | ||
src/defaults.js \ | ||
src/Query.js \ | ||
src/container.js \ | ||
src/form.js \ | ||
sgvizler.visualization.pack.js \ | ||
sgvizler.datatable.pack.js \ | ||
src/end.js.part | ||
|
||
sgvizler.visualization.pack.js: \ | ||
src/visualization/start.js.part \ | ||
$(wildcard src/visualization/*.js) \ | ||
src/visualization/end.js.part | ||
|
||
sgvizler.datatable.pack.js: \ | ||
src/datatable/start.js.part \ | ||
$(wildcard src/datatable/*.js) \ | ||
src/datatable/end.js.part | ||
|
||
sgvizler.js: sgvizler.pack.js Makefile | ||
cp -f $< $@ | ||
|
||
lib/raphael-dracula.pack.js: lib/raphael-1.3.1-min.js lib/dracula.js | ||
|
||
%.pack.js: | ||
@rm -f $@ | ||
cat $^ > $@ | ||
@chmod a-w $@ | ||
|
||
%.min.js: %.js | ||
@rm -f $@ | ||
$(MINIFIER) $< > $@ | ||
|
||
|
||
EXAMPLES = $(wildcard example.html/ex*.html) | ||
|
||
example.html: example.html/examples.xml example.html/examples.xsl | ||
cd example.html; $(XSLT) -s:examples.xml -xsl:examples.xsl | ||
|
||
example.html/%.html: example | ||
|
||
docs: yuidoc.json sgvizler.pack.js | ||
rm -fR $@/* | ||
yuidoc -o $@ -e '.part,.js' -t tool/yuidoc/theme -c $< src | ||
|
||
|
||
clean: | ||
rm -f sgvizler*.js | ||
rm $(EXAMPLES) | ||
|
||
all: \ | ||
$(JS_FILES) \ | ||
$(JS_FILES:.js=.min.js) \ | ||
docs \ | ||
example.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Thanks to | ||
|
||
- Magnus Stuhr for the sgvizler.visualization.DraculaGraph function. | ||
|
||
- Raoul Jean Pierre Bonnal for the sgvizler.datatable.pivot function. | ||
|
||
- Matteo Casadei for contributing to sgvizler.visualization.DraculaGraph. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
a:link{ | ||
color: #335; | ||
} | ||
a:visited{ | ||
color: #135; | ||
} | ||
a:hover{ | ||
color: #531; | ||
} | ||
|
||
dd{ | ||
margin-bottom: 8px; | ||
} | ||
|
||
div#logo img{ | ||
width: 59px; | ||
height: 55px; | ||
} | ||
|
||
div#logo{ | ||
font-size: 50%; | ||
float: right; | ||
} | ||
|
||
body#menu{ | ||
font-size: 75%; | ||
} | ||
|
||
body#menu ul{ | ||
padding: 0; | ||
margin: 0; | ||
margin-left: 15px; | ||
} | ||
|
||
|
||
#sgvzl_example_pre{ | ||
margin: 10px; | ||
padding: 20px; | ||
border: 1px solid #ccc; | ||
background-color: #eee; | ||
|
||
white-space: pre-wrap; /* CSS2.1 compliant */ | ||
white-space: -moz-pre-wrap; /* Mozilla-based browsers */ | ||
white-space: o-pre-wrap; /* Opera 7+ */ | ||
} | ||
|
||
#sgvzl_example_table{ | ||
width: 800px; | ||
height: 200px; | ||
} |
Oops, something went wrong.