Commit Graph

632 Commits

Author SHA1 Message Date
shortcutme b981ddadca
Encode error repose to bytes 2019-03-16 00:00:35 +01:00
shortcutme bcd721e2ef
Always display title if there is content.json file 2019-03-16 00:00:04 +01:00
shortcutme a96ff8399f
Open template as utf8 file 2019-03-15 23:59:30 +01:00
shortcutme 2f4dec45a6
Decode path as utf8 2019-03-15 23:58:18 +01:00
shortcutme b216e42397
Fix modified files checking 2019-03-15 23:57:30 +01:00
shortcutme 9b6c624554
Allow cloning if content.json update fails 2019-03-15 23:57:06 +01:00
shortcutme b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
shortcutme 511a5c0d1f
Nonce based CSP not supported in Safari yet 2019-02-16 23:49:10 +01:00
shortcutme bd649cfb33
Remove ui_server allowed http host learning 2019-02-14 15:49:10 +01:00
shortcutme 2829146598
Merge wrapper js, css 2019-02-09 13:56:21 +01:00
shortcutme b5ed158cc6
Fix closed display of infopanel if sidebar opened 2019-02-09 13:56:12 +01:00
shortcutme 7314f20563
Set number of changed files for closed infopanel 2019-02-09 13:55:53 +01:00
shortcutme 40f732cd48
Only show modified files notification if site is owned 2019-02-05 15:55:12 +01:00
shortcutme eb837e3685
Close button for site modified files notification 2019-02-05 15:54:32 +01:00
shortcutme 8ddfbf37c3
New siteSetSettingsValue to change site specific setting 2019-02-05 15:52:01 +01:00
shortcutme 39541fe348
Modified site source admin panel 2019-02-02 00:12:50 +01:00
shortcutme 259c5199d6
siteListModifiedFiles admin command 2019-02-02 00:11:47 +01:00
shortcutme 6e364ce4b9
Wait until site sync finished before cloning 2019-01-29 03:02:57 +01:00
shortcutme 89eb44f3ef
Spawn port check on separate thread when changing ip_external config value 2019-01-29 03:02:22 +01:00
shortcutme 5173597868
Remove empty lines from multi-line config values 2019-01-25 01:26:39 +01:00
shortcutme 86657529c9
Live update ip_external 2019-01-25 01:24:28 +01:00
shortcutme fb925745ba
Make notification compatible with latest noscript 2019-01-23 02:15:23 +01:00
shortcutme 271cb66c69
Fix port re-check 2019-01-23 02:14:31 +01:00
shortcutme 447f5fd5c8
Store opened port status per IP version 2019-01-23 02:11:31 +01:00
shortcutme ce78e330d3
Async serverPortcheck ZeroFrame API call 2019-01-23 02:07:11 +01:00
tangdou1 674b1efa0f
Fix a bug
there is no portCheck function
2019-01-21 10:46:06 +08:00
shortcutme cc3bb912be
Ipv6 support for adding peers by query string 2019-01-20 16:49:52 +01:00
shortcutme a574f3d173
Fix get settings of not visited site 2019-01-20 03:22:17 +01:00
shortcutme a0b60a8347
Apply log level changes 2019-01-10 14:10:07 +01:00
shortcutme 45add916f4
Rev3742, Move isIp to helper, fix inet_prton error 2018-12-19 13:15:59 +01:00
Andrew Morgan ca549cf081 Allow IP addresses via WebSocket API (#1819)
* Allow IP addresses via WebSocket API

* Switch to socket. Add host
2018-12-18 14:36:14 +01:00
shortcutme 86dd57d13e
Fix typo in comment 2018-12-15 17:47:34 +01:00
shortcutme 4fe6ae9811
Allow only SELECT in storage.query 2018-12-15 17:45:17 +01:00
shortcutme e4819c1753
Rev3738, More strict csp, No csp on Edge
Edge does not supports nonce on external scripts
2018-12-10 02:29:21 +01:00
shortcutme 5b50a113d1
Rev3735, certList admin command 2018-11-30 15:56:20 +01:00
shortcutme a1333d8d6b
Detailed log certSelect error messages 2018-11-26 00:08:22 +01:00
shortcutme 3dfb40b57e
Use redirect after cloning the site 2018-11-26 00:07:23 +01:00
shortcutme 316cd7710f
Use injectScript in certSelect 2018-11-26 00:07:08 +01:00
shortcutme cbefc5b81e
Merge wrapper js 2018-11-26 00:05:17 +01:00
shortcutme 233e161327
New injectScript and redirect command for UiServer 2018-11-26 00:05:04 +01:00
shortcutme 7cbbc33319
Expose script nonce for wrapper js obj 2018-11-26 00:04:06 +01:00
shortcutme 61cc0a1864
Add nonce attribute to all scripts in wrapper 2018-11-26 00:03:21 +01:00
shortcutme 99f01475a0
Disallow unknown script by using csp header for wrapper 2018-11-26 00:02:35 +01:00
shortcutme 06fbcde815
Fix setLocalStorage call before websocket connection 2018-11-21 03:32:12 +01:00
shortcutme da9af181dd
Support accepted_pattern for certSelect API call 2018-11-08 01:16:08 +01:00
shortcutme 9590dce8a4
Return ok for site clone, Fix typo in comment 2018-10-30 04:49:42 +01:00
shortcutme 5af77449fa
Move html variable replacement for new function, add site_modified variable, don't send length header for html files 2018-10-30 04:49:11 +01:00
shortcutme 2c39ab01ea
ZeroNet logo for fixbutton 2018-10-30 04:47:19 +01:00
shortcutme 5158a710dc
Rev3671, Fix theme with multiuser plugin 2018-10-20 13:34:49 +02:00
shortcutme b97acb3174
Dark theme for loading screen 2018-10-20 02:36:08 +02:00
shortcutme 451976c3c8
Support themeclass variable in html files 2018-10-20 02:35:48 +02:00
shortcutme 8e6494c451
Remove unused code, junk lines 2018-10-20 02:34:26 +02:00
shortcutme 3579f9e0c4
Support global user settings 2018-10-20 02:28:58 +02:00
shortcutme 0045206735
Merge UI js 2018-10-20 02:22:38 +02:00
shortcutme 7f46767411
Fix undefined in title 2018-10-20 02:22:29 +02:00
shortcutme 5414691f1f
Remove unnnecessary debug 2018-10-20 02:22:20 +02:00
shortcutme 13731fb094
Rename jquery easings file 2018-10-20 02:21:54 +02:00
ZeroNet 776e214789
Merge pull request #1690 from ZeroNetPlus/jquery
[Ready to be merged] Updated jQuery
2018-10-15 17:29:08 +02:00
shortcutme 2518867d50
Allow to also list connecting site with siteList API command 2018-10-15 12:58:14 +02:00
shortcutme 12dab27729
Skip tracker status with no value yet 2018-10-08 15:34:40 +02:00
Christian Seibold 2d437975a8
Add allow presentation to iframe
Allows zites to use the Presentation API
2018-10-07 20:01:30 -05:00
Daniell Mesquita a9502a11d6 Update jQuery easing
Signed-off-by: Daniell Mesquita <daniellplasmmer@gmail.com>
2018-10-07 15:03:11 -03:00
Daniell Mesquita 6aa502b1a5 Updated jQuery
Signed-off-by: Daniell Mesquita <daniellplasmmer@gmail.com>
2018-10-07 15:00:02 -03:00
shortcutme e46cb2f240
Fix content type indentification 2018-09-30 21:55:48 +02:00
shortcutme 9fee86df59
Always return lower cased content type 2018-09-30 21:54:50 +02:00
shortcutme 57f3cee390
Fix fileGet return when file is not existent 2018-09-07 11:33:57 +02:00
shortcutme 714aea2e27
RequestFullscreen API does not requires confirmation anymore as you can call it directly 2018-09-07 11:33:40 +02:00
shortcutme d3499e71ef
FileGet use return function instead of calling response 2018-09-06 00:56:36 +02:00
shortcutme c7d94548be
Support returning empty list as reponse 2018-09-06 00:55:54 +02:00
shortcutme b06ba06f40
Add timecorrection to server info 2018-09-05 14:33:31 +02:00
shortcutme dc52a8a08b
Use shared file_server object when generating server info for websocket 2018-09-05 14:33:21 +02:00
shortcutme a5c25ce438
Dont add removed trackers to announcer stats 2018-09-04 15:43:52 +02:00
shortcutme ecbf230293
Fix site update on non existent sites 2018-08-26 22:44:55 +02:00
shortcutme 839b63e389
Tracker stat skip data with no status information 2018-08-26 22:44:31 +02:00
shortcutme c5c3f7a667
Don't reannounce site if just added 2018-08-26 02:57:02 +02:00
shortcutme b2ea4c758d
Handle error on file listing API calls 2018-08-16 16:22:17 +02:00
shortcutme 7954caf957
Force reannounce not yet download site on refresh 2018-07-19 20:42:53 +02:00
shortcutme 6e1f4fada9
Rev3537, Allow to add peers to site with get request 2018-07-17 02:09:14 +02:00
shortcutme d772280147
Global announcer statistics admin API call 2018-07-16 01:48:27 +02:00
shortcutme e001448adb
Add config link to loading screen 2018-07-10 03:43:57 +02:00
shortcutme 3041064d21
Reload trackers file on value change 2018-07-10 03:43:31 +02:00
shortcutme 30134dbbc9
Store API changeable configuration keys in Config.py 2018-07-10 03:40:56 +02:00
shortcutme 4208885e36
Store pending configuration values 2018-07-10 03:39:33 +02:00
shortcutme 656f48b354
Support open_browser disable even if it's started with start.py 2018-07-10 03:37:38 +02:00
shortcutme 68eb9a37ca
Strip ending / character when using url as function name 2018-07-10 03:36:09 +02:00
shortcutme 5aab10fab2
Support client restart without updating 2018-07-10 03:28:02 +02:00
shortcutme 77aa23a375
Make UiWebsocket admin_commands and async_commands class variables for easier extension 2018-07-10 03:24:34 +02:00
shortcutme 8775222a61
Add missing word to websocket error message 2018-06-29 14:18:27 +02:00
shortcutme 3aebdae305
Log last announce time on force announce 2018-06-29 14:18:09 +02:00
shortcutme 1ca2b40bf9
Fix IE Edge compatibility on notification button clicks 2018-06-28 02:39:46 +02:00
shortcutme ff85241962
More detailed not supported browser error message 2018-06-28 02:39:20 +02:00
shortcutme c7a8a3933e
Display standard http error instead of exception on path security error 2018-06-25 14:28:42 +02:00
shortcutme df0562d6b4
Make sure to sanitize request url 2018-06-25 14:23:38 +02:00
shortcutme 9afc39d5f1
Add signing parameters to sitePublish 2018-06-25 14:22:24 +02:00
shortcutme 4a1c4df861
Prefer PEP8 style 2018-06-25 14:13:05 +02:00
shortcutme b054ed6e03
SiteAdd admin API call 2018-06-25 14:12:13 +02:00
shortcutme da64785ea4
Only announce site on http request if not paused 2018-06-21 21:57:25 +02:00
shortcutme d125551c0d
Proritize currently requested site update 2018-06-03 12:46:00 +02:00
ZeroNet 22d6a32e4e
Merge pull request #1445 from JeremyRand/trans-proxy
Support accessing ZeroNet via a transparent proxy.
2018-06-02 17:52:12 +02:00
JeremyRand 4ffd642732
Support accessing ZeroNet via a transparent proxy. 2018-06-02 12:17:10 +00:00
JeremyRand f7f6b15ef1
Fix 403 error when listening on 127.0.0.1:80. 2018-06-02 10:24:00 +00:00
shortcutme 2bd69b2681
Force reannounce to all trackers after meek bridges enabled 2018-04-29 14:53:31 +02:00
shortcutme 81ec684025
Show tracker error message on high error percentage 2018-04-29 13:06:07 +02:00
shortcutme 595b2e40d9
Merge ui js, css 2018-04-28 22:08:43 +02:00
shortcutme 9d09401dc1
Rename Permisson Grant to Accept 2018-04-28 22:08:34 +02:00
shortcutme d9ad3ae2c9
Disabled button formatting 2018-04-28 22:05:51 +02:00
shortcutme 26cb600ae3
Display tor bridge enable button if all tracker connection fails 2018-04-28 22:05:38 +02:00
shortcutme 435210b73c
Add tracker info to loading screen 2018-04-28 22:04:58 +02:00
shortcutme 8dc465f244
Don't readd wrapper_nonce of site size error as we generate a new one on reload 2018-04-28 22:02:29 +02:00
shortcutme 8e708dc02a
Log wrapper nonce errors 2018-04-28 22:02:10 +02:00
shortcutme b53b6723cc
Allow tor_use_bridges and trackers_proxy to be set with configSet 2018-04-28 22:01:48 +02:00
shortcutme af4b4ae85c
Get new wrapper nonce API command to proper reload iframe content 2018-04-28 22:01:12 +02:00
shortcutme 0e84bf95da
AnnouncerInfo API command for tracker status 2018-04-28 22:00:15 +02:00
shortcutme 8e93470b94
Add tor bridge info to serverinfo 2018-04-28 21:59:39 +02:00
shortcutme 7cdb1caaf2
Fix websocket sending on error 2018-04-28 21:59:27 +02:00
shortcutme bf346a6ed1
AnnouncerChanges event channel for websocket for tracker changes 2018-04-28 21:59:12 +02:00
shortcutme 79b89f8a1b
Don't create new user on websocket event 2018-04-18 22:06:58 +02:00
shortcutme 3beab611a3
Rev3415, Fix FireFox wrapper_nonce url injection 2018-04-18 21:40:29 +02:00
shortcutme 82e6bc5d31
Use websocket connection instead of fileserver to execute commands from CLI 2018-04-03 14:49:40 +02:00
shortcutme b1240426cd
For 3d rending to progress bar 2018-03-29 02:44:00 +02:00
shortcutme 30ab2cf9a7
Transform progressbar with scale instead of changing width 2018-03-29 02:42:57 +02:00
shortcutme 0c985a5fda
Use current user cert to query file rules for non-existent files 2018-03-29 02:41:30 +02:00
shortcutme d275dfea2f
Log 403 error as error 2018-03-20 21:55:45 +01:00
shortcutme 11d8485399
Move file modification permission check to separate function 2018-03-20 21:55:12 +01:00
shortcutme 6b926b12a4
Don't try to delete optional file twice on fileDelete API command 2018-03-20 21:54:33 +01:00
shortcutme 9adec79401
Formatting 2018-03-20 21:53:39 +01:00
shortcutme ccdfe77356
Display more detailed info on content sign error 2018-03-18 21:27:04 +01:00
shortcutme 738fd1a09b
Rev3354, Fix ajax loading files from archives 2018-03-09 15:01:45 +01:00
shortcutme 7048987157
Rev3351, Fix sites with utf8 title 2018-03-07 10:23:13 +01:00
shortcutme e03731fd24
Allow html formatting in wrapper prompt display 2018-03-07 03:10:13 +01:00
shortcutme e87df8a57a
NOSANDBOX is as dangerous as ADMIN command 2018-03-06 12:09:39 +01:00
shortcutme 982fb27f58
Close notification on input enter 2018-03-06 12:07:07 +01:00
shortcutme 16efba2b91
Merge wrapper js 2018-03-06 12:03:10 +01:00
shortcutme e93b5c3c1c
Create wrapper html tags based on attributes instead of raw html 2018-03-06 12:02:39 +01:00
shortcutme 9dabd1f344
Wrapper escape apos characters 2018-03-06 12:01:39 +01:00
shortcutme e96dd14e0d
Display wrapper security errors and fix Firefox navigation blank pages 2018-03-06 12:01:21 +01:00
shortcutme 3e970df09b
Simple replace wrapper template variables instead of python formatting to allow use braces 2018-03-06 12:00:30 +01:00
shortcutme b0a8c4d278
Change http headers from list to dict 2018-03-06 11:58:56 +01:00
shortcutme bda31aea59
Rev3337, Fix big site download button 2018-02-22 23:34:18 +01:00
shortcutme 40693471e9
Merge sidebar and wrapper js 2018-02-21 03:15:04 +01:00
shortcutme b57a9f5c58
Make cert selection compatible with wrapper modifications 2018-02-21 03:13:27 +01:00
shortcutme 6afe2dd720
New NOSANDBOX permission to remove sandboxed iframe restrictions 2018-02-21 03:12:51 +01:00
shortcutme aef3ecc3f2
Stop page load if opener is present 2018-02-21 03:11:50 +01:00
shortcutme 01ce86ce18
Don't display permission request if site already has 2018-02-21 03:10:23 +01:00
shortcutme 99362c78bf
Move handleMessage to separate function 2018-02-21 03:09:48 +01:00
shortcutme c0bf9a9a76
Add cmd function to Wrapper 2018-02-21 03:09:36 +01:00
shortcutme 1833b3e89f
Remove logging injected html 2018-02-21 03:09:01 +01:00
shortcutme 6b71f91775
Verify mouse and keyboard events to avoid non-user verification on notification prompts 2018-02-21 03:08:52 +01:00
shortcutme 5275988f37
Move isProxyRequest and gotoSite to minimal ZeroFrame wrapper 2018-02-21 03:06:48 +01:00
shortcutme 93162beaa0
Allow to set get parameter to reload 2018-02-21 03:06:21 +01:00
shortcutme 61699c7477
Allow small tag in messages 2018-02-21 03:05:11 +01:00
shortcutme a1a2434d98
Rename wrapper onLoad to onPageLoad 2018-02-21 03:05:02 +01:00
shortcutme fd56ddaa54
Remove wrapper object reference before loading iframe to enhance security 2018-02-21 03:03:01 +01:00
shortcutme c438b9f8a5
Create a restricted ZeroFrame wrapper 2018-02-21 03:02:00 +01:00
shortcutme 62ecc1cbc1
Rename Unique to site to No certificate 2018-02-18 05:46:49 +01:00
shortcutme 9f35efc31d
Revert "Version 0.6.2, Rev3310"
This reverts commit 98c6add637.
2018-02-09 11:39:36 +01:00
shortcutme 98c6add637
Version 0.6.2, Rev3310 2018-02-08 18:16:50 +01:00
shortcutme bc09b6280b
Add index.html as default inner_path to uirequest 2018-01-30 14:29:38 +01:00
shortcutme 56e80f7c0c
Add per-cmd site permission query 2018-01-28 16:41:42 +01:00
shortcutme 0c6c7d2725
Rev 3222, Use eval in bench for older pytyhon compatibility, Remove unnecessary print from chart archive 2018-01-20 11:49:17 +01:00
shortcutme dedf6cd92f
Support initial calls for console bench function 2018-01-19 02:32:44 +01:00
shortcutme 8f34afc630
Send websocket update on site limit change 2017-12-15 12:13:35 +01:00
shortcutme 1ac69ae315
New UiWebsocket API command to run commands as other site 2017-12-15 12:13:19 +01:00
shortcutme 8a331e7400
UiWebsocket handleRequest takes parsed request intead of raw message 2017-12-15 12:11:27 +01:00
shortcutme 51fdf95295
Allow ajax ranged requests 2017-12-07 15:25:32 +01:00
shortcutme 0009b1b7d1
Allow site fullscreen functions 2017-12-07 15:23:51 +01:00
shortcutme 1208294747
Remove unused variable, more clear comment on state object 2017-12-02 15:35:32 +01:00
shortcutme 3de182a4ed
Rev3157, Fix websocket utf8 error when requesting files from different sites at the same time 2017-12-02 15:31:36 +01:00
shortcutme cfeb2797e3
Merge wrapper js 2017-11-29 13:48:30 +01:00
shortcutme 06a50b189d
Use empty placeholder if not specified 2017-11-29 13:48:20 +01:00
shortcutme 7c1a4e353d
Allow inject html command from ui server 2017-11-29 13:48:07 +01:00
shortcutme 7962baa2da
Also join to serverChanged channel by default 2017-11-05 23:42:33 +01:00
shortcutme 6f37654303
Send serverChanged event on server_info changes 2017-11-05 23:42:14 +01:00
shortcutme 2781e31be0
Keep track of websocket connections 2017-11-05 23:40:59 +01:00
shortcutme b39d86d020
serverChanged channel 2017-11-05 23:37:53 +01:00
shortcutme 754a3db1b9
Allow multiple channel joins by one command 2017-11-05 23:37:32 +01:00
shortcutme c3250378ee
Rev3128, Allow modals for sites 2017-10-30 15:15:40 +01:00
shortcutme 9d4515954b
Rev3127, Fix UiWebsocket async message response skip 2017-10-29 23:39:36 +01:00
shortcutme 604792a4dd
Call response function for return values of UiWebsocket actions 2017-10-26 10:40:02 +02:00
shortcutme ed965041e6
Report progress on GeoLite2 download 2017-10-21 11:01:57 +02:00
shortcutme d50603f722
Rev3114, Add details to permission requests 2017-10-17 17:02:56 +02:00
shortcutme 75cf8bbb0a
Change arument order of siteSign API call 2017-10-16 15:11:43 +02:00
shortcutme 4042de460e
actionFile allows file details to be passed as parameter 2017-10-04 12:46:06 +02:00
shortcutme 0dd34403a2
Combinate isfile and filesize query to one function 2017-10-04 12:44:34 +02:00
shortcutme edb9d3f719
Media files requested from non-seeded site not wokring anymore 2017-10-04 12:42:05 +02:00
shortcutme 1f5db0aa24
Nonce checking moved to route command 2017-10-04 12:41:14 +02:00
shortcutme 74b2408668
Move path checking to parsePath 2017-10-04 12:39:08 +02:00
shortcutme f53612bef7
Media request should start with normal characters 2017-10-04 12:38:44 +02:00
shortcutme 4d991cda6d
Also serve htm files with wrapper 2017-10-04 12:37:56 +02:00
shortcutme 6984575901
Remove dead reload code 2017-10-04 12:37:34 +02:00
shortcutme 75b44f6980
Raise SecurityError on invalid path 2017-10-04 12:37:22 +02:00
shortcutme 3c46f60042
Show wrapper automatically if wrapper nonce is invalid 2017-10-04 12:35:15 +02:00
shortcutme 7dbc323f76
ZeroNet-internal virtual path on UiServer for internal commands 2017-10-04 12:33:43 +02:00
shortcutme 903b62ba7c
Make fileNeed API command async 2017-10-04 12:32:40 +02:00
shortcutme 53da40fe5d
Allow to show site directory in local file browser 2017-10-04 12:31:57 +02:00
ZeroNet 27a9ea78b8 Merge pull request #1122 from imachug/siteclone
Allow siteClone for non-admin sites
2017-09-22 11:01:43 +02:00
Ivanq 7fa019321c Check site before cloning 2017-09-22 08:28:39 +03:00
Ivanq f98f52a50e Allow siteClone not for admin sites 2017-09-22 08:24:18 +03:00
ZeroNet bc71555a73 Merge pull request #1070 from anoadragon453/small_gram_fix
Small English grammer fixes
2017-09-21 13:46:11 +02:00
Ivanq db339eecd3 Allow 'backup' or 'log' as directories 2017-09-16 21:57:20 +03:00