Commit Graph

77 Commits

Author SHA1 Message Date
127394a729 Send the correct raw TTS json when the TTS output button is pressed 2019-01-14 23:50:25 -05:00
06d5af2e9e Add some example input jsons 2019-01-14 23:50:25 -05:00
00f0c17c24 Add some basic css 2019-01-14 23:50:25 -05:00
8ac026767a Add URL to README 2019-01-14 23:50:25 -05:00
0e5239734a Add evaluations 2019-01-14 23:50:25 -05:00
a7afab93f9 Fix villain deck image tag 2019-01-14 23:50:25 -05:00
11e86330b6 Fix Face URI quoting 2019-01-14 23:50:25 -05:00
6deeba8e25 Add basic README 2019-01-14 23:50:25 -05:00
e4819c1f26 Further fix server deck JSON generation 2019-01-14 23:50:25 -05:00
7c999e0dfd Allow for tap to "flip" cards with two states 2019-01-14 23:50:25 -05:00
7ddb8290b0 Playfield: Allow decks with spaces in name 2019-01-14 23:50:25 -05:00
b435916f32 Switch Playfield to use Fetch instead of XMLHTTPRequest 2019-01-14 23:50:25 -05:00
08e5a8f376 Partially fix server side deck generation for heros/villains 2019-01-14 23:50:25 -05:00
25ab1118bf Remove margin in rendered deck image 2019-01-14 23:50:25 -05:00
933c275243 Add support for hero and villain decks
Should definitely have been smaller commits, but oh well, too lazy to
split them up now

important note: switched editor from XMLHttpRequest to fetch
2019-01-14 23:50:25 -05:00
7b3ca422c0 Add a cruddy handler for prompt when unload "unsaved changes" thing 2019-01-14 23:50:25 -05:00
dd76936478 Allow changing the type of deck after generation 2019-01-14 23:50:25 -05:00
f70af7cc02 Fix image edit not working in Chrome 2019-01-14 23:50:25 -05:00
4193ae14c9 Add jshit options for editor 2019-01-14 23:50:25 -05:00
fe1d2ecd4a Allow for downloading the input json from the editor 2019-01-14 23:50:25 -05:00
ae1517a717 Add basic deck-only input.json for hero and villain 2019-01-14 23:50:25 -05:00
b0ebbf2c62 Clean up all SVGs and prep villain and hero for adding 2019-01-14 23:50:25 -05:00
b6ab75b1aa Add back a common css file, use lower contrast color/background-color 2019-01-14 23:50:25 -05:00
3ae052c13c Editor: Add save button and rearange buttons a bit 2019-01-14 23:50:25 -05:00
b0207e3f8b Move css to subdirectory in prep for page-specific css 2019-01-14 23:50:25 -05:00
63e82b4556 Use textareas for block text 2019-01-14 23:50:25 -05:00
35973af7e3 Move deck files to 'decks' subdirectory and ignore 2019-01-14 23:50:25 -05:00
0a8a5f9573 Environment Template: Fix image placement 2019-01-14 23:50:25 -05:00
6d5196b1f1 Editor: hide things as per input JSON 2019-01-14 23:50:25 -05:00
13b3ed4c96 Use JSON templates for deck info 2019-01-14 23:50:25 -05:00
d12ab839aa Editor: Load existing input JSON if it exists 2019-01-14 23:50:25 -05:00
2bc6c4b58b Allow downloading input JSONs 2019-01-14 23:50:25 -05:00
6f5ab8b595 Add basic card editing 2019-01-14 23:50:25 -05:00
7a6ecc2202 Allow for newlines in wrapped text 2019-01-14 23:50:25 -05:00
dfd6496513 handleUpload: make JSON, write to useful filenames, and add to decks 2019-01-14 23:50:25 -05:00
617176ed14 Simplify server switch/case and check if deck in decks list 2019-01-14 23:50:25 -05:00
4cedb447dd Set version, license, and author in package.json 2019-01-14 23:50:25 -05:00
26fa5f3398 Move playfield and editor html to separate files 2019-01-14 23:50:25 -05:00
afcb1851cc Flatten editor.js code 2019-01-14 23:50:25 -05:00
d43804896d Add jshint header for playfield.js 2019-01-14 23:50:25 -05:00
c15494049d Add .gitignore 2019-01-14 23:50:25 -05:00
2b9139dd66 Load more stuff from deck JSON
actually uses deck number and FaceURL

preperation for arbitrary decks (from TTS mods)
also changes to send only the deck part of the JSON
2019-01-14 23:50:25 -05:00
6619e20f4a Use PhantomJS to render PNGs from uploaded files
Not in a useful place yet, but hey: progress
2019-01-14 23:50:25 -05:00
4133ba8e7c Add default text for discard pile 2019-01-14 23:50:25 -05:00
631edefc9c Allow spaces in deck names 2019-01-14 23:50:25 -05:00
77ca7ec536 Fix deckWidth->deckHeight typo 2019-01-14 23:50:25 -05:00
bb192cf535 Simplify access to deckJSON a bit
only needed a subsection
2019-01-14 23:50:25 -05:00
6e6f3189e1 Allow adding to bottom of pile by holding shift 2019-01-14 23:50:25 -05:00
d5b0b5ffee Make pile list behavior a bit less dumb
- drag and drop doesn't jump all over the place
 - can't drag cards from list into piles
2019-01-14 23:50:25 -05:00
7f656842e5 Add page titles 2019-01-14 23:50:25 -05:00