Complete initial design of item page

This commit is contained in:
Andrew Miner
2015-02-04 10:12:48 -08:00
parent 1d30bc3791
commit 7697e121b0
53 changed files with 5399 additions and 1833 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ module.exports = (grunt)->
jquery_ui_images:
files: [expand:true, cwd:'./lib/jquery-ui/images', src:['*.png'], dest:'./dist/css/images']
raw_pages:
files: [expand:true, cwd:'./src/pages', src:['**/*.html'], dest:'./dist']
files: [expand:true, cwd:'./src/pages', src:['**/*.html', '**/*.txt'], dest:'./dist']
scripts:
files:
'./dist/js/backbone.js': ['./node_modules/backbone/backbone.js']
+44
View File
@@ -0,0 +1,44 @@
#!/usr/bin/env coffee
Logger = require '../src/scripts/logger'
global._ = require 'underscore'
global.Backbone = require 'backbone'
global.logger = new Logger level:Logger.FATAL
require '../src/scripts/underscore_mixins'
Mod = require '../src/scripts/models/mod'
ModParser = require '../src/scripts/models/mod_parser'
ModVersionParser = require '../src/scripts/models/mod_version_parser'
fs = require 'fs'
modSlugs = {}
itemSlugs = {}
for modSlug in fs.readdirSync './src/data'
continue if modSlug[0] is '.'
modSlugs[modSlug] = modSlug
mod = new Mod slug:modSlug
modParser = new ModParser model:mod
modParser.parse fs.readFileSync "./src/data/#{modSlug}/mod.cg", 'utf-8'
mod.eachModVersion (modVersion)->
modVersionParser = new ModVersionParser model:modVersion
modVersionParser.parse fs.readFileSync "./src/data/#{modSlug}/#{modVersion.version}/mod-version.cg", 'utf-8'
modVersion.eachItem (item)->
itemSlugs[item.slug] = item.slug
base = 'http://crafting-guide.com'
urls = [ base ]
for slug in _.keys(modSlugs).sort()
urls.push base + "/mod/#{slug}"
for slug in _.keys(itemSlugs).sort()
urls.push base + "/item/#{slug}"
for url in urls
console.log url
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
Sitemap: http://crafting-guide.com/sitemap.txt
File diff suppressed because it is too large Load Diff