aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2024-02-13 17:06:13 -0500
committertdro <tdro@noreply.example.com>2024-02-13 17:06:13 -0500
commit89f898e918308c728d600e97056e2ce8ad72c2de (patch)
tree431fa9a08212db39667b52d2bbed1c859709904c
parentd23d5bc6dae8035357f1dea088392ab3d2546f8e (diff)
downloadcanory-89f898e918308c728d600e97056e2ce8ad72c2de.tar.gz
canory-89f898e918308c728d600e97056e2ce8ad72c2de.tar.bz2
canory-89f898e918308c728d600e97056e2ce8ad72c2de.zip
static/js: Licensing and organising
Make easier to search and find originals
-rw-r--r--static/js/domfilter.ts6
-rw-r--r--static/js/fixedsearch.ts6
-rw-r--r--static/js/fuzzysort.js19
-rw-r--r--static/js/hoverfix.ts3
-rw-r--r--static/js/instantpage.ts8
-rw-r--r--static/js/plumber.ts6
-rw-r--r--themes/default/layouts/_default/home.sources.html12
7 files changed, 27 insertions, 33 deletions
diff --git a/static/js/domfilter.ts b/static/js/domfilter.ts
index a81529b..0274ed0 100644
--- a/static/js/domfilter.ts
+++ b/static/js/domfilter.ts
@@ -1,7 +1,7 @@
-/**
+/*
* DOM Filter Copyright (C) 2024 Thedro Neely
- * License: AGPL | https://www.gnu.org/licenses/agpl-3.0.txt
- */
+ * Licence: AGPL | https://www.gnu.org/licenses/agpl-3.0.txt
+*/
(function () {
type millisecond = number;
diff --git a/static/js/fixedsearch.ts b/static/js/fixedsearch.ts
index 537ddf2..01dd917 100644
--- a/static/js/fixedsearch.ts
+++ b/static/js/fixedsearch.ts
@@ -1,6 +1,8 @@
/*
- Modified Version of Fixed Search: https://gist.github.com/cmod/5410eae147e4318164258742dd053993
- MIT License: https://gist.github.com/Arty2/8b0c43581013753438a3d35c15091a9f#file-license-md
+ * Fixed Search Copyright (C) 2020 Heracles Papatheodorou
+ * Copyright (C) Craig Mod, Eddie Webb, and Matthew Daly
+ * https://gist.github.com/Arty2/8b0c43581013753438a3d35c15091a9f#file-license-md
+ * Licence: MIT | https://mit-license.org/
*/
(function () {
diff --git a/static/js/fuzzysort.js b/static/js/fuzzysort.js
index 5e0dd0f..71c2fcb 100644
--- a/static/js/fuzzysort.js
+++ b/static/js/fuzzysort.js
@@ -1,22 +1,9 @@
-// https://github.com/farzher/fuzzysort v2.0.4
/*
- SublimeText-like Fuzzy Search
-
- fuzzysort.single('fs', 'Fuzzy Search') // {score: -16}
- fuzzysort.single('test', 'test') // {score: 0}
- fuzzysort.single('doesnt exist', 'target') // null
-
- fuzzysort.go('mr', [{file:'Monitor.cpp'}, {file:'MeshRenderer.cpp'}], {key:'file'})
- // [{score:-18, obj:{file:'MeshRenderer.cpp'}}, {score:-6009, obj:{file:'Monitor.cpp'}}]
-
- fuzzysort.go('mr', ['Monitor.cpp', 'MeshRenderer.cpp'])
- // [{score: -18, target: "MeshRenderer.cpp"}, {score: -6009, target: "Monitor.cpp"}]
-
- fuzzysort.highlight(fuzzysort.single('fs', 'Fuzzy Search'), '<b>', '</b>')
- // <b>F</b>uzzy <b>S</b>earch
+ * Fuzzy Sort Copyright (C) 2018 Stephen Kamenar
+ * https://github.com/farzher/fuzzysort/blob/master/LICENSE
+ * Licence: MIT | https://mit-license.org/
*/
-// UMD (Universal Module Definition) for fuzzysort
;((root, UMD) => {
if(typeof define === 'function' && define.amd) define([], UMD)
else if(typeof module === 'object' && module.exports) module.exports = UMD()
diff --git a/static/js/hoverfix.ts b/static/js/hoverfix.ts
index 6fba5fd..b6d1a5b 100644
--- a/static/js/hoverfix.ts
+++ b/static/js/hoverfix.ts
@@ -3,7 +3,8 @@
* Element.closest() polyfill
* https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
* https://github.com/idmadj/element-closest-polyfill#readme
- * Abdelmadjid Hammou | ISC License: https://opensource.org/license/isc-license-txt/
+ * Copyright (C) Abdelmadjid Hammou
+ * Licence: ISC | https://www.isc.org/licenses/
/*/
if (typeof Element !== "undefined") {
diff --git a/static/js/instantpage.ts b/static/js/instantpage.ts
index 7c78a6f..aa290cd 100644
--- a/static/js/instantpage.ts
+++ b/static/js/instantpage.ts
@@ -1,7 +1,11 @@
+/*
+ * Instant Page Copyright (C) 2019-2023 Alexandre Dieulot
+ * https://github.com/instantpage/instant.page/blob/master/LICENSE
+ * Licence: MIT | https://mit-license.org/
+*/
+
(function () {
self.addEventListener("DOMContentLoaded", function () {
- /*! instant.page v5.1.0 - (C) 2019-2020 Alexandre Dieulot - https://instant.page/license */
-
let mouseoverTimer;
let lastTouchTimestamp;
const prefetches = new Set();
diff --git a/static/js/plumber.ts b/static/js/plumber.ts
index 8e551fd..d425769 100644
--- a/static/js/plumber.ts
+++ b/static/js/plumber.ts
@@ -1,8 +1,8 @@
/**
- * Plumber based on and inspired by
- * Dictionary Access Copyright (C) 2006, Paul Lutus
+ * Plumber based on and inspired by;
+ * Dictionary Access Copyright (C) 2006 Paul Lutus
* https://arachnoid.com/javascript/dictionary_access.js
- * LICENSE: GPLv2+
+ * Licence: GPLv2+ | https://www.gnu.org/licenses/gpl-3.0.txt
*/
(function () {
diff --git a/themes/default/layouts/_default/home.sources.html b/themes/default/layouts/_default/home.sources.html
index 938ced1..42b6cc3 100644
--- a/themes/default/layouts/_default/home.sources.html
+++ b/themes/default/layouts/_default/home.sources.html
@@ -106,12 +106,12 @@
<footer>
<p>
Canory Version: {{ "{{% version number %}}" | markdownify }}
- &middot; Dictionary Access by Paul Lutus: <a href="https://arachnoid.com/javascript/dictionary_access.js">GPLv2+ License</a>
- &middot; Feather Icons by Cole Bemis: <a href="https://github.com/feathericons/feather/blob/8b5d6802fa8fd1eb3924b465ff718d2fa8d61efe/LICENSE">MIT License</a>
- &middot; Tabler Icons by Paweł Kuna: <a href="https://github.com/tabler/tabler-icons/blob/60f39297d0f785f2e8635faca6857b2260b2d164/LICENSE">MIT License</a>
- &middot; Instant Page by Alexandre Dieulot: <a href="https://github.com/instantpage/instant.page/blob/729e97d5b3245552e41d8f92ed03d08f1d62ea46/LICENSE">MIT License</a>
- &middot; Fixed Search by Heracles Papatheodorou: <a href="https://gist.github.com/Arty2/8b0c43581013753438a3d35c15091a9f#file-license-md">MIT License</a>
- &middot; Fuzzy Sort by Stephen Kamenar: <a href="https://github.com/farzher/fuzzysort/blob/e7f484a124f09bf3cb9a4db366a95457d962dbed/LICENSE">MIT License</a>
+ &middot; Dictionary Access by Paul Lutus: <a href="https://arachnoid.com/javascript/dictionary_access.js">GPLv2+ Licence</a>
+ &middot; Feather Icons by Cole Bemis: <a href="https://github.com/feathericons/feather/blob/8b5d6802fa8fd1eb3924b465ff718d2fa8d61efe/Licence">MIT Licence</a>
+ &middot; Tabler Icons by Paweł Kuna: <a href="https://github.com/tabler/tabler-icons/blob/60f39297d0f785f2e8635faca6857b2260b2d164/Licence">MIT Licence</a>
+ &middot; Instant Page by Alexandre Dieulot: <a href="https://github.com/instantpage/instant.page/blob/729e97d5b3245552e41d8f92ed03d08f1d62ea46/Licence">MIT Licence</a>
+ &middot; Fixed Search by Heracles Papatheodorou: <a href="https://gist.github.com/Arty2/8b0c43581013753438a3d35c15091a9f#file-Licence-md">MIT Licence</a>
+ &middot; Fuzzy Sort by Stephen Kamenar: <a href="https://github.com/farzher/fuzzysort/blob/e7f484a124f09bf3cb9a4db366a95457d962dbed/Licence">MIT Licence</a>
</p>
</footer>
</source-files>