summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2024-01-20 08:54:33 -0500
committerBrian Cully <bjc@spork.org>2024-01-20 09:21:24 -0500
commitffc0f8ca2dda42c5d02b07c92628ceb970d24b56 (patch)
tree0218705ba5a944c640c7cea093778c1f502aaa49
parent9e7a588551c36090742394a80fa6d128f31b288b (diff)
downloadfav-ffc0f8ca2dda42c5d02b07c92628ceb970d24b56.tar.gz
fav-ffc0f8ca2dda42c5d02b07c92628ceb970d24b56.zip
javascript: embed license info
-rw-r--r--js-ver.org30
1 files changed, 29 insertions, 1 deletions
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
+ <<js-license>>
+
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
+ <<js-license>>
+
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
+ <<js-license>>
+
const codon2AA = {
'GCT': 'Ala',
'GCC': 'Ala',
@@ -428,6 +434,8 @@ create a download link
:END:
#+begin_src javascript :noweb yes :tangle aminoAcid2Code.mjs
+ <<js-license>>
+
const aa2Code = {
'Ala': 'A',
'Arg': 'R',
@@ -457,6 +465,8 @@ create a download link
** logging
#+begin_src javascript :noweb yes :tangle logging.mjs
+ <<js-license>>
+
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 <bjc@kublai.com>
+ ,*
+ ,* 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