v0.8.3
v0.8.0
Features
- Disable theme picker via
disable-picker: trueunderthemeconfig - Added
modfunction (modulo) to custom API widget - Added
safeHTMLfunction to custom API widget to prevent HTML escaping - Added
.Options.JSONto custom API widget for converting nested option values to JSON strings - Theme key now available on document root as
data-themeattribute for CSS-based theme styling
Fixes
- Fixed
HTTP_PROXYandHTTPS_PROXYenvironment variables not being respected - Fixed truncated links' hover text containing unnecessary whitespace
New
- Added the ability to disable the theme picker via
disable-picker: trueundertheme(thanks @NeoNyaa) - Added
modfunction (modulo) to the custom API widget (thanks @anant-j) - Added
safeHTMLfunction to the custom API widget which prevents HTML from being escaped (thanks @sudoexec) - Added
.Options.JSONto the custom API widget which takes any nested option value and turns it into a JSON string (thanks @ralphocdol)
View example
- type: custom-api
options:
request-body:
service: Session
method: login
params:
username: ${USERNAME}
password: ${PASSWORD}
# useful if you need to send JSON in a request body
template: |
...
| withStringBody (.Options.JSON "request-body")
...
- Added the theme key to the document root so that you can apply styles based on the selected theme (thanks @EricKotato)
View example
:root[data-theme="default-dark"] {
.color-primary-if-not-visited {
color: #ff0000;
}
}
:root[data-theme="default-light"] {
.color-primary-if-not-visited {
color: #00ff00;
}
}
:root[data-theme="your-theme-name"] {
.color-primary-if-not-visited {
color: #0000ff;
}
}
Fixes
- Fixed
HTTP_PROXYandHTTPS_PROXYenvironment variables not getting used (thanks @mazzz1y) - Fixed truncated links' hover text having unnecessary whitespace (thanks @ralphocdol)
Visit the release notes for v0.8.0 to learn about all new features