From f4fe5559b13aacb4b247d3a850f88040af983e5d Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 27 Apr 2011 16:59:33 -0500 Subject: [PATCH] Reorganizing UI, adding TimelineListView. --- Makefile | 9 +++++---- doc/model.txt | 4 ++-- www/index.yaws | 28 ++++++++++++++------------- www/js/ts.js | 51 +++++++++++++++++++++++++++++++++++++++++++++----- yaws.dev.conf | 4 ++-- 5 files changed, 70 insertions(+), 26 deletions(-) diff --git a/Makefile b/Makefile index 091c664..08eebea 100644 --- a/Makefile +++ b/Makefile @@ -3,22 +3,23 @@ BEAMS = $(MODS:src/%.erl=ebin/%.beam) TEST_MODS = $(wildcard test/*.erl) TEST_BEAMS = $(TEST_MODS:test/%.erl=test/%.beam) TS_ROOT=/usr/lib/yaws/jdb-labs/timestamper +CWD = `pwd` default: compile all : compile test -compile : $(BEAMS) +compile : init $(BEAMS) -compile-test : $(TEST_BEAMS) +compile-test : init $(TEST_BEAMS) test : start-test-server run-test stop-test-server -test-shell : compile compile-test +test-shell : compile compile-test config-yaws-dev @echo Starting an interactive YAWS shell with test paths loaded. @yaws -i --pa test --id test_inst -run-test : compile compile-test +run-test : compile compile-test config-yaws-dev @erl -pa ./ebin -pa ./test -run timestamper_api_tests test -run init stop -noshell start-test-server : diff --git a/doc/model.txt b/doc/model.txt index ea15525..6c4932f 100644 --- a/doc/model.txt +++ b/doc/model.txt @@ -19,9 +19,9 @@ UserView Data Dependencies ----------------- UserModel: none -TimelineModel: UserModel +TimelineModel: none TimelineListModel: UserModel -EntryModel: TimelineModel +EntryModel: none EntryListModel: TimelineModel diff --git a/www/index.yaws b/www/index.yaws index aef2d14..d9041e3 100644 --- a/www/index.yaws +++ b/www/index.yaws @@ -23,7 +23,7 @@