Commit graph

1001 commits

Author SHA1 Message Date
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
Vadim Ushakov
822e53ebb8 Merge branch 'py3' into plugins 2019-07-18 00:14:06 +07:00
Vadim Ushakov
5f6589cfc2 TrackerShare: be more verbose in enoughWorkingTrackers() 2019-07-18 00:01:56 +07:00
Vadim Ushakov
95c8f0e97e TrackerShare: consider UDP disabled if config.tor == "always" 2019-07-17 23:48:53 +07:00
Vadim Ushakov
cb363d2f11 TrackerShare: move the tracker list cleanup code from getSupportedProtocols() to a separate method 2019-07-17 23:35:39 +07:00
Vadim Ushakov
0d02c3c4da TrackerShare: increase default limits: zero=10,other=5; total=20 2019-07-17 23:23:03 +07:00
Vadim Ushakov
2811d7c9d4 TrackerShare: replace self.site_announcer on every call from SiteAnnouncer 2019-07-17 23:21:11 +07: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
96e935300c TrackerZero: fix error in updateHashCache()
Reported to the upstream: https://github.com/HelloZeroNet/ZeroNet/issues/2095
2019-07-15 14:13:14 +07:00
Vadim Ushakov
2e1b0e093f TrackerZero: fix errors in actionStatsTrackerZero() 2019-07-14 18:26:38 +07:00
Vadim Ushakov
fee63a1ed2 TrackerZero: add the missing .onion suffix 2019-07-13 21:16:15 +07:00
Vadim Ushakov
142f5862df TrackerZero: ignore "announce" action if the plugin is disabled by its settings 2019-07-13 15:51:28 +07:00
Vadim Ushakov
de5a9ff67b TrackerShare: drop incomplete support of Bootstrapper, we now have TrackerZero, which is able to register its addresses by itself 2019-07-13 15:38:05 +07:00
Vadim Ushakov
d57deaa8e4 TrackerShare: ignore the udp:// protocol, when UDP is known to be disabled by the config 2019-07-13 15:36:05 +07:00
Vadim Ushakov
eb6d0c9644 TrackerZero: add missimg @helper.encodeResponse 2019-07-13 15:35:16 +07:00
Vadim Ushakov
a36b2c9241 TrackerZero: add support of persistent onion addresses 2019-07-13 02:34:07 +07:00
Vadim Ushakov
9a8519b487 TrackerZero: read settings from tracker-zero.json; register listened addresses in TrackerShare/AnnounceShare 2019-07-13 00:51:31 +07:00
Vadim Ushakov
f4708d9781 TrackerZero: add a separate class for not to run complicated code in overloaded methods 2019-07-12 15:44:23 +07:00
Vadim Ushakov
b7550474a5 TrackerZero: copy the Bootstrapper code to a new plugin TrackerZero 2019-07-12 01:48:52 +07:00
Vadim Ushakov
735061b79d Merge branch 'py3' into plugins 2019-07-12 01:28:32 +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
Vadim Ushakov
aa6d7a468d TrackerShare: store trackers in shared-trackers.json, since trackers.json is in use by AnnounceShare and may have an incompatible format in the future 2019-07-07 14:31:13 +07:00
Vadim Ushakov
6ee1db4197 TrackerList: fix a typo 2019-07-06 17:21:14 +07:00
Vadim Ushakov
37627822de TrackerList: make the plugin compatible with TrackerShare 2019-07-06 01:39:32 +07:00
Vadim Ushakov
d35a15d674 TrackerShare: don't delete "my" trackers on errors, but delete them on program restart; add "persistent" flag for manually added trackers 2019-07-06 01:15:37 +07:00
Vadim Ushakov
c8545ce054 TrackerShare: print the total number of discovered trackers at the end of discovery procedure 2019-07-05 23:41:23 +07:00
Vadim Ushakov
8f8e10a703 TrackerShare: Change the log level for several messages from debug to info
Increased the log level for messages that are not very annoying and help to keep the track of events.
2019-07-05 23:17:13 +07:00
Vadim Ushakov
33c81a89e9 TrackerShare: rename the config arguments to avoid the name clash with AnnounceShare's arguments
--working_shared_trackers_limit -> --shared_trackers_limit
--working_shared_trackers_limit_per_protocol -> --shared_trackers_limit_per_protocol

Also modify the help messages so that they were more consistent with how the code really works.
2019-07-05 19:38:00 +07:00
Vadim Ushakov
84526a6657 TrackerShare: raise the default limit per protocol limit from 2 to 4 2019-07-05 19:28:03 +07:00
Vadim Ushakov
3910338b28 Import plugin: TrackerList 2019-07-05 19:16:25 +07:00
Vadim Ushakov
b2e92b1d10 Import the redesigned AnnounceShare under the new name TrackerShare 2019-07-05 19:14:23 +07: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