Commit Graph
100 Commits
Author SHA1 Message Date
Andrew Miner e3486540cb Fix bugs in reformat script from recent refactor 2015-02-19 10:19:10 -08:00
Andrew Miner 96bb226492 Don't use class names in comparisons 2015-02-19 08:45:36 -08:00
Andrew Miner d05167ca02 Fix recipe in AE2 2015-02-19 08:39:34 -08:00
Andrew Miner dc51dfa777 Fix errors in recipes 2015-02-18 23:03:50 -08:00
Andrew Miner cdf33f4b44 Bug: Allow 'update' recipes to be found properly
Fix a bug where `ModPack.findRecipes` would only look for recipes for
qualified slugs in the mod which added the item, thus missing any
recipes added in other mods.
2015-02-18 22:41:39 -08:00
Andrew Miner b1a6637005 Major updates to the crafting algo.
* Update crafting algo. to favor highest output recipes for making
  items, and to be more flexible about trying a variety of recipes if
  some one recipe doesn't work.
* Modify crafting algo. to allow crafting of "gatherable" items.
* Update logger to support indent/outdent for clearer formatting
* Convert IC2 Forge Hammer / Cutter recipes to treat them as tools
2015-02-18 21:29:21 -08:00
Andrew Miner aab3baec1a Fix misc. bugs caused by refactoring 2015-02-18 16:11:17 -08:00
Andrew Miner e88821d449 Convert codebase to using ItemSlug
* Flesh out the formerly incomplete ItemSlug class
* Convert all uses of text item slugs to use ItemSlug
* Move the ItemSlug class under models where it properly belongs
* Avoid the use of `slug` as a local variable or item attribute
  wherever possible to avoid confusion between various kinds of slugs
* Merge the InventoryParser class into the Inventory class as it is
  unlikely to need to support multiple versions
* Simplify the ModPack/Mod/ModVersion interfaces by replacing the use
  of various "helper" methods with equivalent use of more generic
  methods
* Update the various methods of ModPack/Mod/ModVersion to be able to
  work with qualified or unqualified ItemSlugs
* Remove the unused BaseCollection class
* Add tests for ItemSlug and update all other tests to reflect
  all the other changes
2015-02-18 10:30:53 -08:00
Andrew Miner 100ce1bc70 Don't use # notation in sitemap 2015-02-18 10:29:36 -08:00
Andrew Miner 8236d82ec8 wip 2015-02-16 11:03:59 -08:00
Andrew Miner 8804605d99 Make Recipe a child of ModVersion, not Item 2015-02-15 19:01:16 -08:00
Andrew Miner a3be372e17 Don't show qualifed slugs in URL unnecessarily #94 2015-02-12 16:53:29 -08:00
Andrew Miner 0be1df9eb5 Add full recipe for IC2 Coolant Cell #93 2015-02-12 15:51:00 -08:00
Andrew Miner 1af61398f8 Add missing AE2 images 2015-02-12 15:29:27 -08:00
Andrew Miner 7a33181d1b Fix inventory remove button to appear again $92 2015-02-12 15:13:05 -08:00
Andrew Miner 151c18126a Fix ItemPage to recognize qualified slugs
When finding the other items the current item can be used to make,
the algorithm now looks for a match with either the qualified or
unqualified slug.
2015-02-10 18:05:31 -08:00
Andrew Miner 380a78ef61 Qualify all item slugs to the mod which adds them #53
* Change default item URL to fall under /mod/<mod slug>/<item slug>
  but kept the old URL pattern around with the old behavior (i.e.,
  find the first item with that slug)
* Update Item to have a `qualifiedSlug` property which combines the
  item's own slug with its Mod's slug.  Updated a lot of code all
  over to use this in preference to the plain slug.
* Add a `localizeTo` method to Inventory to allow non-qualified slugs
  to be converted into qualified slugs within the inventory's stacks
* Update ModPack to work with either qualified or unqualified slugs
  for relevant methods
* Fix model state changes to happen before related events are
  triggered
* Add a debounce to the CraftingPlan object when triggering a recraft
  due to changes in related objects (esp. its inventories)
* Update the Inventory's sort to keep items sorted by mod before name
  with the Minecraft items sorted to the top
* Fix `ModPack.findItemByName` to actually recursively use the Mod's
  method instead of slugifying the given name and looking for the
  slug (since this won't necessarily work anymore).
* Ensure each Mod is assigned a reference to its containing ModPack
* Fix NameFinder to only consider an item non-gatherable if it is
  also craftable
* Update ModVersionParserV1 to assign qualified slugs to recipes
  for any items which are in the same mod (leaving any other slugs
  unqualified)
* Add Underscore mixins for composing and decomposing slugs
* Update old tests for the use of qualified slugs, and some new tests
  for the new methods added
2015-02-10 17:56:02 -08:00
Andrew Miner 246dbcafa9 Fix some minor errors in IC2 and TE data files 2015-02-10 17:08:20 -08:00
Andrew Miner 52559e70b6 Update sitemap to avoid redirects 2015-02-09 22:21:05 -08:00
Andrew Miner 7da757bec8 Remove temp. redirect avoiding item detail page 2015-02-09 21:21:41 -08:00
Andrew Miner dc03fd3689 Merge branch 'release-2.0' of github.com-andrewminer:andrewminer/crafting-guide into release-2.0 2015-02-09 21:15:23 -08:00
Andrew Miner 0cea767f47 Fine tune animation timings 2015-02-09 21:15:10 -08:00
Andrew Miner 97659af22f Fix new links to route internally 2015-02-09 21:15:10 -08:00
Andrew Miner 816908f82a Add missing recipe for Advanced Alloy in IC2 2015-02-09 21:15:10 -08:00
Andrew Miner 0a52d16eb1 Improve logging performance by using functions
Improve logging performance by using functions to delay when complex
strings are created until after the current logging level has been
checked to ensure that log statement is actually going to be printed.
There are many places where very complex objects are printed at lower
logging levels which this avoids.
2015-02-09 21:15:10 -08:00
Andrew Miner cf6d6fdbed Add link to crafting plan from item detail #83 2015-02-09 21:15:10 -08:00
Andrew Miner 383bc5a904 Fix crafting algo. to avoid cycles #47
* Adjust recipes in Thermal Expansion to likewise avoid cycles
2015-02-09 21:15:10 -08:00
Andrew Miner e94b5b3d8d Add item declarations for non-craftable MC items
* Update the `convert-nei-dump` script to avoid overwriting an
  `mod-version.cg` file and to only add those items which are missing
2015-02-09 21:15:09 -08:00
Andrew Miner 100fb5834a Allow stack views to link to the items they show 2015-02-09 21:15:09 -08:00
Andrew Miner 618cbd7aea Set page title for item detail pages 2015-02-09 21:15:09 -08:00
Andrew Miner 4a3fd65848 Show all recipes for an item on its detail page 2015-02-09 21:15:09 -08:00
Andrew Miner 46427a70f6 First real version of item detail page
* Split the InventoryTable view/controller out from the existing
  inventory view/controller. This is a simpler component which only
  includes the table itself, and not the scrollbox, panel or header
  used on the crafting page.
* Create the FullRecipe view/controller to represent the expanded
  version of a recipe shown on the item page (as compared to the
  terser version on the crafting page).
* Rename the existing Recipe view/controller to MinimalRecipe to
  avoid confusing the two.
* Refactor the CSS for the Stack view/controller so that it can be
  shared between the Inventory and InventoryTable views.
* Incorporate all these new controllers into the item page and hook
  up the necessary model logic to drive them.
2015-02-09 21:15:09 -08:00
Andrew Miner 025d78ee9c Fine tune animation timings 2015-02-09 21:13:40 -08:00
Andrew Miner b36c032725 Fix new links to route internally 2015-02-09 20:48:37 -08:00
Andrew Miner 7b44711a82 Add missing recipe for Advanced Alloy in IC2 2015-02-09 20:42:39 -08:00
Andrew Miner fc0c117083 Improve logging performance by using functions
Improve logging performance by using functions to delay when complex
strings are created until after the current logging level has been
checked to ensure that log statement is actually going to be printed.
There are many places where very complex objects are printed at lower
logging levels which this avoids.
2015-02-09 20:41:12 -08:00
Andrew Miner 3790c26c5c Add link to crafting plan from item detail #83 2015-02-09 20:25:54 -08:00
Andrew Miner e4369ba944 Fix crafting algo. to avoid cycles #47
* Adjust recipes in Thermal Expansion to likewise avoid cycles
2015-02-09 17:36:37 -08:00
Andrew Miner b195177e1f Add item declarations for non-craftable MC items
* Update the `convert-nei-dump` script to avoid overwriting an
  `mod-version.cg` file and to only add those items which are missing
2015-02-09 15:55:39 -08:00
Andrew Miner c966bae2ab Allow stack views to link to the items they show 2015-02-09 14:53:54 -08:00
Andrew Miner af2258ff76 Set page title for item detail pages 2015-02-09 14:40:26 -08:00
Andrew Miner 289d925da8 Show all recipes for an item on its detail page 2015-02-09 14:28:21 -08:00
Andrew Miner 996c8823a3 Avoid exposing incomplete item detail page 2015-02-08 23:23:31 -08:00
Andrew Miner 6d98daa0bb Bug: Use right delimiter for URLs with quantity 2015-02-08 23:18:19 -08:00
Andrew Miner 96617a755e First real version of item detail page
* Split the InventoryTable view/controller out from the existing
  inventory view/controller. This is a simpler component which only
  includes the table itself, and not the scrollbox, panel or header
  used on the crafting page.
* Create the FullRecipe view/controller to represent the expanded
  version of a recipe shown on the item page (as compared to the
  terser version on the crafting page).
* Rename the existing Recipe view/controller to MinimalRecipe to
  avoid confusing the two.
* Refactor the CSS for the Stack view/controller so that it can be
  shared between the Inventory and InventoryTable views.
* Incorporate all these new controllers into the item page and hook
  up the necessary model logic to drive them.
2015-02-08 22:54:12 -08:00
Andrew Miner e23b6154ae Rename RecipeController to MinimalRecipeController 2015-02-08 15:16:58 -08:00
Andrew Miner 97a27f138f Initial implementation of item page (disabled) 2015-02-08 15:02:39 -08:00
Andrew Miner 0f73fc18a0 Move all /item URLs to /crafting 2015-02-07 12:37:44 -08:00
Andrew Miner 4c5d1256bc Fix recipe for 4k ME Storage Component 2015-02-06 13:07:17 -08:00
Andrew Miner 8724c13689 Adjust names for MC1.7.10 groups 2015-02-06 12:33:34 -08:00
Andrew Miner ec2b728596 Add groups to the MC1.7.10 mod version file 2015-02-06 12:30:13 -08:00
Andrew Miner 7697e121b0 Complete initial design of item page 2015-02-04 10:12:48 -08:00
Andrew Miner 1d30bc3791 Add EnderIO 2.2.7.325 2015-02-02 20:30:22 -08:00
Andrew Miner de18677318 Tweak position of output quantity for new font 2015-02-02 20:29:59 -08:00
Andrew Miner 6928d93abb Interate over the "other" group first 2015-02-02 20:29:27 -08:00
Andrew Miner 04014356f4 Switch to Silkscreen for pixel font 2015-02-02 12:05:22 -08:00
Andrew Miner 54997a2c89 Tweak headers to make them smaller on the page 2015-02-02 10:55:35 -08:00
Andrew Miner 1f76001c12 Improve the about text in the footer 2015-02-02 10:09:18 -08:00
Andrew Miner bd9bb2894f Add better page names for SEO 2015-02-02 09:59:01 -08:00
Andrew Miner 7d1f8c57a4 Add Google Webmaster Tools verification page 2015-01-31 21:09:53 -08:00
Andrew Miner 8d7fd5d25c Add "remove" button to inventory view 2015-01-31 20:53:09 -08:00
Andrew Miner e0c642e787 Store want/have in URL/local storage 2015-01-31 15:48:24 -08:00
Andrew Miner 6d63824d76 Add groups to IC2-exp 2015-01-30 20:09:59 -08:00
Andrew Miner 6e3843731b Allow items to be grouped on mod detail pages 2015-01-30 13:03:10 -08:00
Andrew Miner a365217890 Add documentation & download links to mod page 2015-01-30 10:19:41 -08:00
Andrew Miner d0c3d4de5e Enabled mods if needed to match requested URL 2015-01-30 09:48:57 -08:00
Andrew Miner a49e638b3a Make "output" also route internal links 2015-01-30 09:33:22 -08:00
Andrew Miner ba5924c60c Refactor SCSS into separate files 2015-01-30 09:33:06 -08:00
Andrew Miner d226f30d2a Add disabled states for buttons 2015-01-29 16:23:35 -08:00
Andrew Miner 854e8aa4c8 Mention "including tools" in report a problem 2015-01-29 16:17:13 -08:00
Andrew Miner 2b5fd536b2 Add latest blog posting 2015-01-29 16:16:53 -08:00
Andrew Miner 11adb30610 Bug: Always fetch effective mod version 2015-01-29 14:11:01 -08:00
Andrew Miner 841af15d5e Fix bugs in intra-site linking
* Refactor event handling in controllers to use a method to define
  the hash (and thereby allow inheritance)
* Refactor link handling so that links which should be handled by the
  router can be handled by the base class
* Change the router to throw out controllers for pages which aren't
  on-screen (and thereby avoid a lot of weirdness)
2015-01-29 13:59:12 -08:00
Andrew Miner d5140f963d Fix various small bugs related to new mod page 2015-01-29 13:24:30 -08:00
Andrew Miner d0fdbdf2c6 Moke internal links use router 2015-01-29 12:13:31 -08:00
Andrew Miner cac523988e Fix recipe for BatBox 2015-01-29 10:15:34 -08:00
Andrew Miner 332f64abea Initial version of mod detail pages 2015-01-29 10:04:11 -08:00
Andrew Miner 71b25a8a16 Move images in inventory to the left 2015-01-28 11:17:30 -08:00
Andrew Miner d5962ff673 Remove uncraftable items when changing mod version 2015-01-28 10:34:44 -08:00
Andrew Miner 5e63c092a1 Fix recipe for Copper Cable from cutters 2015-01-28 10:31:34 -08:00
Andrew Miner 705b3b05e1 Add getSlugs method 2015-01-28 10:28:38 -08:00
Andrew Miner d538ae5a3e Change development log level to DEBUG 2015-01-28 10:27:57 -08:00
Andrew Miner ea86e17d31 Change test description to isolate files better 2015-01-28 10:27:28 -08:00
Andrew Miner ae66f52678 Add the findRecipes method to Mod/Pack/Version 2015-01-28 10:26:19 -08:00
Andrew Miner 7ee0b55411 Add tests for the Recipe model 2015-01-28 09:59:35 -08:00
Andrew Miner b4fe6b20be Re-order Fertilizer recipes to avoid infinite loop 2015-01-24 17:36:18 -08:00
Andrew Miner c07b271d1a Remove debug logging 2015-01-24 16:37:30 -08:00
Andrew Miner 9d00883ed9 Add GA display features 2015-01-24 16:31:58 -08:00
Andrew Miner e38958d84b Add enhanced link tracking for Google Analytics 2015-01-24 16:17:40 -08:00
Andrew Miner 0c3bfdd4ff Add new forum post 2015-01-24 15:24:11 -08:00
Andrew Miner 67a03f83c2 Fix use of cutter & forge hammer
There were a few recipes which didn't list these tools as extras, and
therefore had the crafting plan making a lot of them each time
2015-01-24 14:49:22 -08:00
Andrew Miner 0d0ccb8ea5 Comment-out links to mod detail page 2015-01-24 14:33:15 -08:00
Andrew Miner 04c835d596 Remove extra Metal Former images 2015-01-24 14:32:55 -08:00
Andrew Miner c86fede085 Add direct dependency on Underscore.js 2015-01-24 14:28:59 -08:00
Andrew Miner f87b09f886 Added IC2-Exp 2015-01-24 13:42:30 -08:00
Andrew Miner 64b6b97807 Allow user to select actual version of a mod 2015-01-22 12:06:47 -08:00
Andrew Miner 6ef3473534 Tweak liquid recipes & add missing image 2015-01-22 12:06:06 -08:00
Andrew Miner eb04cee295 Fix NaN as step when reporting a problem 2015-01-21 15:39:03 -08:00
Andrew Miner c0c3bfc494 Fix reference to Crafting Guide -> Crafting Table 2015-01-21 15:38:46 -08:00
Andrew Miner 641f3f522b Fix bug where deep links didn't connect 2015-01-21 15:32:35 -08:00