Author: rgardler
Date: Sat Dec 10 00:56:44 2011
New Revision: 1212704
URL: http://svn.apache.org/viewvc?rev=1212704&view=rev
Log:
really basic (and only partially functional) widget browser
Added:
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/ (with
props)
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_footer.html
(with props)
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_header.html
(with props)
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/index2html.xsl
(with props)
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/widget.properties
(with props)
Modified:
incubator/wookie/trunk/widgets/templates/widgets/ (props changed)
Propchange: incubator/wookie/trunk/widgets/templates/widgets/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Dec 10 00:56:44 2011
@@ -0,0 +1 @@
+build
Propchange: incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sat Dec 10 00:56:44 2011
@@ -0,0 +1 @@
+build/*
Added:
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_footer.html
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_footer.html?rev=1212704&view=auto
==============================================================================
---
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_footer.html
(added)
+++
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_footer.html
Sat Dec 10 00:56:44 2011
@@ -0,0 +1 @@
+<h3>Wookie Admin</h3>
Propchange:
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_footer.html
------------------------------------------------------------------------------
svn:eol-style = native
Added:
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_header.html
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_header.html?rev=1212704&view=auto
==============================================================================
---
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_header.html
(added)
+++
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_header.html
Sat Dec 10 00:56:44 2011
@@ -0,0 +1 @@
+<h3>${widget.name}</h3>
Propchange:
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/common/content_header.html
------------------------------------------------------------------------------
svn:eol-style = native
Added:
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/index2html.xsl
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/index2html.xsl?rev=1212704&view=auto
==============================================================================
---
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/index2html.xsl
(added)
+++
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/index2html.xsl
Sat Dec 10 00:56:44 2011
@@ -0,0 +1,60 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <xsl:template match="/">
+ <div id="results" data-role="collapsible-set">
+ <xsl:apply-templates select="widgets/widget"/>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="widget">
+ <div class='result' data-role='collapsible'>
+ <xsl:attribute name="wid"><xsl:value-of
select="@id"/></xsl:attribute>
+
+ <xsl:apply-templates select="title"/>
+ <div class="detail">
+ <xsl:apply-templates select="icon"/>
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="author"/>
+ </div>
+ </div>
+ </xsl:template>
+
+ <xsl:template match="title">
+ <h3><xsl:value-of select="."/></h3>
+ </xsl:template>
+
+ <xsl:template match="icon">
+ <img alt="icon">
+ <xsl:attribute name="src"><xsl:value-of select="."/></xsl:attribute>
+ </img>
+ </xsl:template>
+
+ <xsl:template match="description">
+ <p><xsl:value-of select="."/></p>
+ </xsl:template>
+
+ <xsl:template match="author">
+ <p>Author: <xsl:value-of select="."/></p>
+ </xsl:template>
+
+</xsl:stylesheet>
+
Propchange:
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/index2html.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Added:
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/widget.properties
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/widget.properties?rev=1212704&view=auto
==============================================================================
---
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/widget.properties
(added)
+++
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/widget.properties
Sat Dec 10 00:56:44 2011
@@ -0,0 +1,43 @@
+template.name=browse
+widget.shortname=widgetBrowser
+widget.name=Wookie Widget Browser
+widget.description=A widget with which to browse availavble widgets on a
Wookie server.
+widget.help=<p>The widget first displays a list of all widgets available on
the server.</p>
+
+wookie.url=http://localhost:8080/wookie
+
+# The URL from which to retrieve data for the browse index
+#
+# type: string
+# variables: sort = the sort term for APIs that support it
+# order = the sort order for APIs that support it
+browse.index.url="${wookie.url}/widgets?all=true"
+
+# URL of the stylesheet for transforming the index file returned from
browse.index.url into html
+#
+# type: string
+browse.index.xsl.url="index2html.xsl"
+
+# The URL from which to retrieve search data
+#
+# type: string
+# variables: query = query string entered into the search form
+# sort = the sort term for APIs that support it
+# order = the sort order for APIs that support it
+browse.search.url=
+
+# Default sort parameter for APIs that support sorting of the results
+browse.sort=updated
+
+# The URL from which to retrieve detailed
+# information about an item
+#
+# type: string
+# variables: itemId is the ID of the item to display
+browse.get.detail.url="${wookie.url}/widgets/" + itemId
+
+# URL of the stylesheet for transforming a record detail
+# into HTML for display in the expanded index section
+#
+# type: string
+browse.detail.xsl.url="detail2html.xsl"
\ No newline at end of file
Propchange:
incubator/wookie/trunk/widgets/templates/widgets/adminWidgets/widgetBrowse/widget.properties
------------------------------------------------------------------------------
svn:eol-style = native