+ Open Onionr Site +
+diff --git a/TODO.txt b/TODO.txt new file mode 100644 index 00000000..d003ce96 --- /dev/null +++ b/TODO.txt @@ -0,0 +1,7 @@ +* Remove nav bar links for disabled plugins +* add GUI config editor +* add multi-device forward secrecy +* document anonymity & security theory +* document usage +* encrypt local data and keys +* ensure accessibility for Onionr web UI diff --git a/onionr/onionrblocks/insert.py b/onionr/onionrblocks/insert.py index bfda0c34..4416291d 100644 --- a/onionr/onionrblocks/insert.py +++ b/onionr/onionrblocks/insert.py @@ -45,9 +45,9 @@ def insert_block(data: Union[str, bytes], header: str ='txt', with open(filepaths.data_nonce_file, 'a') as nonceFile: nonceFile.write(dataNonce + '\n') - if type(data) is bytes: - data = data.decode() - data = str(data) + #if type(data) is bytes: + # data = data.decode() + #data = str(data) plaintext = data plaintextMeta = {} plaintextPeer = asymPeer diff --git a/onionr/runtests/__init__.py b/onionr/runtests/__init__.py index f98cfcb7..8c47eab3 100644 --- a/onionr/runtests/__init__.py +++ b/onionr/runtests/__init__.py @@ -20,9 +20,9 @@ import logger from onionrutils import epoch -from . import uicheck +from . import uicheck, inserttest -RUN_TESTS = [uicheck.check_ui] +RUN_TESTS = [uicheck.check_ui, inserttest.insert_bin_test] class OnionrRunTestManager: def __init__(self): diff --git a/onionr/runtests/inserttest.py b/onionr/runtests/inserttest.py new file mode 100644 index 00000000..5d67bca3 --- /dev/null +++ b/onionr/runtests/inserttest.py @@ -0,0 +1,13 @@ +import os + +import onionrblocks +import logger +import coredb + +def insert_bin_test(testmanager): + data = os.urandom(32) + b_hash = onionrblocks.insert(data, ) + + if not b_hash in coredb.blockmetadb.get_block_list(): + logger.error(str(b_hash) + 'is not in bl') + raise ValueError \ No newline at end of file diff --git a/static-data/www/onboarding/index.html b/static-data/www/onboarding/index.html new file mode 100644 index 00000000..2d643ae1 --- /dev/null +++ b/static-data/www/onboarding/index.html @@ -0,0 +1,233 @@ + + + +
+ + + ++ + Shutdown + +
++ + Restart + +
++ Onionr Sites +
++ Open Onionr Site +
++ Statistics +
+Unable to get nodes+
Warning: Some values can be dangerous to change. Use caution.
+ + Save Config +