Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
-Java 8, Grails 2.5.6 and Asset pipeline ready
  • Loading branch information
Javier Molina authored and Javier Molina committed Aug 9, 2017
1 parent f6e5fcd commit 2ac5064
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ImagesClientPluginGrailsPlugin.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class ImagesClientPluginGrailsPlugin {
// the plugin version
def version = "0.7.9"
def version = "0.7.10-SHAPSHOT"
// the version or versions of Grails the plugin is designed for
def grailsVersion = "2.2 > *"
// resources that are excluded from plugin packaging
Expand Down
2 changes: 1 addition & 1 deletion application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Grails Metadata file
#Mon Jul 07 15:14:16 EST 2014
app.grails.version=2.3.11
app.grails.version=2.5.6
app.name=images-client-plugin
7 changes: 7 additions & 0 deletions grails-app/assets/javascripts/ala/images-client-gallery.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Replaces image-gallery resource in old resources plugin
//= encoding UTF-8
//= require ala/images-client
//= require img-gallery/js/img-gallery.js
//= require img-gallery/lib/slider-pro/js/jquery.sliderPro.custom.js
*/
11 changes: 11 additions & 0 deletions grails-app/assets/javascripts/ala/images-client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Replaces image-viewer resource in old resources plugin
//= encoding UTF-8
* // require jquery
* // require bootstrap
//= require_tree leaflet
//= require_tree leaflet.draw
//= require_tree leaflet.loading
//= require ala-image-viewer.js
//= require bootbox.min.js
*/
7 changes: 7 additions & 0 deletions grails-app/assets/stylesheets/ala/images-client-gallery.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Replaces image-gallery resource in old resources plugin
*= encoding UTF-8
*= require ala/images-client
*= require img-gallery/img-gallery.css
*= require img-gallery/lib/slider-pro/css/slider-pro.css
*/
10 changes: 10 additions & 0 deletions grails-app/assets/stylesheets/ala/images-client.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Replaces image-viewer resource in old resources plugin
*= encoding UTF-8
* // require jquery
* // require bootstrap
*= require_tree leaflet
*= require_tree leaflet.draw
*= require_tree leaflet.loading
*= require font-awesome
*/
3 changes: 2 additions & 1 deletion grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ grails.project.dependency.resolution = {
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
// runtime 'mysql:mysql-connector-java:5.1.27'
compile "commons-httpclient:commons-httpclient:3.1"
compile('org.codehaus.groovy.modules.http-builder:http-builder:0.7') {
excludes "commons-logging", "xml-apis", "groovy"
}
Expand All @@ -45,7 +46,7 @@ grails.project.dependency.resolution = {
":rest-client-builder:1.0.3") {
export = false
}
compile ':ala-auth:1.3.4'
compile ':ala-auth:2.1.3'
runtime ':font-awesome-resources:4.3.0.1'
}
}
2 changes: 2 additions & 0 deletions grails-app/conf/ImagesClientResources.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ modules = {
resource url: [plugin: "images-client-plugin", dir: 'js/audiojs', file: 'audio.min.js']
}

// assets pipeline replaces this module with ala/images-client.js and ala/images-client.css
'image-viewer' {
dependsOn 'jquery', 'bootstrap', 'leaflet', 'leaflet-fullscreen', 'leaflet-measure', 'leaflet-draw', 'leaflet-loading', 'font-awesome'
resource url: [plugin: "images-client-plugin", dir: 'js', file: 'ala-image-viewer.js']
resource url: [plugin: "images-client-plugin", dir: 'js', file: 'bootbox.min.js']
}

// assets pipeline replaces this module with ala/images-client-gallery.js and ala/images-client-gallery.css
'img-gallery' {
dependsOn 'image-viewer'
resource url: [plugin: "images-client-plugin", dir: 'js/img-gallery/lib/slider-pro/css', file: 'slider-pro.css']
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package images.client.plugin

import au.org.ala.web.AlaSecured
import au.org.ala.web.CASRoles
import au.org.ala.web.AuthService
import grails.converters.JSON
import grails.converters.XML
import org.apache.commons.httpclient.HttpStatus
Expand All @@ -14,7 +13,7 @@ class ImageClientController {
def imagesWebService
def speciesListWebService
def bieWebService
def authService
AuthService authService

def createSubImage(){
[userId: authService.getUserId()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package images.client.plugin

import au.org.ala.web.AuthService

/**
* Image Client Tag Lib to be used in the gsp related to image client plugin feature
*
*/
class ImageClientTagLib {

def authService
AuthService authService
static namespace = 'imageClient'

/**
Expand Down

0 comments on commit 2ac5064

Please sign in to comment.