You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2013/07/08 18:00:12 UTC
[19/21] dev and release working except images
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-css/example/www/popup.css
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-css/example/www/popup.css b/src/fauxton/assets/js/plugins/require-css/example/www/popup.css
deleted file mode 100644
index 3d37293..0000000
--- a/src/fauxton/assets/js/plugins/require-css/example/www/popup.css
+++ /dev/null
@@ -1,7 +0,0 @@
-.popup {
- width: 300px;
- height: 300px;
- padding: 20px;
- background-color: green;
- font-family: times;
-}
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-css/example/www/popup.js
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-css/example/www/popup.js b/src/fauxton/assets/js/plugins/require-css/example/www/popup.js
deleted file mode 100644
index 51ceea7..0000000
--- a/src/fauxton/assets/js/plugins/require-css/example/www/popup.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define(['css!popup'], function() {
- return "<div class='popup'>popup content</div>";
-});
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-css/example/www/require-css
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-css/example/www/require-css b/src/fauxton/assets/js/plugins/require-css/example/www/require-css
deleted file mode 120000
index 6581736..0000000
--- a/src/fauxton/assets/js/plugins/require-css/example/www/require-css
+++ /dev/null
@@ -1 +0,0 @@
-../../
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-css/example/www/style/style.css
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-css/example/www/style/style.css b/src/fauxton/assets/js/plugins/require-css/example/www/style/style.css
deleted file mode 100755
index 7898dbf..0000000
--- a/src/fauxton/assets/js/plugins/require-css/example/www/style/style.css
+++ /dev/null
@@ -1,6 +0,0 @@
-/* module.css */
-/* used by app.js */
-@import '/test.css'
-body {
- font-family: sans-serif;
-}
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-css/example/www/test.css
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-css/example/www/test.css b/src/fauxton/assets/js/plugins/require-css/example/www/test.css
deleted file mode 100644
index 00e243d..0000000
--- a/src/fauxton/assets/js/plugins/require-css/example/www/test.css
+++ /dev/null
@@ -1,3 +0,0 @@
-body {
- background-color: #fee;
-}
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-css/example/www/test.html
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-css/example/www/test.html b/src/fauxton/assets/js/plugins/require-css/example/www/test.html
deleted file mode 100644
index f72d47b..0000000
--- a/src/fauxton/assets/js/plugins/require-css/example/www/test.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!doctype html>
-<html>
-<script type='text/javascript' src='../../../require.js'></script>
-<script>
- require.config({
- baseUrl: '/Users/guybedford/Projects/OpenClient/www/lib/require-css/example/www/',
- map: {
- '*': {
- 'css': 'require-css/css'
- }
- }
- });
-</script>
-
-<body>
-<h1>test</h1>
-</body>
-
-
-<script>
- require(['app'], function(){});
- require(['popup'], function(popupHTML) {
- var div = document.createElement('div');
- div.innerHTML = popupHTML;
- document.body.appendChild(div);
- alert(div.childNodes[0].offsetWidth == 340 ? 'Style query passed' : 'Style query failed');
- });
-</script>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-css/example/www/text.js
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-css/example/www/text.js b/src/fauxton/assets/js/plugins/require-css/example/www/text.js
deleted file mode 100755
index 38f6ca0..0000000
--- a/src/fauxton/assets/js/plugins/require-css/example/www/text.js
+++ /dev/null
@@ -1,282 +0,0 @@
-/**
- * @license RequireJS text 1.0.8 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-/*jslint regexp: true, plusplus: true, sloppy: true */
-/*global require: false, XMLHttpRequest: false, ActiveXObject: false,
- define: false, window: false, process: false, Packages: false,
- java: false, location: false */
-
-(function () {
- var progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'],
- xmlRegExp = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,
- bodyRegExp = /<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,
- hasLocation = typeof location !== 'undefined' && location.href,
- defaultProtocol = hasLocation && location.protocol && location.protocol.replace(/\:/, ''),
- defaultHostName = hasLocation && location.hostname,
- defaultPort = hasLocation && (location.port || undefined),
- buildMap = [];
-
- define(function () {
- var text, fs;
-
- text = {
- version: '1.0.8',
-
- strip: function (content) {
- //Strips <?xml ...?> declarations so that external SVG and XML
- //documents can be added to a document without worry. Also, if the string
- //is an HTML document, only the part inside the body tag is returned.
- if (content) {
- content = content.replace(xmlRegExp, "");
- var matches = content.match(bodyRegExp);
- if (matches) {
- content = matches[1];
- }
- } else {
- content = "";
- }
- return content;
- },
-
- jsEscape: function (content) {
- return content.replace(/(['\\])/g, '\\$1')
- .replace(/[\f]/g, "\\f")
- .replace(/[\b]/g, "\\b")
- .replace(/[\n]/g, "\\n")
- .replace(/[\t]/g, "\\t")
- .replace(/[\r]/g, "\\r");
- },
-
- createXhr: function () {
- //Would love to dump the ActiveX crap in here. Need IE 6 to die first.
- var xhr, i, progId;
- if (typeof XMLHttpRequest !== "undefined") {
- return new XMLHttpRequest();
- } else if (typeof ActiveXObject !== "undefined") {
- for (i = 0; i < 3; i++) {
- progId = progIds[i];
- try {
- xhr = new ActiveXObject(progId);
- } catch (e) {}
-
- if (xhr) {
- progIds = [progId]; // so faster next time
- break;
- }
- }
- }
-
- return xhr;
- },
-
- /**
- * Parses a resource name into its component parts. Resource names
- * look like: module/name.ext!strip, where the !strip part is
- * optional.
- * @param {String} name the resource name
- * @returns {Object} with properties "moduleName", "ext" and "strip"
- * where strip is a boolean.
- */
- parseName: function (name) {
- var strip = false, index = name.indexOf("."),
- modName = name.substring(0, index),
- ext = name.substring(index + 1, name.length);
-
- index = ext.indexOf("!");
- if (index !== -1) {
- //Pull off the strip arg.
- strip = ext.substring(index + 1, ext.length);
- strip = strip === "strip";
- ext = ext.substring(0, index);
- }
-
- return {
- moduleName: modName,
- ext: ext,
- strip: strip
- };
- },
-
- xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/,
-
- /**
- * Is an URL on another domain. Only works for browser use, returns
- * false in non-browser environments. Only used to know if an
- * optimized .js version of a text resource should be loaded
- * instead.
- * @param {String} url
- * @returns Boolean
- */
- useXhr: function (url, protocol, hostname, port) {
- var match = text.xdRegExp.exec(url),
- uProtocol, uHostName, uPort;
- if (!match) {
- return true;
- }
- uProtocol = match[2];
- uHostName = match[3];
-
- uHostName = uHostName.split(':');
- uPort = uHostName[1];
- uHostName = uHostName[0];
-
- return (!uProtocol || uProtocol === protocol) &&
- (!uHostName || uHostName === hostname) &&
- ((!uPort && !uHostName) || uPort === port);
- },
-
- finishLoad: function (name, strip, content, onLoad, config) {
- content = strip ? text.strip(content) : content;
- if (config.isBuild) {
- buildMap[name] = content;
- }
- onLoad(content);
- },
-
- load: function (name, req, onLoad, config) {
- //Name has format: some.module.filext!strip
- //The strip part is optional.
- //if strip is present, then that means only get the string contents
- //inside a body tag in an HTML string. For XML/SVG content it means
- //removing the <?xml ...?> declarations so the content can be inserted
- //into the current doc without problems.
-
- // Do not bother with the work if a build and text will
- // not be inlined.
- if (config.isBuild && !config.inlineText) {
- onLoad();
- return;
- }
-
- var parsed = text.parseName(name),
- nonStripName = parsed.moduleName + '.' + parsed.ext,
- url = req.toUrl(nonStripName),
- useXhr = (config && config.text && config.text.useXhr) ||
- text.useXhr;
-
- //Load the text. Use XHR if possible and in a browser.
- if (!hasLocation || useXhr(url, defaultProtocol, defaultHostName, defaultPort)) {
- text.get(url, function (content) {
- text.finishLoad(name, parsed.strip, content, onLoad, config);
- });
- } else {
- //Need to fetch the resource across domains. Assume
- //the resource has been optimized into a JS module. Fetch
- //by the module name + extension, but do not include the
- //!strip part to avoid file system issues.
- req([nonStripName], function (content) {
- text.finishLoad(parsed.moduleName + '.' + parsed.ext,
- parsed.strip, content, onLoad, config);
- });
- }
- },
-
- write: function (pluginName, moduleName, write, config) {
- if (buildMap.hasOwnProperty(moduleName)) {
- var content = text.jsEscape(buildMap[moduleName]);
- write.asModule(pluginName + "!" + moduleName,
- "define(function () { return '" +
- content +
- "';});\n");
- }
- },
-
- writeFile: function (pluginName, moduleName, req, write, config) {
- var parsed = text.parseName(moduleName),
- nonStripName = parsed.moduleName + '.' + parsed.ext,
- //Use a '.js' file name so that it indicates it is a
- //script that can be loaded across domains.
- fileName = req.toUrl(parsed.moduleName + '.' +
- parsed.ext) + '.js';
-
- //Leverage own load() method to load plugin value, but only
- //write out values that do not have the strip argument,
- //to avoid any potential issues with ! in file names.
- text.load(nonStripName, req, function (value) {
- //Use own write() method to construct full module value.
- //But need to create shell that translates writeFile's
- //write() to the right interface.
- var textWrite = function (contents) {
- return write(fileName, contents);
- };
- textWrite.asModule = function (moduleName, contents) {
- return write.asModule(moduleName, fileName, contents);
- };
-
- text.write(pluginName, nonStripName, textWrite, config);
- }, config);
- }
- };
-
- if (text.createXhr()) {
- text.get = function (url, callback) {
- var xhr = text.createXhr();
- xhr.open('GET', url, true);
- xhr.onreadystatechange = function (evt) {
- //Do not explicitly handle errors, those should be
- //visible via console output in the browser.
- if (xhr.readyState === 4) {
- callback(xhr.responseText);
- }
- };
- xhr.send(null);
- };
- } else if (typeof process !== "undefined" &&
- process.versions &&
- !!process.versions.node) {
- //Using special require.nodeRequire, something added by r.js.
- fs = require.nodeRequire('fs');
-
- text.get = function (url, callback) {
- var file = fs.readFileSync(url, 'utf8');
- //Remove BOM (Byte Mark Order) from utf8 files if it is there.
- if (file.indexOf('\uFEFF') === 0) {
- file = file.substring(1);
- }
- callback(file);
- };
- } else if (typeof Packages !== 'undefined') {
- //Why Java, why is this so awkward?
- text.get = function (url, callback) {
- var encoding = "utf-8",
- file = new java.io.File(url),
- lineSeparator = java.lang.System.getProperty("line.separator"),
- input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),
- stringBuffer, line,
- content = '';
- try {
- stringBuffer = new java.lang.StringBuffer();
- line = input.readLine();
-
- // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
- // http://www.unicode.org/faq/utf_bom.html
-
- // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
- // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
- if (line && line.length() && line.charAt(0) === 0xfeff) {
- // Eat the BOM, since we've already found the encoding on this file,
- // and we plan to concatenating this buffer with others; the BOM should
- // only appear at the top of a file.
- line = line.substring(1);
- }
-
- stringBuffer.append(line);
-
- while ((line = input.readLine()) !== null) {
- stringBuffer.append(lineSeparator);
- stringBuffer.append(line);
- }
- //Make sure we return a JavaScript string and not a Java string.
- content = String(stringBuffer.toString()); //String
- } finally {
- input.close();
- }
- callback(content);
- };
- }
-
- return text;
- });
-}());
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-css/test/test.js
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-css/test/test.js b/src/fauxton/assets/js/plugins/require-css/test/test.js
deleted file mode 100644
index 4c9864b..0000000
--- a/src/fauxton/assets/js/plugins/require-css/test/test.js
+++ /dev/null
@@ -1,78 +0,0 @@
-var requirejs = require('requirejs');
-
-var passed = 0;
-var failed = 0;
-var assert = function(name, statement, val) {
- if (statement === val) {
- console.log(' ' + name + '... passed.');
- passed++;
- }
- else {
- console.log(' ' + name + '... failed.\n ' + 'Expected "' + val + '" got "' + statement + '"\n');
- failed++;
- }
-}
-
-requirejs(['../css', '../normalize'], function(css, normalize) {
- console.log('\n--- Starting Require CSS Tests ---');
-
- console.log('\nTesting URL Base Conversions');
- assert(
- 'Changing subfolder',
- normalize.convertURIBase('test', '/one/two/', '/one/three/'),
- '../two/test'
- );
- assert(
- 'Changing subfolder with backtrack',
- normalize.convertURIBase('../test', '/one/two/', '/one/three/'),
- '../test'
- );
- assert(
- 'Changing two subfolders with a folder',
- normalize.convertURIBase('some/test', '/one/two/three/', '/one/four/five/'),
- '../../two/three/some/test'
- );
- assert(
- 'Double forward slashes in relative URI',
- normalize.convertURIBase('some//test', '/one/two/three/', '/one/two/four/'),
- '../three/some/test'
- );
- assert(
- 'protocol base urls work',
- normalize.convertURIBase('some/file', 'http://www.google.com:80/', 'http://www.google.com:80/sub/'),
- '../some/file'
- );
- assert(
- 'absolute protocol paths work with base conversion',
- normalize.convertURIBase('some/file', 'http://some.cdn.com/baseUrl/', 'baseUrl/'),
- 'http://some.cdn.com/baseUrl/some/file'
- );
- console.log('\nTesting Stylesheet Regular Expressions');
- assert(
- '@import statements',
- normalize('@import "test.css"', '/first/', '/second/'),
- '@import "../first/test.css"'
- );
- assert(
- 'url includes',
- normalize('background: url("../some/test.css")', '/first/one/', '/second/one/'),
- 'background: url("../../first/some/test.css")'
- );
- assert(
- 'multiple url includes on the same line',
- normalize('src: url("../fonts/font.eot") format("embedded-opentype"), url("../fonts/font.woff") format("woff");', '/base/', '/'),
- 'src: url("fonts/font.eot") format("embedded-opentype"), url("fonts/font.woff") format("woff");'
- );
- assert(
- 'cssBase can apply to imports',
- normalize('@import "/some-file"', '/first/', '/second/', 'http://www.my-website.com'),
- '@import "http://www.my-website.com/some-file"'
- );
- assert(
- 'cssBase can apply to urls',
- normalize('background: url(\'/absolute/source.jpg\');', 'asdf', 'qwer', '/basePath'),
- 'background: url(\'/basePath/absolute/source.jpg\');'
- );
-
- console.log('\n--- Require CSS Tests Complete: ' + passed + ' passed, ' + failed + ' failed. ---\n');
-});
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/build.js
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/build.js b/src/fauxton/assets/js/plugins/require-less/example/build.js
deleted file mode 100644
index 2eb3888..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/build.js
+++ /dev/null
@@ -1,30 +0,0 @@
-({
- appDir: 'www',
- dir: 'www-built',
- baseUrl: '.',
- fileExclusionRegExp: /(^example)|(.git)$/,
- packages: [
- {
- name: 'css',
- location: 'require-css',
- main: 'css'
- },
- {
- name: 'less',
- location: 'require-less',
- main: 'less'
- }
- ],
- modules: [
- {
- name: 'core-components',
- create: true,
- include: ['css', 'components/component'],
- excludeShallow: ['css/css-builder', 'less/lessc-server', 'less/lessc']
- },
- {
- name: 'app',
- exclude: ['core-components', 'less']
- }
- ]
-})
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/setup.sh
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/setup.sh b/src/fauxton/assets/js/plugins/require-less/example/setup.sh
deleted file mode 100755
index a3e2e4f..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/setup.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-cd www
-ln -s ../../ require-less
-ln -s ../../../require-css require-css
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/test.html
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/test.html b/src/fauxton/assets/js/plugins/require-less/example/test.html
deleted file mode 100644
index 517024f..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/test.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!doctype html>
-<html>
-<script type='text/javascript' src='../../../require.js'></script>
-<script>
- require.config({
- baseUrl: '.',
- packages: [
- {
- name: 'css',
- location: 'require-css',
- main: 'css'
- },
- {
- name: 'less',
- location: 'require-less',
- main: 'less'
- }
- ]
- });
-</script>
-<script src="core-components.js"></script>
-<script>
- require(['app'], function(app) {
- });
-</script>
-
-<body>
-<h1>test</h1>
-</body>
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/app.js
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/app.js b/src/fauxton/assets/js/plugins/require-less/example/www/app.js
deleted file mode 100644
index e9842ec..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/app.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define(['components/component', 'less!less-style/style', 'css!css-style'], function(component) {
- return 'uses the component!';
-});
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/components/component.js
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/components/component.js b/src/fauxton/assets/js/plugins/require-less/example/www/components/component.js
deleted file mode 100644
index d56c016..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/components/component.js
+++ /dev/null
@@ -1,3 +0,0 @@
-define(['less!./component'], function() {
- return {component: 'is here'};
-});
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/components/component.less
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/components/component.less b/src/fauxton/assets/js/plugins/require-less/example/www/components/component.less
deleted file mode 100644
index 2e677f7..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/components/component.less
+++ /dev/null
@@ -1,5 +0,0 @@
-/* component.less */
-@color: red;
-body {
- background-color: @color;
-}
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/css-style.css
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/css-style.css b/src/fauxton/assets/js/plugins/require-less/example/www/css-style.css
deleted file mode 100644
index eea8230..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/css-style.css
+++ /dev/null
@@ -1,3 +0,0 @@
-body {
- font-family: arial;
-}
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/less-style/style.less
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/less-style/style.less b/src/fauxton/assets/js/plugins/require-less/example/www/less-style/style.less
deleted file mode 100644
index 8a2d0d4..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/less-style/style.less
+++ /dev/null
@@ -1,4 +0,0 @@
-@import './test.less';
-h1 {
- color: @mycolor;
-}
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/less-style/test.less
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/less-style/test.less b/src/fauxton/assets/js/plugins/require-less/example/www/less-style/test.less
deleted file mode 100644
index 487f922..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/less-style/test.less
+++ /dev/null
@@ -1 +0,0 @@
-@mycolor: #00f;
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/require-css
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/require-css b/src/fauxton/assets/js/plugins/require-less/example/www/require-css
deleted file mode 120000
index 90c1e86..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/require-css
+++ /dev/null
@@ -1 +0,0 @@
-../../../require-css
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/require-less
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/require-less b/src/fauxton/assets/js/plugins/require-less/example/www/require-less
deleted file mode 120000
index 6581736..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/require-less
+++ /dev/null
@@ -1 +0,0 @@
-../../
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/test.html
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/test.html b/src/fauxton/assets/js/plugins/require-less/example/www/test.html
deleted file mode 100644
index a1849f7..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/test.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!doctype html>
-<html>
-<script type='text/javascript' src='../../../require.js'></script>
-<script>
- require.config({
- baseUrl: '.',
- packages: [
- {
- name: 'css',
- location: 'require-css',
- main: 'css'
- },
- {
- name: 'less',
- location: 'require-less',
- main: 'less'
- }
- ],
- });
-</script>
-
-<script>
- require(['app'], function(app) {
- });
-</script>
-
-<body>
-<h1>test</h1>
-</body>
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/js/plugins/require-less/example/www/text.js
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/js/plugins/require-less/example/www/text.js b/src/fauxton/assets/js/plugins/require-less/example/www/text.js
deleted file mode 100644
index 38f6ca0..0000000
--- a/src/fauxton/assets/js/plugins/require-less/example/www/text.js
+++ /dev/null
@@ -1,282 +0,0 @@
-/**
- * @license RequireJS text 1.0.8 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/jrburke/requirejs for details
- */
-/*jslint regexp: true, plusplus: true, sloppy: true */
-/*global require: false, XMLHttpRequest: false, ActiveXObject: false,
- define: false, window: false, process: false, Packages: false,
- java: false, location: false */
-
-(function () {
- var progIds = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'],
- xmlRegExp = /^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,
- bodyRegExp = /<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,
- hasLocation = typeof location !== 'undefined' && location.href,
- defaultProtocol = hasLocation && location.protocol && location.protocol.replace(/\:/, ''),
- defaultHostName = hasLocation && location.hostname,
- defaultPort = hasLocation && (location.port || undefined),
- buildMap = [];
-
- define(function () {
- var text, fs;
-
- text = {
- version: '1.0.8',
-
- strip: function (content) {
- //Strips <?xml ...?> declarations so that external SVG and XML
- //documents can be added to a document without worry. Also, if the string
- //is an HTML document, only the part inside the body tag is returned.
- if (content) {
- content = content.replace(xmlRegExp, "");
- var matches = content.match(bodyRegExp);
- if (matches) {
- content = matches[1];
- }
- } else {
- content = "";
- }
- return content;
- },
-
- jsEscape: function (content) {
- return content.replace(/(['\\])/g, '\\$1')
- .replace(/[\f]/g, "\\f")
- .replace(/[\b]/g, "\\b")
- .replace(/[\n]/g, "\\n")
- .replace(/[\t]/g, "\\t")
- .replace(/[\r]/g, "\\r");
- },
-
- createXhr: function () {
- //Would love to dump the ActiveX crap in here. Need IE 6 to die first.
- var xhr, i, progId;
- if (typeof XMLHttpRequest !== "undefined") {
- return new XMLHttpRequest();
- } else if (typeof ActiveXObject !== "undefined") {
- for (i = 0; i < 3; i++) {
- progId = progIds[i];
- try {
- xhr = new ActiveXObject(progId);
- } catch (e) {}
-
- if (xhr) {
- progIds = [progId]; // so faster next time
- break;
- }
- }
- }
-
- return xhr;
- },
-
- /**
- * Parses a resource name into its component parts. Resource names
- * look like: module/name.ext!strip, where the !strip part is
- * optional.
- * @param {String} name the resource name
- * @returns {Object} with properties "moduleName", "ext" and "strip"
- * where strip is a boolean.
- */
- parseName: function (name) {
- var strip = false, index = name.indexOf("."),
- modName = name.substring(0, index),
- ext = name.substring(index + 1, name.length);
-
- index = ext.indexOf("!");
- if (index !== -1) {
- //Pull off the strip arg.
- strip = ext.substring(index + 1, ext.length);
- strip = strip === "strip";
- ext = ext.substring(0, index);
- }
-
- return {
- moduleName: modName,
- ext: ext,
- strip: strip
- };
- },
-
- xdRegExp: /^((\w+)\:)?\/\/([^\/\\]+)/,
-
- /**
- * Is an URL on another domain. Only works for browser use, returns
- * false in non-browser environments. Only used to know if an
- * optimized .js version of a text resource should be loaded
- * instead.
- * @param {String} url
- * @returns Boolean
- */
- useXhr: function (url, protocol, hostname, port) {
- var match = text.xdRegExp.exec(url),
- uProtocol, uHostName, uPort;
- if (!match) {
- return true;
- }
- uProtocol = match[2];
- uHostName = match[3];
-
- uHostName = uHostName.split(':');
- uPort = uHostName[1];
- uHostName = uHostName[0];
-
- return (!uProtocol || uProtocol === protocol) &&
- (!uHostName || uHostName === hostname) &&
- ((!uPort && !uHostName) || uPort === port);
- },
-
- finishLoad: function (name, strip, content, onLoad, config) {
- content = strip ? text.strip(content) : content;
- if (config.isBuild) {
- buildMap[name] = content;
- }
- onLoad(content);
- },
-
- load: function (name, req, onLoad, config) {
- //Name has format: some.module.filext!strip
- //The strip part is optional.
- //if strip is present, then that means only get the string contents
- //inside a body tag in an HTML string. For XML/SVG content it means
- //removing the <?xml ...?> declarations so the content can be inserted
- //into the current doc without problems.
-
- // Do not bother with the work if a build and text will
- // not be inlined.
- if (config.isBuild && !config.inlineText) {
- onLoad();
- return;
- }
-
- var parsed = text.parseName(name),
- nonStripName = parsed.moduleName + '.' + parsed.ext,
- url = req.toUrl(nonStripName),
- useXhr = (config && config.text && config.text.useXhr) ||
- text.useXhr;
-
- //Load the text. Use XHR if possible and in a browser.
- if (!hasLocation || useXhr(url, defaultProtocol, defaultHostName, defaultPort)) {
- text.get(url, function (content) {
- text.finishLoad(name, parsed.strip, content, onLoad, config);
- });
- } else {
- //Need to fetch the resource across domains. Assume
- //the resource has been optimized into a JS module. Fetch
- //by the module name + extension, but do not include the
- //!strip part to avoid file system issues.
- req([nonStripName], function (content) {
- text.finishLoad(parsed.moduleName + '.' + parsed.ext,
- parsed.strip, content, onLoad, config);
- });
- }
- },
-
- write: function (pluginName, moduleName, write, config) {
- if (buildMap.hasOwnProperty(moduleName)) {
- var content = text.jsEscape(buildMap[moduleName]);
- write.asModule(pluginName + "!" + moduleName,
- "define(function () { return '" +
- content +
- "';});\n");
- }
- },
-
- writeFile: function (pluginName, moduleName, req, write, config) {
- var parsed = text.parseName(moduleName),
- nonStripName = parsed.moduleName + '.' + parsed.ext,
- //Use a '.js' file name so that it indicates it is a
- //script that can be loaded across domains.
- fileName = req.toUrl(parsed.moduleName + '.' +
- parsed.ext) + '.js';
-
- //Leverage own load() method to load plugin value, but only
- //write out values that do not have the strip argument,
- //to avoid any potential issues with ! in file names.
- text.load(nonStripName, req, function (value) {
- //Use own write() method to construct full module value.
- //But need to create shell that translates writeFile's
- //write() to the right interface.
- var textWrite = function (contents) {
- return write(fileName, contents);
- };
- textWrite.asModule = function (moduleName, contents) {
- return write.asModule(moduleName, fileName, contents);
- };
-
- text.write(pluginName, nonStripName, textWrite, config);
- }, config);
- }
- };
-
- if (text.createXhr()) {
- text.get = function (url, callback) {
- var xhr = text.createXhr();
- xhr.open('GET', url, true);
- xhr.onreadystatechange = function (evt) {
- //Do not explicitly handle errors, those should be
- //visible via console output in the browser.
- if (xhr.readyState === 4) {
- callback(xhr.responseText);
- }
- };
- xhr.send(null);
- };
- } else if (typeof process !== "undefined" &&
- process.versions &&
- !!process.versions.node) {
- //Using special require.nodeRequire, something added by r.js.
- fs = require.nodeRequire('fs');
-
- text.get = function (url, callback) {
- var file = fs.readFileSync(url, 'utf8');
- //Remove BOM (Byte Mark Order) from utf8 files if it is there.
- if (file.indexOf('\uFEFF') === 0) {
- file = file.substring(1);
- }
- callback(file);
- };
- } else if (typeof Packages !== 'undefined') {
- //Why Java, why is this so awkward?
- text.get = function (url, callback) {
- var encoding = "utf-8",
- file = new java.io.File(url),
- lineSeparator = java.lang.System.getProperty("line.separator"),
- input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),
- stringBuffer, line,
- content = '';
- try {
- stringBuffer = new java.lang.StringBuffer();
- line = input.readLine();
-
- // Byte Order Mark (BOM) - The Unicode Standard, version 3.0, page 324
- // http://www.unicode.org/faq/utf_bom.html
-
- // Note that when we use utf-8, the BOM should appear as "EF BB BF", but it doesn't due to this bug in the JDK:
- // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058
- if (line && line.length() && line.charAt(0) === 0xfeff) {
- // Eat the BOM, since we've already found the encoding on this file,
- // and we plan to concatenating this buffer with others; the BOM should
- // only appear at the top of a file.
- line = line.substring(1);
- }
-
- stringBuffer.append(line);
-
- while ((line = input.readLine()) !== null) {
- stringBuffer.append(lineSeparator);
- stringBuffer.append(line);
- }
- //Make sure we return a JavaScript string and not a Java string.
- content = String(stringBuffer.toString()); //String
- } finally {
- input.close();
- }
- callback(content);
- };
- }
-
- return text;
- });
-}());
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/less/bootstrap/tests/buttons.html
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/less/bootstrap/tests/buttons.html b/src/fauxton/assets/less/bootstrap/tests/buttons.html
deleted file mode 100644
index 5fe7f66..0000000
--- a/src/fauxton/assets/less/bootstrap/tests/buttons.html
+++ /dev/null
@@ -1,139 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Buttons · Bootstrap</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
-
- <!-- Le styles -->
- <link href="../../docs/assets/css/bootstrap.css" rel="stylesheet">
- <style>
- body {
- padding-top: 30px;
- padding-bottom: 30px;
- }
- </style>
- <link href="../../docs/assets/css/bootstrap-responsive.css" rel="stylesheet">
-
- <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
- <!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
-
- <!-- Le fav and touch icons -->
- <link rel="shortcut icon" href="../../docs/assets/ico/favicon.ico">
- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../docs/assets/ico/apple-touch-icon-144-precomposed.png">
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../docs/assets/ico/apple-touch-icon-114-precomposed.png">
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../docs/assets/ico/apple-touch-icon-72-precomposed.png">
- <link rel="apple-touch-icon-precomposed" href="../../docs/assets/ico/apple-touch-icon-57-precomposed.png">
- </head>
-
- <body>
-
- <div class="container">
-
- <h2>Dropups</h2>
- <div class="btn-toolbar">
- <div class="btn-group dropup">
- <button class="btn">Dropup</button>
- <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li><a href="#">Separated link</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group dropup">
- <button class="btn btn-primary">Dropup</button>
- <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li><a href="#">Separated link</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group dropup">
- <button class="btn btn-danger">Dropup</button>
- <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li><a href="#">Separated link</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group dropup">
- <button class="btn btn-warning">Dropup</button>
- <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li><a href="#">Separated link</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group dropup">
- <button class="btn btn-success">Dropup</button>
- <button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li><a href="#">Separated link</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group dropup">
- <button class="btn btn-info">Dropup</button>
- <button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li><a href="#">Separated link</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group dropup">
- <button class="btn btn-inverse">Dropup</button>
- <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">Action</a></li>
- <li><a href="#">Another action</a></li>
- <li><a href="#">Something else here</a></li>
- <li class="divider"></li>
- <li><a href="#">Separated link</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div><!-- /btn-toolbar -->
-
-
- </div> <!-- /container -->
-
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script src="../../docs/assets/js/jquery.js"></script>
- <script src="../../docs/assets/js/bootstrap-transition.js"></script>
- <script src="../../docs/assets/js/bootstrap-alert.js"></script>
- <script src="../../docs/assets/js/bootstrap-modal.js"></script>
- <script src="../../docs/assets/js/bootstrap-dropdown.js"></script>
- <script src="../../docs/assets/js/bootstrap-scrollspy.js"></script>
- <script src="../../docs/assets/js/bootstrap-tab.js"></script>
- <script src="../../docs/assets/js/bootstrap-tooltip.js"></script>
- <script src="../../docs/assets/js/bootstrap-popover.js"></script>
- <script src="../../docs/assets/js/bootstrap-button.js"></script>
- <script src="../../docs/assets/js/bootstrap-collapse.js"></script>
- <script src="../../docs/assets/js/bootstrap-carousel.js"></script>
- <script src="../../docs/assets/js/bootstrap-typeahead.js"></script>
-
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/couchdb/blob/5da4bbf0/src/fauxton/assets/less/bootstrap/tests/css-tests.css
----------------------------------------------------------------------
diff --git a/src/fauxton/assets/less/bootstrap/tests/css-tests.css b/src/fauxton/assets/less/bootstrap/tests/css-tests.css
deleted file mode 100644
index 9edaf69..0000000
--- a/src/fauxton/assets/less/bootstrap/tests/css-tests.css
+++ /dev/null
@@ -1,139 +0,0 @@
-/*!
- * Bootstrap CSS Tests
- */
-
-
-/* Remove background image */
-body {
- background-image: none;
-}
-
-/* Space out subhead */
-.subhead {
- margin-bottom: 36px;
-}
-/*h4 {
- margin-bottom: 5px;
-}
-*/
-
-.type-test {
- margin-bottom: 20px;
- padding: 0 20px 20px;
- background: url(../../docs/assets/img/grid-baseline-20px.png);
-}
-.type-test h1,
-.type-test h2,
-.type-test h3,
-.type-test h4,
-.type-test h5,
-.type-test h6 {
- background-color: rgba(255,0,0,.2);
-}
-
-
-/* colgroup tests */
-.col1 {
- background-color: rgba(255,0,0,.1);
-}
-.col2 {
- background-color: rgba(0,255,0,.1);
-}
-.col3 {
- background-color: rgba(0,0,255,.1);
-}
-
-
-/* Fluid row inputs */
-#rowInputs .row > [class*=span],
-#fluidRowInputs .row-fluid > [class*=span] {
- background-color: rgba(255,0,0,.1);
-}
-
-
-/* Fluid grid */
-.fluid-grid {
- margin-bottom: 45px;
-}
-.fluid-grid .row {
- height: 40px;
- padding-top: 10px;
- margin-top: 10px;
- color: #ddd;
- text-align: center;
-}
-.fluid-grid .span1 {
- background-color: #999;
-}
-
-
-/* Gradients */
-
-[class^="gradient-"] {
- width: 100%;
- height: 400px;
- margin: 20px 0;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
-}
-
-.gradient-horizontal {
- background-color: #333333;
- background-image: -moz-linear-gradient(left, #555555, #333333);
- background-image: -webkit-gradient(linear, 0 0, 100% 0, from(#555555), to(#333333));
- background-image: -webkit-linear-gradient(left, #555555, #333333);
- background-image: -o-linear-gradient(left, #555555, #333333);
- background-image: linear-gradient(to right, #555555, #333333);
- background-repeat: repeat-x;
- filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff555555', endColorstr='#ff333333', GradientType=1);
-}
-
-.gradient-vertical {
- background-color: #474747;
- background-image: -moz-linear-gradient(top, #555555, #333333);
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#333333));
- background-image: -webkit-linear-gradient(top, #555555, #333333);
- background-image: -o-linear-gradient(top, #555555, #333333);
- background-image: linear-gradient(to bottom, #555555, #333333);
- background-repeat: repeat-x;
- filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff555555', endColorstr='#ff333333', GradientType=0);
-}
-
-.gradient-directional {
- background-color: #333333;
- background-image: -moz-linear-gradient(45deg, #555555, #333333);
- background-image: -webkit-linear-gradient(45deg, #555555, #333333);
- background-image: -o-linear-gradient(45deg, #555555, #333333);
- background-image: linear-gradient(45deg, #555555, #333333);
- background-repeat: repeat-x;
-}
-
-.gradient-vertical-three {
- background-color: #8940a5;
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#00b3ee), color-stop(50%, #7a43b6), to(#c3325f));
- background-image: -webkit-linear-gradient(#00b3ee, #7a43b6 50%, #c3325f);
- background-image: -moz-linear-gradient(top, #00b3ee, #7a43b6 50%, #c3325f);
- background-image: -o-linear-gradient(#00b3ee, #7a43b6 50%, #c3325f);
- background-image: linear-gradient(#00b3ee, #7a43b6 50%, #c3325f);
- background-repeat: no-repeat;
- filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ff00b3ee', endColorstr='#ffc3325f', GradientType=0);
-}
-
-.gradient-radial {
- background-color: #333333;
- background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(#555555), to(#333333));
- background-image: -webkit-radial-gradient(circle, #555555, #333333);
- background-image: -moz-radial-gradient(circle, #555555, #333333);
- background-image: -o-radial-gradient(circle, #555555, #333333);
- background-repeat: no-repeat;
-}
-
-.gradient-striped {
- background-color: #555555;
- background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));
- background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
- background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
- background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
- background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
-}
\ No newline at end of file