فهرست منبع

Add license headers

Closes #413
Zed 4 سال پیش
والد
کامیت
73b5b60ac3

+ 1 - 0
src/agents.nim

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

+ 1 - 0
src/api.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import asyncdispatch, httpclient, uri, strutils
 import asyncdispatch, httpclient, uri, strutils
 import packedjson
 import packedjson
 import types, query, formatters, consts, apiutils, parser
 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 httpclient, asyncdispatch, options, times, strutils, uri
 import packedjson, zippy
 import packedjson, zippy
 import types, tokens, consts, parserutils, http_pool
 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 parsecfg except Config
 import types, strutils
 import types, strutils
 
 

+ 1 - 0
src/consts.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import uri, sequtils
 import uri, sequtils
 
 
 const
 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 strutils, strformat, times, uri, tables, xmltree, htmlparser
 import regex
 import regex
 import types, utils, query
 import types, utils, query

+ 1 - 0
src/http_pool.nim

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

+ 1 - 0
src/nitter.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import asyncdispatch, strformat
 import asyncdispatch, strformat
 from net import Port
 from net import Port
 from htmlgen import a
 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 strutils, options, tables, times, math
 import packedjson
 import packedjson
 import packedjson / deserialiser
 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 strutils, times, macros, htmlgen, unicode, options, algorithm
 import regex, packedjson
 import regex, packedjson
 import types, utils, formatters
 import types, utils, formatters

+ 1 - 0
src/prefs.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import tables
 import tables
 import types, prefs_impl
 import types, prefs_impl
 from config import get
 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
 import macros, tables, strutils, xmltree
 
 
 type
 type

+ 1 - 0
src/query.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils, strformat, sequtils, tables, uri
 import strutils, strformat, sequtils, tables, uri
 
 
 import types
 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 asyncdispatch, times, strutils, tables, hashes
 import redis, redpool, flatty, supersnappy
 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 asyncdispatch, strutils, options
 import jester
 import jester
 import ".."/[types, api], ../views/embed
 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 strutils
 
 
 import jester
 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 uri, strutils, httpclient, os, hashes, base64, re
 import asynchttpserver, asyncstreams, asyncfile, asyncnet
 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 strutils, uri, os, algorithm
 
 
 import jester
 import jester

+ 1 - 0
src/routes/resolver.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils
 import strutils
 
 
 import jester
 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
 import strutils, sequtils, uri, tables
 from jester import Request, cookies
 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 asyncdispatch, strutils, tables, times, hashes, supersnappy
 
 
 import jester
 import jester

+ 1 - 0
src/routes/search.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strutils, uri
 import strutils, uri
 
 
 import jester
 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 asyncdispatch, strutils, sequtils, uri, options
 
 
 import jester, karax/vdom
 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 asyncdispatch, strutils, sequtils, uri, options, times
 import jester, karax/vdom
 import jester, karax/vdom
 
 

+ 1 - 0
src/routes/unsupported.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import jester
 import jester
 
 
 import router_utils
 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 asyncdispatch, httpclient, times, sequtils, json, math, random
 import strutils, strformat
 import strutils, strformat
 import zippy
 import zippy

+ 1 - 0
src/types.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import times, sequtils, options, tables
 import times, sequtils, options, tables
 import prefs_impl
 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 strutils, strformat, sequtils, uri, tables, base64
 import nimcrypto, regex
 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 karax/[karaxdsl, vdom]
 import markdown
 import markdown
 
 

+ 1 - 0
src/views/embed.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import options
 import options
 import karax/[karaxdsl, vdom]
 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 uri, strutils, strformat
 import karax/[karaxdsl, vdom]
 import karax/[karaxdsl, vdom]
 
 

+ 1 - 0
src/views/list.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import strformat
 import strformat
 import karax/[karaxdsl, vdom]
 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 tables, macros, strutils
 import karax/[karaxdsl, vdom]
 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 strutils, strformat
 import karax/[karaxdsl, vdom, vstyles]
 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 strutils
 import karax/[karaxdsl, vdom, vstyles]
 import karax/[karaxdsl, vdom, vstyles]
 import ".."/[types, utils]
 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 strutils, strformat, sequtils, unicode, tables
 import karax/[karaxdsl, vdom]
 import karax/[karaxdsl, vdom]
 
 

+ 1 - 0
src/views/status.nim

@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: AGPL-3.0-only
 import uri
 import uri
 import karax/[karaxdsl, vdom]
 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 strutils, strformat, sequtils, algorithm, uri, options
 import karax/[karaxdsl, vdom]
 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 strutils, sequtils, strformat, options
 import karax/[karaxdsl, vdom, vstyles]
 import karax/[karaxdsl, vdom, vstyles]