Commit Graph

34 Commits

Author SHA1 Message Date
zefie
37f1ab67ad BREAKING CHANGES: (for SeCuRiTy):
By default:
- `ssid_sessions[socket.ssid]` is now `session_data`
- `require` is no longer allowed in user scripts

To access global `socket_sessions` and `ssid_sessions`, as well as `require` additional modules, you must set `privileged: true` for the specific service. See `config.json`.
2022-10-09 13:26:14 -04:00
zefie
dcd13d6ace another feature, another rabbit hole 2022-10-08 13:19:03 -04:00
zefie
9edccab487 add wtv-admin:/reloadconfig 2022-10-07 21:28:44 -04:00
zefie
86d8a09688 initial work on wtv-admin features 2022-10-07 19:31:05 -04:00
zefie
678418073a return configured service name in error message instead of "HackTV" 2022-10-02 01:34:53 -04:00
zefie
8f3ba3d49e silence warning in sanitizeSignature 2022-09-26 17:40:45 -04:00
zefie
ebd68a5265 add currently-unused function for possible workarounds 2022-09-22 15:50:29 -04:00
zefie
3376c3681f update sanitizeSignature function
- allow links to open services
- allow some html tag attributes
- probably need to add more whitelisted attributes
- no scripting allowed
2022-03-18 16:54:52 -04:00
zefie
701cd25b83 implement function for account-wide unread mail count 2022-03-09 17:38:16 -05:00
zefie
0f26cdfc70 add password filter feature
- add post_data filter feature
- finally figure out how to duplicate objects
2022-03-09 17:38:16 -05:00
zefie
f32c4b1926 fix DealerDemo and other stuff 2022-03-09 17:38:13 -05:00
zefie
445e28c91a implement internal shared ROMCache
- make most ROMCache URLS relative
- create wtvshared.htmlEntitize function
- update wtv-mail:/readmail to use wtvshared.htmlEntitize
2022-03-09 17:38:12 -05:00
zefie
0ed38ddf42 remove console.log testing from decodeBufferText 2022-03-09 17:38:12 -05:00
zefie
bc401765e8 remove iconv-lite module and accomplish the same failure with our own function 2022-03-09 17:38:11 -05:00
zefie
9a7d4ec035 signatures still need voodoo for bgcolor and such 2022-03-09 17:38:10 -05:00
zefie
51a0576a3e only embed signature if its html, otherwise just write it 2022-03-09 17:38:10 -05:00
zefie
06ea64fb07 more mail stuff again 2022-03-09 17:38:10 -05:00
zefie
123c8f7823 even more mail stuff 2022-03-09 17:38:09 -05:00
zefie
a09ca642ab remove unnecessary line 2022-03-09 17:38:08 -05:00
zefie
d14c4293aa post_data now logs as hex instead of raw WordArray 2022-03-09 17:38:08 -05:00
zefie
ee76fd5190 more mail stuff
- todo: alot, but mainly track new/read and get local working
2021-11-15 00:51:31 -05:00
zefie
2d7a540796 code cleanup 2021-11-02 16:46:41 -04:00
zefie
a1d3b5e184 fix bug where could not start if user_config.json did not exist 2021-10-31 17:32:54 -04:00
zefie
fdd2f16f3b breaking change: doErrorPage moved to wtvshared.doErrorPage
- but I fixed flashrom error handling..
- added a passthrough for old scripts
2021-08-16 08:12:27 -04:00
zefie
1967c076a9 add protection against requesting direct service files 2021-08-15 18:51:48 -04:00
zefie
f5e5289052 add function WTVShared.fixPathSlashes() 2021-08-13 17:01:23 -04:00
zefie
ab3edd3cdb parse system version as int so we can actually compare 2021-08-13 12:15:48 -04:00
zefie
059452aeb2 raise minimum build for compression 2021-08-13 12:09:57 -04:00
zefie
ce5b2eeb3d minibrowser theme thanks to MattMan
- remove TOS coz no one cares anyway
2021-08-13 03:54:19 -04:00
zefie
3133a83197 move some functions to WTVShared 2021-08-12 16:15:39 -04:00
zefie
0f0cc623c0 streaming output data with drain detection support
- other stuff x.x
2021-08-11 19:48:27 -04:00
zefie
95442a12af lots more stuff
- proper gzip download for disk system (aka WNI reinventing the Content-Encoding: gzip wheel)
- send Last-Modified for static files
- send wtv-checksum for all disk system downloads
- other fixes
2021-08-11 01:11:09 -04:00
zefie
3dd6e51832 hopefully fix POST for real
- main function still could use a rewrite
- more class branching and moving of functions
- Pass minisrv_config to classes
2021-08-10 21:41:34 -04:00
zefie
e9c883d85a too much to remember
- rewrote sync system yet again
- more classes
    - WTVShared class for shared functions
    - clientShowAlert class for easy client:showalert urls
- User File Store
    - Can upload with PUT commands in wtv-disk
    - Programmically access files with new functions in WTVClientSessionData
    - TODO: file browser
- other stuff I can't remember
2021-08-10 18:30:59 -04:00