diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 28971c5..0000000 --- a/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -[*] -end_of_line = lf -insert_final_newline = true - -[*.{js,py,html}] -indent_style = space -indent_size = 4 -charset = utf-8 - -[Makefile] -indent_style = tab - diff --git a/oml/__main__.py b/oml/__main__.py index f5e2b5e..f888dd5 100644 --- a/oml/__main__.py +++ b/oml/__main__.py @@ -1,5 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os import sys diff --git a/oml/api.py b/oml/api.py index bf44566..32b31bc 100644 --- a/oml/api.py +++ b/oml/api.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from os.path import normpath, dirname, abspath, join diff --git a/oml/changelog.py b/oml/changelog.py index c16834c..483a708 100644 --- a/oml/changelog.py +++ b/oml/changelog.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os from datetime import datetime diff --git a/oml/commands.py b/oml/commands.py index d147b2e..7e0a05d 100644 --- a/oml/commands.py +++ b/oml/commands.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from os.path import join, exists, dirname diff --git a/oml/downloads.py b/oml/downloads.py index 1835ec1..8374f95 100644 --- a/oml/downloads.py +++ b/oml/downloads.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os from threading import Thread diff --git a/oml/item/api.py b/oml/item/api.py index d0c04a5..c94d7cf 100644 --- a/oml/item/api.py +++ b/oml/item/api.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import json import hashlib import os diff --git a/oml/item/handlers.py b/oml/item/handlers.py index 2dd4dcf..b13c9f4 100644 --- a/oml/item/handlers.py +++ b/oml/item/handlers.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from datetime import datetime diff --git a/oml/item/icons.py b/oml/item/icons.py index dc670d5..e87b724 100644 --- a/oml/item/icons.py +++ b/oml/item/icons.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os import sqlite3 diff --git a/oml/item/models.py b/oml/item/models.py index cfc44e3..b2d5c3a 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from datetime import datetime import base64 import hashlib diff --git a/oml/item/person.py b/oml/item/person.py index 27ad8f7..4e68205 100644 --- a/oml/item/person.py +++ b/oml/item/person.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import unicodedata diff --git a/oml/item/person_api.py b/oml/item/person_api.py index 1293f34..e6cb8dc 100644 --- a/oml/item/person_api.py +++ b/oml/item/person_api.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import unicodedata from oxtornado import actions diff --git a/oml/item/query.py b/oml/item/query.py index 9683dee..b48fe29 100644 --- a/oml/item/query.py +++ b/oml/item/query.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 #does not work in sqlite diff --git a/oml/item/scan.py b/oml/item/scan.py index 4869ac9..04a58c9 100644 --- a/oml/item/scan.py +++ b/oml/item/scan.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from datetime import datetime diff --git a/oml/item/title_api.py b/oml/item/title_api.py index 22fb3b5..b34a70c 100644 --- a/oml/item/title_api.py +++ b/oml/item/title_api.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import hashlib import json import unicodedata diff --git a/oml/library.py b/oml/library.py index c80fc4d..510e7d2 100644 --- a/oml/library.py +++ b/oml/library.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import json import os import time diff --git a/oml/localnodes.py b/oml/localnodes.py index f3fa7ec..5e7129b 100644 --- a/oml/localnodes.py +++ b/oml/localnodes.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import socket diff --git a/oml/media/__init__.py b/oml/media/__init__.py index dd9d32b..5cebfcf 100644 --- a/oml/media/__init__.py +++ b/oml/media/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import base64 diff --git a/oml/media/cbr.py b/oml/media/cbr.py index 66e1324..9f72a71 100644 --- a/oml/media/cbr.py +++ b/oml/media/cbr.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os diff --git a/oml/media/epub.py b/oml/media/epub.py index cd5a6f0..81ccb17 100644 --- a/oml/media/epub.py +++ b/oml/media/epub.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os diff --git a/oml/media/opf.py b/oml/media/opf.py index 8070c40..b8a20b8 100644 --- a/oml/media/opf.py +++ b/oml/media/opf.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import xml.etree.ElementTree as ET diff --git a/oml/media/pdf.py b/oml/media/pdf.py index bc342d0..c4e9719 100644 --- a/oml/media/pdf.py +++ b/oml/media/pdf.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import sys diff --git a/oml/media/txt.py b/oml/media/txt.py index ca76253..193441c 100644 --- a/oml/media/txt.py +++ b/oml/media/txt.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os diff --git a/oml/meta/__init__.py b/oml/meta/__init__.py index 13209c0..45c3d3e 100644 --- a/oml/meta/__init__.py +++ b/oml/meta/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import stdnum.isbn diff --git a/oml/meta/duckduckgo.py b/oml/meta/duckduckgo.py index b3c28e6..105426b 100644 --- a/oml/meta/duckduckgo.py +++ b/oml/meta/duckduckgo.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import ox.web.duckduckgo diff --git a/oml/meta/google.py b/oml/meta/google.py index 713647d..4b628bf 100644 --- a/oml/meta/google.py +++ b/oml/meta/google.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from time import time, sleep from urllib.parse import urlencode diff --git a/oml/meta/utils.py b/oml/meta/utils.py index 741fce8..49f0703 100644 --- a/oml/meta/utils.py +++ b/oml/meta/utils.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import re diff --git a/oml/node/cert.py b/oml/node/cert.py index 8b7e5d1..64cb741 100644 --- a/oml/node/cert.py +++ b/oml/node/cert.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import hashlib import os diff --git a/oml/node/nodeapi.py b/oml/node/nodeapi.py index 3992ddd..a3f16d5 100644 --- a/oml/node/nodeapi.py +++ b/oml/node/nodeapi.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from user.models import User diff --git a/oml/node/server.py b/oml/node/server.py index 0e5694e..4673441 100644 --- a/oml/node/server.py +++ b/oml/node/server.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from socketserver import ThreadingMixIn from threading import Thread import base64 diff --git a/oml/nodes.py b/oml/nodes.py index 1933def..70fae05 100644 --- a/oml/nodes.py +++ b/oml/nodes.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from queue import Queue diff --git a/oml/oxtornado.py b/oml/oxtornado.py index b34cdfe..7215e9a 100644 --- a/oml/oxtornado.py +++ b/oml/oxtornado.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from contextlib import contextmanager diff --git a/oml/pdict.py b/oml/pdict.py index cf1d37b..a648d24 100644 --- a/oml/pdict.py +++ b/oml/pdict.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os import json diff --git a/oml/queryparser.py b/oml/queryparser.py index 033e068..5ccc68a 100644 --- a/oml/queryparser.py +++ b/oml/queryparser.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from datetime import datetime import unicodedata diff --git a/oml/server.py b/oml/server.py index b01d598..f98ed7b 100644 --- a/oml/server.py +++ b/oml/server.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os import sys diff --git a/oml/settings.py b/oml/settings.py index f70b930..631b398 100644 --- a/oml/settings.py +++ b/oml/settings.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import json import os diff --git a/oml/setup.py b/oml/setup.py index b243a00..85c2bae 100644 --- a/oml/setup.py +++ b/oml/setup.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import os diff --git a/oml/ssl_request.py b/oml/ssl_request.py index 43b4fb3..538ea75 100644 --- a/oml/ssl_request.py +++ b/oml/ssl_request.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import ssl import http.client diff --git a/oml/tasks.py b/oml/tasks.py index 3f97379..af02c3c 100644 --- a/oml/tasks.py +++ b/oml/tasks.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from queue import PriorityQueue from threading import Thread import json diff --git a/oml/tor_request.py b/oml/tor_request.py index 0fd6455..7b10063 100644 --- a/oml/tor_request.py +++ b/oml/tor_request.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import ssl import http.client diff --git a/oml/ui.py b/oml/ui.py index ba4630a..a15dfac 100644 --- a/oml/ui.py +++ b/oml/ui.py @@ -1,4 +1,5 @@ # encoding: utf-8 +# vi:si:et:sw=4:sts=4:ts=4 import sys import os try: diff --git a/oml/ui_websocket.py b/oml/ui_websocket.py index 3bd5204..7efdddd 100644 --- a/oml/ui_websocket.py +++ b/oml/ui_websocket.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 import json diff --git a/oml/update.py b/oml/update.py index 83c490a..8ab472c 100644 --- a/oml/update.py +++ b/oml/update.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from contextlib import closing import base64 diff --git a/oml/user/api.py b/oml/user/api.py index 6764050..d8fecfa 100644 --- a/oml/user/api.py +++ b/oml/user/api.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from copy import deepcopy diff --git a/oml/user/models.py b/oml/user/models.py index bc2d072..ad75f0d 100644 --- a/oml/user/models.py +++ b/oml/user/models.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from datetime import datetime import json import os diff --git a/oml/utils.py b/oml/utils.py index 5130156..e5b9337 100644 --- a/oml/utils.py +++ b/oml/utils.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from datetime import datetime diff --git a/oml/websocket.py b/oml/websocket.py index 27a3d4e..90821bb 100644 --- a/oml/websocket.py +++ b/oml/websocket.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 from tornado.websocket import WebSocketHandler diff --git a/static/js/annotationFolder.js b/static/js/annotationFolder.js index b9d7760..0472bce 100644 --- a/static/js/annotationFolder.js +++ b/static/js/annotationFolder.js @@ -3,9 +3,8 @@ oml.ui.annotationFolder = function() { var ui = oml.user.ui, that = Ox.Element().css({ overflowY: 'auto', - overflowX: 'hidden', }); return that; -}; +}; \ No newline at end of file