Merge branch 'andrewminer-item-detail-file'

This commit is contained in:
Andrew Miner
2015-03-10 08:47:34 -07:00
7344 changed files with 232437 additions and 196219 deletions
+1
View File
@@ -0,0 +1 @@
script(type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-54f3c9717b2e530d" async="async")
+36
View File
@@ -0,0 +1,36 @@
//-
//- Crafting Guide - _footer.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
.view__footer
.divider.top
.left
h2: p About
p.
Crafting Guide gives step-by-step tutorials for making anything in Minecraft or its many mods. Just say what
you'd like to make, what you already have, it will do the rest, giving you a list of raw materials you need
to collect and step-by-step instructions of how much to make of which items in the proper order. You can
even ask it to include the materials and instructions for all the tools you'll need along the way!
.center
h2: p Donate
p Crafting Guide is free for all, but if you find it helpful, donations in any amount are gratefully accepted.
.action
form(action="https://www.paypal.com/cgi-bin/webscr", class="centered", method="post", target="_top")
input(type="hidden", name="cmd", value="_s-xclick")
input(type="hidden", name="hosted_button_id", value="GCB2TYZJYLAE6")
input(type="image", src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif", border="0",
name="submit" alt="PayPal - The safer, easier way to pay online!")
img(src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif", width="1", height="1")
.right
h2: p Get Involved
p Crafting Guide is completely open-source, and you can help! Whether you want to write a recipe book (all
| simple JSON), or implement new features, just head over to GitHub to get started.
.action
iframe(src="http://ghbtns.com/github-btn.html?user=andrewminer&repo=crafting-guide&type=fork&size=large",
allowtransparency="true", frameborder="0", scrolling="0", width="100", height="32")
a(href="/test.html", rel="nofollow")
.divider.bottom
+18
View File
@@ -0,0 +1,18 @@
//-
//- Crafting Guide - _google_analytics.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
script.
if (window.location.hostname === 'crafting-guide.com') {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-54970416-2', 'crafting-guide.com');
ga('require', 'displayfeatures');
ga('require', 'linkid', 'linkid.js');
}
+28
View File
@@ -0,0 +1,28 @@
//-
//- Crafting Guide - _header.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
.view__header
h1
a.logo(href="/"): img(src="/images/workbench_front.png")
p Crafting Guide for Minecraft
.addthis_sharing_toolbox
.divider.bottom
.navBar
a(data-page="home", href="/")
p Home
.dot
a(data-page="configure", href="/configure/")
p Configure
.dot
a(data-page="browse", href="/browse/")
p Browse
.dot
a(data-page="craft", href="/craft/")
p Craft
.dot
+20
View File
@@ -0,0 +1,20 @@
//-
//- Crafting Guide - index.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
extends ./layouts/basic
append styles
link(rel="stylesheet", type="text/css", href="/css/jquery-ui.css")
block content
.page
append scripts
script(src="/js/jquery-ui.js")
script(src="/js/main.js")
include ./includes/_google_analytics.jade
include ./includes/_addthis.jade
+38
View File
@@ -0,0 +1,38 @@
//-
//- Crafting Guide - basic.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
block basic-vars
- var pageTitle = 'Crafting Guide for Minecraft | The Ultimate Step-by-Step Tutorial for Making Anything in Minecraft'
doctype html
html
head
title= pageTitle
meta(charset="UTF-8")
link(href="/images/favicon.png", rel="icon", type="image/png")
block styles
link(rel="stylesheet", type="text/css", href="/css/main.css")
body
block body
.view__feedback
.view__screen
.content
include ../includes/_header.jade
block content
include ../includes/_footer.jade
block scripts
script(src="/js/underscore.js")
script(src="/js/jquery.js")
script(src="/js/backbone.js")
script(src="/js/jade.js")
script(src="/js/markdown.js")
script(src="/js/when.js")
+14
View File
@@ -0,0 +1,14 @@
//-
//- Crafting Guide - browse_page.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__browse_page
.sidebar
include ./includes/_sidebar_skyscraper.html
.mainBody
h2: p Active Mods
.mods
+13
View File
@@ -0,0 +1,13 @@
//-
//- Crafting Guide - configure_page.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__configure_page
.sidebar
include ./includes/_sidebar_skyscraper.html
.mainBody
.view__mod_pack
+13
View File
@@ -0,0 +1,13 @@
//-
//- Crafting Guide - landing_page.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
.view__craft_page
.view__inventory.want
.view__inventory.have
.view__inventory.need
.view__crafting_table
+20
View File
@@ -0,0 +1,20 @@
//-
//- Crafting Guide - crafting_grid.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
table.view__crafting_grid
tr
td: a: img(src="/images/empty.png")
td: a: img(src="/images/empty.png")
td: a: img(src="/images/empty.png")
tr
td: a: img(src="/images/empty.png")
td: a: img(src="/images/empty.png")
td: a: img(src="/images/empty.png")
tr
td: a: img(src="/images/empty.png")
td: a: img(src="/images/empty.png")
td: a: img(src="/images/empty.png")
+19
View File
@@ -0,0 +1,19 @@
//-
//- Crafting Guide - crafting_table.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
.view__crafting_table
h2
img(src="/images/workbench_top.png")
p Crafting Plan
.panel
.prev
.view__minimal_recipe
.next
.problem
a report a problem
+19
View File
@@ -0,0 +1,19 @@
//-
//- Crafting Guide - feedback.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__feedback
input(name="name", placeholder="name (optional)")
input(name="email", placeholder="email (optional)")
label(name="comment") Comment:
textarea(name="comment")
button(name="send") send
.error: p Sending failed. Please try again later.
.label
img(src="/images/paper.png")
p Feedback
+20
View File
@@ -0,0 +1,20 @@
//-
//- Crafting Guide - full_recipe.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__full_recipe
.input
h3 Ingredients
.view__inventory_table
.pattern
table.view__crafting_grid
.tool: a
.output
h3 Produces
.view__inventory_table
+139
View File
@@ -0,0 +1,139 @@
//-
//- Crafting Guide - home_page.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__home_page
.sidebar
.titleImage <a href="/browse/minecraft/"><img src="/browse/minecraft/icon.png"></a>
.titleImage <a href="/browse/buildcraft/"><img src="/browse/buildcraft/icon.png"></a>
.titleImage <a href="/browse/industrial_craft_2/"><img src="/browse/industrial_craft_2/icon.png"></a>
.titleImage <a href="/browse/applied_energistics_2/"><img src="/browse/applied_energistics_2/icon.png"></a>
.titleImage <a href="/browse/thermal_expansion/"><img src="/browse/thermal_expansion/icon.png"></a>
.titleImage <a href="/browse/enderio/"><img src="/browse/enderio/icon.png"></a>
.titleImage <a href="/browse/railcraft/"><img src="/browse/railcraft/icon.png"></a>
include ./includes/_sidebar_skyscraper.html
.mainBody
.section
h2 Welcome!
.panel
.entry
p.intro.
Crafting Guide is the ultimate resource for Minecraft. Whether you're punching trees or building
reactors, you'll find Crafting Guide indispensable.
ul
li.intro Can't remember the recipe for a <a href="/browse/buildcraft/quarry">BuildCraft Quarry</a>?
li.intro Curious to see all the blocks added by <a href="/browse/railcraft">Railcraft</a>?
li.intro Want step-by-step directions for making a full <a
| href="/craft/quantumsuit_bodyarmor:quantumsuit_boots:quantumsuit_helmet:quantumsuit_leggings"
| >IC2 QuantumSuit</a>?
p.intro No problem. Crafting Guide can do it all.
p.
<a class="section-link" href='/configure'>Configure<a> which mods you're using, and the entire
site will update itself to your mod pack.
p.
<a class="section-link" href='/browse'>Browse<a> through your own customized item catalog to
see full recipe lists, related items, recipes added by each tool, and even which items can be
made from the item you're looking at.
p.
<a class="section-link" href='/craft'>Craft<a> any number of items from your mod pack to see a
full list of raw ingredients, and recipe-by-recipe instructions on how to make everything on
your list. No item is too complex, and no build is too big.
.section
h2 What's new?
.panel
h3 2015-03-09
.entry
p.
It may seem like not much has been happening lately, but that's because all the changes have
been behind the scenes, and focused on making Google happier with the site. This will make the
site show up better is search results, and will make it load a bit faster.
As a result of this work, the site also now qualifies for AdSense. I absolutely don't want to
choke the site with ads as other big sites do, but it will be nice to pay the bills!
h3 2015-03-01
.entry
p.
This release delivers the second major expansion of Crafting Guide! Here's the list of what's
new:
ul
li New home page!
li Moved the crafting planner (the old home page) to its own <a href="/craft">Craft</a> page
li Moved mod pack management to the new <a href="/configure">Configure</a> page
li Added a <a href="/browse">Browse</a> page where you can peruse the list of supported mods
h3 2015-02-26
.entry
p.
This release adds a new section to the item pages called "Used as Tool to Make". The new section
shows all the other items which can be made by that tool. For example, the IC2 Macerator shows
a bunch of things like Iron Dust, Gold Dust, etc.
h3 2015-02-24
.entry
p.
This release changes the crafting page to let you modify the quantity of items in the "Items You
Want" and "Items You Have" section. Let's say you want to make <a
href="/craft/64.potion_of_healing">64 Potions of Healing</a>. You add "Potion of Healing" just
as as you always did, but now you can click on the quantity to change it to whatever you want.
p.
At the same time, I've changed the quantity field to allow up to 9999 of any item. Have fun with
those huge builds!
h3 2015-02-22
.entry
p.
Woo hoo! Or, should I say: Choo choo! I just added support for RailCraft! I also pushed up lots
of performance improvements (55% faster at computing crafting plans)! Hopefully, you won't
really notice anything except that entering new items and computing really complicated crafting
plans don't take so long.
h3 2015-02-19
.entry
p.
I just made some major updates to the crafting algorithm. Without getting into details, I'll say
that there are a few things you should notice:
ol
li it will favor recipes which produce more of an item versus those which produce fewer (e.g.,
| IC2 plates get made with the Block Cutter instead of the Forge Hammer)
li metal ingots will frequently (but not always) get crafted using 2x recipes instead of
| smelting ore directly in a furnace
li recipes for vanilla items added by mods are now available (e.g., smelting Iron Dust into Iron
| ingots)
h3 2015-02-10
.entry
p.
I just pushed up some fixes to avoid confusing various items of the same name from different
mods. The best example of this are the two Wrenches from Buildcraft and IC2, but there are a
bunch of others.
h3 2015-02-09
.entry
p.
This release fixes a number of small issues and improves performance in a number of places. Most
especially, all links within the site have been changed to update the page in place without the
need to re-download anything. This should make browsing between item pages <i>much</i> faster.
h3 2015-02-08
.entry
p.
This is the singlest largest expansion of the website yet! Each item from each mod now has its
own page! This will expand in the future, but for now this shows all the recipes for the item as
well as all the closely related items and the others items that can be made using the item.
p.
This also changes things so that links to Crafting Guide from other sites will first go to the
item's page (instead of to the crafting plan). Not to worry though... there's still a direct
link from each item to the full crafting plan for that item.
h3 2015-02-02
.entry
p.
Crafting Guide now has support for EnderIO! I tend to add new mods in order of those with the
most votes, so remember to suggest your favorites!
@@ -0,0 +1,9 @@
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Sidebar Skyscraper -->
<ins class="adsbygoogle"
style="display:inline-block;width:160px;height:600px"
data-ad-client="ca-pub-6593013914878730"
data-ad-slot="7613920409"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
+21
View File
@@ -0,0 +1,21 @@
//-
//- Crafting Guide - inventory.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
.view__inventory
h2
img.icon
p
.panel
.scrollbox
table
tr.edit
td.quantity
td.icon
td.name(width="*"): input(name="name")
td.action: button(name="add") add
.toolbar
button(name="clear") clear
+16
View File
@@ -0,0 +1,16 @@
//-
//- Crafting Guide - inventory_table.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
.view__inventory_table
table
tr.edit
td.quantity: input(name="quantity")
td.icon: img(src="/images/unknown.png")
td.name(width="*"): input(name="name")
td.action: button(name="add") add
.toolbar
button(name="clear") clear
+13
View File
@@ -0,0 +1,13 @@
//-
//- Crafting Guide - item.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__item
a
table
tr
td.itemIcon: img
td.itemName(width="*")
+10
View File
@@ -0,0 +1,10 @@
//-
//- Crafting Guide - item_group.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__item_group.section
h2
.panel
+30
View File
@@ -0,0 +1,30 @@
//-
//- Crafting Guide - item_page.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__item_page
.sidebar
.titleImage: a: img
a.craftingPlan.externalLink: p See Crafting Plan
include ./includes/_sidebar_skyscraper.html
.mainBody
h1.name
.byline: p from <a></a>
.description.section
h2 Description
.panel.markdown
.recipes.section
h2 Recipes
.panel
.usedToMake: .view__item_group
.usedAsToolToMake: .view__item_group
.similar: .view__item_group
.plan
+14
View File
@@ -0,0 +1,14 @@
//-
//- Crafting Guide - minimal_recipe.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__minimal_recipe
.input
table.view__crafting_grid
.tool
.output
a: img
p.quantity
+12
View File
@@ -0,0 +1,12 @@
//-
//- Crafting Guide - mod.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__mod
a
img.logo
h3.name: p
.description: p
+16
View File
@@ -0,0 +1,16 @@
//-
//- Crafting Guide - mod_pack.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
.view__mod_pack
h2
img(src="/images/bookshelf.png")
p Mod Pack
.panel
.mods
.toolbar
button(name="suggestMod") suggest a mod
+23
View File
@@ -0,0 +1,23 @@
//-
//- Crafting Guide - mod_page.jade
//-
//- Copyright (c) 2015 by Redwood Labs
//- All rights reserved.
//-
.view__mod_page
.sidebar
.titleImage: a: img
select.version
a.homePage.externalLink(target="new"): p Offical Home Page
a.documentation.externalLink(target="new"): p Documentation
a.download.externalLink(target="new"): p Download
include ./includes/_sidebar_skyscraper.html
.mainBody
h1.name
.byline: p
.description: p
.itemGroups
+14
View File
@@ -0,0 +1,14 @@
//-
//- Crafting Guide - mod_selector.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
.view__mod_selector
.version
select
option(value="none") None
.name
a: p
.description: p
+13
View File
@@ -0,0 +1,13 @@
//-
//- Crafting Guide - stack.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
tr.view__stack
td.quantity: input
td.icon: img(src='')
td.name(width='*'): a
td.action
button.remove &nbsp;
+20
View File
@@ -0,0 +1,20 @@
//-
//- Crafting Guide - test.jade
//-
//- Copyright (c) 2014-2015 by Redwood Labs
//- All rights reserved.
//-
extend ./layouts/basic
append styles
link(rel="stylesheet", type="text/css", href="css/mocha.css")
style #mocha-stats { position: absolute; top: 12em; }
block content
#mocha
append scripts
script(src="/js/mocha.js")
script(src="/js/chai.js")
script(src="/js/test.js")