Commit Graph
60 Commits
Author SHA1 Message Date
Andrew Miner 7571815018 Restrict uploaded image size 2015-06-10 16:51:41 -07:00
Andrew Miner 9d0ce8547a Upload new/changed images to GitHub when saving MD 2015-06-09 15:41:04 -07:00
Andrew Miner 4e39b9bb0c Add error message and disabling of preview button 2015-06-08 12:27:36 -07:00
Andrew Miner 3535c19db0 Show loading state when checking for MD images 2015-06-08 10:45:35 -07:00
Andrew Miner 622f80d153 Use uploaded images in markdown preview 2015-06-08 09:01:53 -07:00
Andrew Miner 6e82194ad8 Add the ability to read a local file as base64 2015-06-07 17:48:08 -07:00
Andrew Miner 2227e81b8b Update image list to fetch images from GitHub 2015-06-07 14:13:30 -07:00
Andrew Miner dd760018df Add UI/models to allow uploading images 2015-06-05 22:47:40 -07:00
Andrew Miner bdec1643f8 Add meta description tags 2015-05-30 18:22:17 -07:00
Andrew Miner 775da32510 Always show the description section on item page 2015-05-29 18:01:15 -07:00
Andrew Miner 0b07bdb482 Update crafting page checks to fade in
Update the crafting page so that the check mark for each step only
appears when hovering over that step, and so that the check also has
some descriptive text helping the user understand what it does.
2015-05-29 12:49:13 -07:00
Andrew Miner a5a1322959 Clear user credentials when logging out 2015-05-14 17:16:51 -07:00
Andrew Miner 8efad2d6a1 Make the preview step preceed save 2015-05-14 11:36:13 -07:00
Andrew Miner aff4c18987 Auto-focus textarea when editing markdown 2015-05-14 10:49:18 -07:00
Andrew Miner 2b0584935c Bug: Ensure state happen at the correct times 2015-05-13 12:47:37 -07:00
Andrew Miner a545628e04 Bug: Prevent invalid UI states in markdown editor
When rapidly transitioning between various states, the markdown
editor could wind up with a weird mixture of UI elements showing as
some of transitions were dropped because they followed too quickly
on the heels of another transition.

This change fixes the problem by changing how the BaseController's
`hide` and `show` functions work. They now set a "target" state on
the element and, during each step of the animation, check whether
the target has changed. If so, the transition begins to work in
reverse to return to the prior state.
2015-05-13 09:12:44 -07:00
Andrew Miner 64274810d7 Fix programmer error in login flow 2015-05-11 12:08:59 -07:00
Andrew Miner 8c54231d52 Fix routing so both plain and .html routes work 2015-05-11 11:23:16 -07:00
Andrew Miner 23e98f5d31 Allow new item description files to be created 2015-05-11 09:20:42 -07:00
Andrew Miner 8eb5cef71b Allow submitting changes for item desc. to GitHub 2015-05-08 16:16:17 -07:00
Andrew Miner 8b94f432b0 Update MarkdownSectionController with support for editing
This allows the MarkdownSectionController and ItemPageController to
work together to begin an editing session for an item description.
2015-05-07 11:19:36 -07:00
Andrew Miner 54194d3f0a WIP 2015-05-05 14:01:39 -07:00
Andrew Miner b2320752f8 Tweaks style of markdown tables to auto-resize 2015-05-03 21:16:24 -07:00
Andrew Miner 8334012ea5 Switch to using "marked" as a markdown parser 2015-05-02 17:41:13 -07:00
Andrew Miner 930b8049a2 Convert site to a single JavaScript archive
* Convert build to use a single JavaScript file on the site (instead
  of downloading each library separately). This also means that all
  global variables (e.g., `$` for JQuery, `_` for Underscore.js) can
  be removed.
* Remove unused scripts and/or move them to a more appropriate repo
* Update the `deploy` script to work with CircleCI's automation
* Update markdown display code to allow images to be located with the
  markdown data files instead of the pre-rendered index pages
2015-04-29 19:58:53 -07:00
Andrew Miner 2d4f60abc2 Move mod content into a separate module 2015-04-27 13:30:38 -07:00
Andrew Miner 4ca72fe512 Update AdsenseController to show ads to fit space 2015-04-22 16:28:27 -07:00
Andrew Miner 37c9fe7502 Fix several small bugs
* Fix AddThis component not showing up by altering the URL they
  provide to use GET parameters instead of the hash component
* Fix a bug with saving the "have" items on the crafting page
2015-04-20 22:02:01 -07:00
Andrew Miner cc67fce5a2 Add "nothing" placeholder for empty inventories 2015-04-20 11:26:21 -07:00
Andrew Miner 01a137cdc6 Replace use of InventoryTableController
The `InventoryTableController` had been split off from the existing
`InventoryController` some time ago, but was never properly factored
not to share common code. This change elimiates it altogether in
favor of the newly re-vamped `InventoryController` which is now
flexible enough to be used in both places.
2015-04-20 11:10:42 -07:00
Andrew Miner 5b014c9921 Redesign the crafting page
This introduces the new crafting page design featuring a new vertical
layout and list display of all crafting steps. It also makes it easy
to move items between the have/need sections and even from each step
into your inventory (causing a new crafting plan to be created which
doesn't plan on making that item).

* Convert the `BaseController.hide` and `show` methods to be much
  more robust in the use of CSS transitions (using a timer in case a
  transition doesn't actually fire).
* Change `hide`/`show` to use events for communicating animation
  state instead of callbacks
* Convert several controllers to fire events for communication with
  parent controllers instead of accepting functions.
* Rewrite the `CraftPageController`, `CraftPage` model and related
  Jade/SCSS files to implement the new design.
* Alter the `InventoryController` and `StackController` to allow a
  variety of action buttons, and for the events from those action
  buttons to bubble up to parent controllers
* Add the `StepController` and its related model, template, and style
  sheet as part of the new craft page.
* Tweak the `ItemSelectorController` and related files to allow for
  a variety of styles for the launcher button
2015-04-20 09:17:58 -07:00
Andrew Miner 7288f25d7d Don't change stack quantity when not editable
When displaying an inventory list in read-only mode, it was possible
to reset the quantity to 9999 if the value was higher than that by
clicking the field. This accidentally triggered the validations
applied when editing the field even though editing wasn't possible.
2015-04-13 10:26:24 -07:00
Andrew Miner 78cc1bf297 Fix minor display issues with input quantities 2015-04-08 11:34:14 -07:00
Andrew Miner 144aa1bf32 Allow item stacks as input for recipes
* Create the SlotController and refactor it into the various places
  where a crafting grid or crafting output is displayed
* Update the Recipe model to allow each "input" stack to retain the
  count indicated in the data file. This required changing how a few
  other classes interact with it in order for them to get the full
  stack back again for each input (instead of just getting the item
  slug)
* Update the ModVersionParser to allow for full stacks to be given
  as input and refactored common code out for handling input/output/
  tools stacks
2015-04-07 19:21:02 -07:00
Andrew Miner 8aaf82db02 Use new item picker for inventory manipulations 2015-04-06 13:34:18 -07:00
Andrew Miner 136ebb4187 Add site-wide search function 2015-04-05 18:33:51 -07:00
Andrew Miner b79fa5a148 Don't add incorrect history state for external links 2015-04-04 18:17:15 -07:00
Andrew Miner f78bd3f8c5 Fix two bugs found by @TiuTalk
* When redirecting internal links, double-check that they actually
  are internal before doing so.
* Avoid double-adding items to the /browse mod list
2015-04-04 18:12:32 -07:00
Andrew Miner 0b043b9677 Use MarkdownSectionController on item page 2015-04-03 18:01:38 -07:00
Andrew Miner ad897b80c0 Complete the login feature 2015-04-01 13:31:07 -07:00
Andrew Miner 764f835698 Add first half of login process 2015-03-30 18:39:37 -07:00
Andrew Miner 873434e938 Refactoring tests and moving code to common module
1. All tests have been converted into regular command-line mocha
   tests (instead of running in the browser), and the deployment
   script has been changed to automatically fail any `--new`
   deployment which doesn't pass.
2. Several small class (e.g., `Logger`) have been moved into a common
   module, `crafting-guide-common` so that they may be shared between
   the client and server.
2015-03-25 14:42:15 -07:00
Andrew Miner c7322ccf83 Fix issues with Google Adsense 2015-03-24 19:50:39 -07:00
Andrew Miner d964047974 Update markdown processing to handle more cases 2015-03-24 19:05:13 -07:00
Andrew Miner 96ddd1bd4d Update markdown parsing to allow wiki links
Any link inside a item detail page's markdown description which does
not have a URL will be assumed to be the name of an item covered by
Crafting Guide and an URL will be added to reference the appropiate
browse page.
2015-03-24 17:12:25 -07:00
Andrew Miner 7c99f77639 Fix more animation bugs 2015-03-22 09:22:41 -07:00
Andrew Miner 40efc8ccc9 Fix various small issues from animation changes 2015-03-21 19:48:18 -07:00
Andrew Miner 9956e64af0 Replace jQuery animations with CSS animations 2015-03-21 19:00:46 -07:00
Andrew Miner b18e2e8c08 Fix sort order problem for mods 2015-03-20 19:51:55 -07:00
Andrew Miner 2faf4bfe7f Add videos section to tutorial page 2015-03-20 14:05:21 -07:00