Commit Graph

981 Commits

Author SHA1 Message Date
shortcutme f7c767c1c8
Make Chart plugin compatible with db changes 2019-11-27 03:07:44 +01:00
shortcutme fca9db7972
Try fix Recursive use of cursors ProgrammingError by creating new cursor for every execute and move Lock to db 2019-11-27 03:07:08 +01:00
shortcutme 756f5a1608
Fix display peer found time on /Stats page 2019-11-25 14:38:53 +01:00
shortcutme 416e7d6fe0
Fix too fast benchmark results statistics 2019-11-25 14:38:27 +01:00
shortcutme 7b210429b5
Multi threaded eciesDecrypt 2019-11-25 14:37:55 +01:00
shortcutme c21fe3d23a
Prefer connecting to non-onion peers 2019-11-25 14:30:51 +01:00
shortcutme d85c27e67b
Merge config js 2019-11-20 14:08:19 +01:00
shortcutme a5f8a53196
Fix change detection for integers on config interface 2019-11-20 14:08:02 +01:00
shortcutme 6c31a3b77e
Change fs thread number on config interface 2019-11-20 14:07:04 +01:00
shortcutme 6262c80886
Fix benchmark on Firefox 2019-11-20 14:06:27 +01:00
shortcutme 1c607645c7
Track and stop site connected greenlets on delete 2019-11-19 02:07:51 +01:00
shortcutme 2ad3493fb0
Test and benchmark of crypto function in CryptMessage plugin 2019-11-19 02:05:02 +01:00
shortcutme 331dc99086
Fix benchmark plugin test listing if not loaded before other plugins 2019-11-19 02:03:27 +01:00
shortcutme 4424c8272d
New refactored Benchmark plugin to test compatibility and meassure system performance 2019-11-19 01:48:31 +01:00
shortcutme 23006e495f
FilePack plugin pass possible other parameters to site storage read function 2019-11-19 01:45:50 +01:00
shortcutme 4351af35f4
Don't load geoip db in parallel 2019-11-19 01:44:26 +01:00
shortcutme e8af5db2e8
Keep track gevent block number, remove Benchmark from stats plugin 2019-11-19 01:43:39 +01:00
shortcutme 5c27a0efcc
Rev4260, Fix UiConfig pt-br language json 2019-11-15 19:43:56 +01:00
shortcutme ac69007292
Fix file rendering if content.json download failed 2019-11-11 16:18:25 +01:00
Eduaddad dfbbbd9381 translation update (#2275)
* translation update

translation update

* Update pt-br.json

* missing comma correction
2019-11-11 15:37:50 +01:00
Eduaddad b2be4672ec
text was duplicated and in Chinese 2019-11-04 09:18:32 -03:00
Filip Š dac4fcd52b Allow NOSANDBOX in local mode (#2238) 2019-10-24 12:01:31 +02:00
shortcutme db868dba81
Merge sidebar css 2019-10-16 15:44:38 +02:00
shortcutme 5ca3401eb9
Remove UiRequestPlugin from Zeroname plugin 2019-10-16 15:42:49 +02:00
caryoscelus 6405cae706 minor code improvement: super/init
`__init__` should only ever return None
2019-10-06 22:30:18 +00:00
shortcutme 6451e7f9f1
Console display fixes 2019-10-06 03:32:04 +02:00
shortcutme 43a5742258
Resolve domain in parsePath function 2019-10-06 03:20:16 +02:00
shortcutme 924a61309a
Cached isDomain / resolveDomain functions 2019-10-06 03:18:14 +02:00
shortcutme 1f9eafa619
Merge sidebar js, css 2019-10-06 03:08:32 +02:00
shortcutme d5da404ed4
Log zeroname db load error 2019-10-06 03:08:09 +02:00
shortcutme 1b41aa70cc
Don't mess with console visibility on Windows 2019-10-06 03:07:52 +02:00
shortcutme 284b1a4f8a
Console filters to Warning, Error 2019-10-06 03:07:34 +02:00
shortcutme fe432ad843
Open console with #ZeroNet:Console hash in url 2019-10-06 03:07:14 +02:00
shortcutme 15fca6bd12
User selection from a list in multiuser local mode 2019-10-06 03:05:39 +02:00
shortcutme 43c366d2fb
Restrict blocked site addition when using mergerSiteAdd 2019-09-28 17:02:27 +02:00
shortcutme 6bb929a896
Merge branch 'py3' of https://github.com/HelloZeroNet/ZeroNet into py3 2019-09-19 16:38:25 +02:00
shortcutme d06b4abecf
Add multiuser admin status to server info 2019-09-19 16:38:05 +02:00
Christian Seibold 2fbf2c7771 English Grammar Fix: Change "Forgot" to "Forget" in Sidebar (#2202)
* Change forgot to forget

English grammar fix

* Change forgot to forget

Fix English grammar
2019-09-18 19:49:53 +02:00
shortcutme 76bc9fcddf
Open sidebar with location hash 2019-09-02 14:17:35 +02:00
shortcutme 3c4bc6ae35
Always update merger sites db on content.json update 2019-09-02 02:08:07 +02:00
Krzysztof Otręba baa5df1d01 fixed KeyError: 'piece_size' when try to download non-optional file using '|all' 2019-08-30 18:59:19 +02:00
shortcutme d166a16a24
Use function flagging in plugins 2019-08-26 03:20:07 +02:00
shortcutme d1fb4067e7
Hide trackers proxy settings if tor always set on /Config page 2019-08-23 03:40:44 +02:00
Ivanq 01ff89315b Add GitLab CI/CD support (#2163)
* Use GitLab CI/CD

* Force colored tests

* Get rid of an error

* Mark tests as slow

* Disable codecov & coveralls

* Python 3.5-3.8

* Add Python 3.4

* Support both OpenSSL 1.1.0 and 1.1.1+

* Test both OpenSSL 1.1.0 and 1.1.1+

* Fix OpenSSL 1.1.1

* Fix Python 3.4 build
2019-08-19 17:30:31 +02:00
shortcutme 1d5bde01cc
Deny plugin add request in multiuser mode 2019-08-17 20:34:21 +02:00
shortcutme 2bdd073608
Move resolveDomain to SiteManager for easier resolver plugins 2019-08-15 03:05:29 +02:00
shortcutme d610f94e7d
Display TLS 1.3 support on /Stats page 2019-08-12 17:56:06 +02:00
shortcutme 0bbeede975
Don't try to display bigfile limit settings if no bigfile plugin enabled 2019-08-09 13:17:48 +02:00
shortcutme b22343f65c
Support multiple trackers_file argument 2019-08-07 14:12:45 +02:00
shortcutme 605ae75dda
Re-compile UiConfig js, css, backdrop to bottom popup 2019-08-03 01:35:00 +02:00
shortcutme 7e9ab8321a
Add plugin description data 2019-08-03 01:32:55 +02:00
shortcutme 4094d3a9bf
Plugin to install, update and delete third-party plugins using the web interface 2019-08-03 01:31:11 +02:00
shortcutme 0877fec638
Restrict plugin commands in multi-user mode 2019-08-03 01:29:27 +02:00
shortcutme fa970fa102
Test CryptMessage plugin using testAction function 2019-08-02 16:14:17 +02:00
shortcutme fbafd23177
Add OpenSSL 1.1 support to CryptMessage plugin by using radfish's pyelliptic version 2019-08-02 16:13:54 +02:00
shortcutme be742c78e7
Formatting for better readability 2019-08-02 16:06:22 +02:00
shortcutme 3e97c154a0
Remove hard-coded directory path from plugins 2019-08-02 16:05:19 +02:00
shortcutme 06406fa46c
Avoid bare exceptions 2019-08-02 14:04:18 +02:00
shortcutme e488841031
Display loaded verify lib path in benchmark 2019-07-18 03:32:22 +02:00
shortcutme c502688ce3
Internals renamed to Console 2019-07-17 16:30:17 +02:00
shortcutme 866346b059
Fix and test bootstrapper hash cache reload from db 2019-07-17 16:29:54 +02:00
Vadim Ushakov 076684176b Add missing @helper.encodeResponse in StatsPlugin.py and BootstrapperPlugin.py 2019-07-15 14:50:24 +07:00
Vadim Ushakov a2cb1615b3 Move the BitTorrent related code from SiteAnnouncer.py (#2078)
* Move the BitTorrent related code from SiteAnnouncer.py to a separate plugin

* AnnounceBitTorrentPlugin.py: add missing `from Debug import Debug`
2019-07-10 16:12:25 +02:00
shortcutme e34a9d452a
Allow filter optional files by inner path 2019-07-10 03:11:20 +02:00
tangdou1 8815b4e0c3
Update zh.json 2019-07-08 10:05:34 +08:00
shortcutme c1db963c76
Rev4112, Fix loading screen glitch, Change unstable trackers 2019-07-04 14:39:41 +02:00
shortcutme eb2627721e
Fix pytest 5.x compatibility 2019-07-03 18:36:41 +02:00
shortcutme ff32f822ba
Raise exception instead of using assert 2019-07-03 18:35:55 +02:00
ZeroNet eae0d1b2a6
Merge pull request #1959 from tangdou1/patch-1
Change default value to 10MB
2019-07-01 17:45:37 +02:00
shortcutme 4c2cf99fd2
Add console function to sidebar 2019-07-01 16:19:12 +02:00
shortcutme aebd9b410d
Fix feedlistfollow request before siteinfo 2019-07-01 16:08:21 +02:00
Lola Dam 753396ac0c Try and catch block for dbRebuild (#2047)
* Try and catch block for dbRebuild

* Use self.log.error and not logging

* Use self.log.error and not logging in SiteStorage also

* Check if the rebuild is working
2019-06-23 14:21:50 +02:00
shortcutme 8f26c0aeae
Test null byte file download bug fix 2019-06-06 02:27:09 +02:00
shortcutme 350ee13d66
Fix serving binary files with zero characters in it. 2019-06-04 16:18:52 +02:00
Lola Dam 9cda561091 Show error message when db failed to rebuild (#2043)
* Show error message when db failed to rebuild; fix #1908;

* Forgot file
2019-06-04 13:54:35 +02:00
shortcutme d38846f126
Rev4099, Fix ZipStream for older Python versions 2019-05-31 15:08:30 +02:00
shortcutme c63215c992
Don't download geolite db in offline mode 2019-05-30 04:27:40 +02:00
shortcutme 815fe02c83
Make sidebarGetPeers an async command 2019-05-30 04:27:20 +02:00
shortcutme e2e1a5b38c
Fix streamZip variable name 2019-05-30 04:27:01 +02:00
shortcutme 422064e092
Only show console after app close in debug mode 2019-05-30 04:24:42 +02:00
shortcutme d548c6bdfa
Add new line after benhmark errors 2019-05-30 04:24:17 +02:00
shortcutme efb7b147af
Fix broken zip file generation 2019-05-30 04:24:01 +02:00
shortcutme 0f8b220f59
Merge sidebar js 2019-05-29 16:03:48 +02:00
shortcutme 7b41922c2d
Use user certificate if possible for signing using sidebar, more sign, publish to separate functions 2019-05-29 16:02:10 +02:00
shortcutme ce0cf09b10
Fix sidebar zip generation 2019-05-21 15:52:58 +02:00
shortcutme 1567fb745d
Fix sidebar site download with utf8 title 2019-05-21 15:52:44 +02:00
ZeroNet dbcaa6bf85
Merge pull request #2006 from imachug/cryptmessage-bitcoin
Add privToPub and pubToAddr commands
2019-05-20 17:04:38 +02:00
Ivanq 3205187090 Rename commands to have ecc... prefix 2019-05-19 15:52:36 +03:00
cclauss fd46f141ea
Fix Python 3 syntax errors in zonename_updater.py 2019-05-16 19:39:16 +02:00
Ivanq 4eaeade618 Add privToPub and pubToAddr commands 2019-05-01 08:04:39 +03:00
shortcutme 7bef78e10f
Fix newsfeed sql query with many parameters 2019-04-29 16:44:13 +02:00
shortcutme b54916b1dc
Show console after got hidden in non-debug mode 2019-04-29 16:43:34 +02:00
ZeroNet 538f69235f
Merge pull request #1985 from rllola/fix-zeroname-local
New ZeronameLocal plugin with connection to namecoin node
2019-04-26 12:58:50 +02:00
shortcutme 4c9d3ee3a6
Test big file renames 2019-04-23 02:00:11 +02:00
shortcutme efc5211451
Test optional file renames in OptionalManager plugin 2019-04-23 01:58:37 +02:00
shortcutme f2bf5b12bd
Support optional file rename in OptionalManager plugin 2019-04-23 01:58:21 +02:00
shortcutme dccda1af92
Pass optionalRemoved return value 2019-04-23 01:57:57 +02:00
shortcutme 4016e7c217
Test Bigfile plugin using tostring where it possible 2019-04-23 01:55:05 +02:00
rllola 907a26a8b9 Take care of the exceptions so it wont crash zeronet if someting goes wrong. 2019-04-20 20:23:59 +02:00
shortcutme 4bfd4bd714
Rev4074, Fix Ecdsa functions in cryptmessage plugin 2019-04-20 09:48:56 +02:00
Ivanq d7d75a1fe8 Fix ECDSA on CryptMessage (#1987)
* Add ecdsaSign and ecdsaVerify

* Fix return

* Fix unicode

* Update CryptMessagePlugin.py

* Remove .encode("utf8")

* Fix keys during ECDSA signing
2019-04-19 19:34:07 +02:00
rllola ef6ccb330b Dont raise an error if domain has more than one subdomain and just return None 2019-04-18 15:27:49 +02:00
shortcutme 4671f47222
Fix bigfile piecefield standalone run test 2019-04-18 12:21:33 +02:00
rllola 4be0e1ee7f Forgot to cache in one 'if' 2019-04-17 18:34:53 +02:00
redfish 7e57a8f71e Ui,Translate: remove bytearray format string
Py 3.4 does not support bytearray format strings
for % operator: b"%s" % s
2019-04-16 20:54:55 -04:00
rllola 86d3d35619 Disable Zeroname plugin 2019-04-16 20:07:30 +02:00
rllola f195111354 Using http.client instead of requests module 2019-04-16 16:23:09 +02:00
radfish ec6fd48b86 Bigfile: fix piece field bitmask to be used as bytearray consistently (#1982)
* Bigfile: make Piecefield array a bytearray

We want an array of characters. Py2 strings made sense to
use as an array of characters, but Py3 strings are different
and no longer a good choice.

* Bigfile: store bits as binary instead of char

* BigFile: rename to/from string -> to/from bytes

Since the type was changed to bytearray.
2019-04-16 15:14:19 +02:00
radfish 1516d55a88 Sidebar: rename media-globe/ to media_globe/ (#1973)
So that it can be an importable package.
This is in preparation for setuptools packaging.
2019-04-16 11:34:55 +02:00
Ivanq bdb0dc32a7 Add ECDSA actions to CryptMessage (#1984)
* Add ecdsaSign and ecdsaVerify

* Fix return

* Fix unicode

* Update CryptMessagePlugin.py
2019-04-15 22:55:01 +02:00
shortcutme 5ff2f792e6
Rev4070, Fix Multiuser plugin import order, Run coverage before optional plugins 2019-04-15 22:54:17 +02:00
shortcutme 526a5d3fb1
Fix compatibility with Python <=3.5 2019-04-15 22:48:43 +02:00
shortcutme 90fee9788d
Always translate html files to avoid compatibility problems with brackets in url 2019-04-15 22:16:47 +02:00
shortcutme bf7597e1b2
Add simple test for Multiuser plugin 2019-04-15 22:16:05 +02:00
shortcutme 54ff940c2b
Fix Bootstrapper plugin py3 compatibility 2019-04-15 22:15:42 +02:00
shortcutme 446641c31c
Always commit before Db VACUUM 2019-04-15 22:11:44 +02:00
shortcutme be584aa3d1
Change offline mode in /Config page 2019-04-15 15:12:08 +02:00
shortcutme b82f57e7a2
Fix small file upload using bigfile plugin 2019-04-15 15:07:31 +02:00
shortcutme 998ec3eb4f
Disable all site serving using a global offline argument 2019-04-15 15:06:25 +02:00
radfish f6e3a74567 [setuptools packaging] access modules via imports (#1969) 2019-04-15 12:31:33 +02:00
rllola c4d8466195 Delete old plugin 2019-04-14 22:58:05 +02:00
rllola af1fb7aaa6 Also recognise 'map' namecoin standard way of registering for domain 2019-04-14 22:41:26 +02:00
rllola 1a944735df New ZeronameLocal plugin with connection to namecoin node 2019-04-14 16:58:58 +02:00
krzotr 1c8fba4286
OptionalManager file info - set bytes_downloaded to file size if a file is fully downloaded 2019-04-13 23:07:13 +02:00
shortcutme ce7c22fd57
Ignore items with no date_added in newsfeed 2019-04-11 01:18:52 +02:00
ZeroNet ed12cc1186
Merge pull request #1952 from tangdou1/patch-6
Update TrayiconPlugin.py for IPV6 compatibility
2019-04-09 17:53:04 +02:00
ZeroNet 8370ac8426
Merge pull request #1970 from radfish/PR-py3--import-plugins
[setuptools packaging] PluginManager: get plugins path via import
2019-04-09 17:51:05 +02:00
shortcutme 763e5f4ac0
Fix too short sleep 2019-04-08 18:12:00 +02:00
shortcutme 87abdb92e9
Fix bigfile upload 2019-04-08 18:11:46 +02:00
redfish 73814550e5 PluginManager: get plugins path via import
* skip __pycache__ when loading
2019-04-07 18:50:23 -04:00
redfish 4d98b05e6c Sidebar: use geoip db from system if exists 2019-04-06 17:24:25 -04:00
tangdou1 4c358b9f08
Big File is bigger than 10MB
Big File is an optional file which is bigger than 10MB, so the default value should be at least 10MB.
2019-04-06 11:57:58 +08:00
shortcutme a208f47b6a
Fix sidebar opening for fast mouse movements 2019-04-04 13:28:38 +02:00
shortcutme 042db64a00
Fix multiuser plugin py3 compatibility 2019-04-04 13:24:42 +02:00
shortcutme f55fd8d861
Avoid re-define variable name 2019-04-04 13:24:26 +02:00
tangdou1 f527b8225f
IPV6 compatibility 2019-04-03 19:54:19 +08:00
redfish 65be9f438b CryptMessage: pass byte-array type to base64
Fixes this error upon sending a message in ZeroMail:
WebSocket handleRequest error: TypeError: a bytes-like object is
required, not 'str' in UiWebsocket.py line 83 > UiWebsocket.py line 269
> CryptMessage/CryptMessagePlugin.py line 80 >
CryptMessage/CryptMessagePlugin.py line 80 > base64.py line 58
2019-03-31 14:05:15 -04:00
shortcutme 9fad83e46c
More detailed logging on archive open error 2019-03-29 02:27:26 +01:00
shortcutme 9fbf4771f2
Fix directory commands on packed files 2019-03-29 02:26:50 +01:00
shortcutme 706852d9a7
Fix Stats page rendering in non-debug mode, reduce source code size 2019-03-27 03:06:22 +01:00
shortcutme 16f36824e6
Fix benchmark on Python 3.5 2019-03-23 03:40:42 +01:00
shortcutme 5c1ec0b141
Ecies encrypted string length can be different in rare cases 2019-03-23 03:38:30 +01:00
shortcutme e24d1016a5
Fix bigfile upload post request return value 2019-03-23 03:38:04 +01:00
shortcutme a82ee338ef
Rev4017, Fix Bigfile test, Python 3.4 compatibility 2019-03-21 02:48:21 +01:00
shortcutme 60405bf222
Rev4016, Add ad test Python 3.4 compatibility 2019-03-21 02:22:22 +01:00
0polar 8411c60d4a
Fix unable to open context menu on Windows
Python3 string no need decoding or encoding
2019-03-19 20:56:30 +08:00
shortcutme 9a9a8bfdc7
Fix peer loading 2019-03-18 03:37:05 +01:00
shortcutme a620bf2174
Fix lang html variable on config page 2019-03-18 01:06:45 +01:00
shortcutme e77d63294e
Fix config page 2019-03-18 01:06:04 +01:00
shortcutme 02e67a901f
Import global maxminddb module 2019-03-16 04:26:27 +01:00