浏览代码

[jframegallery] Remove jframegallery

Hue2 doesn't use jframe. The gallery doesn't apply any more.
bc Wong 13 年之前
父节点
当前提交
e8e8b7651d
共有 32 个文件被更改,包括 1 次插入1831 次删除
  1. 1 2
      apps/Makefile
  2. 0 24
      apps/jframegallery/Makefile
  3. 0 1
      apps/jframegallery/hueversion.py
  4. 0 29
      apps/jframegallery/setup.py
  5. 0 15
      apps/jframegallery/src/jframegallery/__init__.py
  6. 0 21
      apps/jframegallery/src/jframegallery/settings.py
  7. 0 65
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Bar.Paginator.html
  8. 0 129
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Bar.html
  9. 0 128
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Button.html
  10. 0 195
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Grid.html
  11. 0 37
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Icon.html
  12. 0 32
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/app-launcher.html
  13. 0 32
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/chooser.linker.html
  14. 0 39
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/errors.html
  15. 0 32
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/flash.html
  16. 0 49
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/forms_with_dependencies.mako
  17. 0 33
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/forwarding.html
  18. 0 35
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/frame.tips.html
  19. 0 27
      apps/jframegallery/src/jframegallery/templates/gallery/Hue/redirect.html
  20. 0 1
      apps/jframegallery/src/jframegallery/templates/gallery/JFrame_Demos
  21. 0 49
      apps/jframegallery/src/jframegallery/templates/index.html
  22. 0 57
      apps/jframegallery/src/jframegallery/templates/source.mako
  23. 0 66
      apps/jframegallery/src/jframegallery/test.py
  24. 0 36
      apps/jframegallery/src/jframegallery/urls.py
  25. 0 293
      apps/jframegallery/src/jframegallery/views.py
  26. 0 167
      apps/jframegallery/src/jframegallery/windmilltests.py
  27. 二进制
      apps/jframegallery/static/art/jframegallery.png
  28. 0 32
      apps/jframegallery/static/bootstrap.js
  29. 0 111
      apps/jframegallery/static/css/jframegallery.css
  30. 0 8
      apps/jframegallery/static/help/index.md
  31. 0 81
      apps/jframegallery/static/js/Source/JFrameGallery/Hue.JFrameGallery.js
  32. 0 5
      apps/jframegallery/static/js/package.yml

+ 1 - 2
apps/Makefile

@@ -41,8 +41,7 @@ APPS := about \
 	useradmin
 
 # <<<< DEV ONLY
-APPS += hello \
-	jframegallery
+APPS += hello
 # END DEV ONLY >>>>
 
 ################################################

+ 0 - 24
apps/jframegallery/Makefile

@@ -1,24 +0,0 @@
-#
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-#
-
-ifeq ($(ROOT),)
-  $(error "Error: Expect the environment variable $$ROOT to point to the Desktop installation")
-endif
-
-APP_NAME = hue-jframegallery
-include $(ROOT)/Makefile.sdk

+ 0 - 1
apps/jframegallery/hueversion.py

@@ -1 +0,0 @@
-../../VERSION

+ 0 - 29
apps/jframegallery/setup.py

@@ -1,29 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-from setuptools import setup, find_packages
-from hueversion import VERSION
-
-setup(
-      name = "jframegallery",
-      version = VERSION,
-      author = "Hue",
-      url = 'http://github.com/cloudera/hue',
-      description = "Hue JFrame Gallery",
-      packages = find_packages('src'),
-      package_dir = {'': 'src'},
-      install_requires = ['setuptools', 'desktop'],
-      entry_points = { 'desktop.sdk.application': 'jframegallery=jframegallery' },
-)

+ 0 - 15
apps/jframegallery/src/jframegallery/__init__.py

@@ -1,15 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.

+ 0 - 21
apps/jframegallery/src/jframegallery/settings.py

@@ -1,21 +0,0 @@
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-DJANGO_APPS = [ "jframegallery" ]
-NICE_NAME = "JFrame Gallery (SDK)"
-REQUIRES_HADOOP = False
-DEPENDER_PACKAGE_YMLS = [
-    "static/js/package.yml",
-]

+ 0 - 65
apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Bar.Paginator.html

@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta http-equiv=Content-type content="text/html; charset=utf-8">
-	<title>OOCSS Component: Bar.Paginator </title>
-
-	<link rel=stylesheet href="/static/css/reset.css">
-	<link rel=stylesheet href="/static/css/shared.css">
-	<link rel=stylesheet href="/static/oocss/Icon.css">
-	<link rel=stylesheet href="/static/oocss/Button.css">
-	<link rel=stylesheet href="/static/oocss/Bar.css">
-	<link rel=stylesheet href="/static/oocss/Bar.Paginator.css">
-
-	<link rel=stylesheet href="../../../../../../desktop/core/static/css/reset.css">
-	<link rel=stylesheet href="../../../../../../desktop/core/static/css/shared.css">
-	<link rel=stylesheet href="../../../../../../desktop/core/static/oocss/Icon.css">
-	<link rel=stylesheet href="../../../../../../desktop/core/static/oocss/Button.css">
-	<link rel=stylesheet href="../../../../../../desktop/core/static/oocss/Bar.css">
-	<link rel=stylesheet href="../../../../../../desktop/core/static/oocss/Bar.Paginator.css">
-
-</head>
-<body>
-<div class="print oocss-gallery" style="padding:2ex">
-
-	<h1>Paginator Bar</h1>
-	<p>Bar subclass. Adds a few special rules for the paginator bar component.</p>
-
-	<div class="Bar Paginator">
-		<a href="" class="Button roundLeft"><i class="Icon iFirst">First</i></a>
-		<a href="" class="Button"><i class="Icon iBack">Back</i></a>
-		<a href="" class="Button"><i class="Icon iRefresh">Refresh</i></a>
-		<form action=""><input class=round size=5 value=page1><input type=submit class=jframe-hidden value=Go /></form>
-		<a href="" class="Button"><i class="Icon iNext">Next</i></a>
-		<a href="" class="Button roundRight"><i class="Icon iLast">Last</i></a>
-	</div>
-
-	<div class="Bar Paginator">
-		<a href="" class="disabled Button roundLeft"><i class="Icon iFirst">First</i></a>
-		<a href="" class="disabled Button"><i class="Icon iBack">Back</i></a>
-		<a href="" class="disabled Button"><i class="Icon iRefresh">Refresh</i></a>
-		<form action=""><input class=round size=5 value=page1><input type=submit class=jframe-hidden value=Go /></form>
-		<a href="" class="disabled Button"><i class="Icon iNext">Next</i></a>
-		<a href="" class="disabled Button roundRight"><i class="Icon iLast">Last</i></a>
-		
-		<em>".Button.disabled"</em>
-	</div>
-
-	<div class="notFocused">
-
-		<div class="Bar Paginator">
-			<a href="" class="Button roundLeft"><i class="Icon iFirst">First</i></a>
-			<a href="" class=Button><i class="Icon iBack">Back</i></a>
-			<a href="" class=Button><i class="Icon iRefresh">Refresh</i></a>
-			<form action=""><input class=round size=5 value=page1><input type=submit class=jframe-hidden value=Go /></form>
-			<a href="" class=Button><i class="Icon iNext">Next</i></a>
-			<a href="" class="Button roundRight"><i class="Icon iLast">Last</i></a>
-			
-			<em>".notFocused .Button"</em>
-		</div>
-
-	</div>
-
-</div>
-</body>
-</html>

+ 0 - 129
apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Bar.html

@@ -1,129 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta http-equiv=Content-type content="text/html; charset=utf-8">
-	<title>OOCSS Component: Bar </title>
-
-<link rel=stylesheet href="/static/css/reset.css">
-<link rel=stylesheet href="/static/css/shared.css">
-<link rel=stylesheet href="/static/oocss/Button.css">
-<link rel=stylesheet href="/static/oocss/Bar.css">
-
-<link rel=stylesheet href="../../../../../../desktop/core/static/css/reset.css">
-<link rel=stylesheet href="../../../../../../desktop/core/static/css/shared.css">
-<link rel=stylesheet href="../../../../../../desktop/core/static/oocss/Button.css">
-<link rel=stylesheet href="../../../../../../desktop/core/static/oocss/Bar.css">
-
-</head>
-<body>
-<div class="oocss-gallery" style="padding:2ex">
-
-<h1>Bar</h1>
-<p>The Bar component removes all the space between its children<br>
-	so that they bump right up against eachother.</p>
-
-<p><strong>Without</strong> the Bar class</p>
-<p>
-	<a class=Button>Button </a>
-	<a class=Button>Button </a>
-	<a class=Button>Button </a>
-</p>
-
-<p><strong>With</strong> the Bar class</p>
-
-<p class=Bar>
-	<a class=Button>Button </a>
-	<a class=Button>Button </a>
-	<a class=Button>Button </a>
-</p>
-
-<hr>
-
-<p>It also forces the whole block to behave as a solid block that cannot break or wrap.</p>
-
-<div class=Bar>
-	<a class="Button">A Button</a>
-	<button class="Button" style="max-width:30ex">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt…</button>
-	<a class="Button">A Button</a>
-	<button class="Button">button Button</button>
-	<a class="Button">A Button</a>
-	<button class="Button">button Button</button>
-	<a class="Button">A Button</a>
-	<button class="Button">button Button</button>
-	<a class="Button">A Button</a>
-	<button class="Button">button Button</button>
-</div>
-
-<p>To force breaks you may use a <code>&lt;BR&gt;</code> tag.</p>
-<div class=Bar>
-	<a class=Button>Button </a>
-	<a class=Button>Button </a>
-	<a class=Button>Button </a>
-	<br>
-	<a class=Button>BR tags work as expected</a>
-	<a class=Button>Button </a>
-	<a class=Button>Button </a>
-</div>
-
-<hr>
-<h2>Vertically align the buttons</h2>
-<p>To vertically align the buttons in a Bar simply add a valign attribute.</p>
-<p>e.g. <code>&lt;p class=Bar valign=<strong>bottom</strong>&gt;</code> or <code>&lt;p class=Bar valign=<strong>top</strong>&gt;</code></p>
-
-<p class=Bar valign=bottom>
-	<a class="Button">A Button</a>
-	<button class="Button" style="max-width:30ex">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt…</button>
-	<a class="Button">A Button</a>
-	<button class="Button">button Button</button>
-	<code>&nbsp;valign=<strong>bottom</strong></code>
-</p>
-
-<p class=Bar>
-	<a class="Button">A Button</a>
-	<button class="Button" style="max-width:30ex">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt…</button>
-	<a class="Button">A Button</a>
-	<button class="Button">button Button</button>
-	<span><code>&nbsp;valign</code> not set</span>
-</p>
-
-<p class=Bar valign=top>
-	<a class="Button">A Button</a>
-	<button class="Button" style="max-width:30ex">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt…</button>
-	<a class="Button">A Button</a>
-	<button class="Button">button Button</button>
-	<code>&nbsp;valign=<strong>top</strong></code>
-</p>
-
-
-<hr>
-<h2>Font Size</h2>
-<p>The font-size for the contents of a Bar is hard-coded at 11px.</p>
-
-<h3>Custom CSS</h3>
-
-<p>To override this setting, add the following to your app's custom css file:</p>
-
-<pre><code><strong>.MyApp </strong>.Bar > * {
-	font-size:22px;
-}</code></pre>
-
-<p><em>Note: replace <code>MyApp</code> with the class of your actual app.</em></p>
-
-<h3>Subclass Bar</h3>
-
-<p>Alternatively you can subclass Bar itself.</p>
-
-<p>CSS: Create your subclass.</p>
-
-<pre><code>.Bar<strong>.MyCustomBar3</strong> > * {
-	font-size:22px;
-}</code></pre>
-
-<p>HTML: Add your new class to a Bar element.</p>
-
-<pre><code>&lt;p class=&quot;Bar MyCustomBar3&quot;&gt;&hellip;</code></pre>
-
-
-</div>
-</body>
-</html>

+ 0 - 128
apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Button.html

@@ -1,128 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta http-equiv=Content-type content="text/html; charset=utf-8">
-	<title>OOCSS Component: Button </title>
-
-<link rel=stylesheet href="/static/css/reset.css">
-<link rel=stylesheet href="/static/css/shared.css">
-<link rel=stylesheet href="/static/oocss/Button.css">
-
-<link rel=stylesheet href="../../../../../../desktop/core/static/css/reset.css">
-<link rel=stylesheet href="../../../../../../desktop/core/static/css/shared.css">
-<link rel=stylesheet href="../../../../../../desktop/core/static/oocss/Button.css">
-
-</head>
-<body>
-<div class="oocss-gallery" style="padding:2ex">
-
-<h1>Button</h1>
-
-<h2>Usage</h2>
-
-<p>Add the class "Button" to an element to declare that it is of the Button class.</p>
-
-<p>e.g. <code>&lt;a class=&quot;Button&quot;&gt;A Button&lt;/a&gt;</code></p>
-
-<a class="Button">A Button</a>
-<button class="Button">button Button</button>
-
-<p>Buttons can contain almost any arbitrary html.</p>
-
-<a class="Button">
-	A Button Block
-	<ol>
-		<li>Howdy</li>
-		<li>Do</li>
-	</ol>
-	<em class="Button">A Button in a Button!</em>
-</a>
-
-<button class="Button">
-	button Button Block
-	<ol>
-		<li>Howdy</li>
-		<li>Do</li>
-	</ol>
-</button>
-
-<hr>
-<h2><code>disabled Button</code></h2>
-
-<p>To declare that the Button is disabled:</p>
-
-<ul>
-	<li>Add the attribute <code>disabled</code> to the element to declare that the Button is disabled</li>
-	<li>OR add the class <code>disabled</code> to the element </li>
-</ul>
-
-<p>e.g. <code>&lt;a class=&quot;Button disabled&quot;&gt;A disabled Button&lt;/a&gt;</code></p>
-
-disabled class:
-<a class="Button disabled">A.Button.disabled</a>
-<button class="Button disabled">button.Button.disabled</button>
-
-disabled attribute:
-<a class="Button" disabled>A.Button[disabled]</a>
-<button class="Button" disabled>button.Button[disabled]</button>
-
-<hr>
-<h2><code>notFocused Button</code></h2>
-
-<p>In order to handle the notFocused state of jBrowser windows, there is a <code>notFocused Button</code> state.</p>
-<p><em>There's nothing you have to do to your Button to get this feature.</em></p>
-
-<div class=notFocused>
-	<a class="Button">A Button</a>
-	<button class="Button">button Button</button>
-	<a disabled class="Button">A disabled Button</a>
-	<button disabled class="Button">button disabled Button</button>
-</div>
-
-<hr>
-
-<h2>round</h2>
-
-<dl>
-
-	<dt><code>class=<strong>roundRight</strong></code></dt>
-	<dd>Round the edge of the top right and bottom right corners.</dd>
-	<dd><p><i class="Button roundRight">Button roundRight</i> </p></dd>
-	<dd></dd>
-
-	<dt><code>class=<strong>roundLeft</strong></code></dt>
-	<dd>Round the edge of the top left and bottom left corners.</dd>
-	<dd><p><i class="Button roundLeft">Button roundLeft</i> </p></dd>
-
-	<dt><code>class=<strong>round</strong></code></dt>
-	<dd>roundLeft + roundRight</dd>
-	<dd><p><i class="Button round">Button round</i> </p></dd>
-
-</dl>
-
-<p><em>NOTE: IE8 gracefully degrades. It does not support rounded edges.</em></p>
-
-<h2>Size</h2>
-
-<p>The size of a Button is determined based on the CSS font-size.</p>
-<p>e.g <code>&lt;a style=&quot;font-size:<strong>1.2em</strong>&quot; class=&quot;round Button&quot;&gt;button&lt;/a&gt;</code></p>
-
-
-<p>
-	<a style="font-size:1.25em" class="round Button">button</a>
-	<a style="font-size:.65em" class="round Button">button</a>
-</p>
-
-<p>e.g <code>&lt;p style=&quot;font-size:<strong>1.2em</strong>&quot;&gt; &lt;a class=&quot;round Button&quot;&gt;button&lt;/a&gt; &lt;/p&gt;</code></p>
-<p style="font-size:1.25em">
-	<a class="round Button">button</a>
-	<a class="round Button">button</a>
-</p>
-<p style="font-size:.65em">
-	<a class="round Button">button</a>
-	<a class="round Button">button</a>
-</p>
-
-</div>
-</body>
-</html>

+ 0 - 195
apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Grid.html

@@ -1,195 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta http-equiv=Content-type content="text/html; charset=utf-8">
-	<title>OOCSS Component: Grid </title>
-
-	<link rel=stylesheet href="/static/css/reset.css">
-	<link rel=stylesheet href="/static/css/shared.css">
-	<link rel=stylesheet href="/static/oocss/Grid.css">
-
-	<link rel=stylesheet href="../../../../../../desktop/core/static/css/reset.css">
-	<link rel=stylesheet href="../../../../../../desktop/core/static/css/shared.css">
-	<link rel=stylesheet href="../../../../../../desktop/core/static/oocss/Grid.css">
-
-</head>
-<body>
-<div class="print oocss-gallery" style="padding:2ex">
-
-<h1>Grid</h1>
-<p><strong>Requires <code>class=Grid</code></strong></p>
-<p>Semantic flexible grid layouts. Use the grid to impose a strict grid layout.</p>
-<p>A Grid can have many <code>"Row"</code> children.</p>
-
-<p><strong>Grid</strong> is a namespace.</p>
-
-<p>NOTE: Having non Row children of a Grid may give unexpected results.</p>
-<hr>
-
-<h3>Grid > Row</h3>
-<p><strong>Requires <code>class=Row</code></strong></p>
-<p>Split a Grid up into rows</p>
-
-<hr>
-
-<h3>Grid > Row > *</h3>
-<p>Any child of a "Row"</p>
-
-<dl class=Grid style="border:5px solid green">
-
-	<dt class=Row>
-		<b style="border:5px solid blue">Grid > Row > *</b>
-		<u style="border:5px solid purple">Each 'cell' can have its own border and other styles</u>
-	</dt>
-
-	<dd class=Row>
-		<b>Col A</b>
-	</dd>
-
-	<dt class=Row>
-		<b></b>
-		<i>lorem ipsum dolar sit amet</i>
-	</dt>
-
-	<dd class=Row>
-		<b></b>
-		<i></i>
-		<span>Col C</span>
-	</dd>
-
-</dl>
-
-<h2>Form Grid</h2>
-<p>Design complex semantic forms without writing any custom CSS.</p>
-
-<form class=Grid>
-
-	<label class=Row>
-		<span>Foo bar baz bang</span>
-		<input value=foo>
-		<strong>Required</strong>
-	</label>
-
-	<label class=Row>
-		<span>Lorem ipsum dolor sit amet,<br>consectetur adipisicing elit,<br>sed do eiusmod tempor incididunt</span>
-		<input value=bar>
-		<strong>Required</strong>
-	</label>
-
-	<label class=Row>
-		<span>Bang</span>
-		<input value=bang>
-		<strong>Not Required</strong>
-	</label>
-
-	<div class=Row>
-		<label align=right><input type=reset></label>
-		<label><input type=submit></label>
-	</div>
-
-</form>
-
-<h3>Custom Style</h3>
-
-<h4>Inline</h4>
-<p>Supported attributes on Rows and Row direct children:</p>
-<ul>
-	<li><code>&nbsp;align=left</code></li>
-	<li><code>&nbsp;align=right</code></li>
-	<li><code>&nbsp;align=center</code></li>
-	<li><code>valign=top</code></li>
-	<li><code>valign=bottom</code></li>
-	<li><code>valign=middle</code></li>
-</ul>
-<p>Supported inline style:</p>
-<dd>
-	<dt>width</dt>
-	<dd>e.g. <code>style="width:20ex"</code></dd>
-	<dd>If set on a child of the first Row, <br>it will define the width for the entire column.</dd>
-</dd>
-
-<form class=Grid style="width:100%; border:2px solid blue">
-
-	<label class=Row>
-		<span style="width:20%"> style="width:20ex"</span>
-		<input value=foo>
-		<strong style="width:20ex" align=center>Required</strong>
-	</label>
-
-	<h5 class=Row align=center>
-		<span>Row</span>
-		<span>align=</span>
-		<span>center</span>
-	</h5>
-
-	<label class=Row>
-		<span align=right valign=middle>right middle</span>
-		<textarea rows=4>textarea[rows=4]
-			Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</textarea>
-		<strong align=center>Required</strong>
-	</label>
-
-	<label class=Row>
-		<span>Individual Row children can contain tons and tons of text without breaking the layout even a bit!</span>
-		<span align=center valign=middle><input style="width:60%" value="align=center valign=middle"></span>
-		<strong align=center>Not Required</strong>
-	</label>
-
-	<div class=Row>
-		<i></i>
-		<span align=right><input type=reset></span>
-		<label align=center><input type=submit></label>
-	</div>
-
-</form>
-
-<hr>
-<p><em>NOTE: Using a form element as a direct child of a Row may have unexpected results in some edge cases.</em></p>
-<hr>
-
-
-<h2>Columns</h2>
-
-
-<h3>Auto Widths</h3>
-<div class=Grid>
-	<div class=Row>
-		<h3>left</h3>
-		<h3>center</h3>
-		<h3>right</h3>
-	</div>
-	<div class=Row>
-		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
-		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo</p>
-		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,</p>
-	</div>
-	<div class=Row>
-		<strong>left</strong>
-		<strong>center</strong>
-		<strong>right</strong>
-	</div>
-</div>
-
-<hr>
-<h3>Fluid Widths</h3>
-<div class=Grid>
-	<div class=Row>
-		<h3>top left</h3>
-		<h3>top center</h3>
-		<h3>top right</h3>
-	</div>
-	<div class=Row>
-		<p style="width:33.3%">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
-		<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo</p>
-		<p style="width:33.3%">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,</p>
-	</div>
-	<div class=Row>
-		<h4>bottom left</h4>
-		<h4>bottom center</h4>
-		<h4>bottom right</h4>
-	</div>
-</div>
-
-</div>
-</body>
-</html>

+ 0 - 37
apps/jframegallery/src/jframegallery/templates/gallery/Hue/OOCSS.Icon.html

@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta http-equiv=Content-type content="text/html; charset=utf-8">
-	<title>OOCSS Component: Icon </title>
-
-	<link rel=stylesheet href="/static/css/reset.css">
-	<link rel=stylesheet href="/static/css/shared.css">
-	<link rel=stylesheet href="/static/oocss/Icon.css">
-
-	<link rel=stylesheet href="../../../../../../desktop/core/static/css/reset.css">
-	<link rel=stylesheet href="../../../../../../desktop/core/static/css/shared.css">
-	<link rel=stylesheet href="../../../../../../desktop/core/static/oocss/Icon.css">
-
-</head>
-<body>
-<div class="print oocss-gallery">
-
-<h3>Icon</h3>
-
-<p>Replace semantic text with an image.</p>
-
-<p>
-	iFirst   <i class="Icon iFirst">First</i>
-	iBack    <i class="Icon iBack">Back</i>
-	iRefresh <i class="Icon iRefresh">Refresh</i>
-	iNext    <i class="Icon iNext">Next</i>
-	iLast    <i class="Icon iLast">Last</i>
-
-	Custom <i class="Icon" style="background-image:url(/static/art/spinner.gif);height:16px;width:16px">Custom Icon: Spinner</i>
-</p>
-
-<p>Sometimes an <code>IMG</code> would actually be the better option. IMG element <img src="/static/art/spinner.gif"></p>
-
-</div>
-</body>
-</html>

+ 0 - 32
apps/jframegallery/src/jframegallery/templates/gallery/Hue/app-launcher.html

@@ -1,32 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>App Launcher</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<ul>
-				<li><a target="FileBrowser">I launch the file browser to its default location because I do not specify an href (but I do specify target="FileBrowser").</a></li>
-				<li><a href="/filebrowser/view/user" target="FileBrowser">I launch the file browser to the /user directory (I specify an href).</a></li>
-				<li><a href="/thisDoesNotExist" target="FileBrowser">I launch the file browser app to an invalid location. This produces an error that, when dismissed, closes the app.</a></li>
-			</ul>
-		</div>
-	</body>
-</html>

+ 0 - 32
apps/jframegallery/src/jframegallery/templates/gallery/Hue/chooser.linker.html

@@ -1,32 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<html>
-<head>
-  <title>File Chooser Filter</title>
-</head>
-<body>
-  <div class="jframe_padded">
-    <p>Choose a File (Can't Choose Directory)
-    <input type="text" name="file"/><a class="hue-choose_file" data-filters="ArtButton" data-chooseFor="file">Save As</a>
-    <p>Choose a Directory (Can't Choose Path)
-    <input type="text" name="dir"/><a class="hue-choose_dir" data-filters="ArtButton" data-chooseFor="dir">Save As</a>
-    <p>Choose a Path (Can Choose Either Directory or Path)
-    <input type="text" name="path"/><a class="hue-choose_path" data-filters="ArtButton" data-chooseFor="path">Save As</a>
-  </div>
-</body>
-</html>

+ 0 - 39
apps/jframegallery/src/jframegallery/templates/gallery/Hue/errors.html

@@ -1,39 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html>
-  <head>
-    <title>Errors</title>
-  </head>
-  <body>
-    <div class="jframe_padded">
-      <p>Clicking on any of these should trigger an error popup.</p>
-      <ul>
-        <li><a id=e_1 href="/">A request for /</a> </li>
-        <li><a id=e_1 href="/jframegallery/gallery/error_404">Explicit 404</a> </li>
-        <li><a id=e_2 href="/jframegallery/gallery/error_message_exception">Explict message exception</a> </li>
-        <li><a id=e_3 href="/jframegallery/gallery/error_popup_exception">Explict popup exception</a> </li>
-        <li><a id=e_4 href="/jframegallery/gallery/error_500">500 (trapped by middleware)</a></li>
-        <li><a id=e_5 href="/jframegallery/gallery/error_real_500">500 (not trapped by middleware)</a></li>
-        <li><a id=e_6 href="/test/does_not_exist/404">404 because link doesn't exist</a> </li>
-        <li><a id=e_7 href="/jframegallery/gallery/error_python">Code doesn't work</a> </li>
-        <li><a id=e_8 href="/jframegallery/gallery/error_redirect">Redirect to bad location</a> </li>
-      </ul>
-    </divt>
-  </body>
-</html>

+ 0 - 32
apps/jframegallery/src/jframegallery/templates/gallery/Hue/flash.html

@@ -1,32 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>JFrame Gallery</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<h1>Flash Messaging Testing.</h1>
-			<p>You should see some messages on the desktop. They zoom away after about 2 seconds. These were set in the controller (views.py) using the following syntax:</p>
-			<code><pre>request.flash.put('just a test')
-request.flash.put('another growl test')
-request.flash.put('yet another message to bubble up.')</pre></code>
-		</div>
-	</body>
-</html>

+ 0 - 49
apps/jframegallery/src/jframegallery/templates/gallery/Hue/forms_with_dependencies.mako

@@ -1,49 +0,0 @@
-## Licensed to Cloudera, Inc. under one
-## or more contributor license agreements.  See the NOTICE file
-## distributed with this work for additional information
-## regarding copyright ownership.  Cloudera, Inc. 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.
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html>
-  <head>
-    <title>Forms with Dependencies</title>
-  </head>
-  <body>
-    <p>
-     The form below conditionally uses different inputs given the state of the select input. If you choose alpha, the "A" section is used.
-     This is using the <i>DependencyAwareForm</i> Django form in the view. There's no UI component here; this test is verifying that Django form extension.
-    </p>
-    <form action="${url("jframegallery.views.forms_with_dependencies")}" method="post" class="dependency_form jframe_padded {'deps':${form.render_dep_metadata()|n}}">
-      % if len(form.non_field_errors()):
-        ${unicode(form.non_field_errors()) | n}
-      % endif
-      % for field in form:
-        <dt>${field.label_tag() | n}</dt>
-        <dd>${unicode(field) | n}
-          % if len(field.errors):
-            ${unicode(field.errors) | n}
-          % endif
-        </dd>
-      % endfor
-    <input type="submit">
-    </form>
-
-    <div class="jframe_padded">
-      % if data:
-        Succesful submission: ${data}
-      % else:
-        No submission.
-      % endif
-    </div>
-  </body>
-</html>

+ 0 - 33
apps/jframegallery/src/jframegallery/templates/gallery/Hue/forwarding.html

@@ -1,33 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>Errors</title>
-  </head>
-  <body>
-    <div class="jframe_padded">
-      <p>
-      The first time you visit this page, you should see X.  If you click
-      on refresh, you should see Y.</p>
-      <p><big><big><div id="test_letter">{{ letter }}</div></big></big></p>
-      <p>(The backend is simulating a forward by updating
-      the path.)</p>
-    </div>
-  </body>
-</html>

+ 0 - 35
apps/jframegallery/src/jframegallery/templates/gallery/Hue/frame.tips.html

@@ -1,35 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Frame tips</title>
-	</head>
-	<body>
-		<div class="jframe_padded">
-			<ul>
-				<li><a class="frame_tip" title="link #1">this is a frame tip</a></li>
-				<li><a class="frame_tip" title="link #2">when you mouse over</a></li>
-				<li><a class="frame_tip" title="link #3">any of these links</a></li>
-				<li><a class="frame_tip" title="link #4">a tip is displayed</a></li>
-				<li><a class="frame_tip" title="link #5">in the footer of this</a></li>
-				<li><a class="frame_tip" title="link #6">little popup window.</a></li>
-			</ul>
-		</div>
-	</body>
-</html>

+ 0 - 27
apps/jframegallery/src/jframegallery/templates/gallery/Hue/redirect.html

@@ -1,27 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html>
-<html>
-	<head>
-		<title>Redirects</title>
-	</head>
-	<body>
-		<p class="jframe_padded"><a href="/jframegallery/gallery/redirect_301">Clicking here</a> 
-		should redirect you back to this page, through two requests.</p>
-	</body>
-</html>

+ 0 - 1
apps/jframegallery/src/jframegallery/templates/gallery/JFrame_Demos

@@ -1 +0,0 @@
-../../../../../../desktop/core/static/js/ThirdParty/jframe/Tests/JFrame_Demos

+ 0 - 49
apps/jframegallery/src/jframegallery/templates/index.html

@@ -1,49 +0,0 @@
-{% comment %}
-Licensed to Cloudera, Inc. under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  Cloudera, Inc. 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.
-{% endcomment %}
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html>
-	<head>
-		<title>JFrame Gallery
-			{% if current_path %}
-				:: {{current_path}}
-			{% endif %}
-		</title>
-	</head>
-	<body>
-		<div class="jframe_padded view" id="index">
-			<h1>Gallery pages
-				{% if current_path %}
-					in {{current_path}}
-				{% endif %}
-			</h1>
-			<ul class="index">
-				{% if subdir %}
-					<li class="dir"><a href="/jframegallery/{{parent_dir}}">..</a></li>
-				{% endif %}
-
-				{% for dir in dirs %}
-					<li class="dir"><a href="/jframegallery/{{dir.filename}}">{{dir.name}}</a></li>
-				{% endfor %}
-
-				{% for file in files %}
-					<li class="file"><a href="/jframegallery/{{file.filename}}">{{file.name}}</a></li>
-				{% endfor %}
-			</ul>
-		</div>
-	</body>
-</html>

+ 0 - 57
apps/jframegallery/src/jframegallery/templates/source.mako

@@ -1,57 +0,0 @@
-## Licensed to Cloudera, Inc. under one
-## or more contributor license agreements.  See the NOTICE file
-## distributed with this work for additional information
-## regarding copyright ownership.  Cloudera, Inc. 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.
-<!DOCTYPE html>
-<html>
-  <head>
-    <title>JFrame Gallery Source -- ${name}</title>
-    </head>
-    <body>
-      <div class="jf-src_view view" id="source" data-filters="SizeTo" data-size-to-height="0">
-        <div data-filters="Tabs, SizeTo" data-size-to-height="0" data-tabs-selector=".tab" data-sections-selector=".section">
-          <div data-filters="SplitView">
-            <div class="left_col">
-              <ul class="jframe_padded">
-                <li class="tab html-tab"><a>HTML/Template</a></li>
-                %for js_name in js_data.iterkeys():
-                  <li class="tab">
-                    <a>${js_name}</a>
-                  </li>
-                %endfor
-              </ul>
-            </div>
-            <div class="right_col">
-              <ul class="jframe-clear jframe_padded">
-                ## Template data
-                <li class="section">
-                  <h3>Source for HTML</h3>
-                  <hr/>
-                  ${data|n}
-                </li>
-                ## JS data
-                %for js_name, js in js_data.iteritems():
-                  <li class="section">
-                    <h3>Source for <code>${js_name}</code></h3>
-                    <hr/>
-                    ${js|n}
-                  </li>
-                %endfor
-              </ul>
-            </div>
-          </div>
-        </div>
-      </div>
-    </body>
-</html>

+ 0 - 66
apps/jframegallery/src/jframegallery/test.py

@@ -1,66 +0,0 @@
-# -*- coding: utf-8 -*-
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-
-"""
-Tests for jframegallery
-"""
-
-import logging
-import os
-import os.path
-
-from nose.tools import assert_equals, assert_true
-from desktop.lib.django_test_util import make_logged_in_client
-
-LOG = logging.getLogger(__name__)
-CWD = os.path.dirname(__file__)
-
-
-
-"""
-def _get_all_gallery_files():
-  Return a list of files in the gallery directory
-  gallery_dir = os.path.join(CWD, 'templates', 'gallery')
-  return os.listdir(gallery_dir)
-
-
-def test_galleries():
-  cli = make_logged_in_client()
-  resp = cli.get('/jframegallery/')
-
-  # Hit index. Make sure that all the galleries are there
-  all_files = resp.context['files']
-  all_paths = [ f['filename'] for f in all_files ]
-  all_paths.sort()
-
-  assert_true('gallery/html-table.html' in all_paths)
-  assert_true('gallery/errors.html' in all_paths)
-  assert_true('gallery/fit.text.(table).html' in all_paths)
-  assert_true('gallery/partial_refresh.mako' in all_paths)
-
-  # Hit all views
-  for path in all_paths:
-    LOG.debug('Testing %s' % (path,))
-    demo_url = '/jframegallery/gallery/' + os.path.basename(path)
-    source_url = '/jframegallery/source/' + os.path.basename(path)
-
-    # Check that the demo renders
-    cli.get(demo_url)
-
-    # Check that the source renders
-    cli.get(source_url)
-"""

+ 0 - 36
apps/jframegallery/src/jframegallery/urls.py

@@ -1,36 +0,0 @@
-#!/usr/bin/env python
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-
-from django.conf.urls.defaults import patterns, url
-
-urlpatterns = patterns('jframegallery',
-  url(r'^source/(?P<path>.*)$', 'views.view_source'),
-  url(r'^gallery/flash.redirect.*$', 'views.flash_redirect'),
-  url(r'^gallery/flash.*$', 'views.flash'),
-  url(r'^gallery/error_404.*$', 'views.error_404'),
-  url(r'^gallery/error_500.*$', 'views.error_500'),
-  url(r'^gallery/error_real_500.*$', 'views.error_real_500'),
-  url(r'^gallery/error_python.*$', 'views.error_python'),
-  url(r'^gallery/error_redirect.*$', 'views.error_redirect'),
-  url(r'^gallery/redirect_301$', 'views.redirect_301'),
-  url(r'^gallery/forwarding.*$', 'views.forwarding'),
-  url(r'^gallery/error_message_exception.*$', 'views.error_message_exception'),
-  url(r'^gallery/error_popup_exception.*$', 'views.error_popup_exception'),
-  url(r'^gallery/forms_with_dependencies.*$', 'views.forms_with_dependencies'),
-  url(r'^asset/(?P<path>.*)$', 'views.index'),
-  url(r'^(?P<path>.*)$', 'views.index'),
-)

+ 0 - 293
apps/jframegallery/src/jframegallery/views.py

@@ -1,293 +0,0 @@
-#!/usr/bin/env python
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-#
-
-import logging
-import os
-import threading
-import time
-
-from depender.views import depender as dep
-from pygments import highlight
-from pygments.filters import NameHighlightFilter
-from pygments.formatters import HtmlFormatter
-from pygments.lexers import get_lexer_by_name
-from pygments.token import Name
-import yaml
-
-from django import forms
-from django.core import urlresolvers
-from django.http import Http404, HttpResponseRedirect, HttpResponse, HttpResponseServerError
-from desktop.lib.django_forms import DependencyAwareForm
-from desktop.lib.django_util import render, MessageException, PopupException, format_preserving_redirect, render_json
-
-
-LOG = logging.getLogger(__name__)
-
-_CWD = os.path.dirname(__file__)
-
-_GALLERY_DIR = 'gallery'
-
-EXTERNAL_PATHS = dict(
-  jframe_demos = _GALLERY_DIR + '/JFrame_Demos',
-  jframe_containers = '/static/art/'
-)
-
-# Lock so that we only have one thread sleeping at a time
-_sleep_lock = threading.Lock()
-
-def index(request, path):
-  """
-  Get all the files in a directory path and make an index
-  """
-  if request.REQUEST.get('project'):
-    return show(request, '')
-  
-  def is_template(name):
-    return os.path.splitext(name)[1] in ('.html', '.mako')
-  files = []
-  dirs = []
-  if is_template(path):
-    return show(request, path)
-  if path == '':
-    path = _GALLERY_DIR
-  else:
-    path = path.rstrip('/')
-  if not path.startswith(_GALLERY_DIR):
-    raise Exception("Only paths within the gallery can be viewed.")
-  def entry(filename):
-    name = os.path.splitext(filename)[0]
-    return dict(
-      filename=os.path.join(path, filename),
-      name=name.capitalize().replace('.', ' ').replace('_', ' '),
-      id=name.replace(' ', '-').replace('.', '-')
-    )
-  for filename in os.listdir(os.path.join(_CWD, 'templates', path)):
-    if filename.startswith('.'):
-      continue
-    if is_template(filename):
-      files.append(entry(filename))
-    elif os.path.isdir(os.path.join(_CWD, 'templates', path, filename)):
-      dirs.append(entry(filename))
-  files.sort(lambda x, y: cmp(x['name'], y['name']))
-  dirs.sort(lambda x, y: cmp(x['name'], y['name']))
-  
-  parent_dir = path.split('/')
-  parent_dir.pop()
-  parent_dir = '/'.join(parent_dir)
-  
-  return render(
-    'index.html', request,
-    dict(
-      subdir = path != _GALLERY_DIR,
-      current_path = path.replace(_GALLERY_DIR, ''),
-      parent_dir = parent_dir,
-      files=files,
-      dirs=dirs
-    ))
-
-def show(request, path):
-  """
-  ``path`` is a template name.
-
-  Parameters accepted:
-    sleep       - Will sleep this number of seconds before responding.
-  """
-  if request.REQUEST.get('project'):
-    project = request.REQUEST.get('project')
-    project_path = request.REQUEST.get('path')
-    path = EXTERNAL_PATHS[project] + project_path;
-
-  post_vars = None
-  if request.POST:
-    post_vars = request.POST.iteritems()
-  sleeper(request)
-
-  return render(
-    path,
-    request,
-    dict(
-      post_vars = post_vars,
-      get_var = request.REQUEST.get,
-      get_list = request.REQUEST.getlist,
-      get_request = lambda: request,
-      request_path = request.path,
-      get_asset_url = get_asset_url
-    ))
-
-def get_asset_url(project, path):
-  return EXTERNAL_PATHS[project] + path
-
-def view_source(request, path):
-  """
-  Handle view source requests.
-  """
-  gallery_name, extension = os.path.splitext(path)
-  gallery_name = gallery_name.capitalize().replace('.', ' ').replace('_', ' ')
-
-  # Load the template source
-  filename = os.path.join(_CWD, 'templates', _GALLERY_DIR, path)
-  try:
-    data = format_code(extension, file(filename).read())
-  except OSError, ex:
-    raise PopupException("Cannot read requested gallery template: %s" % (path,))
-
-  # Load the js references
-  js_data = { }         # map of { name: js content }
-  yml_file = os.path.splitext(filename)[0] + '.yml'
-  if os.path.exists(yml_file):
-    yml = yaml.load(file(yml_file))
-    try:
-      for ref in yml['js-references']:
-        try:
-          js_pkg, js_comp = ref.split('/')
-        except ValueError:
-          raise PopupException('Invalid line "%s" in file %s' % (ref, yml_file))
-        try:
-          file_data = dep.get((js_pkg, js_comp))
-          js_data[ref] = format_code('.js', file_data.content)
-        except:
-          raise PopupException(
-            'Cannot locate "%s" package "%s" component' % (js_pkg, js_comp))
-    except KeyError, ex:
-      LOG.warn('%s does not have a "js-references" section' % (yml_file,))
-
-  return render('source.mako', request, {
-    'data': data,
-    'name': gallery_name,
-    'js_data': js_data
-  })
-
-
-def make_gallery_name(template_name):
-  """foo_bar.html -> Foo bar"""
-  name = os.path.splitext(template_name)[0]
-  return name.capitalize().replace('.', ' ').replace('_', ' ')
-
-
-_LEXER_MAP = {
-  '.html': get_lexer_by_name('django', tabsize=2),
-  '.js': get_lexer_by_name('js', tabsize=2),
-  '.mako': get_lexer_by_name('mako', tabsize=2),
-}
-
-def format_code(extension, code_str):
-  """Fix indent and highlight code"""
-  try:
-    lexer = _LEXER_MAP[extension]
-    return highlight(code_str, lexer, HtmlFormatter())
-  except KeyError:
-    LOG.warn('Cannot find lexer for extension %s' % (extension,))
-    return "<div><pre>%s</pre></div>" % (code_str,)
-
-
-def sleeper(req):
-
-  seconds = False
-  if req.REQUEST.get('delay'):
-      seconds = int(req.REQUEST.get('delay'))
-  if req.REQUEST.get('sleep'):
-      seconds = int(req.REQUEST.get('sleep'))
-
-  if seconds:
-    # To prevent a DOS, only one thread can sleep at a time
-    if not _sleep_lock.acquire(False):
-      raise PopupException("Only one sleep request at a time. Please try again")
-    try:
-      time.sleep(seconds)
-    finally:
-      _sleep_lock.release()
-
-#
-# View handlers for specific gallery pages
-#
-
-def flash(request):
-  sleeper(request)
-  request.flash.put('just a test')
-  request.flash.put('another growl test')
-  request.flash.put('yet another message to bubble up.')
-
-  return render(os.path.join(_GALLERY_DIR, 'JFrame_Demos/Flash_messages/flash.html'), request, dict())
-
-def flash_redirect(request):
-  sleeper(request)
-  request.flash.put('redirect test')
-  return format_preserving_redirect(request, '/jframegallery/')
-
-def forwarding(request):
-  sleeper(request)
-  letter = request.GET.get("letter", "X");
-  request.path = urlresolvers.reverse("jframegallery.views.forwarding") + '?letter=Y'
-  return render(os.path.join(_GALLERY_DIR, 'Hue/forwarding.html'),
-                request, dict(letter=letter))
-
-def error_404(request):
-  sleeper(request)
-  raise Http404("This is a 404.")
-
-def error_500(request):
-  sleeper(request)
-  raise HttpResponseServerError(HttpResponse("Server erra'"))
-
-def error_real_500(request):
-  sleeper(request)
-  request.ajax = False
-  raise HttpResponseServerError(HttpResponse("Server erra'"))
-
-def error_python(request):
-  sleeper(request)
-  foo.bar()
-
-def error_redirect(request):
-  sleeper(request)
-  return HttpResponseRedirect("/test/does_not_exist/404")
-
-def redirect_301(request):
-  sleeper(request)
-  return HttpResponseRedirect("/jframegallery/gallery/Hue/redirect.html")
-
-def error_message_exception(request):
-  sleeper(request)
-  raise MessageException("This is a message exception.")
-
-def error_popup_exception(request):
-  sleeper(request)
-  raise PopupException("This is a popup exception.",
-    title="Hey there", detail="Some detail")
-
-class DepForm(DependencyAwareForm):
-  cond = forms.ChoiceField(required=True, choices=[ ("a", "alpha"), ("b", "beta") ])
-  if_a = forms.CharField(required=False)
-  if_b = forms.BooleanField(required=False)
-
-  dependencies = [
-    ("cond", "a", "if_a"),
-    ("cond", "b", "if_b")
-  ]
-
-def forms_with_dependencies(request):
-  sleeper(request)
-  data = None
-  if request.method == "POST":
-    form = DepForm(request.POST)
-    if form.is_valid():
-      data = repr(form.cleaned_data)
-  else:
-    form = DepForm()
-  return render(os.path.join(_GALLERY_DIR, "Hue/forms_with_dependencies.mako"),
-                request, dict(form=form, data=data))

+ 0 - 167
apps/jframegallery/src/jframegallery/windmilltests.py

@@ -1,167 +0,0 @@
-# Generated by the windmill services transformer
-# Licensed to Cloudera, Inc. under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  Cloudera, Inc. 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.
-from desktop.lib.windmill_util import logged_in_client
-import time
-
-def test_dblclick_delegates():
-  """
-    logs the user in, launches the jframe tests, and then tests the double click delegation feature
-  """
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-  client.click(id='double-click-delegator')
-  client.waits.forElement(jquery='(".Hue-JFRAMEGALLERY .dblme")[0]')
-  client.doubleClick(classname='dblme')
-  client.waits.forElement(jquery='(".Hue-JFRAMEGALLERY .alert")[0]')
-  client.asserts.assertJS(js="$$('.Hue-JFRAMEGALLERY .mask').length")
-  client.waits.forElement(jquery='(".Hue-JFRAMEGALLERY .alert")[0]')
-  client.click(jquery="('.Hue-JFRAMEGALLERY .closeWin')[0]")
-  client.asserts.assertJS(js="!$$('.Hue-JFRAMEGALLERY .closeWin').length")
-  
-
-def test_context_menu():
-  """
-    logs the user in, launches the jframe tests, and then tests the context menu (right click) feature
-  """
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-  client.click(id='context-menu')
-  client.waits.forElement(jquery='(".Hue-JFRAMEGALLERY .show-options")[0]')
-  #simulating right click, as windmill doesn't provide a mechanism for doing so
-  #and it's regular (left) click event doesn't include page location information.
-  client.execJS(js="$$('[data-filters*=ContextMenu]')[0].fireEvent('contextmenu', new Event({type: 'click', page: {x: 20, y: 20}}))")
-  client.asserts.assertJS(js='document.getElement(\'div.Hue-JFRAMEGALLERY .cm-one\').isVisible()')
-  client.click(jquery='(".Hue-JFRAMEGALLERY")[0]')
-  client.asserts.assertJS(js='!document.getElement(\'div.Hue-JFRAMEGALLERY .cm-one\').isVisible()')
-
-def test_collapser():
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-  client.click(id='collapser')
-  client.asserts.assertJS(js="$('data_one').isDisplayed()")
-  client.waits.forElement(id='collapser_one')
-  client.click(id='collapser_one')
-  time.sleep(0.5) # Give time for the transition
-  client.asserts.assertJS(js="$('data_one').isDisplayed() == false")
-  client.click(id='collapser_one')
-  time.sleep(0.5)
-  client.asserts.assertJS(js="$('data_one').isDisplayed()")
-
-def test_errors():
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-  
-  client.click(id='errors')
-  for i in range(1, 9):
-    id = "e_" + str(i)
-    client.waits.forElement(id=id)
-    client.click(id=id)
-    client.waits.forElement(jquery='(".closeWin")[0]')
-    client.click(jquery='(".closeWin")[0]')
-
-def launch_jframe_gallery(client):
-  """
-    launches the jframe gallery
-  """
-  client.click(id='hue-jframegallery-menu')
-  client.waits.forElement(classname='Hue-JFRAMEGALLERY')
-  return client
-
-def test_login_logout():
-  """
-    actually runs the login and log out tests
-  """
-  client = logged_in_client()
-
-def test_frame_tips():
-  """
-    logs the user in, launches the jframe tests, and then tests the frame_tips feature
-  """
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-  client.click(id='frame-tips')
-  client.mouseOver(jquery='(".Hue-JFRAMEGALLERY .frame_tip")[1]')
-  client.asserts.assertJS(js='document.getElement(\'div.Hue-JFRAMEGALLERY .footer-text\').get(\'html\') == "link #2"')
-
-
-def test_post_load_alert():
-  """
-    tests the alert popup scooped from the response.
-  """
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-  
-  client.click(id='post-load-alert-popup')
-  client.waits.forElement(jquery='(".Hue-JFRAMEGALLERY .alert")[0]')
-  client.asserts.assertJS(js="$$('.Hue-JFRAMEGALLERY .mask').length")
-  client.click(jquery="('.Hue-JFRAMEGALLERY .mask')[0]")
-  client.asserts.assertJS(js="!$$('.Hue-JFRAMEGALLERY .mask').length")
-  client.click(id='post-load-alert-popup')
-  client.waits.forElement(jquery='(".Hue-JFRAMEGALLERY .alert")[0]')
-  client.click(jquery="('.Hue-JFRAMEGALLERY .closeWin')[0]")
-  client.asserts.assertJS(js="!$$('.Hue-JFRAMEGALLERY .closeWin').length")
-
-def test_post_load_prompt():
-  """
-    tests the prompt popup scooped from the response
-  """
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-  
-  client.click(id='post-load-prompt-popup')
-  client.waits.forElement(jquery='(".Hue-JFRAMEGALLERY .confirm")[0]')
-  
-  client.click(name='prompt_value')
-  client.type(text='blah', name='prompt_value')
-  client.click(jquery="('.Hue-JFRAMEGALLERY .closeWin')[1]")
-  client.waits.forElement(jquery="('.Hue-JFRAMEGALLERY .jframe_padded ul li')[0]")
-  client.asserts.assertTextIn(jquery="('.Hue-JFRAMEGALLERY .jframe_padded ul li')[0]", validator='blah')
-
-def test_split_view():
-  """
-    tests the split view interface, including the ability to resize the panes
-  """
-
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-
-  client.click(id='splitview')
-  client.waits.forElement(jquery="('.Hue-JFRAMEGALLERY [data-filters*=SplitView]')[0]")
-  client.asserts.assertJS(js="$$('.Hue-JFRAMEGALLERY .art-splitview-left')[0].getStyle('width') == '200px'")
-  client.dragDropElem(jquery="('.Hue-JFRAMEGALLERY .art-splitview-splitter')[0]", pixels='-100,0')
-  client.asserts.assertJS(js="$$('.Hue-JFRAMEGALLERY .art-splitview-left')[0].getStyle('width') == '101px'")
-  
-  
-def test_flash_messaging():
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-  time.sleep(3.0) # Give time for the launching growl to disappear
-  client.click(id='flash')
-  client.waits.forElement(jquery='(".growl")')
-  client.asserts.assertJS(js="$$('.growl').length == 3")
-  client.asserts.assertJS(js="$$('.growl')[0].get('html') == 'just a test'")
-
-def test_forwarding():
-  client = logged_in_client()
-  launch_jframe_gallery(client)
-  
-  client.click(id='forwarding')
-  client.waits.forElement(jquery='(".test_letter")')
-  client.asserts.assertJS(js="$('test_letter').innerHTML == 'X'")
-  client.click(jquery="('.refresh')[0]")
-  client.asserts.assertJS(js="$('test_letter').innerHTML == 'Y'")
-

二进制
apps/jframegallery/static/art/jframegallery.png


+ 0 - 32
apps/jframegallery/static/bootstrap.js

@@ -1,32 +0,0 @@
-// Licensed to Cloudera, Inc. under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  Cloudera, Inc. 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.
-Hue.Desktop.register({
-	JFrameGallery: {
-		name: 'JFrame Gallery',
-		require: ['jframe-gallery/Hue.JFrameGallery'],
-		css: '/jframegallery/static/css/jframegallery.css',
-		launch: function(path, options){
-			return new Hue.JFrameGallery(path, options);
-		},
-		menu: {
-			id: 'hue-jframegallery-menu',
-			img: {
-				src: '/jframegallery/static/art/jframegallery.png'
-			}
-		},
-		help: '/help/jframegallery/'
-	}
-});

+ 0 - 111
apps/jframegallery/static/css/jframegallery.css

@@ -1,111 +0,0 @@
-.jframe-gallery .jf-logo {
-	width: 55px;
-	height: 55px;
-	position: relative;
-	top: 20px;
-	left: 6px;
-	background: url(/jframegallery/static/art/jframegallery.png) no-repeat;
-	display:block;
-}
-
-.jframe-gallery .jf-buttonbar {
-	position: absolute;
-	right: 20px;
-	top: 3px;
-	width: 85px;
-}
-
-.jframe-gallery .jf-src_view .tabSelected {
-	font-weight: bold;
-}
-
-.jframe-gallery .jf-src_view .html-tab {
-	margin-bottom: 5px;
-}
-
-.jframe-gallery .jframe_contents.index a {
-	background: url(/static/art/led-icons/folder.png) no-repeat 4px 2px;
-	padding: 3px 2px 3px 24px;
-	display: block;
-}
-
-.jframe-gallery .index li:hover {
-	background: #DED3A2;
-	border-radius: 2px;
-	-moz-border-radius: 2px;
-	-webkit-border-radius: 2px;
-}
-
-.jframe-gallery .jframe_contents.index  .file a {
-	background: url(/static/art/led-icons/tag.png) no-repeat 4px 2px;
-}
-.jframe-gallery .index a:hover {
-	text-decoration: none;
-}
-
-
-/*
- * Styles from Pygments
- */
-.jframe-gallery .highlight .hll { background-color: #ffffcc }
-.jframe-gallery .highlight  { background: #f8f8f8; }
-.jframe-gallery .highlight .c { color: #408080; font-style: italic } /* Comment */
-.jframe-gallery .highlight .err { border: 1px solid #FF0000 } /* Error */
-.jframe-gallery .highlight .k { color: #008000; font-weight: bold } /* Keyword */
-.jframe-gallery .highlight .o { color: #666666 } /* Operator */
-.jframe-gallery .highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
-.jframe-gallery .highlight .cp { color: #BC7A00 } /* Comment.Preproc */
-.jframe-gallery .highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
-.jframe-gallery .highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
-.jframe-gallery .highlight .gd { color: #A00000 } /* Generic.Deleted */
-.jframe-gallery .highlight .ge { font-style: italic } /* Generic.Emph */
-.jframe-gallery .highlight .gr { color: #FF0000 } /* Generic.Error */
-.jframe-gallery .highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
-.jframe-gallery .highlight .gi { color: #00A000 } /* Generic.Inserted */
-.jframe-gallery .highlight .go { color: #808080 } /* Generic.Output */
-.jframe-gallery .highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
-.jframe-gallery .highlight .gs { font-weight: bold } /* Generic.Strong */
-.jframe-gallery .highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
-.jframe-gallery .highlight .gt { color: #0040D0 } /* Generic.Traceback */
-.jframe-gallery .highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
-.jframe-gallery .highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
-.jframe-gallery .highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
-.jframe-gallery .highlight .kp { color: #008000 } /* Keyword.Pseudo */
-.jframe-gallery .highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
-.jframe-gallery .highlight .kt { color: #B00040 } /* Keyword.Type */
-.jframe-gallery .highlight .m { color: #666666 } /* Literal.Number */
-.jframe-gallery .highlight .s { color: #BA2121 } /* Literal.String */
-.jframe-gallery .highlight .na { color: #7D9029 } /* Name.Attribute */
-.jframe-gallery .highlight .nb { color: #008000 } /* Name.Builtin */
-.jframe-gallery .highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
-.jframe-gallery .highlight .no { color: #880000 } /* Name.Constant */
-.jframe-gallery .highlight .nd { color: #AA22FF } /* Name.Decorator */
-.jframe-gallery .highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
-.jframe-gallery .highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
-.jframe-gallery .highlight .nf { color: #0000FF } /* Name.Function */
-.jframe-gallery .highlight .nl { color: #A0A000 } /* Name.Label */
-.jframe-gallery .highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
-.jframe-gallery .highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
-.jframe-gallery .highlight .nv { color: #19177C } /* Name.Variable */
-.jframe-gallery .highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
-.jframe-gallery .highlight .w { color: #bbbbbb } /* Text.Whitespace */
-.jframe-gallery .highlight .mf { color: #666666 } /* Literal.Number.Float */
-.jframe-gallery .highlight .mh { color: #666666 } /* Literal.Number.Hex */
-.jframe-gallery .highlight .mi { color: #666666 } /* Literal.Number.Integer */
-.jframe-gallery .highlight .mo { color: #666666 } /* Literal.Number.Oct */
-.jframe-gallery .highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
-.jframe-gallery .highlight .sc { color: #BA2121 } /* Literal.String.Char */
-.jframe-gallery .highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
-.jframe-gallery .highlight .s2 { color: #BA2121 } /* Literal.String.Double */
-.jframe-gallery .highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
-.jframe-gallery .highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
-.jframe-gallery .highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
-.jframe-gallery .highlight .sx { color: #008000 } /* Literal.String.Other */
-.jframe-gallery .highlight .sr { color: #BB6688 } /* Literal.String.Regex */
-.jframe-gallery .highlight .s1 { color: #BA2121 } /* Literal.String.Single */
-.jframe-gallery .highlight .ss { color: #19177C } /* Literal.String.Symbol */
-.jframe-gallery .highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
-.jframe-gallery .highlight .vc { color: #19177C } /* Name.Variable.Class */
-.jframe-gallery .highlight .vg { color: #19177C } /* Name.Variable.Global */
-.jframe-gallery .highlight .vi { color: #19177C } /* Name.Variable.Instance */
-.jframe-gallery .highlight .il { color: #666666 } /* Literal.Number.Integer.Long */

+ 0 - 8
apps/jframegallery/static/help/index.md

@@ -1,8 +0,0 @@
-The JFrame Gallery
-==================
-<a target="JFrameGallery"><img src="/jframegallery/static/art/jframegallery.png" class="help-logo"/></a>
-The JFrame Gallery presents the different
-UI "built-ins" that the Hue SDK
-provides.  See the SDK documentation
-for more details.  And look around!
-

+ 0 - 81
apps/jframegallery/static/js/Source/JFrameGallery/Hue.JFrameGallery.js

@@ -1,81 +0,0 @@
-// Licensed to Cloudera, Inc. under one
-// or more contributor license agreements.	See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.	Cloudera, Inc. 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.
-/*
----
-description: JFrame Gallery window
-provides: [Hue.JFrameGallery]
-requires: [JFrame/JFrame.Browser, hue-shared/Hue.JFrame.Chooser]
-script: Hue.JFrameGallery.js
-
-...
-*/
-
-ART.Sheet.define('window.art.jframe-gallery', {
-	'footer-height': 28
-});
-
-Hue.JFrameGallery = new Class({
-
-	Extends: Hue.JBrowser,
-
-	options: {
-		className: 'art jframe-gallery browser logo_header',
-		jframeOptions: {
-			clickRelays: 'a, .relays'
-		}
-	},
-
-	initialize: function(path, options){
-		this.parent(path || '/jframegallery/', options);
-
-		this.addEvent('load', function(view){
-			this.toolbar.adopt(
-				new Element('a', {
-					href: '/jframegallery/',
-					'class': 'jf-logo'
-				})
-			);
-
-			/* Inject demo/source button bar */
-			var currentPath = this.jframe.currentPath,
-			    path;
-
-			if (currentPath.indexOf('/jframegallery/gallery') === 0) {
-				/* This is the view of a demo */
-				path = currentPath.replace('/jframegallery/gallery', '/jframegallery/source');
-			} else if (currentPath.indexOf('/jframegallery/source') === 0) {
-				/* This is the view of a demo source */
-				path = currentPath.replace('/jframegallery/source', '/jframegallery/gallery');
-			}
-
-			if (path) {
-				var button = new Element('a', {
-					href: path,
-					'class': 'jf-button',
-					'data-filters': 'ArtButton',
-					'text': view == "source" ? "View Demo" : "View Source"
-				});
-				var buttonBar = new Element('ul', {
-					'class': 'jf-buttonbar',
-					'data-filters': 'ArtButtonBar'
-				}).adopt(new Element('li').adopt(button));
-				this.footerText.adopt(buttonBar);
-				this.jframe.behavior.apply(this.footerText);
-			}
-		}.bind(this));
-	}
-
-});

+ 0 - 5
apps/jframegallery/static/js/package.yml

@@ -1,5 +0,0 @@
-copyright: Apache License v2.0
-version: 0.9
-description: JFrame Test Gallery
-name: jframe-gallery
-sources: [Source/JFrameGallery/Hue.JFrameGallery.js]