mirror of
https://github.com/github/choosealicense.com
synced 2024-12-21 12:20:10 +01:00
rm unneeded trailing whitespace from various files
This commit is contained in:
parent
3cc80f2602
commit
ba48c3d877
@ -23,7 +23,7 @@
|
|||||||
window.annotations = {{ site.data.rules | jsonify }};
|
window.annotations = {{ site.data.rules | jsonify }};
|
||||||
{% if page.collection == "licenses" %}
|
{% if page.collection == "licenses" %}
|
||||||
window.licenses = [
|
window.licenses = [
|
||||||
{% for license in site.licenses %}
|
{% for license in site.licenses %}
|
||||||
{
|
{
|
||||||
"title": "{{ license.title | escape }}",
|
"title": "{{ license.title | escape }}",
|
||||||
"spdx_id": "{{ license.spdx-id | escape }}"
|
"spdx_id": "{{ license.spdx-id | escape }}"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<a href="#" data-clipboard-target="#license-text" data-proofer-ignore="true" class="js-clipboard-button button">Copy license text to clipboard</a>
|
<a href="#" data-clipboard-target="#license-text" data-proofer-ignore="true" class="js-clipboard-button button">Copy license text to clipboard</a>
|
||||||
<h3 id="suggest-this-license">Suggest this license</h3>
|
<h3 id="suggest-this-license">Suggest this license</h3>
|
||||||
<div class="repository-suggestion">
|
<div class="repository-suggestion">
|
||||||
<p>Make a pull request to suggest this license for a project that is <a href="/no-permission/">not licensed</a>. Please be polite: see if a license has already been suggested, try to suggest a license fitting for the project's <a href="/community/">community</a>, and keep your communication with project maintainers friendly.</p>
|
<p>Make a pull request to suggest this license for a project that is <a href="/no-permission/">not licensed</a>. Please be polite: see if a license has already been suggested, try to suggest a license fitting for the project's <a href="/community/">community</a>, and keep your communication with project maintainers friendly.</p>
|
||||||
<div class="input-wrapper">
|
<div class="input-wrapper">
|
||||||
<input type="text" data-license-id="{{ page.spdx-id }}" placeholder="Enter GitHub repository URL" id="repository-url" title="status" />
|
<input type="text" data-license-id="{{ page.spdx-id }}" placeholder="Enter GitHub repository URL" id="repository-url" title="status" />
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{% include header.html %}
|
{% include header.html %}
|
||||||
|
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
|
|
||||||
<div class="license-body">
|
<div class="license-body">
|
||||||
|
|
||||||
{% if page.nickname %}
|
{% if page.nickname %}
|
||||||
<p class="license-nickname">
|
<p class="license-nickname">
|
||||||
{{ page.nickname }}
|
{{ page.nickname }}
|
||||||
@ -13,9 +13,9 @@
|
|||||||
<p>
|
<p>
|
||||||
{{ page.description }}
|
{{ page.description }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="license-page-details">
|
<div class="license-page-details">
|
||||||
|
|
||||||
<table class="license-rules">
|
<table class="license-rules">
|
||||||
<tr>
|
<tr>
|
||||||
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
{% assign types = "permissions|conditions|limitations" | split: "|" %}
|
||||||
@ -42,11 +42,11 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<pre id="license-text">{{ content | replace:"<", "<" | replace:">", ">" }}</pre>
|
<pre id="license-text">{{ content | replace:"<", "<" | replace:">", ">" }}</pre>
|
||||||
|
|
||||||
</div> <!-- /license-body -->
|
</div> <!-- /license-body -->
|
||||||
|
|
||||||
{% include sidebar.html %}
|
{% include sidebar.html %}
|
||||||
|
@ -4,7 +4,7 @@ spdx-id: CECILL-2.1
|
|||||||
|
|
||||||
description: Strong copyleft license made by three French public research organisations, CEA, CNRS, and Inria, compatible with AGPL-3.0, EUPL-1.1, and GPL-2.0, or later versions of those licenses.
|
description: Strong copyleft license made by three French public research organisations, CEA, CNRS, and Inria, compatible with AGPL-3.0, EUPL-1.1, and GPL-2.0, or later versions of those licenses.
|
||||||
|
|
||||||
how: Create a text file (typically named LICENSE or LICENCE) in the root of your source code and copy the text of the license into the file.
|
how: Create a text file (typically named LICENSE or LICENCE) in the root of your source code and copy the text of the license into the file.
|
||||||
|
|
||||||
using:
|
using:
|
||||||
- BMC-Tools: https://github.com/ANSSI-FR/bmc-tools/blob/master/LICENCE.txt
|
- BMC-Tools: https://github.com/ANSSI-FR/bmc-tools/blob/master/LICENCE.txt
|
||||||
@ -22,7 +22,7 @@ conditions:
|
|||||||
- include-copyright
|
- include-copyright
|
||||||
- disclose-source
|
- disclose-source
|
||||||
- same-license
|
- same-license
|
||||||
|
|
||||||
limitations:
|
limitations:
|
||||||
- liability
|
- liability
|
||||||
- warranty
|
- warranty
|
||||||
@ -102,7 +102,7 @@ titulaire des droits patrimoniaux décide de soumettre l'exploitation aux
|
|||||||
dispositions qu'il contient.
|
dispositions qu'il contient.
|
||||||
|
|
||||||
Une liste de questions fréquemment posées se trouve sur le site web
|
Une liste de questions fréquemment posées se trouve sur le site web
|
||||||
officiel de la famille des licences CeCILL
|
officiel de la famille des licences CeCILL
|
||||||
(http://www.cecill.info/index.fr.html) pour toute clarification qui
|
(http://www.cecill.info/index.fr.html) pour toute clarification qui
|
||||||
serait nécessaire.
|
serait nécessaire.
|
||||||
|
|
||||||
|
@ -294,8 +294,8 @@ No third-party beneficiary rights are created under this Agreement.
|
|||||||
|
|
||||||
Exhibit A - Form of Secondary Licenses Notice
|
Exhibit A - Form of Secondary Licenses Notice
|
||||||
|
|
||||||
"This Source Code may also be made available under the following
|
"This Source Code may also be made available under the following
|
||||||
Secondary Licenses when the conditions for such availability set forth
|
Secondary Licenses when the conditions for such availability set forth
|
||||||
in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
|
in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
|
||||||
version(s), and exceptions or additional permissions here}."
|
version(s), and exceptions or additional permissions here}."
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ description: The University of Illinois/NCSA Open Source License, or UIUC licens
|
|||||||
|
|
||||||
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work.
|
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. Replace [project] with the project organization, if any, that sponsors this work.
|
||||||
|
|
||||||
using:
|
using:
|
||||||
- LLDB: https://github.com/llvm-mirror/lldb/blob/master/LICENSE.TXT
|
- LLDB: https://github.com/llvm-mirror/lldb/blob/master/LICENSE.TXT
|
||||||
- ROCR-Runtime: https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/master/LICENSE.txt
|
- ROCR-Runtime: https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/master/LICENSE.txt
|
||||||
- RLTK: https://github.com/chriswailes/RLTK/blob/master/LICENSE
|
- RLTK: https://github.com/chriswailes/RLTK/blob/master/LICENSE
|
||||||
@ -27,37 +27,37 @@ limitations:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
University of Illinois/NCSA Open Source License
|
University of Illinois/NCSA Open Source License
|
||||||
|
|
||||||
Copyright (c) [year] [fullname]. All rights reserved.
|
Copyright (c) [year] [fullname]. All rights reserved.
|
||||||
|
|
||||||
Developed by: [project]
|
Developed by: [project]
|
||||||
[fullname]
|
[fullname]
|
||||||
[projecturl]
|
[projecturl]
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person
|
Permission is hereby granted, free of charge, to any person
|
||||||
obtaining a copy of this software and associated documentation files
|
obtaining a copy of this software and associated documentation files
|
||||||
(the "Software"), to deal with the Software without restriction,
|
(the "Software"), to deal with the Software without restriction,
|
||||||
including without limitation the rights to use, copy, modify, merge,
|
including without limitation the rights to use, copy, modify, merge,
|
||||||
publish, distribute, sublicense, and/or sell copies of the Software,
|
publish, distribute, sublicense, and/or sell copies of the Software,
|
||||||
and to permit persons to whom the Software is furnished to do so,
|
and to permit persons to whom the Software is furnished to do so,
|
||||||
subject to the following conditions:
|
subject to the following conditions:
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice,
|
* Redistributions of source code must retain the above copyright notice,
|
||||||
this list of conditions and the following disclaimers.
|
this list of conditions and the following disclaimers.
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
* Redistributions in binary form must reproduce the above copyright
|
||||||
notice, this list of conditions and the following disclaimers in the
|
notice, this list of conditions and the following disclaimers in the
|
||||||
documentation and/or other materials provided with the distribution.
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
* Neither the names of [fullname], [project] nor the names of its
|
* Neither the names of [fullname], [project] nor the names of its
|
||||||
contributors may be used to endorse or promote products derived from
|
contributors may be used to endorse or promote products derived from
|
||||||
this Software without specific prior written permission.
|
this Software without specific prior written permission.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
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 WITH
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
title: PostgreSQL License
|
title: PostgreSQL License
|
||||||
spdx-id: PostgreSQL
|
spdx-id: PostgreSQL
|
||||||
|
|
||||||
description: A very short, BSD-style license, used specifically for PostgreSQL.
|
description: A very short, BSD-style license, used specifically for PostgreSQL.
|
||||||
|
|
||||||
how: To use it, say that it is The PostgreSQL License, and then substitute the copyright year and name of the copyright holder into the body of the license. Then put the license into a prominent file ("COPYRIGHT", "LICENSE" or "COPYING" are common names for this file) in your software distribution.
|
how: To use it, say that it is The PostgreSQL License, and then substitute the copyright year and name of the copyright holder into the body of the license. Then put the license into a prominent file ("COPYRIGHT", "LICENSE" or "COPYING" are common names for this file) in your software distribution.
|
||||||
|
|
||||||
|
@ -315,16 +315,16 @@ strong {
|
|||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
animation: none;
|
animation: none;
|
||||||
border: 4px solid #ddd;
|
border: 4px solid #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-wrapper .status-indicator.fetching {
|
.input-wrapper .status-indicator.fetching {
|
||||||
border-right-color: transparent;
|
border-right-color: transparent;
|
||||||
animation: rotate 0.8s infinite linear;
|
animation: rotate 0.8s infinite linear;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-wrapper .status-indicator.error {
|
.input-wrapper .status-indicator.error {
|
||||||
border: 4px solid #c6403d;
|
border: 4px solid #c6403d;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes rotate {
|
@keyframes rotate {
|
||||||
|
@ -71,7 +71,7 @@ class Choosealicense
|
|||||||
# Post-copy user feedback callback
|
# Post-copy user feedback callback
|
||||||
clipboardComplete: (client, args) ->
|
clipboardComplete: (client, args) ->
|
||||||
@textContent = "Copied!"
|
@textContent = "Copied!"
|
||||||
|
|
||||||
# Initializes the repository suggestion feature
|
# Initializes the repository suggestion feature
|
||||||
initLicenseSuggestion: ->
|
initLicenseSuggestion: ->
|
||||||
inputEl = $("#repository-url")
|
inputEl = $("#repository-url")
|
||||||
@ -83,7 +83,7 @@ class LicenseSuggestion
|
|||||||
constructor: (@inputEl, @licenseId, @statusIndicator) ->
|
constructor: (@inputEl, @licenseId, @statusIndicator) ->
|
||||||
@setupTooltips()
|
@setupTooltips()
|
||||||
@bindEventHandlers()
|
@bindEventHandlers()
|
||||||
|
|
||||||
# Initializes tooltips on the input element
|
# Initializes tooltips on the input element
|
||||||
setupTooltips: =>
|
setupTooltips: =>
|
||||||
@inputEl.qtip
|
@inputEl.qtip
|
||||||
@ -98,12 +98,12 @@ class LicenseSuggestion
|
|||||||
at: "bottom center"
|
at: "bottom center"
|
||||||
style:
|
style:
|
||||||
classes: "qtip-shadow"
|
classes: "qtip-shadow"
|
||||||
|
|
||||||
# Main event handlers for user input
|
# Main event handlers for user input
|
||||||
bindEventHandlers: =>
|
bindEventHandlers: =>
|
||||||
@inputEl.on "input", (event) =>
|
@inputEl.on "input", (event) =>
|
||||||
@setStatus ""
|
@setStatus ""
|
||||||
.on "keyup", (event) =>
|
.on "keyup", (event) =>
|
||||||
if event.keyCode == 13 and event.target.value
|
if event.keyCode == 13 and event.target.value
|
||||||
# Validate the user input first
|
# Validate the user input first
|
||||||
try
|
try
|
||||||
@ -111,8 +111,8 @@ class LicenseSuggestion
|
|||||||
catch
|
catch
|
||||||
@setStatus "Error", "Invalid URL."
|
@setStatus "Error", "Invalid URL."
|
||||||
return
|
return
|
||||||
|
|
||||||
@setStatus "Fetching"
|
@setStatus "Fetching"
|
||||||
@fetchInfoFromGithubAPI repositoryFullName, (err, repositoryInfo=null) =>
|
@fetchInfoFromGithubAPI repositoryFullName, (err, repositoryInfo=null) =>
|
||||||
if (err)
|
if (err)
|
||||||
@setStatus "Error", err.message
|
@setStatus "Error", err.message
|
||||||
@ -137,7 +137,7 @@ class LicenseSuggestion
|
|||||||
.slice 0, 1
|
.slice 0, 1
|
||||||
.join ""
|
.join ""
|
||||||
return username + '/' + project
|
return username + '/' + project
|
||||||
|
|
||||||
# Displays an indicator and tooltips to the user about the current status
|
# Displays an indicator and tooltips to the user about the current status
|
||||||
setStatus: (status="", message="") =>
|
setStatus: (status="", message="") =>
|
||||||
statusClass = status.toLowerCase()
|
statusClass = status.toLowerCase()
|
||||||
@ -157,25 +157,25 @@ class LicenseSuggestion
|
|||||||
else
|
else
|
||||||
@inputEl.qtip("api").hide()
|
@inputEl.qtip("api").hide()
|
||||||
@statusIndicator.removeClass('fetching error')
|
@statusIndicator.removeClass('fetching error')
|
||||||
|
|
||||||
# Fetches information about a repository from the Github API
|
# Fetches information about a repository from the Github API
|
||||||
fetchInfoFromGithubAPI: (repositoryFullName, callback) ->
|
fetchInfoFromGithubAPI: (repositoryFullName, callback) ->
|
||||||
$.getJSON "https://api.github.com/repos/"+repositoryFullName, (info) ->
|
$.getJSON "https://api.github.com/repos/"+repositoryFullName, (info) ->
|
||||||
callback null, info
|
callback null, info
|
||||||
.fail (e) ->
|
.fail (e) ->
|
||||||
if e.status == 404
|
if e.status == 404
|
||||||
callback new Error "Repository <b>#{repositoryFullName}</b> not found."
|
callback new Error "Repository <b>#{repositoryFullName}</b> not found."
|
||||||
else
|
else
|
||||||
callback new Error "Network error when trying to get information about <b>#{repositoryFullName}</b>."
|
callback new Error "Network error when trying to get information about <b>#{repositoryFullName}</b>."
|
||||||
|
|
||||||
# Generates a message showing that a repository is already licensed
|
# Generates a message showing that a repository is already licensed
|
||||||
repositoryLicense: (repositoryFullName, license) ->
|
repositoryLicense: (repositoryFullName, license) ->
|
||||||
foundLicense = window.licenses.find (lic) -> lic.spdx_id == license.spdx_id
|
foundLicense = window.licenses.find (lic) -> lic.spdx_id == license.spdx_id
|
||||||
if foundLicense # Links the license to its page on this site
|
if foundLicense # Links the license to its page on this site
|
||||||
"The repository <b> #{repositoryFullName}</b> is already licensed under the
|
"The repository <b> #{repositoryFullName}</b> is already licensed under the
|
||||||
<a href='/licenses/#{foundLicense.spdx_id.toLowerCase()}'><b>#{foundLicense.title}</b></a>."
|
<a href='/licenses/#{foundLicense.spdx_id.toLowerCase()}'><b>#{foundLicense.title}</b></a>."
|
||||||
else
|
else
|
||||||
"The repository <b> #{repositoryFullName}</b> is already licensed."
|
"The repository <b> #{repositoryFullName}</b> is already licensed."
|
||||||
|
|
||||||
$ ->
|
$ ->
|
||||||
new Choosealicense()
|
new Choosealicense()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user