esqueleto basico

This commit is contained in:
Sergio 2017-09-25 14:03:53 +02:00
parent 8eb441e5f5
commit 0dc723713d
350 changed files with 90726 additions and 0 deletions

54
bower_components/jsrender/.bower.json vendored Normal file
View file

@ -0,0 +1,54 @@
{
"name": "jsrender",
"main": "jsrender.js",
"homepage": "http://www.jsviews.com/#jsrender",
"authors": [
{
"name": "Boris Moore",
"email": "borismoore@gmail.com",
"homepage": "https://github.com/borismoore"
}
],
"description": "Best-of-breed templating in browser or on Node.js (with Express 4, Hapi and Browserify integration)",
"moduleType": [
"amd",
"globals",
"node"
],
"repository": {
"type": "git",
"url": "git://github.com/borismoore/jsrender.git"
},
"keywords": [
"jsrender",
"jquery",
"node",
"express",
"hapi",
"browserify",
"templates",
"template"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"demos",
"*.md",
"gulpfile.js",
"package.json"
],
"version": "0.9.88",
"_release": "0.9.88",
"_resolution": {
"type": "version",
"tag": "v0.9.88",
"commit": "789044a91f441e84e2e0914b944495d53675a186"
},
"_source": "https://github.com/BorisMoore/jsrender.git",
"_target": "^0.9.88",
"_originalSource": "jsrender",
"_direct": true
}

View file

@ -0,0 +1,20 @@
Copyright (c) 2015 Boris Moore https://github.com/BorisMoore/jsrender
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.

43
bower_components/jsrender/bower.json vendored Normal file
View file

@ -0,0 +1,43 @@
{
"name": "jsrender",
"main": "jsrender.js",
"homepage": "http://www.jsviews.com/#jsrender",
"authors": [
{
"name": "Boris Moore",
"email": "borismoore@gmail.com",
"homepage": "https://github.com/borismoore"
}
],
"description": "Best-of-breed templating in browser or on Node.js (with Express 4, Hapi and Browserify integration)",
"moduleType": [
"amd",
"globals",
"node"
],
"repository": {
"type": "git",
"url": "git://github.com/borismoore/jsrender.git"
},
"keywords": [
"jsrender",
"jquery",
"node",
"express",
"hapi",
"browserify",
"templates",
"template"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"demos",
"*.md",
"gulpfile.js",
"package.json"
]
}

8
bower_components/jsrender/index.js vendored Normal file
View file

@ -0,0 +1,8 @@
/*! JsRender
* Version for web: jsrender.js
* Version for Node.js (jsrender-node.js): - https://www.npmjs.com/package/jsrender
*/
'use strict';
module.exports = require('./jsrender-node.js');

2426
bower_components/jsrender/jsrender-node.js vendored Normal file

File diff suppressed because it is too large Load diff

2479
bower_components/jsrender/jsrender.js vendored Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

3411
bower_components/jsrender/package-lock.json generated vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,64 @@
/*! JsRender tmplify submodule v0.9.84 (Beta): http://jsviews.com/#jsrender */
/*! Browserify transform for JsRender templates */
/*
* Copyright 2017, Boris Moore
* Released under the MIT License.
*/
(function() {
"use strict";
var jsrender = require('./../jsrender-node.js'),
fs = require('fs'),
path = require('path'),
pathSep = path.sep,
through = require('through2'),
rootDirPath = path.resolve("./"),
rootDirPathLen = rootDirPath.length + 1;
function isTemplate(fileExt, extensions) {
extensions = typeof extensions === "string"
? extensions
: "html jsrender jsr"; // Default extensions
return new RegExp("\\s" + fileExt + "\\s").test(" " + extensions + " ");
}
module.exports = function(file, options) {
var nodeFileDirName = path.dirname(file);
if (!isTemplate(path.extname(file).slice(1), options && (options.extensions || options.e))) {
return through();
}
return through(function(buf, enc, next) {
var createTmplCode, ref, pathFromFileDir,
markup = buf.toString().replace(/^\uFEFF/, ''), // Remove BOM if necessary
tmpl = jsrender.templates(markup),
bundledFile = 'var tmplRefs = [],\n'
+ " mkup = '" + markup.replace(/['"\\]/g, "\\$&").replace(/[ \t]*(\r\n|\n|\r)/g, '\\n') + "',\n" // Normalize newlines, and escape quotes and \ character
+ ' $ = global.jsrender || global.jQuery;\n\n',
templateName = './' + file.slice(rootDirPathLen).split(pathSep).join('/');
for (ref in tmpl.refs) {
// Recursively bundle any nested template references, e.g. {{include tmpl="./some/template.html/}}"
fs.stat(ref, function(err, stat) {
// Async check that file exists
if(err && err.code == 'ENOENT') {
throw new Error("Template '" + ref + "' not found at '" + err.path + "'. Use path relative to '" + rootDirPath + "'.");
}
});
pathFromFileDir = './' + path.relative(nodeFileDirName, ref).split(pathSep).join('/');
bundledFile += 'tmplRefs.push(require("' + pathFromFileDir + '"));\n';
}
createTmplCode = '$.templates("' + templateName + '", mkup)';
bundledFile +=
'module.exports = $ ? ' + createTmplCode
+ ' :\n function($) {\n'
+ ' if (!$ || !$.views) {throw "Requires jsrender/jQuery";}\n'
+ ' while (tmplRefs.length) {\n tmplRefs.pop()($); // compile nested template\n }\n\n'
+ ' return ' + createTmplCode
+ '\n };';
this.push(bundledFile);
next();
});
};
}());