From 5afdfb2b3cd6da14fba239cb51ea3990fce393ed Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 19 Jun 2018 21:13:36 -0400 Subject: [PATCH] fixed navbar icon for mobile --- debug_put.py | 3 ++- static/css/main.css | 3 +++ stress_test.py | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/debug_put.py b/debug_put.py index 3629b2d..f137acb 100644 --- a/debug_put.py +++ b/debug_put.py @@ -6,7 +6,8 @@ payload = json.dumps({ "website_id": 3, # "url": "ftp://132.249.213.137", "url": "http://localhost:8000/", - # "url": "http://ubuntu.mirrorservice.org/", + # "url": "http://dlst18.xyz/ + # dl/vip/film/", "priority": 2, "callback_type": "", "callback_args": "{}" diff --git a/static/css/main.css b/static/css/main.css index 2ff4bae..bafa87a 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -119,6 +119,9 @@ body { color: #616161; border-bottom: 2px solid #6c6c6c; } +.navbar-toggler-icon { + background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.6)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E"); +} .active { border-color: #b3b3b3; diff --git a/stress_test.py b/stress_test.py index 2ce618c..6c8e39c 100644 --- a/stress_test.py +++ b/stress_test.py @@ -67,7 +67,7 @@ def index_file_list(path: str, website_id): es = ElasticSearchEngine("od-database") with open(path, "r") as f: - es.import_json(f.read(), website_id) + es.import_json(f.readlines(), website_id) def search(term=""): @@ -92,7 +92,7 @@ def make_wide_filesystem(count=100000): # dump_local_filesystem("/mnt/") -# index_file_list("random_dump.json", 1000) +index_file_list("local_filesystem.json", 4) # random_searches(100000) # dump_random_files(20000 * 100000) -make_wide_filesystem(10000) +# make_wide_filesystem(10000)