cleanup docs, remove border

This commit is contained in:
shamoon 2023-10-30 13:47:57 -07:00
parent d85d5e83dd
commit f8008d70cb
3 changed files with 8 additions and 12 deletions

View File

@ -3,7 +3,7 @@ title: iFrame
Description: Add a custom iFrame Widget Description: Add a custom iFrame Widget
--- ---
A basic iFrame widget to show external content, see the [MDN docs](ttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) for more details about some of the options. A basic iFrame widget to show external content, see the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) for more details about some of the options.
!!! warning !!! warning
@ -15,7 +15,7 @@ A basic iFrame widget to show external content, see the [MDN docs](ttps://develo
widget: widget:
type: iframe type: iframe
name: myIframe name: myIframe
src: "http://example.com" src: http://example.com
``` ```
## Full Example ## Full Example
@ -24,13 +24,12 @@ widget:
widget: widget:
type: iframe type: iframe
name: myIframe name: myIframe
src: "http://example.com" src: http://example.com
classes: "h-60 sm:h-60 md:h-60 lg:h-60 xl:h-60 2xl:h-72" # optional, use tailwind height classes, see https://tailwindcss.com/docs/height classes: h-60 sm:h-60 md:h-60 lg:h-60 xl:h-60 2xl:h-72 # optional, use tailwind height classes, see https://tailwindcss.com/docs/height
referrerPolicy: "same-origin" # optional, no default referrerPolicy: same-origin # optional, no default
allowPolicy: "autoplay fullscreen gamepad" # optional, no default allowPolicy: autoplay fullscreen gamepad # optional, no default
allowFullscreen: false # optional, default: true allowFullscreen: false # optional, default: true
loadingStrategy: "eager" # optional, default: "eager" loadingStrategy: eager # optional, default: eager
allowScrolling: "no" # optional, default: "yes" allowScrolling: no # optional, default: yes
border: 0 # optional, default: 1
refreshInterval: 2000 # optional, no default refreshInterval: 2000 # optional, no default
``` ```

View File

@ -373,7 +373,6 @@ export function cleanServiceGroups(groups) {
allowFullscreen, allowFullscreen,
loadingStrategy, loadingStrategy,
allowScrolling, allowScrolling,
border,
} = cleanedService.widget; } = cleanedService.widget;
let fieldsList = fields; let fieldsList = fields;
@ -429,7 +428,6 @@ export function cleanServiceGroups(groups) {
if (allowFullscreen) cleanedService.widget.allowFullscreen = allowFullscreen; if (allowFullscreen) cleanedService.widget.allowFullscreen = allowFullscreen;
if (loadingStrategy) cleanedService.widget.loadingStrategy = loadingStrategy; if (loadingStrategy) cleanedService.widget.loadingStrategy = loadingStrategy;
if (allowScrolling) cleanedService.widget.allowScrolling = allowScrolling; if (allowScrolling) cleanedService.widget.allowScrolling = allowScrolling;
if (border) cleanedService.widget.border = border;
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval; if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
} }
if (["opnsense", "pfsense"].includes(type)) { if (["opnsense", "pfsense"].includes(type)) {

View File

@ -39,7 +39,6 @@ export default function Component({ service }) {
referrerPolicy={widget?.referrerPolicy} referrerPolicy={widget?.referrerPolicy}
loading={widget?.loadingStrategy} loading={widget?.loadingStrategy}
scrolling={widget?.allowScrolling} scrolling={widget?.allowScrolling}
frameBorder={widget?.border}
style={{ style={{
scrollingDisableStyle, scrollingDisableStyle,
}} }}