Javascript License Table (#39)

* added javascript license table

* Modified PR to add translations, move the html file and change styles

* Small plural error it.json
This commit is contained in:
inknos 2019-09-07 13:24:30 +02:00 committed by Eduardo Gómez
parent edecc75ff7
commit 8dc11bf075
15 changed files with 88 additions and 11 deletions

View file

@ -0,0 +1,54 @@
<table id="jslicense-labels1">
<tr>
<th>Javascript file</th>
<th>License canonical URL</th>
<th>Original file</th>
</tr>
<tr>
<td><a href="/assets/js/manifest.js">manifest.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
<td><a href="/assets/js/manifest.js">manifest.js</a></td>
</tr>
<tr>
<td><a href="/assets/js/polyfill.js">polyfill.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
<td><a href="/assets/js/polyfill.js">polyfill.js</a></td>
</tr>
<tr>
<td><a href="/assets/js/app.js">app.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
<td><a href="/assets/js/app.js">app.js</a></td>
</tr>
<tr>
<td><a href="/assets/js/vendor.js">vendor.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
<td><a href="/assets/js/vendor.js">vendor.js</a></td>
</tr>
<tr>
<td><a href="/assets/js/home.js">home.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
<td><a href="/assets/js/home.js">home.js</a></td>
</tr>
<tr>
<td><a href="/assets/js/page.js">page.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
<td><a href="/assets/js/page.js">page.js</a></td>
</tr>
<tr>
<td><a href="/assets/js/post.js">post.js</a></td>
<td><a href="http://www.jclark.com/xml/copying.txt">Expat</a></td>
<td><a href="/assets/js/post.js">post.js</a></td>
</tr>
<tr>
<td><a href="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js">webfont.js</a></td>
<td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0</a></td>
<td><a href="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js">webfont.js</a></td>
</tr>
</table>

View file

@ -22,11 +22,14 @@
{{!-- This variable is used to make the search form work --}} {{!-- This variable is used to make the search form work --}}
<script> <script>
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
const ghostHost = "{{@site.url}}" const ghostHost = "{{@site.url}}"
// @license-end
</script> </script>
{{!-- This script loads the Google fornt asynchronously --}} {{!-- This script loads the Google fornt asynchronously --}}
<script> <script>
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat
WebFontConfig = { WebFontConfig = {
google: { families: ['Source+Sans+Pro:400,600,700'] } google: { families: ['Source+Sans+Pro:400,600,700'] }
}; };
@ -37,6 +40,7 @@
wf.async = true; wf.async = true;
s.parentNode.insertBefore(wf, s); s.parentNode.insertBefore(wf, s);
})(document); })(document);
// @license-end
</script> </script>
</head> </head>
<body class="{{body_class}}"> <body class="{{body_class}}">

View file

@ -34,5 +34,6 @@
"Among with": "<br>Сред с ", "Among with": "<br>Сред с ",
"Among with no break line": "Сред с ", "Among with no break line": "Сред с ",
"Type to search": "Въведете за търсене", "Type to search": "Въведете за търсене",
"No results for your search, try something different.": "Няма резултати за твоето търсене, опитай с нещо различно." "No results for your search, try something different.": "Няма резултати за твоето търсене, опитай с нещо различно.",
"JavaScript license information": "Информация за лиценз на JavaScript"
} }

View file

@ -34,5 +34,6 @@
"Among with": "<br>zusammen mit ", "Among with": "<br>zusammen mit ",
"Among with no break line": "zusammen mit ", "Among with no break line": "zusammen mit ",
"Type to search": "Schreiben um zu suchen", "Type to search": "Schreiben um zu suchen",
"No results for your search, try something different.": "Keine Ergebnisse für deine Suche gefunden, versuche es mit etwas anderem." "No results for your search, try something different.": "Keine Ergebnisse für deine Suche gefunden, versuche es mit etwas anderem.",
"JavaScript license information": "JavaScript-Lizenzinformationen"
} }

View file

@ -34,5 +34,6 @@
"Among with": "<br>zusammen mit ", "Among with": "<br>zusammen mit ",
"Among with no break line": "zusammen mit ", "Among with no break line": "zusammen mit ",
"Type to search": "Schreiben Sie um zu suchen", "Type to search": "Schreiben Sie um zu suchen",
"No results for your search, try something different.": "Keine Ergebnisse für Ihre Suche gefunden, versuchen Sie es mit etwas anderem." "No results for your search, try something different.": "Keine Ergebnisse für Ihre Suche gefunden, versuchen Sie es mit etwas anderem.",
"JavaScript license information": "JavaScript-Lizenzinformationen"
} }

View file

@ -34,5 +34,6 @@
"Among with": "<br>Among with ", "Among with": "<br>Among with ",
"Among with no break line": "Among with ", "Among with no break line": "Among with ",
"Type to search": "Type to search", "Type to search": "Type to search",
"No results for your search, try something different.": "No results for your search, try something different." "No results for your search, try something different.": "No results for your search, try something different.",
"JavaScript license information": "JavaScript license information"
} }

View file

@ -34,5 +34,6 @@
"Among with": "<br>Junto con ", "Among with": "<br>Junto con ",
"Among with no break line": "Junto con ", "Among with no break line": "Junto con ",
"Type to search": "Escribe para buscar", "Type to search": "Escribe para buscar",
"No results for your search, try something different.": "No hay resultados para tu búsqueda, prueba algo diferente." "No results for your search, try something different.": "No hay resultados para tu búsqueda, prueba algo diferente.",
"JavaScript license information": "Información de licencia JavaScript"
} }

View file

@ -34,5 +34,6 @@
"Among with": "<br>Avec ", "Among with": "<br>Avec ",
"Among with no break line": "Avec ", "Among with no break line": "Avec ",
"Type to search": "Écris pour rechercher", "Type to search": "Écris pour rechercher",
"No results for your search, try something different.": "Pas de résultat pour ta recherche, essaie autre chose." "No results for your search, try something different.": "Pas de résultat pour ta recherche, essaie autre chose.",
"JavaScript license information": "Informations sur la licence JavaScript"
} }

View file

@ -34,5 +34,6 @@
"Among with": "<br>Avec ", "Among with": "<br>Avec ",
"Among with no break line": "Avec ", "Among with no break line": "Avec ",
"Type to search": "Écrivez pour rechercher", "Type to search": "Écrivez pour rechercher",
"No results for your search, try something different.": "Pas de résultat pour votre recherche, essayez autre chose." "No results for your search, try something different.": "Pas de résultat pour votre recherche, essayez autre chose.",
"JavaScript license information": "Informations sur la licence JavaScript"
} }

View file

@ -34,5 +34,6 @@
"Among with": "<br>Insieme a ", "Among with": "<br>Insieme a ",
"Among with no break line": "Insieme a ", "Among with no break line": "Insieme a ",
"Type to search": "Cerca", "Type to search": "Cerca",
"No results for your search, try something different.": "Nessun risultato, prova con qualcos'altro." "No results for your search, try something different.": "Nessun risultato, prova con qualcos'altro.",
"JavaScript license information": "Informazioni sulle licenze JavaScript"
} }

View file

@ -34,5 +34,6 @@
"Among with": "<br>Junto com ", "Among with": "<br>Junto com ",
"Among with no break line": "Junto com ", "Among with no break line": "Junto com ",
"Type to search": "Escreve para pesquisar", "Type to search": "Escreve para pesquisar",
"No results for your search, try something different.": "Não há resultados para a tua pesquisa, tenta algo diferente." "No results for your search, try something different.": "Não há resultados para a tua pesquisa, tenta algo diferente.",
"JavaScript license information": "Informações sobre a licença JavaScript"
} }

View file

@ -34,5 +34,6 @@
"Among with": "<br>Cùng với ", "Among with": "<br>Cùng với ",
"Among with no break line": "Cùng với ", "Among with no break line": "Cùng với ",
"Type to search": "Nhập để tìm kiếm", "Type to search": "Nhập để tìm kiếm",
"No results for your search, try something different.": "Không tìm thấy kết quả, bạn hãy thử một từ khác nhé" "No results for your search, try something different.": "Không tìm thấy kết quả, bạn hãy thử một từ khác nhé",
"JavaScript license information": "Thông tin giấy phép JavaScript"
} }

View file

@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg", "desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg" "mobile": "assets/screenshot-mobile.jpg"
}, },
"version": "0.3.0" "version": "0.3.1"
} }

View file

@ -9,6 +9,7 @@ This footer template is shared across all the pages.
<span>&nbsp; &bull; &nbsp;</span> <span>&nbsp; &bull; &nbsp;</span>
<span>{{t "Published with"}} <a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a></span> <span>{{t "Published with"}} <a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a></span>
</p> </p>
<nav class="m-footer-social"> <nav class="m-footer-social">
{{#if @site.facebook}} {{#if @site.facebook}}
<a href="{{facebook_url @site.facebook}}" target="_blank" rel="noopener" aria-label="Facebook"> <a href="{{facebook_url @site.facebook}}" target="_blank" rel="noopener" aria-label="Facebook">
@ -21,5 +22,8 @@ This footer template is shared across all the pages.
</a> </a>
{{/if}} {{/if}}
</nav> </nav>
<p class="m-footer-copyright jslicense">
<a href="/assets/html/javascript.html" rel="jslicense">{{t "JavaScript license information"}}</a>
</p>
</div> </div>
</footer> </footer>

View file

@ -36,12 +36,17 @@
} }
} }
} }
&.jslicense {
margin-bottom: 0;
}
} }
.m-footer-social { .m-footer-social {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-bottom: 20px;
a { a {
display: inline-block; display: inline-block;