Return-Path: X-Original-To: apmail-struts-commits-archive@minotaur.apache.org Delivered-To: apmail-struts-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A5659C2BC for ; Mon, 17 Nov 2014 10:48:15 +0000 (UTC) Received: (qmail 28686 invoked by uid 500); 17 Nov 2014 10:48:05 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 28554 invoked by uid 500); 17 Nov 2014 10:48:05 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 27571 invoked by uid 99); 17 Nov 2014 10:48:05 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2014 10:48:05 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id CE06F93D969; Mon, 17 Nov 2014 10:48:04 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: lukaszlenart@apache.org To: commits@struts.apache.org Date: Mon, 17 Nov 2014 10:48:18 -0000 Message-Id: <8c59eac0348a47a9b9004f7c4f3e2452@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [15/56] [abbrv] struts git commit: Upgrade AngularJS to latest stable AngularJS version 1.2.23 http://git-wip-us.apache.org/repos/asf/struts/blob/810711cc/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/lib/angular/angular-bootstrap-prettify.js ---------------------------------------------------------------------- diff --git a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/lib/angular/angular-bootstrap-prettify.js b/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/lib/angular/angular-bootstrap-prettify.js deleted file mode 100644 index 76d5ab6..0000000 --- a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/lib/angular/angular-bootstrap-prettify.js +++ /dev/null @@ -1,1845 +0,0 @@ -/** - * @license AngularJS v1.0.8 - * (c) 2010-2012 Google, Inc. http://angularjs.org - * License: MIT - */ -(function(window, angular, undefined) { -'use strict'; - -var directive = {}; -var service = { value: {} }; - -var DEPENDENCIES = { - 'angular.js': 'http://code.angularjs.org/' + angular.version.full + '/angular.min.js', - 'angular-resource.js': 'http://code.angularjs.org/' + angular.version.full + '/angular-resource.min.js', - 'angular-sanitize.js': 'http://code.angularjs.org/' + angular.version.full + '/angular-sanitize.min.js', - 'angular-cookies.js': 'http://code.angularjs.org/' + angular.version.full + '/angular-cookies.min.js' -}; - - -function escape(text) { - return text. - replace(/\&/g, '&'). - replace(/\/g, '>'). - replace(/"/g, '"'); -} - -/** - * http://stackoverflow.com/questions/451486/pre-tag-loses-line-breaks-when-setting-innerhtml-in-ie - * http://stackoverflow.com/questions/195363/inserting-a-newline-into-a-pre-tag-ie-javascript - */ -function setHtmlIe8SafeWay(element, html) { - var newElement = angular.element('
' + html + '
'); - - element.html(''); - element.append(newElement.contents()); - return element; -} - - -directive.jsFiddle = function(getEmbeddedTemplate, escape, script) { - return { - terminal: true, - link: function(scope, element, attr) { - var name = '', - stylesheet = '\n', - fields = { - html: '', - css: '', - js: '' - }; - - angular.forEach(attr.jsFiddle.split(' '), function(file, index) { - var fileType = file.split('.')[1]; - - if (fileType == 'html') { - if (index == 0) { - fields[fileType] += - '
\n' + - getEmbeddedTemplate(file, 2); - } else { - fields[fileType] += '\n\n\n \n' + - ' \n'; - } - } else { - fields[fileType] += getEmbeddedTemplate(file) + '\n'; - } - }); - - fields.html += '
\n'; - - setHtmlIe8SafeWay(element, - '
' + - hiddenField('title', 'AngularJS Example: ' + name) + - hiddenField('css', ' \n' + - stylesheet + - script.angular + - (attr.resource ? script.resource : '') + - ''); \ No newline at end of file