Commit Graph

632 Commits

Author SHA1 Message Date
shortcutme bb7af2e8ed
Fix closing progress notification at 100% 2019-06-04 16:18:02 +02:00
shortcutme a2d29a4531
Only display sign error if there is no stored privatekey 2019-05-29 16:03:10 +02:00
shortcutme 589869c5ed
Move progress display to separate function 2019-05-29 16:02:34 +02:00
Lola Dam 7262fbfb4e Added optional redirect value for siteClone (#2032)
* Added optional redirect value; see #1891

* Return address of the newly cloned site
2019-05-28 18:05:52 +02:00
Lola Dam 9c0e8ee833 Better error message if private key not stored when assigning (#2033)
* Return a more instructive message in case the privatekey is not found when attempting to sign

* Fix typo
2019-05-28 18:04:49 +02:00
ZeroNet 25d6eea906
Merge pull request #2026 from imachug/js-modules
ECMAScript modules
2019-05-20 17:06:17 +02:00
ZeroNet 4e819ac035
Merge pull request #2025 from imachug/fileneed-timeout
Handle fileNeed timeout
2019-05-20 17:05:23 +02:00
Ivanq ed85981409 Fix JS modules 2019-05-19 15:45:34 +03:00
Ivanq 5d920ff7df Handle gevent.Timeout error 2019-05-19 15:42:11 +03:00
shortcutme 20371895c9
Rev4090, Remove fs paths from error responses 2019-05-02 18:02:56 +02:00
ZeroNet c2ab102c0e
Merge pull request #1999 from filips123/py3
Support for detection of system's theme
2019-04-29 16:35:55 +02:00
Ivanq 4f09a5111b Build wrapper all.js to support web notifications 2019-04-27 18:19:16 +03:00
Filip Š baf820bcdb Support for detection of system's theme 2019-04-26 18:23:25 +02:00
Ivanq 6e58e8d50f Don't require WebNotifications permission 2019-04-26 12:55:33 +03:00
Ivanq 9ddb984004 Rename Push notifications to Web notifications 2019-04-19 22:19:25 +03:00
Ivanq e618c0e9ef Add closePushNotification 2019-04-19 22:19:25 +03:00
Ivanq b55d2b53df Support Notification API 2019-04-19 22:19:25 +03: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
shortcutme bfc5e2dce6
Support live changing offline mode 2019-04-15 15:49:53 +02:00
shortcutme a7e8293d1a
Add offline mode info to server info 2019-04-15 15:49:34 +02:00
shortcutme 698f0cc230
Fix isServing check in site info formatting 2019-04-15 15:49:04 +02:00
shortcutme 996f326c74
Store if UiServer is running 2019-04-15 15:45:07 +02:00
shortcutme 43b68faf73
Merge Ui all.js 2019-04-15 15:44:04 +02:00
shortcutme 8429ad7db7
Use global ZeroNet-Internal url to access Websocket 2019-04-15 15:42:24 +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
shortcutme 0f72085c2a
Also return ws error to websocket connection 2019-04-12 15:03:43 +02:00
shortcutme 6ad8a10f37
Fix invalid ws request response value 2019-04-12 15:03:19 +02:00
shortcutme 58a4bf479c
Only send env details if in debug mode 2019-04-11 01:29:56 +02:00
shortcutme 1ce4f99b80
Send noscript header to error messages and OPTIONS request 2019-04-11 01:29:32 +02:00
shortcutme f94ecb3ec5
Fix error 404 on uimedia route 2019-04-11 01:28:00 +02:00
shortcutme a5c7e59601
Rev4054, Escape error detail to avoid XSS (reported by krzotr) 2019-04-11 00:37:55 +02:00
shortcutme 31372e269d
Give notification to all connected clients about ZeroNet update 2019-04-10 14:56:47 +02:00
shortcutme ac799a60da
Stop fs watcher with UiServer 2019-04-10 14:56:10 +02:00
shortcutme c7078be407
Always verify client update 2019-04-09 15:07:56 +02:00
shortcutme 718a00974b
Merge js 2019-04-09 15:06:33 +02:00
shortcutme d612676a80
Log closing websocket when updating event 2019-04-09 15:06:27 +02:00
shortcutme d097092e8e
Merge js 2019-04-08 18:15:02 +02:00
shortcutme 79eb6573be
Support listing bad files with API 2019-04-08 18:14:45 +02:00
shortcutme ffed8c9181
Add updatesite, dist_type, verify lib to serverinfo for admin sites 2019-04-08 18:14:31 +02:00
shortcutme ff8573635d
Limit max width of notification 2019-04-08 18:13:58 +02:00
shortcutme 643244ffd1
Less visible changed files notification number 2019-04-08 18:13:18 +02:00
redfish 1e1f967292 Ui: extend actionFile to accept pathlib.Path 2019-04-06 22:22:34 -04:00
tangdou1 42de962cbf
ipv6 compatibility 2019-04-03 19:56:14 +08:00
shortcutme bddf2d6537
Fix fileGet command 2019-03-29 02:31:14 +01:00
shortcutme 3d05bdcb63
Log file command errors 2019-03-29 02:31:05 +01:00
shortcutme 52e28eefce
Use lowercase filename for content type guess 2019-03-29 02:30:43 +01:00
shortcutme e92f3ea100
New watchdog module based file change watching 2019-03-16 02:42:43 +01:00
shortcutme a3ef3b34e1
Support multi-line notification 2019-03-16 00:01:52 +01:00
shortcutme 30e348f965
Remove empty line from wrapper template 2019-03-16 00:01:15 +01:00
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