libredirect/src/pages/options/widgets/services.pug

60 lines
3.0 KiB
Plaintext
Raw Normal View History

2022-12-31 09:01:50 +01:00
each val, service in services
section(class="option-block" id=service+"_page")
div(class="some-block option-block")
h1
2023-01-19 18:32:32 +01:00
a(target="_blank" href=services[service].url)=services[service].name
2022-12-31 09:01:50 +01:00
hr
div(class="some-block option-block")
h4(data-localise="__MSG_enable__") Enable
input(id=`${service}-enabled` type="checkbox")
2022-12-31 09:01:50 +01:00
div(id=service+"-opacity")
2022-12-31 09:01:50 +01:00
div(class="some-block option-block")
h4(data-localise="__MSG_show_in_popup__") Show in Popup
input(id=service type="checkbox")
if Object.keys(services[service].frontends).length> 1
div(class="some-block option-block")
h4
a(class="frontend_name" target="_blank" data-localise="__MSG_frontend__") Frontend
select(id=service+"-frontend")
each val, frontend in services[service].frontends
option(value=frontend)=services[service].frontends[frontend].name
else
div(class="some-block option-block")
h4
a(class="frontend_name" target="_blank" data-localise="__MSG_frontend__") Frontend
if services[service].embeddable
div(class="some-block option-block")
h4(data-localise="__MSG_redirectType__") Redirect Type
select(id=service+"-redirectType")
option(value="both" data-localise="__MSG_both__") both
option(value="sub_frame" data-localise="__MSG_onlyEmbedded__") Only Embedded
option(value="main_frame" data-localise="__MSG_onlyNotEmbedded__") Only Not Embedded
hr
each val, frontend in services[service].frontends
if services[service].frontends[frontend].instanceList
div(id=frontend)
2022-12-31 09:01:50 +01:00
div(class="some-block option-block")
h4(data-localise="__MSG_instances__") Add your favorite instances
form(class="custom-instance-form")
div(class="some-block option-block")
input(class="custom-instance" placeholder=`http://${frontend}.com` type="url" )
button(class="add add-instance" type="submit")
svg(xmlns="https://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="currentColor")
path(d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z")
div(class="checklist custom-checklist")
each val, network in networks
div(class=network)
div(class="checklist")
if (network == 'clearnet')
div(class="some-block option-block") Loading...