Permalink
Browse files

Remove tapx-prototype

  • Loading branch information...
1 parent cad5d3a commit c65236a398700384334ac8fa536f33d6356e680d @hlship committed Jul 5, 2011
Showing with 1 addition and 10,880 deletions.
  1. +1 −1 settings.gradle
  2. +0 −7 tapx-prototype/build.gradle
  3. +0 −68 tapx-prototype/src/main/java/com/howardlewisship/tapx/prototype/PrototypeModule.java
  4. +0 −136 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/builder.js
  5. +0 −965 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/controls.js
  6. +0 −974 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/dragdrop.js
  7. +0 −1,123 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/effects.js
  8. +0 −6,082 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/prototype.js
  9. +0 −70 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/scriptaculous.js
  10. +0 −275 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/slider.js
  11. +0 −59 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/sound.js
  12. +0 −48 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/tapestry-js-fixes.js
  13. +0 −568 tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/unittest.js
  14. +0 −12 tapx-prototype/src/site/apt/index.apt
  15. +0 −22 tapx-prototype/src/site/site.xml
  16. +0 −9 tapx-prototype/src/test/conf/testng.xml
  17. +0 −294 tapx-prototype/src/test/conf/webdefault.xml
  18. +0 −31 tapx-prototype/src/test/java/com/howardlewisship/tapx/prototype/IntegrationTests.java
  19. +0 −30 tapx-prototype/src/test/java/com/howardlewisship/tapx/prototype/pages/Index.java
  20. +0 −32 tapx-prototype/src/test/java/com/howardlewisship/tapx/prototype/services/AppModule.java
  21. +0 −13 tapx-prototype/src/test/resources/com/howardlewisship/tapx/prototype/pages/Index.tml
  22. +0 −26 tapx-prototype/src/test/resources/log4j.properties
  23. +0 −35 tapx-prototype/src/test/webapp/WEB-INF/web.xml
View
@@ -1,2 +1,2 @@
include "tapx-core", "tapx-kaptcha", "tapx-datefield", "tapx-plainmessage"
-include "tapx-prototype", "tapx-templating", "tapx-yui", "tapx-processing"
+include "tapx-templating", "tapx-yui", "tapx-processing"
@@ -1,7 +0,0 @@
-description = "Patch Tapestry's Prototype to version 1.7 and Script.aculo.us 1.9.0"
-
-jar {
- manifest {
- attributes 'Tapestry-Module-Classes': 'com.howardlewisship.tapx.prototype.PrototypeModule'
- }
-}
@@ -1,68 +0,0 @@
-// Copyright 2009, 2011 Howard M. Lewis Ship
-//
-// Licensed 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.
-
-package com.howardlewisship.tapx.prototype;
-
-import java.util.List;
-
-import org.apache.tapestry5.Asset;
-import org.apache.tapestry5.SymbolConstants;
-import org.apache.tapestry5.annotations.Path;
-import org.apache.tapestry5.corelib.components.Palette;
-import org.apache.tapestry5.func.F;
-import org.apache.tapestry5.internal.InternalConstants;
-import org.apache.tapestry5.internal.services.javascript.CoreJavaScriptStack;
-import org.apache.tapestry5.ioc.Configuration;
-import org.apache.tapestry5.ioc.MappedConfiguration;
-import org.apache.tapestry5.ioc.annotations.Inject;
-import org.apache.tapestry5.ioc.annotations.Symbol;
-import org.apache.tapestry5.services.ClientInfrastructure;
-import org.apache.tapestry5.services.LibraryMapping;
-import org.apache.tapestry5.services.javascript.JavaScriptStack;
-
-public class PrototypeModule
-{
- public static void contributeFactoryDefaults(MappedConfiguration<String, String> configuration)
- {
- configuration.override("tapestry.scriptaculous.path", "com/howardlewisship/tapx/prototype");
- }
-
- public static void contributeComponentClassResolver(final Configuration<LibraryMapping> configuration)
- {
- configuration.add(new LibraryMapping("tapx", "com.howardlewisship.tapx.prototype"));
- }
-
- /**
- * Patches Tapestry to include a file of fixes to make Tapestry 5.2.5 work with Prototype 1.7.
- * This has the side effect of all pages importing the Tapestry {@link Palette}s JavaScript
- * (so that it can be patched) even if they don't use the Palette.
- */
- public static void contributeJavaScriptStackSource(MappedConfiguration<String, JavaScriptStack> configuration,
- ClientInfrastructure clientInfrastructure,
- @Inject@Symbol(SymbolConstants.PRODUCTION_MODE) boolean productionMode,
- @Inject
- @Path("classpath:com/howardlewisship/tapx/prototype/tapestry-js-fixes.js")
- final Asset tapestryPatches,
- @Inject
- @Path("classpath:org/apache/tapestry5/corelib/components/palette.js")
- final Asset paletteLibrary )
- {
- configuration.override(InternalConstants.CORE_STACK_NAME, new CoreJavaScriptStack(clientInfrastructure, productionMode){
- @Override
- public List<Asset> getJavaScriptLibraries() {
- return F.flow(super.getJavaScriptLibraries()).append(paletteLibrary, tapestryPatches).toList();
- }
- });
- }
-}
@@ -1,136 +0,0 @@
-// script.aculo.us builder.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010
-
-// Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
-//
-// script.aculo.us is freely distributable under the terms of an MIT-style license.
-// For details, see the script.aculo.us web site: http://script.aculo.us/
-
-var Builder = {
- NODEMAP: {
- AREA: 'map',
- CAPTION: 'table',
- COL: 'table',
- COLGROUP: 'table',
- LEGEND: 'fieldset',
- OPTGROUP: 'select',
- OPTION: 'select',
- PARAM: 'object',
- TBODY: 'table',
- TD: 'table',
- TFOOT: 'table',
- TH: 'table',
- THEAD: 'table',
- TR: 'table'
- },
- // note: For Firefox < 1.5, OPTION and OPTGROUP tags are currently broken,
- // due to a Firefox bug
- node: function(elementName) {
- elementName = elementName.toUpperCase();
-
- // try innerHTML approach
- var parentTag = this.NODEMAP[elementName] || 'div';
- var parentElement = document.createElement(parentTag);
- try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
- parentElement.innerHTML = "<" + elementName + "></" + elementName + ">";
- } catch(e) {}
- var element = parentElement.firstChild || null;
-
- // see if browser added wrapping tags
- if(element && (element.tagName.toUpperCase() != elementName))
- element = element.getElementsByTagName(elementName)[0];
-
- // fallback to createElement approach
- if(!element) element = document.createElement(elementName);
-
- // abort if nothing could be created
- if(!element) return;
-
- // attributes (or text)
- if(arguments[1])
- if(this._isStringOrNumber(arguments[1]) ||
- (arguments[1] instanceof Array) ||
- arguments[1].tagName) {
- this._children(element, arguments[1]);
- } else {
- var attrs = this._attributes(arguments[1]);
- if(attrs.length) {
- try { // prevent IE "feature": http://dev.rubyonrails.org/ticket/2707
- parentElement.innerHTML = "<" +elementName + " " +
- attrs + "></" + elementName + ">";
- } catch(e) {}
- element = parentElement.firstChild || null;
- // workaround firefox 1.0.X bug
- if(!element) {
- element = document.createElement(elementName);
- for(attr in arguments[1])
- element[attr == 'class' ? 'className' : attr] = arguments[1][attr];
- }
- if(element.tagName.toUpperCase() != elementName)
- element = parentElement.getElementsByTagName(elementName)[0];
- }
- }
-
- // text, or array of children
- if(arguments[2])
- this._children(element, arguments[2]);
-
- return $(element);
- },
- _text: function(text) {
- return document.createTextNode(text);
- },
-
- ATTR_MAP: {
- 'className': 'class',
- 'htmlFor': 'for'
- },
-
- _attributes: function(attributes) {
- var attrs = [];
- for(attribute in attributes)
- attrs.push((attribute in this.ATTR_MAP ? this.ATTR_MAP[attribute] : attribute) +
- '="' + attributes[attribute].toString().escapeHTML().gsub(/"/,'&quot;') + '"');
- return attrs.join(" ");
- },
- _children: function(element, children) {
- if(children.tagName) {
- element.appendChild(children);
- return;
- }
- if(typeof children=='object') { // array can hold nodes and text
- children.flatten().each( function(e) {
- if(typeof e=='object')
- element.appendChild(e);
- else
- if(Builder._isStringOrNumber(e))
- element.appendChild(Builder._text(e));
- });
- } else
- if(Builder._isStringOrNumber(children))
- element.appendChild(Builder._text(children));
- },
- _isStringOrNumber: function(param) {
- return(typeof param=='string' || typeof param=='number');
- },
- build: function(html) {
- var element = this.node('div');
- $(element).update(html.strip());
- return element.down();
- },
- dump: function(scope) {
- if(typeof scope != 'object' && typeof scope != 'function') scope = window; //global scope
-
- var tags = ("A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY " +
- "BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET " +
- "FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX "+
- "KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P "+
- "PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD "+
- "TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR").split(/\s+/);
-
- tags.each( function(tag){
- scope[tag] = function() {
- return Builder.node.apply(Builder, [tag].concat($A(arguments)));
- };
- });
- }
-};
Oops, something went wrong.

0 comments on commit c65236a

Please sign in to comment.