Skip to content

Commit 4bd15de

Browse files
committed
Convert CRLF to LF in reference.js
1 parent b820673 commit 4bd15de

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/assets/js/reference.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,10 @@ define('text',['module'], function (module) {
448448
});
449449

450450

451-
define('text!tpl/search.html',[],function () { return '<h2 class="sr-only">search</h2>\r\n<form>\r\n <input id="search_reference_field" type="text" class="<%=className%>" value="" placeholder="<%=placeholder%>" aria-label="search reference">\r\n <label class="sr-only" for="search_reference_field">Search reference</label>\r\n</form>\r\n\r\n';});
451+
define('text!tpl/search.html',[],function () { return '<h2 class="sr-only">search</h2>\n<form>\n <input id="search_reference_field" type="text" class="<%=className%>" value="" placeholder="<%=placeholder%>" aria-label="search reference">\n <label class="sr-only" for="search_reference_field">Search reference</label>\n</form>\n\n';});
452452

453453

454-
define('text!tpl/search_suggestion.html',[],function () { return '<p id="index-<%=idx%>" class="search-suggestion">\r\n\r\n <strong><%=name%></strong>\r\n\r\n <span class="small">\r\n <% if (final) { %>\r\n constant\r\n <% } else if (itemtype) { %>\r\n <%=itemtype%> \r\n <% } %>\r\n\r\n <% if (className) { %>\r\n in <strong><%=className%></strong>\r\n <% } %>\r\n\r\n <% if (typeof is_constructor !== \'undefined\' && is_constructor) { %>\r\n <strong><span class="glyphicon glyphicon-star"></span> constructor</strong>\r\n <% } %>\r\n </span>\r\n\r\n</p>';});
454+
define('text!tpl/search_suggestion.html',[],function () { return '<p id="index-<%=idx%>" class="search-suggestion">\n\n <strong><%=name%></strong>\n\n <span class="small">\n <% if (final) { %>\n constant\n <% } else if (itemtype) { %>\n <%=itemtype%> \n <% } %>\n\n <% if (className) { %>\n in <strong><%=className%></strong>\n <% } %>\n\n <% if (typeof is_constructor !== \'undefined\' && is_constructor) { %>\n <strong><span class="glyphicon glyphicon-star"></span> constructor</strong>\n <% } %>\n </span>\n\n</p>';});
455455

456456
/*!
457457
* typeahead.js 0.10.2
@@ -2303,7 +2303,7 @@ define('searchView',[
23032303
});
23042304

23052305

2306-
define('text!tpl/list.html',[],function () { return '<% _.each(groups, function(group){ %>\r\n <div class="reference-group clearfix main-ref-page"> \r\n <h2 class="group-name" id="group-<%=group.name%>" tab-index="-1"><%=group.name%></h2>\r\n <div class="reference-subgroups clearfix main-ref-page"> \r\n <% _.each(group.subgroups, function(subgroup, ind) { %>\r\n <div class="reference-subgroup">\r\n <% if (subgroup.name !== \'0\') { %>\r\n <h3 id="<%=group.name%><%=ind%>" class="subgroup-name subgroup-<%=subgroup.name%>"><%=subgroup.name%></h3>\r\n <% } %>\r\n <ul aria-labelledby="<%=group.name%> <%=ind%>">\r\n <% _.each(subgroup.items, function(item) { %>\r\n <li><a href="<%=item.hash%>"><%=item.name%><% if (item.itemtype === \'method\') { %>()<%}%></a></li>\r\n <% }); %>\r\n </ul>\r\n </div>\r\n <% }); %>\r\n </div>\r\n </div>\r\n<% }); %>\r\n';});
2306+
define('text!tpl/list.html',[],function () { return '<% _.each(groups, function(group){ %>\n <div class="reference-group clearfix main-ref-page"> \n <h2 class="group-name" id="group-<%=group.name%>" tab-index="-1"><%=group.name%></h2>\n <div class="reference-subgroups clearfix main-ref-page"> \n <% _.each(group.subgroups, function(subgroup, ind) { %>\n <div class="reference-subgroup">\n <% if (subgroup.name !== \'0\') { %>\n <h3 id="<%=group.name%><%=ind%>" class="subgroup-name subgroup-<%=subgroup.name%>"><%=subgroup.name%></h3>\n <% } %>\n <ul aria-labelledby="<%=group.name%> <%=ind%>">\n <% _.each(subgroup.items, function(item) { %>\n <li><a href="<%=item.hash%>"><%=item.name%><% if (item.itemtype === \'method\') { %>()<%}%></a></li>\n <% }); %>\n </ul>\n </div>\n <% }); %>\n </div>\n </div>\n<% }); %>\n';});
23072307

23082308
define('listView',[
23092309
'App',
@@ -2445,13 +2445,13 @@ define('listView',[
24452445
});
24462446

24472447

2448-
define('text!tpl/item.html',[],function () { return '<h2><%=item.name%><% if (item.isMethod) { %>()<% } %></h2>\r\n\r\n<% if (item.example) { %>\r\n<div class="example">\r\n <h3 id="reference-example">Examples</h3>\r\n\r\n <div class="example-content" data-alt="<%= item.alt %>">\r\n <% _.each(item.example, function(example, i){ %>\r\n <%= example %>\r\n <% }); %>\r\n </div>\r\n</div>\r\n<% } %>\r\n\r\n<div class="description">\r\n\r\n <h3 id="reference-description">Description</h3>\r\n\r\n <% if (item.deprecated) { %>\r\n <p>\r\n Deprecated: <%=item.name%><% if (item.isMethod) { %>()<% } %> is deprecated and will be removed in a future version of p5. <% if (item.deprecationMessage) { %><%=item.deprecationMessage%><% } %>\r\n </p>\r\n <% } %>\r\n\r\n\r\n <span class=\'description-text\'><%= item.description %></span>\r\n\r\n <% if (item.extends) { %>\r\n <p><span id="reference-extends">Extends</span> <a href="/reference/#/<%=item.extends%>" title="<%=item.extends%> reference"><%=item.extends%></a></p>\r\n <% } %>\r\n\r\n <% if (item.module === \'p5.sound\') { %>\r\n <p>This function requires you include the p5.sound library. Add the following into the head of your index.html file:\r\n <pre><code class="language-javascript">&lt;script src="path/to/p5.sound.js"&gt;&lt;/script&gt;</code></pre>\r\n </p>\r\n <% } %>\r\n\r\n <% if (item.constRefs) { %>\r\n <p>Used by:\r\n <%\r\n var refs = item.constRefs;\r\n for (var i = 0; i < refs.length; i ++) {\r\n var ref = refs[i];\r\n var name = ref;\r\n if (name.substr(0, 3) === \'p5.\') {\r\n name = name.substr(3);\r\n }\r\n if (i !== 0) {\r\n if (i == refs.length - 1) {\r\n %> and <%\r\n } else {\r\n %>, <%\r\n }\r\n }\r\n %><a href="./#/<%= ref.replace(\'.\', \'/\') %>"><%= name %>()</a><%\r\n }\r\n %>\r\n </p>\r\n <% } %>\r\n</div>\r\n\r\n<% if (isConstructor || !isClass) { %>\r\n\r\n<div class="syntax">\r\n <h3 id="reference-syntax">Syntax</h3>\r\n <p>\r\n <% syntaxes.forEach(function(syntax) { %>\r\n <pre class="language-javascript"><%= syntax %></pre>\r\n <% }) %>\r\n </p>\r\n</div>\r\n\r\n\r\n<% if (item.params) { %>\r\n <div class="params">\r\n <h3 id="reference-parameters">Parameters</h3>\r\n <ul aria-labelledby=\'reference-parameters\'>\r\n <% for (var i=0; i<item.params.length; i++) { %>\r\n <% var p = item.params[i] %>\r\n <li>\r\n <div class=\'paramname\'><%=p.name%></div>\r\n <% if (p.type) { %>\r\n <div class=\'paramtype\'>\r\n <% var type = p.type.replace(/(p5\\.[A-Z][A-Za-z]*)/, \'<a href="#/$1">$1</a>\'); %>\r\n <span class="param-type label label-info"><%=type%></span>: <%=p.description%>\r\n <% if (p.optional) { %> (Optional)<% } %>\r\n </div>\r\n <% } %>\r\n </li>\r\n <% } %>\r\n </ul>\r\n </div>\r\n<% } %>\r\n\r\n<% if (item.return && item.return.type) { %>\r\n <div>\r\n <h3 id="reference-returns">Returns</h3>\r\n <p class=\'returns\'><span class="param-type label label-info"><%=item.return.type%></span>: <%= item.return.description %></p>\r\n </div>\r\n<% } %>\r\n\r\n<% } %>\r\n';});
2448+
define('text!tpl/item.html',[],function () { return '<h2><%=item.name%><% if (item.isMethod) { %>()<% } %></h2>\n\n<% if (item.example) { %>\n<div class="example">\n <h3 id="reference-example">Examples</h3>\n\n <div class="example-content" data-alt="<%= item.alt %>">\n <% _.each(item.example, function(example, i){ %>\n <%= example %>\n <% }); %>\n </div>\n</div>\n<% } %>\n\n<div class="description">\n\n <h3 id="reference-description">Description</h3>\n\n <% if (item.deprecated) { %>\n <p>\n Deprecated: <%=item.name%><% if (item.isMethod) { %>()<% } %> is deprecated and will be removed in a future version of p5. <% if (item.deprecationMessage) { %><%=item.deprecationMessage%><% } %>\n </p>\n <% } %>\n\n\n <span class=\'description-text\'><%= item.description %></span>\n\n <% if (item.extends) { %>\n <p><span id="reference-extends">Extends</span> <a href="/reference/#/<%=item.extends%>" title="<%=item.extends%> reference"><%=item.extends%></a></p>\n <% } %>\n\n <% if (item.module === \'p5.sound\') { %>\n <p>This function requires you include the p5.sound library. Add the following into the head of your index.html file:\n <pre><code class="language-javascript">&lt;script src="path/to/p5.sound.js"&gt;&lt;/script&gt;</code></pre>\n </p>\n <% } %>\n\n <% if (item.constRefs) { %>\n <p>Used by:\n <%\n var refs = item.constRefs;\n for (var i = 0; i < refs.length; i ++) {\n var ref = refs[i];\n var name = ref;\n if (name.substr(0, 3) === \'p5.\') {\n name = name.substr(3);\n }\n if (i !== 0) {\n if (i == refs.length - 1) {\n %> and <%\n } else {\n %>, <%\n }\n }\n %><a href="./#/<%= ref.replace(\'.\', \'/\') %>"><%= name %>()</a><%\n }\n %>\n </p>\n <% } %>\n</div>\n\n<% if (isConstructor || !isClass) { %>\n\n<div class="syntax">\n <h3 id="reference-syntax">Syntax</h3>\n <p>\n <% syntaxes.forEach(function(syntax) { %>\n <pre class="language-javascript"><%= syntax %></pre>\n <% }) %>\n </p>\n</div>\n\n\n<% if (item.params) { %>\n <div class="params">\n <h3 id="reference-parameters">Parameters</h3>\n <ul aria-labelledby=\'reference-parameters\'>\n <% for (var i=0; i<item.params.length; i++) { %>\n <% var p = item.params[i] %>\n <li>\n <div class=\'paramname\'><%=p.name%></div>\n <% if (p.type) { %>\n <div class=\'paramtype\'>\n <% var type = p.type.replace(/(p5\\.[A-Z][A-Za-z]*)/, \'<a href="#/$1">$1</a>\'); %>\n <span class="param-type label label-info"><%=type%></span>: <%=p.description%>\n <% if (p.optional) { %> (Optional)<% } %>\n </div>\n <% } %>\n </li>\n <% } %>\n </ul>\n </div>\n<% } %>\n\n<% if (item.return && item.return.type) { %>\n <div>\n <h3 id="reference-returns">Returns</h3>\n <p class=\'returns\'><span class="param-type label label-info"><%=item.return.type%></span>: <%= item.return.description %></p>\n </div>\n<% } %>\n\n<% } %>\n';});
24492449

24502450

2451-
define('text!tpl/class.html',[],function () { return '\r\n<% if (typeof constructor !== \'undefined\') { %>\r\n<div class="constructor">\r\n <%=constructor%>\r\n</div>\r\n<% } %>\r\n\r\n<% let fields = _.filter(things, function(item) { return item.itemtype === \'property\' && item.access !== \'private\' }); %>\r\n<% if (fields.length > 0) { %>\r\n <h3 id=\'reference-fields\'>Fields</h3>\r\n <ul aria-labelledby=\'reference-fields\'>\r\n <% _.each(fields, function(item) { %>\r\n <li>\r\n <div class=\'paramname\'><a href="<%=item.hash%>" <% if (item.module !== module) { %>class="addon"<% } %>><%=item.name%></a></div>\r\n <div class=\'paramtype\'><%= item.description %></div>\r\n </li>\r\n <% }); %>\r\n </ul>\r\n<% } %>\r\n\r\n<% let methods = _.filter(things, function(item) { return item.itemtype === \'method\' && item.access !== \'private\' }); %>\r\n<% if (methods.length > 0) { %>\r\n <h3 id=\'reference-methods\'>Methods</h3>\r\n <ul aria-labelledby=\'reference-methods\'>\r\n <% _.each(methods, function(item) { %>\r\n <li>\r\n <div class=\'paramname\'><a href="<%=item.hash%>" <% if (item.module !== module) { %>class="addon"<% } %>><%=item.name%><% if (item.itemtype === \'method\') { %>()<%}%></a></div>\r\n <div class=\'paramtype\'><%= item.description %></div>\r\n </li>\r\n <% }); %>\r\n </ul>\r\n<% } %>\r\n';});
2451+
define('text!tpl/class.html',[],function () { return '\n<% if (typeof constructor !== \'undefined\') { %>\n<div class="constructor">\n <%=constructor%>\n</div>\n<% } %>\n\n<% let fields = _.filter(things, function(item) { return item.itemtype === \'property\' && item.access !== \'private\' }); %>\n<% if (fields.length > 0) { %>\n <h3 id=\'reference-fields\'>Fields</h3>\n <ul aria-labelledby=\'reference-fields\'>\n <% _.each(fields, function(item) { %>\n <li>\n <div class=\'paramname\'><a href="<%=item.hash%>" <% if (item.module !== module) { %>class="addon"<% } %>><%=item.name%></a></div>\n <div class=\'paramtype\'><%= item.description %></div>\n </li>\n <% }); %>\n </ul>\n<% } %>\n\n<% let methods = _.filter(things, function(item) { return item.itemtype === \'method\' && item.access !== \'private\' }); %>\n<% if (methods.length > 0) { %>\n <h3 id=\'reference-methods\'>Methods</h3>\n <ul aria-labelledby=\'reference-methods\'>\n <% _.each(methods, function(item) { %>\n <li>\n <div class=\'paramname\'><a href="<%=item.hash%>" <% if (item.module !== module) { %>class="addon"<% } %>><%=item.name%><% if (item.itemtype === \'method\') { %>()<%}%></a></div>\n <div class=\'paramtype\'><%= item.description %></div>\n </li>\n <% }); %>\n </ul>\n<% } %>\n';});
24522452

24532453

2454-
define('text!tpl/itemEnd.html',[],function () { return '\r\n<br><br>\r\n\r\n<div>\r\n<% if (item.file && item.line) { %>\r\n<span id="reference-error1">Notice any errors or typos?</span> <a href="https://github.com/processing/p5.js/issues"><span id="reference-contribute2">Please let us know.</span></a> <span id="reference-error3">Please feel free to edit</span> <a href="https://github.com/processing/p5.js/blob/v<%= appVersion %>/<%= item.file %>#L<%= item.line %>" target="_blank" ><%= item.file %></a> <span id="reference-error5">and issue a pull request!</span>\r\n<% } %>\r\n</div>\r\n\r\n<a style="border-bottom:none !important;" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" target=_blank><img src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" style="width:88px" alt="creative commons logo"/></a>\r\n<br><br>\r\n';});
2454+
define('text!tpl/itemEnd.html',[],function () { return '\n<br><br>\n\n<div>\n<% if (item.file && item.line) { %>\n<span id="reference-error1">Notice any errors or typos?</span> <a href="https://github.com/processing/p5.js/issues"><span id="reference-contribute2">Please let us know.</span></a> <span id="reference-error3">Please feel free to edit</span> <a href="https://github.com/processing/p5.js/blob/v<%= appVersion %>/<%= item.file %>#L<%= item.line %>" target="_blank" ><%= item.file %></a> <span id="reference-error5">and issue a pull request!</span>\n<% } %>\n</div>\n\n<a style="border-bottom:none !important;" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" target=_blank><img src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" style="width:88px" alt="creative commons logo"/></a>\n<br><br>\n';});
24552455

24562456
// Copyright (C) 2006 Google Inc.
24572457
//
@@ -4335,7 +4335,7 @@ define('itemView',[
43354335
});
43364336

43374337

4338-
define('text!tpl/menu.html',[],function () { return '<div>\r\n <br>\r\n <span id="reference-description1">Can\'t find what you\'re looking for? You may want to check out</span>\r\n <a href="#/libraries/p5.sound">p5.sound</a>.<br><a href=\'https://p5js.org/offline-reference/p5-reference.zip\' target=_blank><span id="reference-description3">You can also download an offline version of the reference.</span></a>\r\n</div>\r\n\r\n<div id=\'collection-list-categories\'>\r\n<h2 class="sr-only" id="categories">Categories</h2>\r\n<% var i=0; %>\r\n<% var max=Math.floor(groups.length/4); %>\r\n<% var rem=groups.length%4; %>\r\n\r\n<% _.each(groups, function(group){ %>\r\n <% var m = rem > 0 ? 1 : 0 %>\r\n <% if (i === 0) { %>\r\n <ul aria-labelledby="categories">\r\n <% } %>\r\n <li><a href="#group-<%=group%>"><%=group%></a></li>\r\n <% if (i === (max+m-1)) { %>\r\n </ul>\r\n \t<% rem-- %>\r\n \t<% i=0 %>\r\n <% } else { %>\r\n \t<% i++ %>\r\n <% } %>\r\n<% }); %>\r\n</div>\r\n';});
4338+
define('text!tpl/menu.html',[],function () { return '<div>\n <br>\n <span id="reference-description1">Can\'t find what you\'re looking for? You may want to check out</span>\n <a href="#/libraries/p5.sound">p5.sound</a>.<br><a href=\'https://p5js.org/offline-reference/p5-reference.zip\' target=_blank><span id="reference-description3">You can also download an offline version of the reference.</span></a>\n</div>\n\n<div id=\'collection-list-categories\'>\n<h2 class="sr-only" id="categories">Categories</h2>\n<% var i=0; %>\n<% var max=Math.floor(groups.length/4); %>\n<% var rem=groups.length%4; %>\n\n<% _.each(groups, function(group){ %>\n <% var m = rem > 0 ? 1 : 0 %>\n <% if (i === 0) { %>\n <ul aria-labelledby="categories">\n <% } %>\n <li><a href="#group-<%=group%>"><%=group%></a></li>\n <% if (i === (max+m-1)) { %>\n </ul>\n \t<% rem-- %>\n \t<% i=0 %>\n <% } else { %>\n \t<% i++ %>\n <% } %>\n<% }); %>\n</div>\n';});
43394339

43404340
define('menuView',[
43414341
'App',
@@ -4404,7 +4404,7 @@ define('menuView',[
44044404
});
44054405

44064406

4407-
define('text!tpl/library.html',[],function () { return '<h3><%= module.name %> library</h3>\r\n\r\n<p><%= module.description %></p>\r\n\r\n<div id="library-page" class="reference-group clearfix"> \r\n\r\n<% var t = 0; col = 0; %>\r\n\r\n<% _.each(groups, function(group){ %>\r\n <% if (t == 0) { %> \r\n <div class="column_<%=col%>">\r\n <% } %>\r\n <% if (group.name !== module.name && group.name !== \'p5\') { %>\r\n <% if (group.hash) { %> <a href="<%=group.hash%>" <% if (group.module !== module.name) { %>class="core"<% } %>><% } %> \r\n <h2 class="group-name <% if (t == 0) { %> first<%}%>"><%=group.name%></h2>\r\n <% if (group.hash) { %> </a><br> <% } %>\r\n <% } %>\r\n <% _.each(group.items.filter(function(item) {return item.access !== \'private\'}), function(item) { %>\r\n <a href="<%=item.hash%>" <% if (item.module !== module.name) { %>class="core"<% } %>><%=item.name%><% if (item.itemtype === \'method\') { %>()<%}%></a><br>\r\n <% t++; %>\r\n <% }); %>\r\n <% if (t >= Math.floor(totalItems/4)) { col++; t = 0; %>\r\n </div>\r\n <% } %>\r\n<% }); %>\r\n</div>\r\n';});
4407+
define('text!tpl/library.html',[],function () { return '<h3><%= module.name %> library</h3>\n\n<p><%= module.description %></p>\n\n<div id="library-page" class="reference-group clearfix"> \n\n<% var t = 0; col = 0; %>\n\n<% _.each(groups, function(group){ %>\n <% if (t == 0) { %> \n <div class="column_<%=col%>">\n <% } %>\n <% if (group.name !== module.name && group.name !== \'p5\') { %>\n <% if (group.hash) { %> <a href="<%=group.hash%>" <% if (group.module !== module.name) { %>class="core"<% } %>><% } %> \n <h2 class="group-name <% if (t == 0) { %> first<%}%>"><%=group.name%></h2>\n <% if (group.hash) { %> </a><br> <% } %>\n <% } %>\n <% _.each(group.items.filter(function(item) {return item.access !== \'private\'}), function(item) { %>\n <a href="<%=item.hash%>" <% if (item.module !== module.name) { %>class="core"<% } %>><%=item.name%><% if (item.itemtype === \'method\') { %>()<%}%></a><br>\n <% t++; %>\n <% }); %>\n <% if (t >= Math.floor(totalItems/4)) { col++; t = 0; %>\n </div>\n <% } %>\n<% }); %>\n</div>\n';});
44084408

44094409
define(
44104410
'libraryView',[

0 commit comments

Comments
 (0)