Commit Graph

131 Commits

Author SHA1 Message Date
Nick Martin
d38efe6345 Rework reactive logic for new Sky.deps API. 2011-12-19 16:53:14 -08:00
Geoff Schmidt
8503c55453 even cleaner implementation of deps/session
eliminates 'once', easier to understand, saves a little memory
2011-12-19 16:39:28 -08:00
Geoff Schmidt
349d18df0c cosmetic 2011-12-19 16:39:28 -08:00
Geoff Schmidt
3666cff408 redo Sky.deps api for clarity and flexibility
especially the ability for the caller of monitor to grab the invalidation function
2011-12-19 16:39:28 -08:00
Geoff Schmidt
c13415b818 invalidations accumulate until flushed (or the event loop runs again)
this way, when you use find instead of findLive, liveui doesn't do O(n^2) work when a subscription returns n records (it used to, because it'd render the list with 1 element, then with 2, …, then with n)

flush guarantees that all changes have been committed to the DOM, for your jquerying pleasure

experimental - needs docs
2011-12-19 16:39:28 -08:00
Geoff Schmidt
e57b93a1b8 coalesce redundant dependencies created by Session 2011-12-19 16:39:28 -08:00
Geoff Schmidt
74c42ccf4e make handlebars more robust to null/undefined 2011-12-19 16:38:21 -08:00
matt debergalis
1cfad0500e test commit 2011-12-16 17:41:25 -08:00
Nick Martin
60abb2090c Comment on constants per matt. 2011-12-15 23:59:57 -08:00
Nick Martin
9fbf4c7b6b Merge branch 'refs/heads/reconnect' 2011-12-15 21:45:22 -08:00
Nick Martin
cc60375468 Re-subscribe and reset the database when we reconnect. 2011-12-15 20:36:41 -08:00
Nick Martin
1801b33cf7 retransmit unacked messages when we reconnect again. 2011-12-15 16:48:03 -08:00
matt debergalis
7e7d3013c7 move restart_server out of closure 2011-12-15 16:18:52 -08:00
matt debergalis
10be9ed3d0 Merge branch 'deberg-misc' 2011-12-15 14:14:24 -08:00
matt debergalis
60c7ac32eb clean up deploy 2011-12-15 14:13:04 -08:00
matt debergalis
81c03785a0 stronger language about not for sharing in readme.md 2011-12-15 00:07:23 -08:00
matt debergalis
61dad1ad50 handle EADDRINUSE 2011-12-14 23:41:13 -08:00
Nick Martin
1e956fcfe7 Hook up reconnect function to actually do something. 2011-12-14 21:41:13 -08:00
Nick Martin
2c24b1edf0 Expose retry_time in status. 2011-12-14 20:42:13 -08:00
Nick Martin
916a1147fc Real retry timeout logic. 2011-12-14 19:33:10 -08:00
matt debergalis
a01fb670e5 Merge branch 'deploy-delete' 2011-12-14 18:48:47 -08:00
matt debergalis
f46d94c6cd skybreak deploy --delete
refactors all the deploy-related material into deploy.js
2011-12-14 18:47:31 -08:00
Geoff Schmidt
b3d3d7276d update the jquery 1.7.1
kills irritating deprecation warning in Chrome
2011-12-14 17:58:49 -08:00
Nick Martin
3787999ce8 Retry ourselves by starting a new socket.io connection each time. Still a WIP, but getting there. 2011-12-14 17:45:35 -08:00
Nick Martin
1bda75a203 Wire up reactivity to status(). 2011-12-13 21:55:46 -08:00
Nick Martin
e03e1d716e Merge branch 'reconnect' 2011-12-13 19:02:43 -08:00
Nick Martin
f549efd952 Remove namespace pollution. No functional changes, just cleanup. 2011-12-13 14:31:25 -08:00
Nick Martin
918d15afdc Factor socket.io into stream package on the server as well. Much cleaner now. 2011-12-13 13:40:13 -08:00
Nick Martin
46effaa9b3 Factor stream out of livedata. Client side only. No functional changes. 2011-12-12 20:56:12 -08:00
Geoff Schmidt
5d172d0ded rename renderlist 'query' option to 'selector'
for consistency with other APIs
2011-12-09 23:37:50 -08:00
Geoff Schmidt
d73a647bdd jquery cleanups. also, fix htmljs bug. 2011-12-09 23:15:14 -08:00
Geoff Schmidt
3ec06f7381 eliminate jquery dependency in template assembly 2011-12-09 20:45:11 -08:00
Nick Martin
584f62e254 Bump to version 0.0.40 v0.0.40 2011-12-09 16:47:52 -08:00
Geoff Schmidt
c6e4c46b14 liveui requires jquery 2011-12-09 16:39:11 -08:00
Nick Martin
56b9273680 IE8 fix. eval doesn't actually return a value. 2011-12-09 13:42:58 -08:00
Geoff Schmidt
8543df9649 use Sky.startup in todos 2011-12-09 13:14:01 -08:00
Nick Martin
3f2c867fff Also drop a tag in git as we cut a release. 2011-12-09 10:37:03 -08:00
Nick Martin
a0203c652c Merge branch 'password' 2011-12-08 23:23:21 -08:00
Nick Martin
db91d57ef4 Remove comment left over from debugging. 2011-12-08 23:20:45 -08:00
Nick Martin
8b985ec67b Factor duplicated validation code to one place. 2011-12-08 23:14:56 -08:00
Nick Martin
5293001ff5 Actually hash the users password like we said. 2011-12-08 23:14:56 -08:00
Nick Martin
feb11debf6 Close stdin in all the places we could have opened it. OH GOD IT BURNS MY EYES!!!! Asana ticket filed. 2011-12-08 23:14:56 -08:00
Nick Martin
23993ef88e Report deploy failure. 2011-12-08 23:14:56 -08:00
Nick Martin
3da54e9d07 Let you set a password with skybreak deploy. 2011-12-08 23:14:56 -08:00
Nick Martin
bfe5d34aa4 maybe_password-ify deploy and mongo. 2011-12-08 23:14:56 -08:00
Nick Martin
49ac3514ee Also use hostname constant for new mongo command. 2011-12-08 23:14:56 -08:00
Nick Martin
6314dd7509 Use prompt function for logs. 2011-12-08 23:14:56 -08:00
Nick Martin
4c0adda350 Add function to prompt for password if it is needed. 2011-12-08 23:14:56 -08:00
Nick Martin
16e9adb25c Move constant to shared file. 2011-12-08 23:14:56 -08:00
Geoff Schmidt
1332508840 Remove Sky.ui.focus
Nobody uses it, and it takes a selector, which is
a jquery dependency and is kind of weird
2011-12-08 22:01:48 -08:00