Permalink
Browse files

Added files that release-plugin didn't add

1 parent 0db2e1e commit c7cf306f600f13e082275db8a5a66ae3f255cd35 marcpalmer committed May 6, 2010
Showing with 6,109 additions and 0 deletions.
  1. +14 −0 .classpath
  2. +19 −0 .project
  3. +3 −0 .settings/org.codehaus.groovy.eclipse.preferences.prefs
  4. +50 −0 JqueryUiGrailsPlugin.groovy
  5. +314 −0 LICENSE.txt
  6. +7 −0 application.properties
  7. +31 −0 grails-app/conf/BuildConfig.groovy
  8. +76 −0 grails-app/conf/Config.groovy
  9. +32 −0 grails-app/conf/DataSource.groovy
  10. +11 −0 grails-app/conf/UrlMappings.groovy
  11. 0 grails-app/i18n/messages.properties
  12. +72 −0 grails-app/taglib/com/grailsrocks/jqueryui/JqueryUiTagLib.groovy
  13. +54 −0 grails-app/views/error.gsp
  14. +10 −0 scripts/_Install.groovy
  15. +5 −0 scripts/_Uninstall.groovy
  16. +10 −0 scripts/_Upgrade.groovy
  17. +17 −0 test/unit/com/grailsrocks/jqueryui/JQueryUITagLibTests.groovy
  18. +42 −0 web-app/WEB-INF/applicationContext.xml
  19. +14 −0 web-app/WEB-INF/sitemesh.xml
  20. +563 −0 web-app/WEB-INF/tld/c.tld
  21. +671 −0 web-app/WEB-INF/tld/fmt.tld
  22. +551 −0 web-app/WEB-INF/tld/grails.tld
  23. +311 −0 web-app/WEB-INF/tld/spring.tld
  24. BIN web-app/images/skin/database_add.png
  25. BIN web-app/images/skin/database_delete.png
  26. BIN web-app/images/skin/database_edit.png
  27. BIN web-app/images/skin/database_save.png
  28. BIN web-app/images/skin/database_table.png
  29. BIN web-app/images/skin/exclamation.png
  30. BIN web-app/images/skin/house.png
  31. BIN web-app/images/skin/information.png
  32. BIN web-app/images/skin/shadow.jpg
  33. BIN web-app/images/skin/sorted_asc.gif
  34. BIN web-app/images/skin/sorted_desc.gif
  35. +374 −0 web-app/jquery-ui/js/jquery-ui-1.8.custom.min.js
  36. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
  37. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
  38. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
  39. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
  40. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
  41. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
  42. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
  43. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
  44. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
  45. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-icons_222222_256x240.png
  46. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-icons_228ef1_256x240.png
  47. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-icons_ef8c08_256x240.png
  48. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-icons_ffd27a_256x240.png
  49. BIN web-app/jquery-ui/themes/ui-lightness/images/ui-icons_ffffff_256x240.png
  50. +480 −0 web-app/jquery-ui/themes/ui-lightness/jquery-ui-1.8.custom.css
  51. +1,176 −0 web-app/js/jquery/i18n/jquery-ui-i18n.js
  52. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-af.js
  53. +24 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-ar.js
  54. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-az.js
  55. +24 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-bg.js
  56. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-bs.js
  57. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-ca.js
  58. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-cs.js
  59. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-da.js
  60. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-de.js
  61. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-el.js
  62. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-en-GB.js
  63. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-eo.js
  64. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-es.js
  65. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-et.js
  66. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-eu.js
  67. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-fa.js
  68. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-fi.js
  69. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-fo.js
  70. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-fr-CH.js
  71. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-fr.js
  72. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-he.js
  73. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-hr.js
  74. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-hu.js
  75. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-hy.js
  76. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-id.js
  77. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-is.js
  78. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-it.js
  79. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-ja.js
  80. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-ko.js
  81. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-lt.js
  82. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-lv.js
  83. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-ms.js
  84. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-nl.js
  85. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-no.js
  86. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-pl.js
  87. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-pt-BR.js
  88. +26 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-ro.js
  89. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-ru.js
  90. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-sk.js
  91. +24 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-sl.js
  92. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-sq.js
  93. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-sr-SR.js
  94. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-sr.js
  95. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-sv.js
  96. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-ta.js
  97. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-th.js
  98. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-tr.js
  99. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-uk.js
  100. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-vi.js
  101. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-zh-CN.js
  102. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-zh-HK.js
  103. +23 −0 web-app/js/jquery/i18n/jquery.ui.datepicker-zh-TW.js
View
@@ -0,0 +1,14 @@
+<classpath>
+ <classpathentry kind="src" path="src/java"/>
+ <classpathentry kind="src" path="src/groovy"/>
+ <classpathentry kind="src" path="grails-app/conf"/>
+ <classpathentry kind="src" path="grails-app/controllers"/>
+ <classpathentry kind="src" path="grails-app/domain"/>
+ <classpathentry kind="src" path="grails-app/services"/>
+ <classpathentry kind="src" path="grails-app/taglib"/>
+ <classpathentry kind="src" path="test/integration"/>
+ <classpathentry kind="src" path="test/unit"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="web-app/WEB-INF/classes"/>
+</classpath>
View
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jQueryUI</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.springsource.sts.grails.core.nature</nature>
+ <nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,3 @@
+#Created by grails
+eclipse.preferences.version=1
+groovy.dont.generate.class.files=true
@@ -0,0 +1,50 @@
+class JqueryUiGrailsPlugin {
+ // the plugin version
+ def version = "1.8-SNAPSHOT"
+ // the version or versions of Grails the plugin is designed for
+ def grailsVersion = "1.2 > *"
+ // the other plugins this plugin depends on
+ def dependsOn = [jquery:'1.4.2.1 > *']
+ // resources that are excluded from plugin packaging
+ def pluginExcludes = [
+ "grails-app/views/error.gsp"
+ ]
+
+ // TODO Fill in these fields
+ def author = "Marc Palmer"
+ def authorEmail = "marc@grailsrocks.com"
+ def title = "jQuery UI resources"
+ def description = '''\\
+Simply supplies jQuery UI resources, depends on jQuery plugin. Use this plugin to avoid resource duplication and conflicts.
+'''
+
+ // URL to the plugin's documentation
+ def documentation = "http://grails.org/plugin/jquery-ui"
+
+ def doWithWebDescriptor = { xml ->
+ // TODO Implement additions to web.xml (optional), this event occurs before
+ }
+
+ def doWithSpring = {
+ // TODO Implement runtime spring config (optional)
+ }
+
+ def doWithDynamicMethods = { ctx ->
+ // TODO Implement registering dynamic methods to classes (optional)
+ }
+
+ def doWithApplicationContext = { applicationContext ->
+ // TODO Implement post initialization spring config (optional)
+ }
+
+ def onChange = { event ->
+ // TODO Implement code that is executed when any artefact that this plugin is
+ // watching is modified and reloaded. The event contains: event.source,
+ // event.application, event.manager, event.ctx, and event.plugin.
+ }
+
+ def onConfigChange = { event ->
+ // TODO Implement code that is executed when the project configuration changes.
+ // The event is the same as for 'onChange'.
+ }
+}
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,7 @@
+#Grails Metadata file
+#Tue May 04 11:10:22 BST 2010
+app.grails.version=1.2.2
+app.name=jQueryUI
+plugins.hibernate=1.2.2
+plugins.jquery=1.4.2.1
+plugins.tomcat=1.2.2
@@ -0,0 +1,31 @@
+grails.project.class.dir = "target/classes"
+grails.project.test.class.dir = "target/test-classes"
+grails.project.test.reports.dir = "target/test-reports"
+//grails.project.war.file = "target/${appName}-${appVersion}.war"
+grails.project.dependency.resolution = {
+ // inherit Grails' default dependencies
+ inherits( "global" ) {
+ // uncomment to disable ehcache
+ // excludes 'ehcache'
+ }
+ log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
+ repositories {
+ grailsPlugins()
+ grailsHome()
+
+ // uncomment the below to enable remote dependency resolution
+ // from public Maven repositories
+ //mavenLocal()
+ //mavenCentral()
+ //mavenRepo "http://snapshots.repository.codehaus.org"
+ //mavenRepo "http://repository.codehaus.org"
+ //mavenRepo "http://download.java.net/maven/2/"
+ //mavenRepo "http://repository.jboss.com/maven2/"
+ }
+ dependencies {
+ // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
+
+ // runtime 'mysql:mysql-connector-java:5.1.5'
+ }
+
+}
@@ -0,0 +1,76 @@
+// locations to search for config files that get merged into the main config
+// config files can either be Java properties files or ConfigSlurper scripts
+
+// grails.config.locations = [ "classpath:${appName}-config.properties",
+// "classpath:${appName}-config.groovy",
+// "file:${userHome}/.grails/${appName}-config.properties",
+// "file:${userHome}/.grails/${appName}-config.groovy"]
+
+// if(System.properties["${appName}.config.location"]) {
+// grails.config.locations << "file:" + System.properties["${appName}.config.location"]
+// }
+grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
+grails.mime.use.accept.header = false
+grails.mime.types = [ html: ['text/html','application/xhtml+xml'],
+ xml: ['text/xml', 'application/xml'],
+ text: 'text/plain',
+ js: 'text/javascript',
+ rss: 'application/rss+xml',
+ atom: 'application/atom+xml',
+ css: 'text/css',
+ csv: 'text/csv',
+ all: '*/*',
+ json: ['application/json','text/json'],
+ form: 'application/x-www-form-urlencoded',
+ multipartForm: 'multipart/form-data'
+ ]
+// The default codec used to encode data with ${}
+grails.views.default.codec="none" // none, html, base64
+grails.views.gsp.encoding="UTF-8"
+grails.converters.encoding="UTF-8"
+
+// enabled native2ascii conversion of i18n properties files
+grails.enable.native2ascii = true
+
+// set per-environment serverURL stem for creating absolute links
+environments {
+ production {
+ grails.serverURL = "http://www.changeme.com"
+ }
+ development {
+ grails.serverURL = "http://localhost:8080/${appName}"
+ }
+ test {
+ grails.serverURL = "http://localhost:8080/${appName}"
+ }
+
+}
+
+// log4j configuration
+log4j = {
+ // Example of changing the log pattern for the default console
+ // appender:
+ //
+ //appenders {
+ // console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
+ //}
+
+ root {
+ info()
+ }
+
+ error 'org.codehaus.groovy.grails.web.servlet', // controllers
+ 'org.codehaus.groovy.grails.web.pages', // GSP
+ 'org.codehaus.groovy.grails.web.sitemesh', // layouts
+ 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
+ 'org.codehaus.groovy.grails.web.mapping', // URL mapping
+ 'org.codehaus.groovy.grails.commons', // core / classloading
+ 'org.codehaus.groovy.grails.plugins', // plugins
+ 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
+ 'org.springframework',
+ 'org.hibernate'
+
+ warn 'org.mortbay.log'
+}
+
+
@@ -0,0 +1,32 @@
+dataSource {
+ pooled = true
+ driverClassName = "org.hsqldb.jdbcDriver"
+ username = "sa"
+ password = ""
+}
+hibernate {
+ cache.use_second_level_cache=true
+ cache.use_query_cache=true
+ cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider'
+}
+// environment specific settings
+environments {
+ development {
+ dataSource {
+ dbCreate = "create-drop" // one of 'create', 'create-drop','update'
+ url = "jdbc:hsqldb:mem:devDB"
+ }
+ }
+ test {
+ dataSource {
+ dbCreate = "update"
+ url = "jdbc:hsqldb:mem:testDb"
+ }
+ }
+ production {
+ dataSource {
+ dbCreate = "update"
+ url = "jdbc:hsqldb:file:prodDb;shutdown=true"
+ }
+ }
+}
@@ -0,0 +1,11 @@
+class UrlMappings {
+ static mappings = {
+ "/$controller/$action?/$id?"{
+ constraints {
+ // apply constraints here
+ }
+ }
+ "/"(view:"/index")
+ "500"(view:'/error')
+ }
+}
No changes.
@@ -0,0 +1,72 @@
+package com.grailsrocks.jqueryui
+
+class JqueryUiTagLib {
+ static namespace = "jqui"
+
+ static writeAttrs( attrs, output) {
+ // Output any remaining user-specified attributes
+ attrs.each { k, v ->
+ output << k
+ output << '="'
+ output << v.encodeAsHTML()
+ output << '" '
+ }
+ }
+
+ static LINK_WRITERS = [
+ js: { url, constants, attrs ->
+ def o = new StringBuilder()
+ o << "<script src=\"${url.encodeAsHTML()}\" "
+
+ // Output info from the mappings
+ writeAttrs(constants, o)
+ writeAttrs(attrs, o)
+
+ o << '></script>'
+ return o
+ },
+
+ link: { url, constants, attrs ->
+ def o = new StringBuilder()
+ o << "<link href=\"${url.encodeAsHTML()}\" "
+
+ // Output info from the mappings
+ writeAttrs(constants, o)
+ writeAttrs(attrs, o)
+
+ o << '/>'
+ return o
+ }
+ ]
+
+ static RESOURCE_MAPPINGS = [
+ css:[type:"text/css", rel:'stylesheet'],
+ rss:[type:'application/rss+xml', rel:'alternate'],
+ atom:[type:'application/atom+xml', rel:'alternate'],
+ favicon:[type:'image/x-icon', rel:'shortcut icon'],
+ appleicon:[type:'image/x-icon', rel:'apple-touch-icon'],
+ js:[writer:'js', type:'text/javascript']
+ ]
+
+ def resources = { attrs ->
+ def theme = attrs.theme ?: 'ui-lightness'
+ def ver = '1.8'
+ out << resourceLink(plugin: attrs.theme ? null : 'jqueryUi', type:'css', dir:'jquery-ui/themes/'+theme,
+ file:'jquery-ui-'+ver+'.custom.css', media:'screen, projection')
+ out << resourceLink(plugin: 'jqueryUi', type:'js', dir:'jquery-ui/js',
+ file:'jquery-ui-'+ver+'.custom.min.js')
+ }
+
+ def resourceLink = { attrs ->
+ def t = attrs.remove('type')
+ def typeInfo = [:] + RESOURCE_MAPPINGS[t]
+ if (!typeInfo) {
+ throwTagError "Unknown resourceLink type: ${t}"
+ }
+ def url = g.resource(plugin:attrs.remove('plugin'), dir:attrs.remove('dir'), file:attrs.remove('file'))
+
+ def writerName = typeInfo.remove('writer')
+ def writer = LINK_WRITERS[writerName ?: 'link']
+ out << writer(url, typeInfo, attrs)
+ }
+}
View
@@ -0,0 +1,54 @@
+<html>
+ <head>
+ <title>Grails Runtime Exception</title>
+ <style type="text/css">
+ .message {
+ border: 1px solid black;
+ padding: 5px;
+ background-color:#E9E9E9;
+ }
+ .stack {
+ border: 1px solid black;
+ padding: 5px;
+ overflow:auto;
+ height: 300px;
+ }
+ .snippet {
+ padding: 5px;
+ background-color:white;
+ border:1px solid black;
+ margin:3px;
+ font-family:courier;
+ }
+ </style>
+ </head>
+
+ <body>
+ <h1>Grails Runtime Exception</h1>
+ <h2>Error Details</h2>
+
+ <div class="message">
+ <strong>Error ${request.'javax.servlet.error.status_code'}:</strong> ${request.'javax.servlet.error.message'.encodeAsHTML()}<br/>
+ <strong>Servlet:</strong> ${request.'javax.servlet.error.servlet_name'}<br/>
+ <strong>URI:</strong> ${request.'javax.servlet.error.request_uri'}<br/>
+ <g:if test="${exception}">
+ <strong>Exception Message:</strong> ${exception.message?.encodeAsHTML()} <br />
+ <strong>Caused by:</strong> ${exception.cause?.message?.encodeAsHTML()} <br />
+ <strong>Class:</strong> ${exception.className} <br />
+ <strong>At Line:</strong> [${exception.lineNumber}] <br />
+ <strong>Code Snippet:</strong><br />
+ <div class="snippet">
+ <g:each var="cs" in="${exception.codeSnippet}">
+ ${cs?.encodeAsHTML()}<br />
+ </g:each>
+ </div>
+ </g:if>
+ </div>
+ <g:if test="${exception}">
+ <h2>Stack Trace</h2>
+ <div class="stack">
+ <pre><g:each in="${exception.stackTraceLines}">${it.encodeAsHTML()}<br/></g:each></pre>
+ </div>
+ </g:if>
+ </body>
+</html>
View
@@ -0,0 +1,10 @@
+//
+// This script is executed by Grails after plugin was installed to project.
+// This script is a Gant script so you can use all special variables provided
+// by Gant (such as 'baseDir' which points on project base dir). You can
+// use 'ant' to access a global instance of AntBuilder
+//
+// For example you can create directory under project tree:
+//
+// ant.mkdir(dir:"${basedir}/grails-app/jobs")
+//
@@ -0,0 +1,5 @@
+//
+// This script is executed by Grails when the plugin is uninstalled from project.
+// Use this script if you intend to do any additional clean-up on uninstall, but
+// beware of messing up SVN directories!
+//
Oops, something went wrong.

0 comments on commit c7cf306

Please sign in to comment.