Bläddra i källkod

Add license headers

Closes #413
Zed 4 år sedan
förälder
incheckning
73b5b60ac3

+ 1 - 0
src/agents.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import random, strformat, strutils, sequtils
 
 randomize()

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
src/config.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import parsecfg except Config
 import types, strutils
 

+ 1 - 0
src/consts.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import uri, sequtils
 
 const

+ 1 - 0
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

+ 1 - 0
src/http_pool.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import asyncdispatch, httpclient
 
 type

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 0
src/prefs.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import tables
 import types, prefs_impl
 from config import get

+ 1 - 0
src/prefs_impl.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import macros, tables, strutils, xmltree
 
 type

+ 1 - 0
src/query.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils, strformat, sequtils, tables, uri
 
 import types

+ 1 - 0
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
 

+ 1 - 0
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

+ 1 - 0
src/routes/list.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils
 
 import jester

+ 1 - 0
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
 

+ 1 - 0
src/routes/preferences.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils, uri, os, algorithm
 
 import jester

+ 1 - 0
src/routes/resolver.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils
 
 import jester

+ 1 - 0
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
 

+ 1 - 0
src/routes/rss.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import asyncdispatch, strutils, tables, times, hashes, supersnappy
 
 import jester

+ 1 - 0
src/routes/search.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils, uri
 
 import jester

+ 1 - 0
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

+ 1 - 0
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
 

+ 1 - 0
src/routes/unsupported.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import jester
 
 import router_utils

+ 1 - 0
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

+ 1 - 0
src/types.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import times, sequtils, options, tables
 import prefs_impl
 

+ 1 - 0
src/utils.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils, strformat, sequtils, uri, tables, base64
 import nimcrypto, regex
 

+ 1 - 0
src/views/about.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import karax/[karaxdsl, vdom]
 import markdown
 

+ 1 - 0
src/views/embed.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import options
 import karax/[karaxdsl, vdom]
 

+ 1 - 0
src/views/general.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import uri, strutils, strformat
 import karax/[karaxdsl, vdom]
 

+ 1 - 0
src/views/list.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strformat
 import karax/[karaxdsl, vdom]
 

+ 1 - 0
src/views/preferences.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import tables, macros, strutils
 import karax/[karaxdsl, vdom]
 

+ 1 - 0
src/views/profile.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils, strformat
 import karax/[karaxdsl, vdom, vstyles]
 

+ 1 - 0
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]

+ 1 - 0
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]
 

+ 1 - 0
src/views/status.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import uri
 import karax/[karaxdsl, vdom]
 

+ 1 - 0
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]
 

+ 1 - 0
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]