Skip to content

robbugh/grails-platform-ui-showcase

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Platform UI Showcase Application

This application is a Grails 2 project that demonstrates some simple usage of the Platform UI plugin to render a JS and CSS neutral UI using Themes.

This application is primarily for developers to test their own Platform UI Themes and UI Sets in a simple "trusted environment".

To run this application

  1. Download / clone the repo
  2. Run the app
  3. Browse to http://localhost:8080/UiShowcase/platform/ui and notice how ugly it is
  4. Stop the app
  5. Install the bootstrap-theme plugin
  6. Run the app
  7. Notice how it is less ugly

To develop your own Themes and UI Sets and run them inside this app

You will need to build your Theme and/or UI Set plugins locally (inline plugins may work but I never use them and do not trust them) and install them into this app project locally.

I strongly recommend that you use Grails 1.3.7+ or 2.0.4 if doing this. There are a number of very confusing dependency problems with re-installing locally built snapshot plugins under other Grails versions. Grails 2.1.x includes apparent regressions in this area

Selecting the active theme when you have more than one installed

To do this you can use the handy Platform UI dev mode interface.

By default if there is only one non-default theme supplied, it will be active. However if you install more than one theme, say Bootstrap and your own, it may not choose yours.

To select the theme manually you can browse to http://localhost:8080/UiShowcase/platform/ui and click on the link to the Theme previewer. Use the panel there to select the Theme you wish to test and click "Show".

That theme is now set as the default for the current user session. So you can now browse to / and the app will show using that theme.

Alternatively you can use the standard Platform UI config options to set the theme in Config.groovy.

About

Demo app for testing Grails Platform UI UI Set and Theme plugins

Resources

Stars

Watchers

Forks

Packages

No packages published