SWF-906 - Upgrade to Dojo 1.2 - Clean Commit
This commit is contained in:
30
spring-js/src/main/resources/META-INF/dojo/resources/LICENSE
Normal file
30
spring-js/src/main/resources/META-INF/dojo/resources/LICENSE
Normal file
@@ -0,0 +1,30 @@
|
||||
License Disclaimer:
|
||||
|
||||
All contents of this directory are Copyright (c) the Dojo Foundation, with the
|
||||
following exceptions:
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
dojo.css:
|
||||
* parts Copyright (c) 2007, Yahoo! Inc. All rights reserved.
|
||||
Distributed under the terms of the BSD License
|
||||
|
||||
The Program includes all or portions of the following software which was obtained under the terms and conditions of the BSD License.
|
||||
|
||||
http://developer.yahoo.com/yui/license.html
|
||||
|
||||
Copyright (c) 2007, Yahoo! Inc.
|
||||
All rights reserved.
|
||||
Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of Yahoo! Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without
|
||||
specific prior written permission of Yahoo! Inc.
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
||||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
||||
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
|
||||
|
||||
BIN
spring-js/src/main/resources/META-INF/dojo/resources/blank.gif
Normal file
BIN
spring-js/src/main/resources/META-INF/dojo/resources/blank.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 B |
@@ -0,0 +1 @@
|
||||
<html><head><script>isLoaded = true;</script></head><body></body></html>
|
||||
@@ -0,0 +1,9 @@
|
||||
/* DnD avatar-specific settings */
|
||||
.dojoDndAvatar {font-size: 75%; color: black;}
|
||||
.dojoDndAvatarHeader td {padding-left: 20px; padding-right: 4px;}
|
||||
.dojoDndAvatarHeader {background: #ccc;}
|
||||
.dojoDndAvatarItem {background: #eee;}
|
||||
.dojoDndMove .dojoDndAvatarHeader {background-image: url(images/dndNoMove.png); background-repeat: no-repeat;}
|
||||
.dojoDndCopy .dojoDndAvatarHeader {background-image: url(images/dndNoCopy.png); background-repeat: no-repeat;}
|
||||
.dojoDndMove .dojoDndAvatarCanDrop .dojoDndAvatarHeader {background-image: url(images/dndMove.png); background-repeat: no-repeat;}
|
||||
.dojoDndCopy .dojoDndAvatarCanDrop .dojoDndAvatarHeader {background-image: url(images/dndCopy.png); background-repeat: no-repeat;}
|
||||
197
spring-js/src/main/resources/META-INF/dojo/resources/dojo.css
Normal file
197
spring-js/src/main/resources/META-INF/dojo/resources/dojo.css
Normal file
@@ -0,0 +1,197 @@
|
||||
/*
|
||||
dojo.css
|
||||
Baseline CSS file for general usage.
|
||||
|
||||
This file is intended to be a "quick and dirty" stylesheet you can use to give
|
||||
a straight-up web page some basic styling without having to do the dirty work
|
||||
yourself. It includes a modified version of YUI's reset.css (we pulled some
|
||||
of the list reset definitions, among other things), and then provides some very
|
||||
basic style rules to be applied to general HTML elements.
|
||||
|
||||
This stylesheet is NOT intended to serve as the foundation for more complex things--
|
||||
including the use of a TABLE for layout purposes. The table definitions in this
|
||||
file make the assumption that you will be using tables for thier declared purpose:
|
||||
displaying tabular data.
|
||||
|
||||
If you are looking for a baseline stylesheet using tables for grid layout, you will
|
||||
need to supply your own layout rules to override the ones in this stylesheet.
|
||||
|
||||
Applications using Dojo will function correctly without including this
|
||||
file, but it should provide sane defaults for many common things that page
|
||||
authors often need to set up manually.
|
||||
|
||||
The Dojo Core uses this stylesheet to quickly style HTML-based tests and demos. Feel
|
||||
free to use it as you will.
|
||||
*/
|
||||
|
||||
/*****************************************************************************************/
|
||||
|
||||
/*
|
||||
The below are borrowed from YUI's reset style sheets for pages and fonts.
|
||||
We've verified w/ the YUI development team that these are entirely
|
||||
copyright Yahoo, written entirely by Nate Koechley and Matt Sweeney without
|
||||
external contributions.
|
||||
|
||||
Copyright (c) 2007, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 2.2.1
|
||||
*/
|
||||
|
||||
body, div, dl, dt, dd, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
fieldset, img {
|
||||
border: 0 none;
|
||||
}
|
||||
|
||||
address, caption, cite, code, dfn, th, var {
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
caption, th {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
q:before, q:after {
|
||||
content:"";
|
||||
}
|
||||
|
||||
abbr, acronym {
|
||||
border:0;
|
||||
}
|
||||
/* End YUI imported code. */
|
||||
|
||||
/*****************************************************************************************/
|
||||
|
||||
/*
|
||||
Begin Dojo additions.
|
||||
|
||||
Style definitions, based loosely on the Dijit Tundra theme.
|
||||
Relative unit calculations based on "Compose to a Vertical Rhythm",
|
||||
by Richard Rutter (http://24ways.org/2006/compose-to-a-vertical-rhythm)
|
||||
|
||||
If changing the font size, make sure you do it in both
|
||||
percent and px (% for IE, px for everything else).
|
||||
% value based on default size of 16px (in most browsers).
|
||||
So if you want the default size to be 14px, set the
|
||||
% to 87% (14 / 16 = 0.875).
|
||||
|
||||
Typical values:
|
||||
10px: 62.5%
|
||||
11px: 69% (68.75)
|
||||
12px: 75%
|
||||
13px: 81.25%
|
||||
14px: 87.5%
|
||||
16px: 100%
|
||||
|
||||
Default: 12px
|
||||
*/
|
||||
body {
|
||||
font: 12px Myriad,Helvetica,Tahoma,Arial,clean,sans-serif;
|
||||
*font-size: 75%;
|
||||
}
|
||||
|
||||
/* Headings */
|
||||
h1 {
|
||||
font-size: 1.5em;
|
||||
font-weight: normal;
|
||||
line-height: 1em;
|
||||
margin-top: 1em;
|
||||
margin-bottom:0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.1667em;
|
||||
font-weight: bold;
|
||||
line-height: 1.286em;
|
||||
margin-top: 1.929em;
|
||||
margin-bottom:0.643em;
|
||||
}
|
||||
|
||||
h3, h4, h5, h6 {
|
||||
font-size: 1em;
|
||||
font-weight: bold;
|
||||
line-height: 1.5em;
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* paragraphs, quotes and lists */
|
||||
p {
|
||||
font-size: 1em;
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 1.5em;
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
font-size: 0.916em;
|
||||
margin-top: 3.272em;
|
||||
margin-bottom: 3.272em;
|
||||
line-height: 1.636em;
|
||||
padding: 1.636em;
|
||||
border-top: 1px solid #ccc;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
ol li, ul li {
|
||||
font-size: 1em;
|
||||
line-height: 1.5em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* pre and code */
|
||||
pre, code {
|
||||
font-size:115%;
|
||||
*font-size:100%;
|
||||
font-family: Courier, "Courier New";
|
||||
background-color: #efefef;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
pre {
|
||||
border-width: 1px 0;
|
||||
padding: 1.5em;
|
||||
}
|
||||
|
||||
/*
|
||||
Tables
|
||||
|
||||
Note that these table definitions make the assumption that you are using tables
|
||||
to display tabular data, and NOT using tables as layout mechanisms. If you are
|
||||
using tables for layout, you will probably want to override these rules with
|
||||
more specific ones.
|
||||
|
||||
These definitions make tabular data look presentable, particularly when presented
|
||||
inline with paragraphs.
|
||||
*/
|
||||
table { font-size:100%; }
|
||||
|
||||
table.dojoTabular {
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
border: 1px solid #ccc;
|
||||
margin: 0 1.5em;
|
||||
}
|
||||
|
||||
.dojoTabular th {
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.dojoTabular thead, table.dojoTabular tfoot {
|
||||
background-color: #efefef;
|
||||
border: 1px solid #ccc;
|
||||
border-width: 1px 0;
|
||||
}
|
||||
|
||||
table.dojoTabular thead tr th,
|
||||
table.dojoTabular thead tr td,
|
||||
table.dojoTabular tbody tr td,
|
||||
table.dojoTabular tfoot tr td {
|
||||
padding: 0.25em 0.5em;
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
|
||||
<script type="text/javascript">
|
||||
// <!--
|
||||
var noInit = false;
|
||||
|
||||
function defineParams(sparams){
|
||||
if(sparams){
|
||||
var ss = (sparams.indexOf("&") >= 0) ? "&" : "&";
|
||||
sparams = sparams.split(ss);
|
||||
for(var x=0; x<sparams.length; x++){
|
||||
var tp = sparams[x].split("=");
|
||||
if(typeof window[tp[0]] != "undefined"){
|
||||
window[tp[0]] = ((tp[1]=="true")||(tp[1]=="false")) ? eval(tp[1]) : tp[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function init(){
|
||||
// parse the query string if there is one to try to get params that
|
||||
// we can act on. Also allow params to be in a fragment identifier.
|
||||
var query = null;
|
||||
var frag = null;
|
||||
var url = document.location.href;
|
||||
var hashIndex = url.indexOf("#");
|
||||
|
||||
//Extract fragment identifier
|
||||
if(hashIndex != -1){
|
||||
frag = url.substring(hashIndex + 1, url.length);
|
||||
url = url.substring(0, hashIndex);
|
||||
}
|
||||
|
||||
//Extract querystring
|
||||
var parts = url.split("?");
|
||||
if(parts.length == 2){
|
||||
query = parts[1];
|
||||
}
|
||||
|
||||
defineParams(query);
|
||||
defineParams(frag);
|
||||
|
||||
if(noInit){ return; }
|
||||
var hasParentDojo = false;
|
||||
try{
|
||||
hasParentDojo = window.parent != window && window.parent["dojo"];
|
||||
}catch(e){
|
||||
alert("Initializing iframe_history.html failed. If you are using a cross-domain Dojo build,"
|
||||
+ " please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"
|
||||
+ " to the path on your domain to iframe_history.html");
|
||||
throw e;
|
||||
}
|
||||
|
||||
if(hasParentDojo){
|
||||
//Set the page title so IE history shows up with a somewhat correct name.
|
||||
document.title = window.parent.document.title;
|
||||
|
||||
//Notify parent that we are loaded.
|
||||
var pdj = window.parent.dojo;
|
||||
if(pdj["back"]){
|
||||
pdj.back._iframeLoaded(null, window.location);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
</head>
|
||||
<body onload="try{ init(); }catch(e){ alert(e); }">
|
||||
<h4>The Dojo Toolkit -- iframe_history.html</h4>
|
||||
|
||||
<p>This file is used in Dojo's back/fwd button management.</p>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 814 B |
Binary file not shown.
|
After Width: | Height: | Size: 785 B |
Binary file not shown.
|
After Width: | Height: | Size: 756 B |
Binary file not shown.
|
After Width: | Height: | Size: 750 B |
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
|
||||
|
||||
if(!dojo._hasResource["dojo.rpc.JsonService"]){dojo._hasResource["dojo.rpc.JsonService"]=true;dojo.provide("dojo.rpc.JsonService");dojo.require("dojo.rpc.RpcService");dojo.declare("dojo.rpc.JsonService",dojo.rpc.RpcService,{bustCache:false,contentType:"application/json-rpc",lastSubmissionId:0,callRemote:function(_1,_2){var _3=new dojo.Deferred();this.bind(_1,_2,_3);return _3;},bind:function(_4,_5,_6,_7){var _8=dojo.rawXhrPost({url:_7||this.serviceUrl,postData:this.createRequest(_4,_5),contentType:this.contentType,timeout:this.timeout,handleAs:"json-comment-optional"});_8.addCallbacks(this.resultCallback(_6),this.errorCallback(_6));},createRequest:function(_9,_a){var _b={"params":_a,"method":_9,"id":++this.lastSubmissionId};var _c=dojo.toJson(_b);return _c;},parseResults:function(_d){if(dojo.isObject(_d)){if("result" in _d){return _d.result;}if("Result" in _d){return _d.Result;}if("ResultSet" in _d){return _d.ResultSet;}}return _d;}});}
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
|
||||
|
||||
if(!dojo._hasResource["dojo.rpc.JsonpService"]){dojo._hasResource["dojo.rpc.JsonpService"]=true;dojo.provide("dojo.rpc.JsonpService");dojo.require("dojo.rpc.RpcService");dojo.require("dojo.io.script");dojo.declare("dojo.rpc.JsonpService",dojo.rpc.RpcService,{constructor:function(_1,_2){if(this.required){if(_2){dojo.mixin(this.required,_2);}dojo.forEach(this.required,function(_3){if(_3==""||_3==undefined){throw new Error("Required Service Argument not found: "+_3);}});}},strictArgChecks:false,bind:function(_4,_5,_6,_7){var _8=dojo.io.script.get({url:_7||this.serviceUrl,callbackParamName:this.callbackParamName||"callback",content:this.createRequest(_5),timeout:this.timeout,handleAs:"json",preventCache:true});_8.addCallbacks(this.resultCallback(_6),this.errorCallback(_6));},createRequest:function(_9){var _a=(dojo.isArrayLike(_9)&&_9.length==1)?_9[0]:{};dojo.mixin(_a,this.required);return _a;}});}
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
|
||||
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||||
see: http://dojotoolkit.org/license for details
|
||||
*/
|
||||
|
||||
|
||||
if(!dojo._hasResource["dojo.rpc.RpcService"]){dojo._hasResource["dojo.rpc.RpcService"]=true;dojo.provide("dojo.rpc.RpcService");dojo.declare("dojo.rpc.RpcService",null,{constructor:function(_1){if(_1){if((dojo.isString(_1))||(_1 instanceof dojo._Url)){if(_1 instanceof dojo._Url){var _2=_1+"";}else{_2=_1;}var _3=dojo.xhrGet({url:_2,handleAs:"json-comment-optional",sync:true});_3.addCallback(this,"processSmd");_3.addErrback(function(){throw new Error("Unable to load SMD from "+_1);});}else{if(_1.smdStr){this.processSmd(dojo.eval("("+_1.smdStr+")"));}else{if(_1.serviceUrl){this.serviceUrl=_1.serviceUrl;}this.timeout=_1.timeout||3000;if("strictArgChecks" in _1){this.strictArgChecks=_1.strictArgChecks;}this.processSmd(_1);}}}},strictArgChecks:true,serviceUrl:"",parseResults:function(_4){return _4;},errorCallback:function(_5){return function(_6){_5.errback(_6.message);};},resultCallback:function(_7){var tf=dojo.hitch(this,function(_9){if(_9.error!=null){var _a;if(typeof _9.error=="object"){_a=new Error(_9.error.message);_a.code=_9.error.code;_a.error=_9.error.error;}else{_a=new Error(_9.error);}_a.id=_9.id;_a.errorObject=_9;_7.errback(_a);}else{_7.callback(this.parseResults(_9));}});return tf;},generateMethod:function(_b,_c,_d){return dojo.hitch(this,function(){var _e=new dojo.Deferred();if((this.strictArgChecks)&&(_c!=null)&&(arguments.length!=_c.length)){throw new Error("Invalid number of parameters for remote method.");}else{this.bind(_b,dojo._toArray(arguments),_e,_d);}return _e;});},processSmd:function(_f){if(_f.methods){dojo.forEach(_f.methods,function(m){if(m&&m.name){this[m.name]=this.generateMethod(m.name,m.parameters,m.url||m.serviceUrl||m.serviceURL);if(!dojo.isFunction(this[m.name])){throw new Error("RpcService: Failed to create"+m.name+"()");}}},this);}this.serviceUrl=_f.serviceUrl||_f.serviceURL;this.required=_f.required;this.smd=_f;}});}
|
||||
Reference in New Issue
Block a user