Commit graph

140 commits

Author SHA1 Message Date
Eric House
1aa3ddcde0 cleanup and tweaks 2021-03-19 14:30:17 -07:00
Eric House
f48c7ce0f3 turn on COMMSACK 2021-03-19 14:29:49 -07:00
Eric House
e1bbd8f14f fix problem upgrading from old dicts storage path 2021-03-19 14:29:49 -07:00
Eric House
01c7bcf9e3 fix get-string dialog 2021-03-19 14:29:49 -07:00
Eric House
af5c116a78 new game choices stored for next time; change dicts path
Lots of tweaks. Main was from realizing that storing special-names files
and can-be-anything files in the same directory isn't good.
2021-03-19 14:29:49 -07:00
Eric House
b50ac07271 add option to disable hints 2021-03-19 14:29:49 -07:00
Eric House
585f55c040 use notifications and other tweaks 2021-03-19 14:29:49 -07:00
Eric House
0d7b81ac72 tweak UI for small screens 2021-03-19 14:29:49 -07:00
Eric House
1b0acd87ee prevent dbg and rel from conflicting 2021-03-19 14:29:49 -07:00
Eric House
99baf4bf3b pass dbg and host info via register 2021-03-19 14:29:49 -07:00
Eric House
d03b1e5d7a tweaks 2021-03-19 14:29:49 -07:00
Eric House
d6d613e2aa move Games button to far left
It'll be most often used
2021-03-19 14:29:49 -07:00
Eric House
bf88c000b7 fix mempool tracking bug 2021-03-19 14:29:49 -07:00
Eric House
8b26d6bc4e plug a leak 2021-03-19 14:29:48 -07:00
Eric House
f3b76da8e1 add more info to game "buttons"
Toward a games-list substitute. New game_summarize method will get
fleshed out and eventually replace what's in jni?
2021-03-19 14:29:48 -07:00
Eric House
8c920d6537 don't complain of bad mqtt when cancelled 2021-03-19 14:29:48 -07:00
Eric House
502d58df6f offer lang name (not locale) in new game dialog 2021-03-19 14:29:48 -07:00
Eric House
3c770e023f also grab native wordlist 2021-03-19 14:29:48 -07:00
Eric House
1cfefc3671 improve startup/new user
Ask for username and download a wordlist on startup
2021-03-19 14:29:48 -07:00
Eric House
d9ebf69ab5 route logs to console.log, not .error 2021-03-19 14:29:48 -07:00
Eric House
e61e1e9fb2 set newgame choices to defaults 2021-03-19 14:29:48 -07:00
Eric House
b0cc6dd744 clear name on delete; remove logging 2021-03-19 14:29:48 -07:00
Eric House
21b8cc0d95 store langauge name, display in title 2021-03-19 14:29:48 -07:00
Eric House
575e61059c make dict alloc its own storage
having it keep a ptr passed in is dumb
2021-03-19 14:29:48 -07:00
Eric House
829242c9bb fix to deal with failed downloads 2021-03-19 14:29:48 -07:00
Eric House
52b1300d90 cleanup; remove dead code 2021-03-19 14:29:48 -07:00
Eric House
598565836d separate indexeddb filesystems for dbg and rel 2021-03-19 14:29:20 -07:00
Eric House
ef673d8df0 prune some logging 2021-03-19 14:29:20 -07:00
Eric House
c859caae8d cleanup (and get rid of constant JS error) 2021-03-19 14:29:20 -07:00
Eric House
430b6894f0 correctly render utf
Was using the wrong API. Also upgraded font to DejaVu Sans
2021-03-19 14:29:20 -07:00
Eric House
f0d8a71deb split dict faces using js so utf8 chars are ok
As with java, the platform knows utf-8 better than vanilla C, so use a
JS inlined function to split a binary stream into its "face" components.
2021-03-19 14:29:20 -07:00
Eric House
b3e4bc24af remove dead file 2021-03-19 14:28:34 -07:00
Eric House
c19d82541d allow language selection in newgame dialog 2021-03-19 14:28:34 -07:00
Eric House
4f524d0bb0 download wordlists when needed for invitation 2021-03-19 14:28:34 -07:00
Eric House
3c0edb3531 use constant consistently 2021-03-19 14:27:04 -07:00
Eric House
39be910b13 tweaks 2021-03-19 14:27:04 -07:00
Eric House
567c3dbf9e show mempool stats (DEBUG builds) 2021-03-19 14:27:04 -07:00
Eric House
4937d13273 use indexeddb for storage 2021-03-19 14:27:04 -07:00
Eric House
2a6931fdcf add and start using indexeddb via emscripten APIs
Replace a couple of load/store actions with new APIs that do so
asynchronously (using indexeddb underneath, via emscripten APIs.)
Required restructuring how app starts. More changes to come. The idea is
to replace wordlist storage: this'll keep 'em smaller and not require
conversion to string.
2021-03-19 14:27:04 -07:00
Eric House
55f590ca0b choose the smallest dict available
I'm running out of memory when using the largest English
dicts. Something other than LocalStorage will have to be used for
Polish, but for now limp along with smaller wordlists.
2021-03-19 14:27:04 -07:00
Eric House
dd78abb116 separate dbg and rel directories 2021-03-19 14:27:04 -07:00
Eric House
664913b2eb fix NPE when len not initialized
Duh....
2021-03-19 14:27:04 -07:00
Eric House
d5e7dc4c97 game from a downloaded wordlist works!!!! 2021-03-19 14:27:04 -07:00
Eric House
5e9863adaf snapshot: downloading wordlist seems to work 2021-03-19 14:27:04 -07:00
Eric House
2ab2f5642e add name button and store wordlist
As a p.o.c., load the built-in wordlist into storage once, and
thereafter use it from there rather than as a file. Now it can go away
and a wordlist for the user's locale be downloaded and stored instead.
2021-03-19 14:27:04 -07:00
Eric House
c829017150 comment out logging 2021-03-19 14:27:04 -07:00
Eric House
0508fe1418 hide device buttons sometimes 2021-03-19 14:27:04 -07:00
Eric House
46ec7e5e3e remove removed file 2021-03-19 14:27:04 -07:00
Eric House
06b530c443 add notion of index to storage
I'm heading toward being able to know what all the games are by how
they're stored in a xplatform way. This is a start. Adding a second key
to storage, and looking at grouping everything where one key or the
other matches.
2021-03-19 14:27:04 -07:00
Eric House
39161a1170 just some notes 2021-03-19 14:27:04 -07:00