dfd893ed6eb311a9b7c8844db7fec58642083c39
angie
Fri Jan 9 15:46:14 2015 -0800
New toy CGI hgChooseDb based on PPT mockup and ideas from Ann and Matt: popular species icons and autocomplete search for species, as an alternative to hgGateway's menus. Uses the new ReactJS/ImmutableJS framework.
hgChooseDb.c has three modes of operation:
- HTML output for simple main page with a
container to be filled in by javascript
- cart-based JSON responses to ajax requests from javascript (using hg/lib/cartJson.c)
- no cart; fast JSON responses to species-search autocomplete requests
hgChooseDb.jsx is the React/JSX UI view code, compiled to bundle/reactHgChooseDb.js.
hgChooseDbModel.js is a subclass of js/model/lib/ImModel.js that gets initial state
from the server and then responds to user actions.
diff --git src/hg/hgChooseDb/makefile src/hg/hgChooseDb/makefile
new file mode 100644
index 0000000..f3ebbb7
--- /dev/null
+++ src/hg/hgChooseDb/makefile
@@ -0,0 +1,15 @@
+include ../../inc/common.mk
+
+L += $(MYSQLLIBS) -lm
+MYLIBDIR = ../../lib/${MACHTYPE}
+MYLIBS = $(MYLIBDIR)/jkhgap.a ${MYLIBDIR}/jkweb.a
+
+A = hgChooseDb
+O = $A.o
+
+include ../../inc/cgi_build_rules.mk
+
+compile:: $O
+ ${CC} $O ${MYLIBS} ${L}
+ mv ${AOUT} $A${EXE}
+