Commit Graph

632 Commits

Author SHA1 Message Date
shortcutme 86087550f1
Log ConnectionResetError as warning 2019-10-28 16:44:14 +01:00
shortcutme 8dfc200f24
Update cachable type list 2019-10-28 16:43:37 +01:00
shortcutme cb4a4bd707
Add utf-8 charset header to more types 2019-10-28 16:43:19 +01:00
shortcutme 24ba2a150b
Remove limitations for img, font, media, style src in raw mode 2019-10-28 16:42:28 +01:00
shortcutme e1d92bf0ec
Changing allow-origin to js files looks no longer necessary 2019-10-28 16:41:55 +01:00
shortcutme 270f3e9ffd
Use host to check same origin if referrer looks trimmed to host 2019-10-28 16:41:08 +01:00
shortcutme e1f73697ff
Extend built-in content types list 2019-10-28 16:11:45 +01:00
shortcutme e82155aac4
Rev4245, Fix target=_blank links 2019-10-26 20:36:53 +02:00
shortcutme d7669413af
Log ConnectionAbortedError as warning 2019-10-26 20:17:09 +02:00
shortcutme 63fd0a9fa1
Put the infopanel lower to avoid console interruption 2019-10-06 03:21:35 +02:00
shortcutme 344ad44854
Fix reload if there is hash in the url 2019-10-06 03:20:58 +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 9dd5c88da4
Monospace font when displaying errors 2019-10-06 03:15:57 +02:00
shortcutme 0598bcf332
Fix utf8 post data parsing 2019-10-06 03:15:20 +02:00
shortcutme ead1b3e5f5
Log 403 as warning 2019-10-06 03:14:45 +02:00
shortcutme dd493c87fa
Display WSGI errors to the browser 2019-10-06 03:13:32 +02:00
shortcutme 29640e614c
Admin API call to list server errors 2019-10-06 03:12:47 +02:00
shortcutme 93e6ec4933
Fix display site add prompt 2019-09-19 16:32:30 +02:00
shortcutme 1793407748
Png and svg version of the logo 2019-09-15 22:12:03 +02:00
shortcutme 6f0d4a50d1
Add apple touch icon support for Safari 2019-09-15 22:11:51 +02:00
krzotr 55c7585334
Set custom priority in FileNeed and FileGet command
When you use `FileNeed` or `FileGet` command the default priority is set to `6`.
You cannot change that value because is hardcoded.

Now you can set priority of downloading files manually:

```
this.cmd("fileNeed", {
    "inner_path": inner_path + "|all",
    "priority": 10
})
```
2019-09-08 11:51:46 +02:00
Ivanq 5da4537d7c
Fix gevent.Timeout being not caught 2019-09-02 19:34:29 +00:00
shortcutme f999f167b1
Offer access with ip address on invalid host error 2019-09-02 02:10:52 +02:00
shortcutme 9ac96cdd50
Don't leak allowed origins in error message 2019-09-02 02:09:53 +02:00
shortcutme 376fd0d439
Use flags instead of permission list 2019-08-26 03:09:48 +02:00
shortcutme c414e6caa2
Support action async call flag 2019-08-26 03:08:57 +02:00
shortcutme ed7a3b2356
Get action permissions from flag db 2019-08-26 03:02:30 +02:00
shortcutme 248fc5f015
Use re.sub to replace template variables 2019-08-23 03:39:50 +02:00
shortcutme e16611f15a
Allow websocket connection originates from earlier accepted hostnames 2019-08-23 03:39:16 +02:00
Ivanq 24b3651d2e Allow blob: protocol (#2166)
* Allow blob: protocol

* Fix quotes
2019-08-20 12:42:01 +02:00
Ivanq 61ba9848e5 Add --merge_media config option 2019-08-20 08:16:35 +00:00
shortcutme 155d8d4dfd
Rev4188, Allow only white listed values for open_browser 2019-08-19 13:42:49 +02:00
shortcutme b871849df4
Add origin validation to websocket connections 2019-08-18 03:03:02 +02:00
shortcutme 92358bafc0
Wider max notification width to allow blacklist button in same line 2019-08-15 03:06:13 +02:00
shortcutme 39f318fbd5
Add plugin version information to server_info 2019-08-03 01:34:21 +02:00
shortcutme f40c3e6b81
Add notification messages max-width 2019-08-02 20:11:00 +02:00
shortcutme 26678a65f8
Limit notifications max with 2019-08-02 16:15:45 +02:00
Filip Š 5b91aef4ec
Add response to some commands 2019-08-01 19:16:10 +02:00
Filip Š 87b4500467 Fix infinite reloading when system theme changes 2019-07-05 18:43:54 +02:00
Ivanq 33b478199a
Guess content type correctly
Fix e.g. vue.min.js being reported as text/plain instead of text/javascript.
2019-07-04 12:09:07 +03:00
Ivanq 743f92d15e Allow some paths to contain .. but not ../ 2019-07-01 18:17:42 +03:00
shortcutme 40b84755de
Add some fixed content_type 2019-07-01 16:28:37 +02:00
shortcutme 1b307166ee
Formatting 2019-07-01 16:27:40 +02:00
shortcutme 7a483e7912
Add short address to site_info 2019-07-01 16:27:34 +02:00
shortcutme 841230fe80
Call onClosed function if websocket is disconneced 2019-07-01 16:27:20 +02:00
shortcutme 900ae4e1ea
Remove notification about port open status on startup 2019-07-01 16:26:57 +02:00
shortcutme 72b6d6c676
Make wrapper compatible with sidebar console function 2019-07-01 16:26:37 +02:00
shortcutme 62401b24ec
Add r string literal for regexps 2019-07-01 16:24:23 +02:00
Ivanq d278a30d19 Allow sites to lock pointer (#2059)
Add `allow-pointer-lock` to iframe sandbox
2019-06-30 16:39:17 +02:00
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