Commits

Stephen McKamey committed ee36a33

merging in duelengine.org content to unit test site

  • Participants
  • Parent commits ba98273

Comments (0)

Files changed (10)

 duel-runtime/target
 duel-compiler/target
 duel-js/target
+duel-js/src/test/resources/ga.js
 duel-maven-plugin/target
 target
-TODO.txt
+TODO.txt
 						</goals>
 						<configuration>
 							<target>
-								<copy file="${basedir}/src/test/resources/index.html" tofile="${basedir}/target/index.html"/>
-								<copy file="${basedir}/src/test/resources/unit.html" tofile="${basedir}/target/js-unit.html"/>
+								<copy todir="${basedir}/target">
+									<fileset dir="${basedir}/src/test/resources" />
+                            		<filterchain>
+                            			<replacetokens>
+                            				<token key="duel-version" value="${project.version}" />
+                            			</replacetokens>
+                            		</filterchain>
+								</copy>
 								<copy todir="${basedir}/target/js">
 									<fileset dir="${basedir}/src/test/javascript" />
 								</copy>

duel-js/src/test/resources/duel.png

Added
New image

duel-js/src/test/resources/favicon.ico

Binary file added.

duel-js/src/test/resources/icon.png

Added
New image

duel-js/src/test/resources/index.html

 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
 	<meta charset="UTF-8" />
-	<title>DUEL build results</title>
-	<style type="text/css">
-		body { font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; font-size: 9pt; margin: 0 auto; padding: 0; width: 60%; min-width:600px; }
-		h1, h1 a:link, h1 a:hover, h1 a:active, h1 a:visited { color: white; font-size: 14pt; font-weight: bold; margin: 1em 0; padding: 0.25em; text-align: center; }
-		h2 { font-size: 12pt; }
-		dl, ul { margin: 0; padding: 0.75em 0.25em; }
-		dl dt { font-weight: bold; margin: 0 0 0 0.5em; padding: 0.25em 0 0.25em 0.5em; }
-		dl dd { list-style-type: none; margin: 0 0 0 1.5em; padding: 0.25em 0 0.25em 1.5em; }
-		ul li { list-style-type: none; margin: 0 0 0 0.5em; padding: 0.25em 0 0.25em 0.5em; }
-		.box { background-color: #F1F1F1; border: 1px solid silver; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; box-shadow: 0 0 4px #DDDDDD; -moz-box-shadow: 0 0 4px #DDDDDD; -webkit-box-shadow: 0 0 4px #DDDDDD; }
-		h1.box { background-color: #006699; border: 1px solid #333333; box-shadow: 0 0 8px silver; -moz-box-shadow: 0 0 8px silver; -webkit-box-shadow: 0 0 8px silver; }
-		a:link, a:hover, a:active, a:visited { color: #006699; }
-	</style>
+	<title>DUEL</title>
+	<link type="text/css" rel="stylesheet" href="styles.css" />
+	<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
 </head>
 <body>
+	<h1 class="box">DUEL v@duel-version@</h1>
 
-	<h1 class="box">DUEL build results</h1>
+	<img src="duel.png" alt="DUEL" style="float:right" />
+	<h2 style="display:none">Documentation</h2>
+	<dl class="box" style="margin-right:320px;">
+		<dt>Source Code</dt>
+		<dd><a href="http://hg.mck.me/duel">mercurial</a></dd>
 
-	<h2>unit tests</h2>
-	<dl class="box">
-		<dt>client-side unit tests</dt>
-		<dd><a href="js-unit.html">QUnit test results</a></dd>
-		<dt>server-side unit tests</dt>
-		<dd><a href="test/">JUnit test results</a></dd>
+		<dt>Client-Side Runtime</dt>
+		<dd><a href="https://hg.mck.me/duel/raw/tip/duel-js/target/duel.js">duel.js</a></dd>
+		<dd><a href="https://hg.mck.me/duel/raw/tip/duel-js/target/duel.min.js">duel.min.js</a></dd>
+
+		<dt>Server-Side Libraries</dt>
+		<dd><a href="http://repo1.maven.org/maven2/org/duelengine/duel-runtime/@duel-version@/">duel-runtime.jar</a></dd>
+		<dd><a href="http://repo1.maven.org/maven2/org/duelengine/duel-compiler/@duel-version@/">duel-compiler.jar</a></dd>
+		<dd><a href="http://repo1.maven.org/maven2/org/duelengine/duel-maven-plugin/@duel-version@/">duel-maven-plugin.jar</a></dd>
 	</dl>
 
-	<h2>download</h2>
+	<h2>Documentation</h2>
+	<ul class="box">
+		<li><a href="http://hg.mck.me/duel/wiki/Home">about</a></li>
+		<li><a href="http://hg.mck.me/duel/wiki/Syntax">syntax</a></li>
+		<li><a href="http://hg.mck.me/duel/wiki/Examples">examples</a></li>
+		<li><a href="license.txt">license</a></li>
+	</ul>
+
+	<h2>Resources</h2>
 	<dl class="box">
-		<dt>client-side runtime</dt>
-		<dd><a href="duel.js">duel.js</a></dd>
-		<dd><a href="duel.min.js">duel.min.js</a></dd>
-		<dt>server-side compiler &amp; runtime</dt>
-		<dd><a href="duel.jar">duel.jar</a></dd>
+		<dt>Client-Side Unit Tests</st>
+		<dd><a href="unit.html">QUnit test results</a></dd>
+
+		<dt>Related Projects</st>
+		<dd><a href="http://hg.mck.me/duel-mvc"><b>DUEL MVC</b> = DUEL + Jersey + Guice</a></dd>
+		<dd><a href="http://hg.mck.me/duel-merge"><b>DUEL Merge</b>: build-time resource management &amp; compaction</a></dd>
 	</dl>
 
-	<h2>resources</h2>
-	<ul class="box">
-		<li><a href="http://duelengine.org">DUEL website</a></li>
-		<li><a href="http://bitbucket.org/mckamey/duel">DUEL source code</a></li>
-	</ul>
-
+	<p class="copyright">Copyright &copy;2006-2011 <a href="http://mck.me">Stephen M. McKamey</a></p>
+	<script src="ga.js" defer></script>
 </body>
 </html>

duel-js/src/test/resources/license.txt

+The MIT License
+
+Copyright (c) 2006-2011 Stephen M. McKamey
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

duel-js/src/test/resources/robots.txt

+# robots.txt
+# 2010-10-11 @ 14:15
+
+User-agent: *
+Disallow: /			# still volatile

duel-js/src/test/resources/styles.css

+html { font-size: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
+html { background: #EEE; background: -webkit-gradient(linear, left top, left bottom, from(#F8F8F8), to(#DDD)); background: -moz-linear-gradient(top, #F8F8F8, #DDD); color: #000; height: 100%; }
+body { font-size: 1.0em; margin: 0 auto; padding: 0; width: 60%; min-width:600px; }
+body, button, input, select, textarea { font-family: 'Helvetica Neue Light', 'HelveticaNeue-Light', 'Helvetica Neue', Calibri, Helvetica, Arial; }
+h1, h1 a:link, h1 a:hover, h1 a:active, h1 a:visited { color: white; font-size: 1.5em; font-weight: bold; margin: 1em 0; padding: 0.25em; text-align: center; }
+h2 { font-size: 1.33333333333333em; text-transform: lowercase; }
+dl, ul { margin: 0; padding: 0.75em 0.25em; }
+dt { font-weight: bold; margin: 0 0 0 0.5em; padding: 0.25em 0 0.25em 0.5em; text-transform: lowercase; }
+dd { list-style-type: none; margin: 0 0 0 1.5em; padding: 0.25em 0 0.25em 1.5em; }
+li { list-style-type: none; margin: 0 0 0 0.5em; padding: 0.25em 0 0.25em 0.5em; }
+a:link, a:hover, a:active, a:visited { color: #336699; }
+.box { background-color: #F1F1F1; border: 1px solid silver; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; -moz-box-shadow: 0 0 4px #DDDDDD; -webkit-box-shadow: 0 0 4px #DDDDDD; box-shadow: 0 0 4px #DDDDDD; }
+h1.box { background-color: #336699; border: 1px solid #333333; -moz-box-shadow: 0 0 8px silver; -webkit-box-shadow: 0 0 8px silver; box-shadow: 0 0 8px silver; }
+.copyright, .copyright a:link, .copyright a:hover, .copyright a:active, .copyright a:visited { color: #999; }
+.copyright { font-size: 0.75em; text-align: right; }

duel-js/src/test/resources/unit.html

 <html>
 <head>
 	<meta charset="UTF-8" />
-	<title>duel.js tests</title>
+	<title>duel.js v@duel-version@ unit tests</title>
 	<link href="js/qunit.css" rel="stylesheet" type="text/css" />
 
 	<script src="js/qunit.js" type="text/javascript"></script>
 	<script src="js/domTests.js" type="text/javascript"></script>
 </head>
 <body>
-	<h1 id="qunit-header"><a href="index.html">duel.js tests</a></h1>  
+	<h1 id="qunit-header"><a href="index.html">duel.js v@duel-version@ unit tests</a></h1>  
 	<h2 id="qunit-banner"></h2>  
 	<h2 id="qunit-userAgent"></h2>  
 	<ol id="qunit-tests"></ol>