Commit Graph

105 Commits

Author SHA1 Message Date
Adam Goldsmith b6ab75b1aa Add back a common css file, use lower contrast color/background-color 2019-01-14 23:50:25 -05:00
Adam Goldsmith 3ae052c13c Editor: Add save button and rearange buttons a bit 2019-01-14 23:50:25 -05:00
Adam Goldsmith b0207e3f8b Move css to subdirectory in prep for page-specific css 2019-01-14 23:50:25 -05:00
Adam Goldsmith 63e82b4556 Use `textarea`s for block text 2019-01-14 23:50:25 -05:00
Adam Goldsmith 35973af7e3 Move deck files to 'decks' subdirectory and ignore 2019-01-14 23:50:25 -05:00
Adam Goldsmith 0a8a5f9573 Environment Template: Fix image placement 2019-01-14 23:50:25 -05:00
Adam Goldsmith 6d5196b1f1 Editor: hide things as per input JSON 2019-01-14 23:50:25 -05:00
Adam Goldsmith 13b3ed4c96 Use JSON templates for deck info 2019-01-14 23:50:25 -05:00
Adam Goldsmith d12ab839aa Editor: Load existing input JSON if it exists 2019-01-14 23:50:25 -05:00
Adam Goldsmith 2bc6c4b58b Allow downloading input JSONs 2019-01-14 23:50:25 -05:00
Adam Goldsmith 6f5ab8b595 Add basic card editing 2019-01-14 23:50:25 -05:00
Adam Goldsmith 7a6ecc2202 Allow for newlines in wrapped text 2019-01-14 23:50:25 -05:00
Adam Goldsmith dfd6496513 handleUpload: make JSON, write to useful filenames, and add to decks 2019-01-14 23:50:25 -05:00
Adam Goldsmith 617176ed14 Simplify server switch/case and check if deck in decks list 2019-01-14 23:50:25 -05:00
Adam Goldsmith 4cedb447dd Set version, license, and author in package.json 2019-01-14 23:50:25 -05:00
Adam Goldsmith 26fa5f3398 Move playfield and editor html to separate files 2019-01-14 23:50:25 -05:00
Adam Goldsmith afcb1851cc Flatten editor.js code 2019-01-14 23:50:25 -05:00
Adam Goldsmith d43804896d Add jshint header for playfield.js 2019-01-14 23:50:25 -05:00
Adam Goldsmith c15494049d Add .gitignore 2019-01-14 23:50:25 -05:00
Adam Goldsmith 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
Adam Goldsmith 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
Adam Goldsmith 4133ba8e7c Add default text for discard pile 2019-01-14 23:50:25 -05:00
Adam Goldsmith 631edefc9c Allow spaces in deck names 2019-01-14 23:50:25 -05:00
Adam Goldsmith 77ca7ec536 Fix deckWidth->deckHeight typo 2019-01-14 23:50:25 -05:00
Adam Goldsmith bb192cf535 Simplify access to deckJSON a bit
only needed a subsection
2019-01-14 23:50:25 -05:00
Adam Goldsmith 6e6f3189e1 Allow adding to bottom of pile by holding shift 2019-01-14 23:50:25 -05:00
Adam Goldsmith 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
Adam Goldsmith 7f656842e5 Add page titles 2019-01-14 23:50:25 -05:00
Adam Goldsmith 5c4936155e Use a list for deck index
Not terribly useful yet, but easier to manually add to
2019-01-14 23:50:25 -05:00
Adam Goldsmith 1aa50927a8 Minor style fixes 2019-01-14 23:50:25 -05:00
Adam Goldsmith c577e1c872 Use real width of SVGs for translation in editor 2019-01-14 23:50:25 -05:00
Adam Goldsmith 4a90b4f9f1 Allow re-arranging cards in piles and properly draw things in that view 2019-01-14 23:50:25 -05:00
Adam Goldsmith 9d07b4f0c5 Add shake animation for shuffling piles 2019-01-14 23:50:25 -05:00
Adam Goldsmith 7bdbc538e3 Rearrange text in environment/card so order matches layout 2019-01-14 23:50:25 -05:00
Adam Goldsmith 12f8147cea Indent environment/card 2019-01-14 23:50:25 -05:00
Adam Goldsmith a843c0e0f2 Use linear gradient for text in environment/card 2019-01-14 23:50:25 -05:00
Adam Goldsmith 38e17c0622 Really basic client-side card generation 2019-01-14 23:50:25 -05:00
Adam Goldsmith 61f2851246 Move client js to 'js' subfolder, rename script.js to playfield.js 2019-01-14 23:50:25 -05:00
Adam Goldsmith 4d514c2f37 Provide a search box for filtering cards in pile list 2019-01-14 23:50:25 -05:00
Adam Goldsmith 3b62ed0244 Make scaling happen on doubletap, and be more persistent 2019-01-14 23:50:25 -05:00
Adam Goldsmith 07648ce1c5 Prevent right click context menu
Chrome (again) makes a context menu when a touch pointer is
held. We'll have none of that
2019-01-14 23:50:25 -05:00
Adam Goldsmith fc23e7f2ef Disable touch actions on all elements, except vertical scroll
disables stupid chrome gestures
2019-01-14 23:50:25 -05:00
Adam Goldsmith 2b71ea58ce Move pile shuffle from click listener to interact.js tap event 2019-01-14 23:50:25 -05:00
Adam Goldsmith 068ee81df9 Fix contentType -> Content-Type 2019-01-14 23:50:25 -05:00
Adam Goldsmith acb6c4365e Minor fixes and cleanups 2019-01-14 23:50:25 -05:00
Adam Goldsmith d2aab7a920 Add modal pile listing 2019-01-14 23:50:25 -05:00
Adam Goldsmith b3d8ea8fac Center align text in piles 2019-01-14 23:50:25 -05:00
Adam Goldsmith fccc4e887f Fix card backgroundPosition in Chrome
Apperently, in Firefox you can get the style before appending, whereas
in Chrome you cannot
2019-01-14 23:50:25 -05:00
Adam Goldsmith dd94513736 Shuffle decks on click 2019-01-14 23:50:25 -05:00
Adam Goldsmith 345a86bfa6 Set correct name when updating pile text 2019-01-14 23:50:25 -05:00