Commit 427bac15a573a045a59b0663e811821492c37acd
1 parent
c34269fa26
Exists in
master
Screenshots for existing web pages
Showing 2 changed files with 45 additions and 1 deletions Inline Diff
Makefile
View file @
427bac1
PNGS = built/use_cases_diagram.png built/schema_diagram.png built/schema_graph.png | 1 | 1 | PNGS = built/use_cases_diagram.png built/schema_diagram.png built/schema_graph.png | |
PDFS = built/DesignUseCases.pdf built/screen_sequence_diagram.pdf | 2 | 2 | PDFS = built/DesignUseCases.pdf built/screen_sequence_diagram.pdf | |
3 | 3 | |||
SCREEN_SEQUENCE_DOTS = $(wildcard screen_sequence_diagrams/*.dot) | 4 | 4 | SCREEN_SEQUENCE_DOTS = $(wildcard screen_sequence_diagrams/*.dot) | |
SCREEN_SEQUENCE_PNGS = $(patsubst screen_sequence_diagrams/%,built/%,$(patsubst %.dot,%.png,$(SCREEN_SEQUENCE_DOTS))) | 5 | 5 | SCREEN_SEQUENCE_PNGS = $(patsubst screen_sequence_diagrams/%,built/%,$(patsubst %.dot,%.png,$(SCREEN_SEQUENCE_DOTS))) | |
6 | 6 | |||
all: built/ $(PNGS) $(PDFS) | 7 | 7 | all: built/ $(PNGS) $(PDFS) built/screenshots/ | |
8 | 8 | |||
built/: | 9 | 9 | built/: | |
mkdir -p built | 10 | 10 | mkdir -p built | |
11 | 11 | |||
built/schema_diagram.png: | 12 | 12 | built/schema_diagram.png: | |
sqlt-diagram --color -c 3 -t png -o built/schema_diagram.png --gutter 60 --from PostgreSQL db_schema.sql --title "Flashy" | 13 | 13 | sqlt-diagram --color -c 3 -t png -o built/schema_diagram.png --gutter 60 --from PostgreSQL db_schema.sql --title "Flashy" | |
14 | 14 | |||
built/schema_graph.png: | 15 | 15 | built/schema_graph.png: | |
sqlt-graph -o built/schema_graph.png --from PostgreSQL db_schema.sql | 16 | 16 | sqlt-graph -o built/schema_graph.png --from PostgreSQL db_schema.sql | |
17 | 17 | |||
built/%.png: %.dot | 18 | 18 | built/%.png: %.dot | |
dot -Tpng -o $@ $< | 19 | 19 | dot -Tpng -o $@ $< | |
20 | 20 | |||
built/%.png: screen_sequence_diagrams/%.dot | 21 | 21 | built/%.png: screen_sequence_diagrams/%.dot | |
dot -Tpng -o $@ $< | 22 | 22 | dot -Tpng -o $@ $< | |
23 | 23 | |||
built/screen_sequence_diagram.pdf: built/ $(SCREEN_SEQUENCE_PNGS) | 24 | 24 | built/screen_sequence_diagram.pdf: built/ $(SCREEN_SEQUENCE_PNGS) | |
convert $(SCREEN_SEQUENCE_PNGS) built/screen_sequence_diagram.pdf | 25 | 25 | convert $(SCREEN_SEQUENCE_PNGS) built/screen_sequence_diagram.pdf | |
26 | 26 | |||
built/%.pdf: %.tex | 27 | 27 | built/%.pdf: %.tex | |
cd built/; pdflatex ../$< | 28 | 28 | cd built/; pdflatex ../$< | |
cd built/; pdflatex ../$< | 29 | 29 | cd built/; pdflatex ../$< | |
rm -f built/*.aux | 30 | 30 | rm -f built/*.aux | |
rm -f built/*.log | 31 | 31 | rm -f built/*.log | |
rm -f built/*.out | 32 | 32 | rm -f built/*.out | |
rm -f built/*.toc | 33 | 33 | rm -f built/*.toc |
ss_test.js
View file @
427bac1
File was created | 1 | //http://docs.casperjs.org/en/latest/modules/casper.html#captureselector | ||
2 | //Run with: casperjs --ssl-protocol=tlsv1 ss_test.js | |||
3 | ||||
4 | var casper = require('casper').create({ | |||
5 | viewportSize: {width: 800, height: 600} | |||
6 | }); | |||
7 | ||||
8 | casper.start().zoom(.9).thenOpen('https://flashy.cards/app/login', function() { | |||
9 | this.captureSelector('login.png','body' ); | |||
10 | }).thenOpen('https://flashy.cards/app/requestpasswordreset', function() { | |||
11 | this.captureSelector('requestpasswordreset.png', 'body'); | |||
12 | }).thenOpen('https://flashy.cards/app/resetpassword', function() { | |||
13 | this.captureSelector('resetpassword.png', 'body'); | |||
14 | }).thenOpen('https://flashy.cards/app/addclass', function() { | |||
15 | this.captureSelector('addclass.png', 'body'); | |||
16 | }).thenOpen('https://flashy.cards/app/deck', function() { | |||
17 | this.captureSelector('deck.png', 'body'); | |||
18 | }).thenOpen('https://flashy.cards/app/feed', function() { | |||
19 | this.captureSelector('feed.png', 'body'); | |||
20 | }).thenOpen('https://flashy.cards/app/study', function() { | |||
21 | this.captureSelector('study.png', 'body'); | |||
22 | }).thenOpen('https://flashy.cards/app/flashcard', function() { | |||
23 | this.captureSelector('flashcard.png', 'body'); | |||
24 | }).thenOpen('https://flashy.cards/app/logout', function() { | |||
25 | this.captureSelector('logout.png', 'body'); | |||
26 | }).thenOpen('https://flashy.cards/app/verifyemail', function() { | |||
27 | this.captureSelector('verifyemail.png', 'body'); | |||
28 | }); | |||
29 | ||||
30 | /*casper.start().zoom(.9).thenOpen('https://flashy.cards/app/requestpasswordreset', function() { | |||
31 | this.captureSelector('requestPasswordReset.png','body' ); | |||
32 | });*/ | |||
33 |