From 73b5b60ac381d3af5e8350bef25757aed0ec9175 Mon Sep 17 00:00:00 2001 From: Zed Date: Mon, 27 Dec 2021 02:37:38 +0100 Subject: [PATCH] Add license headers Closes #413 --- src/agents.nim | 1 + src/api.nim | 1 + src/apiutils.nim | 1 + src/config.nim | 1 + src/consts.nim | 1 + src/formatters.nim | 1 + src/http_pool.nim | 1 + src/nitter.nim | 1 + src/parser.nim | 1 + src/parserutils.nim | 1 + src/prefs.nim | 1 + src/prefs_impl.nim | 1 + src/query.nim | 1 + src/redis_cache.nim | 1 + src/routes/embed.nim | 1 + src/routes/list.nim | 1 + src/routes/media.nim | 1 + src/routes/preferences.nim | 1 + src/routes/resolver.nim | 1 + src/routes/router_utils.nim | 1 + src/routes/rss.nim | 1 + src/routes/search.nim | 1 + src/routes/status.nim | 1 + src/routes/timeline.nim | 1 + src/routes/unsupported.nim | 1 + src/tokens.nim | 1 + src/types.nim | 1 + src/utils.nim | 1 + src/views/about.nim | 1 + src/views/embed.nim | 1 + src/views/general.nim | 1 + src/views/list.nim | 1 + src/views/preferences.nim | 1 + src/views/profile.nim | 1 + src/views/renderutils.nim | 1 + src/views/search.nim | 1 + src/views/status.nim | 1 + src/views/timeline.nim | 1 + src/views/tweet.nim | 1 + 39 files changed, 39 insertions(+) diff --git a/src/agents.nim b/src/agents.nim index dbbee0d..63a7677 100644 --- a/src/agents.nim +++ b/src/agents.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import random, strformat, strutils, sequtils randomize() diff --git a/src/api.nim b/src/api.nim index dd19238..b0baee6 100644 --- a/src/api.nim +++ b/src/api.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import asyncdispatch, httpclient, uri, strutils import packedjson import types, query, formatters, consts, apiutils, parser diff --git a/src/apiutils.nim b/src/apiutils.nim index cee5ab5..552c984 100644 --- a/src/apiutils.nim +++ b/src/apiutils.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import httpclient, asyncdispatch, options, times, strutils, uri import packedjson, zippy import types, tokens, consts, parserutils, http_pool diff --git a/src/config.nim b/src/config.nim index 9a04e41..31eda23 100644 --- a/src/config.nim +++ b/src/config.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import parsecfg except Config import types, strutils diff --git a/src/consts.nim b/src/consts.nim index 3676588..d1822ce 100644 --- a/src/consts.nim +++ b/src/consts.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import uri, sequtils const diff --git a/src/formatters.nim b/src/formatters.nim index 7d5de91..eb0136f 100644 --- a/src/formatters.nim +++ b/src/formatters.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, strformat, times, uri, tables, xmltree, htmlparser import regex import types, utils, query diff --git a/src/http_pool.nim b/src/http_pool.nim index 1c46225..f6feaf4 100644 --- a/src/http_pool.nim +++ b/src/http_pool.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import asyncdispatch, httpclient type diff --git a/src/nitter.nim b/src/nitter.nim index c8c8f8b..b281652 100644 --- a/src/nitter.nim +++ b/src/nitter.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import asyncdispatch, strformat from net import Port from htmlgen import a diff --git a/src/parser.nim b/src/parser.nim index fe4acc6..5d3c74d 100644 --- a/src/parser.nim +++ b/src/parser.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, options, tables, times, math import packedjson import packedjson / deserialiser diff --git a/src/parserutils.nim b/src/parserutils.nim index 4b9ece9..7d21a8c 100644 --- a/src/parserutils.nim +++ b/src/parserutils.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, times, macros, htmlgen, unicode, options, algorithm import regex, packedjson import types, utils, formatters diff --git a/src/prefs.nim b/src/prefs.nim index aa45678..91bdfe2 100644 --- a/src/prefs.nim +++ b/src/prefs.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import tables import types, prefs_impl from config import get diff --git a/src/prefs_impl.nim b/src/prefs_impl.nim index 80d90f7..d97b50a 100644 --- a/src/prefs_impl.nim +++ b/src/prefs_impl.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import macros, tables, strutils, xmltree type diff --git a/src/query.nim b/src/query.nim index 7c9a69e..2e927bb 100644 --- a/src/query.nim +++ b/src/query.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, strformat, sequtils, tables, uri import types diff --git a/src/redis_cache.nim b/src/redis_cache.nim index f16420d..83656a4 100644 --- a/src/redis_cache.nim +++ b/src/redis_cache.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import asyncdispatch, times, strutils, tables, hashes import redis, redpool, flatty, supersnappy diff --git a/src/routes/embed.nim b/src/routes/embed.nim index cdd87c8..d9a9ee9 100644 --- a/src/routes/embed.nim +++ b/src/routes/embed.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import asyncdispatch, strutils, options import jester import ".."/[types, api], ../views/embed diff --git a/src/routes/list.nim b/src/routes/list.nim index 8ca76b6..e8191e2 100644 --- a/src/routes/list.nim +++ b/src/routes/list.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils import jester diff --git a/src/routes/media.nim b/src/routes/media.nim index edbac99..a2a6369 100644 --- a/src/routes/media.nim +++ b/src/routes/media.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import uri, strutils, httpclient, os, hashes, base64, re import asynchttpserver, asyncstreams, asyncfile, asyncnet diff --git a/src/routes/preferences.nim b/src/routes/preferences.nim index 65af58f..5e184c2 100644 --- a/src/routes/preferences.nim +++ b/src/routes/preferences.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, uri, os, algorithm import jester diff --git a/src/routes/resolver.nim b/src/routes/resolver.nim index a61dff8..1baf873 100644 --- a/src/routes/resolver.nim +++ b/src/routes/resolver.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils import jester diff --git a/src/routes/router_utils.nim b/src/routes/router_utils.nim index c81fac6..dc8db29 100644 --- a/src/routes/router_utils.nim +++ b/src/routes/router_utils.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, sequtils, uri, tables from jester import Request, cookies diff --git a/src/routes/rss.nim b/src/routes/rss.nim index 72a247a..3797aa7 100644 --- a/src/routes/rss.nim +++ b/src/routes/rss.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import asyncdispatch, strutils, tables, times, hashes, supersnappy import jester diff --git a/src/routes/search.nim b/src/routes/search.nim index 2651352..0fcd9ee 100644 --- a/src/routes/search.nim +++ b/src/routes/search.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, uri import jester diff --git a/src/routes/status.nim b/src/routes/status.nim index 3125bb3..bad8569 100644 --- a/src/routes/status.nim +++ b/src/routes/status.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import asyncdispatch, strutils, sequtils, uri, options import jester, karax/vdom diff --git a/src/routes/timeline.nim b/src/routes/timeline.nim index 34aca1f..65d2652 100644 --- a/src/routes/timeline.nim +++ b/src/routes/timeline.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import asyncdispatch, strutils, sequtils, uri, options, times import jester, karax/vdom diff --git a/src/routes/unsupported.nim b/src/routes/unsupported.nim index eacdd72..2cbcbb1 100644 --- a/src/routes/unsupported.nim +++ b/src/routes/unsupported.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import jester import router_utils diff --git a/src/tokens.nim b/src/tokens.nim index 9ce7bcf..b0bd263 100644 --- a/src/tokens.nim +++ b/src/tokens.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import asyncdispatch, httpclient, times, sequtils, json, math, random import strutils, strformat import zippy diff --git a/src/types.nim b/src/types.nim index 2bc2309..7289cf3 100644 --- a/src/types.nim +++ b/src/types.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import times, sequtils, options, tables import prefs_impl diff --git a/src/utils.nim b/src/utils.nim index 628ae7f..518d7af 100644 --- a/src/utils.nim +++ b/src/utils.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, strformat, sequtils, uri, tables, base64 import nimcrypto, regex diff --git a/src/views/about.nim b/src/views/about.nim index eb13beb..f30897d 100644 --- a/src/views/about.nim +++ b/src/views/about.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import karax/[karaxdsl, vdom] import markdown diff --git a/src/views/embed.nim b/src/views/embed.nim index 7db258f..4c2f7b3 100644 --- a/src/views/embed.nim +++ b/src/views/embed.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import options import karax/[karaxdsl, vdom] diff --git a/src/views/general.nim b/src/views/general.nim index f5ab946..e29cfe2 100644 --- a/src/views/general.nim +++ b/src/views/general.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import uri, strutils, strformat import karax/[karaxdsl, vdom] diff --git a/src/views/list.nim b/src/views/list.nim index 4af3ad7..b94d170 100644 --- a/src/views/list.nim +++ b/src/views/list.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strformat import karax/[karaxdsl, vdom] diff --git a/src/views/preferences.nim b/src/views/preferences.nim index b0291b5..ab1c70b 100644 --- a/src/views/preferences.nim +++ b/src/views/preferences.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import tables, macros, strutils import karax/[karaxdsl, vdom] diff --git a/src/views/profile.nim b/src/views/profile.nim index 8e516b9..6918550 100644 --- a/src/views/profile.nim +++ b/src/views/profile.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, strformat import karax/[karaxdsl, vdom, vstyles] diff --git a/src/views/renderutils.nim b/src/views/renderutils.nim index b57cfef..0db28c8 100644 --- a/src/views/renderutils.nim +++ b/src/views/renderutils.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils import karax/[karaxdsl, vdom, vstyles] import ".."/[types, utils] diff --git a/src/views/search.nim b/src/views/search.nim index 963107f..9b70be8 100644 --- a/src/views/search.nim +++ b/src/views/search.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, strformat, sequtils, unicode, tables import karax/[karaxdsl, vdom] diff --git a/src/views/status.nim b/src/views/status.nim index aec042f..cc3aee4 100644 --- a/src/views/status.nim +++ b/src/views/status.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import uri import karax/[karaxdsl, vdom] diff --git a/src/views/timeline.nim b/src/views/timeline.nim index 2a9862d..5b5e0dc 100644 --- a/src/views/timeline.nim +++ b/src/views/timeline.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, strformat, sequtils, algorithm, uri, options import karax/[karaxdsl, vdom] diff --git a/src/views/tweet.nim b/src/views/tweet.nim index 873d441..3b8a809 100644 --- a/src/views/tweet.nim +++ b/src/views/tweet.nim @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only import strutils, sequtils, strformat, options import karax/[karaxdsl, vdom, vstyles]