This commit is contained in:
ManeraKai 2023-09-17 19:38:07 +03:00
parent 6d422f803c
commit 1aa49d26e2
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
3 changed files with 15 additions and 15 deletions

View File

@ -5,14 +5,14 @@ section(class="option-block" id="general_page")
div(class="some-block option-block")
h4(data-localise="__MSG_theme__") Theme
select#theme
select(id="theme" aria-label="select theme")
option(value="detect" data-localise="__MSG_auto__") Auto
option(value="light" data-localise="__MSG_light__") Light
option(value="dark" data-localise="__MSG_dark__") Dark
div(class="some-block option-block")
h4(data-localise="__MSG_fetchPublicInstances__") Fetch public instances
select(id="fetch-instances")
select(id="fetch-instances" aria-label="Select fetch public instances")
option(value="github") GitHub
option(value="codeberg") Codeberg
option(value="disable" data-localise="__MSG_disable__") Disable
@ -23,13 +23,13 @@ section(class="option-block" id="general_page")
form(id="custom-exceptions-instance-form")
div(class="some-block option-block")
div(class="some-block" style="padding: 0")
input(id="exceptions-custom-instance" placeholder="https://www.google.com" type="url")
input(id="exceptions-custom-instance" placeholder="https://www.google.com" type="url" aria-label="Add url exception input")
| 
select(id="exceptions-custom-instance-type")
option(value="url") URL
option(value="regex") Regex
| 
button(class="add" id="exceptions-add-instance" type="submit")
button(class="add" id="exceptions-add-instance" type="submit" aria-label="Add the url exception")
svg(xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="currentColor")
path(d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z")

View File

@ -8,35 +8,35 @@ each val, service in services
div(class="some-block option-block")
h4(data-localise="__MSG_enable__") Enable
input(id=`${service}-enabled` type="checkbox")
input(id=`${service}-enabled` type="checkbox" aria-label="Enable checkbox")
div(class="some-block option-block")
h4(data-localise="__MSG_showInPopup__") Show in popup
input(id=service type="checkbox")
input(id=service type="checkbox" aria-label="Show in popup toggle")
div(id=service+"-opacity")
div(class="some-block option-block")
h4
a(class="frontend_name" target="_blank" data-localise="__MSG_frontend__") Frontend
select(id=service+"-frontend")
select(id=service+"-frontend" aria-label="Select frontend")
each val, frontend in services[service].frontends
option(value=frontend)=services[service].frontends[frontend].name
div(class="some-block option-block" id=service+"-instance-div")
h4() Instance
select(id=service+"-instance")
h4 Instance Type
select(id=service+"-instance" aria-label="Select Instance type")
option(value="localhost") localhost
option(value="public") public instances
div(class="some-block option-block")
h4(data-localise="__MSG_redirectType__") Redirect Type
select(id=service+"-redirectType")
select(id=service+"-redirectType" aria-label="Select redirect type")
div(id=service+"-embedFrontend-div" class="some-block option-block")
h4(data-localise="__MSG_embedFrontend__") Embed Frontend
select(id=service+"-embedFrontend")
select(id=service+"-embedFrontend" aria-label="Select embed frontend")
each val, frontend in services[service].frontends
if services[service].frontends[frontend].embeddable && services[service].frontends[frontend].instanceList
option(value=frontend)=services[service].frontends[frontend].name
@ -44,7 +44,7 @@ each val, service in services
div(class="some-block option-block")
h4(data-localise="__MSG_unsupportedIframesHandling__") Unsupported iframes handling
select(id=service+"-unsupportedUrls")
select(id=service+"-unsupportedUrls" aria-label="Select Unsupported iframes handling")
option(value="bypass") bypass
option(value="block") block
@ -62,8 +62,8 @@ each val, service in services
form(class="custom-instance-form")
div(class="some-block option-block")
input(class="custom-instance" type="url" placeholder="https://instance.com")
button(class="add add-instance" type="submit")
input(class="custom-instance" type="url" placeholder="https://instance.com" aria-label="Add instance input")
button(class="add add-instance" type="submit" aria-label="Add the instance")
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")

View File

@ -7,4 +7,4 @@ each _, service in services
else
img(src=`/assets/images/${service}-icon.${services[service].imageType}`)
h4=services[service].name
input(class=service + "-enabled" type="checkbox")
input(class=service + "-enabled" type="checkbox" aria-label=`${services[service].name} toggle`)