From ffc0f8ca2dda42c5d02b07c92628ceb970d24b56 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sat, 20 Jan 2024 08:54:33 -0500 Subject: javascript: embed license info --- js-ver.org | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/js-ver.org b/js-ver.org index 324ec89..e2bfad4 100644 --- a/js-ver.org +++ b/js-ver.org @@ -92,6 +92,8 @@ start a python http server with: set up the javascript code by loading direct module dependencies and running the analysis when the form is submitted. #+begin_src javascript :noweb yes :tangle main.mjs + <> + import process from './varscan.mjs'; import Log from './logging.mjs'; @@ -248,7 +250,9 @@ create a download link #+end_src ** variant to codon whatever i need to name this -#+begin_src javascript :tangle varscan.mjs +#+begin_src javascript :noweb yes :tangle varscan.mjs + <> + import Log from './logging.mjs'; import codon2AA from './codon2AminoAcid.mjs'; import aa2Code from './aminoAcid2Code.mjs'; @@ -352,6 +356,8 @@ create a download link :END: #+begin_src javascript :noweb yes :tangle codon2AminoAcid.mjs + <> + const codon2AA = { 'GCT': 'Ala', 'GCC': 'Ala', @@ -428,6 +434,8 @@ create a download link :END: #+begin_src javascript :noweb yes :tangle aminoAcid2Code.mjs + <> + const aa2Code = { 'Ala': 'A', 'Arg': 'R', @@ -457,6 +465,8 @@ create a download link ** logging #+begin_src javascript :noweb yes :tangle logging.mjs + <> + class Log { get elt() { if (!document.querySelector('#log')) { @@ -511,3 +521,21 @@ create a download link export default Log #+end_src + +** license +#+name: js-license +#+begin_src javascript + /* + ,* copyright 2024 brian cully + ,* + ,* this program is free software: you can redistribute it and/or + ,* modify it under the terms of the gnu affero general public license + ,* version 3 or later. + ,* + ,* a copy of this license may be found at https://www.gnu.org/licenses/agpl-3.0.html + ,* + ,* dear gnu developers: stop making your software so hard to work + ,* with. i was going to put in librejs tags, but it's like it goes out + ,* of its way to make that as annoying as possible. + ,*/ +#+end_src -- cgit v1.2.3