diff --git a/pastey/common.py b/pastey/common.py index c1835d0..f0abe5f 100644 --- a/pastey/common.py +++ b/pastey/common.py @@ -34,6 +34,8 @@ def get_icon(language): return "cplusplus" elif language == "Jupyter Notebook": return "jupyter" + elif language == "Visual Basic": + return "vb" else: return language.lower() diff --git a/requirements.txt b/requirements.txt index a73c186..0a52746 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ Flask==1.1.2 Flask-Limiter==1.4 -guesslang==2.0.1 +guesslang==2.2.1 cryptography==3.4.7 \ No newline at end of file diff --git a/static/img/language/Dark/clojure.png b/static/img/language/Dark/clojure.png new file mode 100644 index 0000000..7e70612 Binary files /dev/null and b/static/img/language/Dark/clojure.png differ diff --git a/static/img/language/Dark/cobol.png b/static/img/language/Dark/cobol.png new file mode 100644 index 0000000..efe49f5 Binary files /dev/null and b/static/img/language/Dark/cobol.png differ diff --git a/static/img/language/Dark/csv.png b/static/img/language/Dark/csv.png new file mode 100644 index 0000000..b9e55ed Binary files /dev/null and b/static/img/language/Dark/csv.png differ diff --git a/static/img/language/Dark/dart.png b/static/img/language/Dark/dart.png new file mode 100644 index 0000000..cfbfaf6 Binary files /dev/null and b/static/img/language/Dark/dart.png differ diff --git a/static/img/language/Dark/docker.png b/static/img/language/Dark/docker.png new file mode 100644 index 0000000..ebd5f4e Binary files /dev/null and b/static/img/language/Dark/docker.png differ diff --git a/static/img/language/Dark/elixir.png b/static/img/language/Dark/elixir.png new file mode 100644 index 0000000..5f007be Binary files /dev/null and b/static/img/language/Dark/elixir.png differ diff --git a/static/img/language/Dark/fortran.png b/static/img/language/Dark/fortran.png new file mode 100644 index 0000000..da6df9a Binary files /dev/null and b/static/img/language/Dark/fortran.png differ diff --git a/static/img/language/Dark/groovy.png b/static/img/language/Dark/groovy.png new file mode 100644 index 0000000..ed21208 Binary files /dev/null and b/static/img/language/Dark/groovy.png differ diff --git a/static/img/language/Dark/ini.png b/static/img/language/Dark/ini.png new file mode 100644 index 0000000..d94b4ac Binary files /dev/null and b/static/img/language/Dark/ini.png differ diff --git a/static/img/language/Dark/json.png b/static/img/language/Dark/json.png new file mode 100644 index 0000000..ee1bec4 Binary files /dev/null and b/static/img/language/Dark/json.png differ diff --git a/static/img/language/Dark/julia.png b/static/img/language/Dark/julia.png new file mode 100644 index 0000000..53ea698 Binary files /dev/null and b/static/img/language/Dark/julia.png differ diff --git a/static/img/language/Dark/kotlin.png b/static/img/language/Dark/kotlin.png new file mode 100644 index 0000000..edb1d56 Binary files /dev/null and b/static/img/language/Dark/kotlin.png differ diff --git a/static/img/language/Dark/lisp.png b/static/img/language/Dark/lisp.png new file mode 100644 index 0000000..24903ef Binary files /dev/null and b/static/img/language/Dark/lisp.png differ diff --git a/static/img/language/Dark/ocaml.png b/static/img/language/Dark/ocaml.png new file mode 100644 index 0000000..63ab5c1 Binary files /dev/null and b/static/img/language/Dark/ocaml.png differ diff --git a/static/img/language/Dark/prolog.png b/static/img/language/Dark/prolog.png new file mode 100644 index 0000000..c2fd2b9 Binary files /dev/null and b/static/img/language/Dark/prolog.png differ diff --git a/static/img/language/Dark/sql.png b/static/img/language/Dark/sql.png new file mode 100644 index 0000000..c829855 Binary files /dev/null and b/static/img/language/Dark/sql.png differ diff --git a/static/img/language/Dark/toml.png b/static/img/language/Dark/toml.png new file mode 100644 index 0000000..f2572fc Binary files /dev/null and b/static/img/language/Dark/toml.png differ diff --git a/static/img/language/Dark/vb.png b/static/img/language/Dark/vb.png new file mode 100644 index 0000000..566fcc9 Binary files /dev/null and b/static/img/language/Dark/vb.png differ diff --git a/static/img/language/Dark/xml.png b/static/img/language/Dark/xml.png new file mode 100644 index 0000000..9d818af Binary files /dev/null and b/static/img/language/Dark/xml.png differ diff --git a/static/img/language/Dark/yaml.png b/static/img/language/Dark/yaml.png new file mode 100644 index 0000000..259d8f7 Binary files /dev/null and b/static/img/language/Dark/yaml.png differ diff --git a/static/img/language/Light/302535_ini_file_icon.png b/static/img/language/Light/302535_ini_file_icon.png new file mode 100644 index 0000000..9ede796 Binary files /dev/null and b/static/img/language/Light/302535_ini_file_icon.png differ diff --git a/static/img/language/Light/clojure.png b/static/img/language/Light/clojure.png new file mode 100644 index 0000000..d45e210 Binary files /dev/null and b/static/img/language/Light/clojure.png differ diff --git a/static/img/language/Light/cobol.png b/static/img/language/Light/cobol.png new file mode 100644 index 0000000..742fa52 Binary files /dev/null and b/static/img/language/Light/cobol.png differ diff --git a/static/img/language/Light/csv.png b/static/img/language/Light/csv.png new file mode 100644 index 0000000..9da133a Binary files /dev/null and b/static/img/language/Light/csv.png differ diff --git a/static/img/language/Light/dart.png b/static/img/language/Light/dart.png new file mode 100644 index 0000000..9315549 Binary files /dev/null and b/static/img/language/Light/dart.png differ diff --git a/static/img/language/Light/docker.png b/static/img/language/Light/docker.png new file mode 100644 index 0000000..22064da Binary files /dev/null and b/static/img/language/Light/docker.png differ diff --git a/static/img/language/Light/elixir.png b/static/img/language/Light/elixir.png new file mode 100644 index 0000000..136604a Binary files /dev/null and b/static/img/language/Light/elixir.png differ diff --git a/static/img/language/Light/fortran.png b/static/img/language/Light/fortran.png new file mode 100644 index 0000000..1c28f66 Binary files /dev/null and b/static/img/language/Light/fortran.png differ diff --git a/static/img/language/Light/groovy.png b/static/img/language/Light/groovy.png new file mode 100644 index 0000000..607b0f7 Binary files /dev/null and b/static/img/language/Light/groovy.png differ diff --git a/static/img/language/Light/ini.png b/static/img/language/Light/ini.png new file mode 100644 index 0000000..8c8a011 Binary files /dev/null and b/static/img/language/Light/ini.png differ diff --git a/static/img/language/Light/json.png b/static/img/language/Light/json.png new file mode 100644 index 0000000..6dd67cb Binary files /dev/null and b/static/img/language/Light/json.png differ diff --git a/static/img/language/Light/julia.png b/static/img/language/Light/julia.png new file mode 100644 index 0000000..8d462f9 Binary files /dev/null and b/static/img/language/Light/julia.png differ diff --git a/static/img/language/Light/kotlin.png b/static/img/language/Light/kotlin.png new file mode 100644 index 0000000..e0a615b Binary files /dev/null and b/static/img/language/Light/kotlin.png differ diff --git a/static/img/language/Light/lisp.png b/static/img/language/Light/lisp.png new file mode 100644 index 0000000..305db5e Binary files /dev/null and b/static/img/language/Light/lisp.png differ diff --git a/static/img/language/Light/ocaml.png b/static/img/language/Light/ocaml.png new file mode 100644 index 0000000..9d36fe6 Binary files /dev/null and b/static/img/language/Light/ocaml.png differ diff --git a/static/img/language/Light/prolog.png b/static/img/language/Light/prolog.png new file mode 100644 index 0000000..f5f2882 Binary files /dev/null and b/static/img/language/Light/prolog.png differ diff --git a/static/img/language/Light/sql.png b/static/img/language/Light/sql.png new file mode 100644 index 0000000..6ae9529 Binary files /dev/null and b/static/img/language/Light/sql.png differ diff --git a/static/img/language/Light/toml.png b/static/img/language/Light/toml.png new file mode 100644 index 0000000..acb0799 Binary files /dev/null and b/static/img/language/Light/toml.png differ diff --git a/static/img/language/Light/vb.png b/static/img/language/Light/vb.png new file mode 100644 index 0000000..fdb92af Binary files /dev/null and b/static/img/language/Light/vb.png differ diff --git a/static/img/language/Light/xml.png b/static/img/language/Light/xml.png new file mode 100644 index 0000000..66c3157 Binary files /dev/null and b/static/img/language/Light/xml.png differ diff --git a/static/img/language/Light/yaml.png b/static/img/language/Light/yaml.png new file mode 100644 index 0000000..387094e Binary files /dev/null and b/static/img/language/Light/yaml.png differ diff --git a/templates/index.html b/templates/index.html index 125f1fd..68a696c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -119,7 +119,7 @@