From 89f898e918308c728d600e97056e2ce8ad72c2de Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 13 Feb 2024 17:06:13 -0500 Subject: static/js: Licensing and organising Make easier to search and find originals --- static/js/domfilter.ts | 6 +++--- static/js/fixedsearch.ts | 6 ++++-- static/js/fuzzysort.js | 19 +++---------------- static/js/hoverfix.ts | 3 ++- static/js/instantpage.ts | 8 ++++++-- static/js/plumber.ts | 6 +++--- 6 files changed, 21 insertions(+), 27 deletions(-) (limited to 'static') 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'), '', '') - // Fuzzy Search + * 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 () { -- cgit v1.2.3