From 079c88290e12d464d2e58574438bd81256a40427 Mon Sep 17 00:00:00 2001 From: Rob Fletcher Date: Fri, 6 May 2011 09:09:01 +0100 Subject: [PATCH] more logical resource names --- grails-app/conf/AppResources.groovy | 22 +++++++++------------- grails-app/views/rating/album.gsp | 2 +- web-app/css/{forms.less => rating.less} | 0 web-app/css/{scroll.less => twitter.less} | 0 web-app/js/{lightbox.js => basket.js} | 0 web-app/js/{forms.js => rating.js} | 0 web-app/js/{scroll.js => twitter.js} | 0 7 files changed, 10 insertions(+), 14 deletions(-) rename web-app/css/{forms.less => rating.less} (100%) rename web-app/css/{scroll.less => twitter.less} (100%) rename web-app/js/{lightbox.js => basket.js} (100%) rename web-app/js/{forms.js => rating.js} (100%) rename web-app/js/{scroll.js => twitter.js} (100%) diff --git a/grails-app/conf/AppResources.groovy b/grails-app/conf/AppResources.groovy index 97732f4..3e79ec8 100755 --- a/grails-app/conf/AppResources.groovy +++ b/grails-app/conf/AppResources.groovy @@ -37,10 +37,10 @@ modules = { resource url: "css/index.less" ,attrs:[rel: "stylesheet/less", type: "css"], bundle: "bundle_index" } - scroll { + twitter { dependsOn "modernizr", "boilerplate", "infinite-scroll" - resource "js/scroll.js" - resource url: "css/scroll.less" ,attrs:[rel: "stylesheet/less", type: "css"], bundle: "bundle_scroll" + resource "js/twitter.js" + resource url: "css/twitter.less" ,attrs:[rel: "stylesheet/less", type: "css"], bundle: "bundle_twitter" } graphs { @@ -54,20 +54,16 @@ modules = { resource url: "css/polls.less" ,attrs:[rel: "stylesheet/less", type: "css"], bundle: "bundle_polls" } - forms { + rating { dependsOn "modernizr", "boilerplate", "star-rating" - resource "js/forms.js" - resource url: "css/forms.less" ,attrs:[rel: "stylesheet/less", type: "css"], bundle: "bundle_forms" - } - - lightbox { - dependsOn "facebox" - resource "js/lightbox.js" + resource "js/rating.js" + resource url: "css/rating.less" ,attrs:[rel: "stylesheet/less", type: "css"], bundle: "bundle_rating" } basket { - dependsOn "modernizr", "boilerplate" - resource url: "css/basket.less" ,attrs:[rel: "stylesheet/less", type: "css"], bundle: "bundle_lightbox" + dependsOn "modernizr", "boilerplate", "facebox" + resource "js/basket.js" + resource url: "css/basket.less" ,attrs:[rel: "stylesheet/less", type: "css"], bundle: "bundle_basket" } } \ No newline at end of file diff --git a/grails-app/views/rating/album.gsp b/grails-app/views/rating/album.gsp index e129994..82e27be 100755 --- a/grails-app/views/rating/album.gsp +++ b/grails-app/views/rating/album.gsp @@ -3,7 +3,7 @@ ${album.title} - + diff --git a/web-app/css/forms.less b/web-app/css/rating.less similarity index 100% rename from web-app/css/forms.less rename to web-app/css/rating.less diff --git a/web-app/css/scroll.less b/web-app/css/twitter.less similarity index 100% rename from web-app/css/scroll.less rename to web-app/css/twitter.less diff --git a/web-app/js/lightbox.js b/web-app/js/basket.js similarity index 100% rename from web-app/js/lightbox.js rename to web-app/js/basket.js diff --git a/web-app/js/forms.js b/web-app/js/rating.js similarity index 100% rename from web-app/js/forms.js rename to web-app/js/rating.js diff --git a/web-app/js/scroll.js b/web-app/js/twitter.js similarity index 100% rename from web-app/js/scroll.js rename to web-app/js/twitter.js