fix: formatter

This commit is contained in:
egarette@silique.fr 2025-05-05 19:05:46 +02:00
parent 89564ccbb3
commit fec773d8e5
58 changed files with 268 additions and 116 deletions

View file

@ -1,2 +1,4 @@
%YAML 1.2
--- ---
proxy_mode: proxy_mode:
...

View file

@ -1,3 +1,5 @@
%YAML 1.2
--- ---
proxy_mode: proxy_mode:
description: Configure Proxy Access to the Internet description: Configure Proxy Access to the Internet
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
--- ---
proxy_mode: proxy_mode:
description: Configure Proxy Access to the Internet description: Configure Proxy Access to the Internet
default: No proxy default: No proxy
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
proxy_mode: proxy_mode:
description: Configure Proxy Access to the Internet description: Configure Proxy Access to the Internet
@ -9,3 +10,4 @@ proxy_mode:
- Manual proxy configuration - Manual proxy configuration
- Automatic proxy configuration URL - Automatic proxy configuration URL
default: No proxy default: No proxy
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
proxy_mode: proxy_mode:
description: Configure Proxy Access to the Internet description: Configure Proxy Access to the Internet
@ -8,3 +9,4 @@ proxy_mode:
- Manual proxy configuration - Manual proxy configuration
- Automatic proxy configuration URL - Automatic proxy configuration URL
default: No proxy default: No proxy
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
type: family type: family
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
@ -6,3 +7,4 @@ manual:
http_proxy: http_proxy:
description: HTTP Proxy description: HTTP Proxy
type: family type: family
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
@ -9,3 +10,4 @@ manual:
address: address:
description: HTTP address description: HTTP address
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
@ -7,3 +8,4 @@ manual:
address: address:
description: HTTP address description: HTTP address
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
@ -8,3 +9,4 @@ manual:
address: address:
description: HTTP address description: HTTP address
type: domainname type: domainname
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
@ -10,3 +11,4 @@ manual:
type: domainname type: domainname
params: params:
allow_ip: true allow_ip: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
@ -15,3 +16,4 @@ manual:
description: HTTP Port description: HTTP Port
type: port type: port
default: 8080 default: 8080
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
@ -16,3 +17,4 @@ manual:
description: HTTP Port description: HTTP Port
type: port type: port
default: 8080 default: 8080
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
@ -19,3 +20,4 @@ manual:
description: HTTP Port description: HTTP Port
type: port type: port
default: 8080 default: 8080
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
@ -18,3 +19,4 @@ manual:
description: HTTP Port description: HTTP Port
type: port type: port
default: 8080 default: 8080
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -5,3 +6,4 @@ manual:
description: Also use this proxy for HTTPS description: Also use this proxy for HTTPS
type: boolean type: boolean
default: true default: true
...

View file

@ -1,6 +1,8 @@
%YAML 1.2
--- ---
manual: manual:
use_for_https: use_for_https:
description: Also use this proxy for HTTPS description: Also use this proxy for HTTPS
default: true default: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -18,3 +19,4 @@ manual:
description: HTTPS Port description: HTTPS Port
type: port type: port
default: 8080 default: 8080
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -19,3 +20,4 @@ manual:
description: HTTPS Port description: HTTPS Port
type: port type: port
default: 8080 default: 8080
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -20,3 +21,4 @@ manual:
description: HTTPS Port description: HTTPS Port
type: port type: port
default: 8080 default: 8080
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -23,3 +24,4 @@ manual:
type: port type: port
default: default:
variable: manual.http_proxy.port variable: manual.http_proxy.port
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -19,3 +20,4 @@ manual:
description: HTTPS Port description: HTTPS Port
default: default:
variable: manual.http_proxy.port variable: manual.http_proxy.port
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -22,3 +23,4 @@ manual:
description: "{{ identifier }} port" description: "{{ identifier }} port"
default: default:
variable: manual.http_proxy.port variable: manual.http_proxy.port
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -25,3 +26,4 @@ manual:
description: "{{ identifier }} port" description: "{{ identifier }} port"
default: default:
variable: manual.http_proxy.port variable: manual.http_proxy.port
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -28,3 +29,4 @@ manual:
description: "{{ identifier }} port" description: "{{ identifier }} port"
default: default:
variable: manual.http_proxy.port variable: manual.http_proxy.port
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -30,3 +31,4 @@ manual:
description: "{{ identifier }} port" description: "{{ identifier }} port"
default: default:
variable: manual.http_proxy.port variable: manual.http_proxy.port
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -40,3 +41,4 @@ manual:
disabled: disabled:
type: identifier type: identifier
when: 'HTTPS' when: 'HTTPS'
...

View file

@ -1,9 +1,10 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
disabled: disabled:
variable: proxy_mode variable: proxy_mode
when_not: 'Manual proxy configuration' when_not: Manual proxy configuration
http_proxy: # HTTP Proxy http_proxy: # HTTP Proxy
@ -17,3 +18,4 @@ manual:
description: HTTP Port description: HTTP Port
type: port type: port
default: 8080 default: 8080
...

View file

@ -1,31 +1,32 @@
%YAML 1.2
--- ---
manual: manual:
use_for_https: true # Also use this proxy for HTTPS use_for_https: true # Also use this proxy for HTTPS
"{{ identifier }}_proxy": '{{ identifier }}_proxy':
description: "{{ identifier }} Proxy" description: '{{ identifier }} Proxy'
dynamic:
- HTTPS
- SOCKS
hidden: hidden:
jinja: | jinja: |-
{% if my_identifier == 'HTTPS' and manual.use_for_https %} {% if my_identifier == 'HTTPS' and manual.use_for_https %}
HTTPS is same has HTTP HTTPS is same has HTTP
{% endif %} {% endif %}
description: |
in HTTPS case if "manual.use_for_https" is set to True
params: params:
my_identifier: my_identifier:
type: identifier type: identifier
description: | dynamic:
in HTTPS case if "manual.use_for_https" is set to True - HTTPS
- SOCKS
address: address:
description: "{{ identifier }} address" description: '{{ identifier }} address'
default: default:
variable: manual.http_proxy.address variable: manual.http_proxy.address
port: port:
description: "{{ identifier }} port" description: '{{ identifier }} port'
default: default:
variable: manual.http_proxy.port variable: manual.http_proxy.port
@ -37,4 +38,5 @@ manual:
default: v5 default: v5
disabled: disabled:
type: identifier type: identifier
when: 'HTTPS' when: HTTPS
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
--- ---
auto: auto:
description: Automatic proxy configuration URL description: Automatic proxy configuration URL
type: web_address type: web_address
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
auto: auto:
description: Automatic proxy configuration URL description: Automatic proxy configuration URL
@ -5,3 +6,4 @@ auto:
disabled: disabled:
variable: proxy_mode variable: proxy_mode
when_not: Automatic proxy configuration URL when_not: Automatic proxy configuration URL
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
--- ---
no_proxy: no_proxy:
description: Address for which proxy will be desactivated description: Address for which proxy will be desactivated
type: "domainname" type: domainname
params: params:
allow_ip: true allow_ip: true
allow_cidr_network: true allow_cidr_network: true
@ -10,3 +11,4 @@ no_proxy:
disabled: disabled:
variable: proxy_mode variable: proxy_mode
when: No proxy when: No proxy
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
--- ---
no_proxy: no_proxy:
description: Address for which proxy will be desactivated description: Address for which proxy will be desactivated
type: "domainname" type: domainname
params: params:
allow_ip: true allow_ip: true
allow_cidr_network: true allow_cidr_network: true
@ -11,3 +12,4 @@ no_proxy:
disabled: disabled:
variable: proxy_mode variable: proxy_mode
when: No proxy when: No proxy
...

View file

@ -1,7 +1,8 @@
%YAML 1.2
--- ---
no_proxy: no_proxy:
description: Address for which proxy will be desactivated description: Address for which proxy will be desactivated
type: "domainname" type: domainname
params: params:
allow_ip: true allow_ip: true
allow_cidr_network: true allow_cidr_network: true
@ -12,3 +13,4 @@ no_proxy:
disabled: disabled:
variable: proxy_mode variable: proxy_mode
when: No proxy when: No proxy
...

View file

@ -1,7 +1,12 @@
%YAML 1.2
--- ---
no_proxy: no_proxy:
description: Address for which proxy will be desactivated description: Address for which proxy will be desactivated
type: "domainname" examples:
- .mozilla.org
- .net.nz
- 192.168.1.0/24
type: domainname
params: params:
allow_ip: true allow_ip: true
allow_cidr_network: true allow_cidr_network: true
@ -12,7 +17,4 @@ no_proxy:
disabled: disabled:
variable: proxy_mode variable: proxy_mode
when: No proxy when: No proxy
examples: ...
- .mozilla.org
- .net.nz
- 192.168.1.0/24

View file

@ -1,7 +1,13 @@
%YAML 1.2
--- ---
no_proxy: no_proxy:
description: Address for which proxy will be desactivated description: Address for which proxy will be desactivated
type: "domainname" help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied
examples:
- .mozilla.org
- .net.nz
- 192.168.1.0/24
type: domainname
params: params:
allow_ip: true allow_ip: true
allow_cidr_network: true allow_cidr_network: true
@ -12,8 +18,4 @@ no_proxy:
disabled: disabled:
variable: proxy_mode variable: proxy_mode
when: No proxy when: No proxy
examples: ...
- .mozilla.org
- .net.nz
- 192.168.1.0/24
help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
prompt_authentication: prompt_authentication:
description: Prompt for authentication if password is saved description: Prompt for authentication if password is saved
@ -5,3 +6,4 @@ prompt_authentication:
disabled: disabled:
variable: proxy_mode variable: proxy_mode
when: No proxy when: No proxy
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
--- ---
proxy_dns_socks5: proxy_dns_socks5:
description: Use proxy DNS when using SOCKS v5 description: Use proxy DNS when using SOCKS v5
default: false default: false
...

View file

@ -1,14 +1,16 @@
%YAML 1.2
--- ---
proxy_dns_socks5: proxy_dns_socks5:
description: Use proxy DNS when using SOCKS v5 description: Use proxy DNS when using SOCKS v5
default: false default: false
disabled: disabled:
jinja: | jinja: |-
{% if manual.socks_proxy.version is propertyerror %} {% if manual.socks_proxy.version is propertyerror %}
the proxy mode is not manual the proxy mode is not manual
{% elif manual.socks_proxy.version == 'v4' %} {% elif manual.socks_proxy.version == 'v4' %}
socks version is v4 socks version is v4
{% endif %} {% endif %}
description: | description: |
if "firefox.proxy_mode" is not "Manual proxy configuration" if "firefox.proxy_mode" is not "Manual proxy configuration"
or "firefox.manual.socks_proxy.version" is "v4" or "firefox.manual.socks_proxy.version" is "v4"
...

View file

@ -1,15 +1,17 @@
%YAML 1.2
--- ---
proxy_dns_socks5: proxy_dns_socks5:
description: Use proxy DNS when using SOCKS v5 description: Use proxy DNS when using SOCKS v5
default: false
mode: advanced mode: advanced
default: false
disabled: disabled:
jinja: | jinja: |-
{% if manual.socks_proxy.version is propertyerror %} {% if manual.socks_proxy.version is propertyerror %}
the proxy mode is not manual the proxy mode is not manual
{% elif manual.socks_proxy.version == 'v4' %} {% elif manual.socks_proxy.version == 'v4' %}
socks version is v4 socks version is v4
{% endif %} {% endif %}
description: | description: |
if "firefox.proxy_mode" is not "Manual proxy configuration" if "firefox.proxy_mode" is not "Manual proxy configuration"
or "firefox.manual.socks_proxy.version" is "v4" or "firefox.manual.socks_proxy.version" is "v4"
...

View file

@ -1,4 +1,6 @@
%YAML 1.2
--- ---
dns_over_https: # DNS over HTTPS dns_over_https: # DNS over HTTPS
enable_dns_over_https: false # Enable DNS over HTTPS enable_dns_over_https: false # Enable DNS over HTTPS
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
dns_over_https: # DNS over HTTPS dns_over_https: # DNS over HTTPS
@ -13,3 +14,4 @@ dns_over_https: # DNS over HTTPS
disabled: disabled:
variable: dns_over_https.enable_dns_over_https variable: dns_over_https.enable_dns_over_https
when: false when: false
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
dns_over_https: # DNS over HTTPS dns_over_https: # DNS over HTTPS
@ -18,8 +19,9 @@ dns_over_https: # DNS over HTTPS
description: Custom DNS URL description: Custom DNS URL
type: web_address type: web_address
disabled: disabled:
jinja: | jinja: |-
{% if dns_over_https.provider is propertyerror or dns_over_https.provider != 'Custom' %} {% if dns_over_https.provider is propertyerror or dns_over_https.provider != 'Custom' %}
provider is not custom provider is not custom
{% endif %} {% endif %}
description: if "dns_over_https.provider" is not "Custom" description: if "dns_over_https.provider" is not "Custom"
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
dns_over_https: # DNS over HTTPS dns_over_https: # DNS over HTTPS
@ -17,15 +18,16 @@ dns_over_https: # DNS over HTTPS
custom_dns_url: custom_dns_url:
description: Custom DNS URL description: Custom DNS URL
type: web_address type: web_address
disabled:
jinja: |
{% if dns_over_https.provider is propertyerror or dns_over_https.provider != 'Custom' %}
provider is not custom
{% endif %}
description: if "dns_over_https.provider" is not "Custom"
validators: validators:
- jinja: | - jinja: |-
{% if dns_over_https.custom_dns_url.startswith('http://') %} {% if dns_over_https.custom_dns_url.startswith('http://') %}
only https is allowed only https is allowed
{% endif %} {% endif %}
description: must starts with 'https://' only description: must starts with 'https://' only
disabled:
jinja: |-
{% if dns_over_https.provider is propertyerror or dns_over_https.provider != 'Custom' %}
provider is not custom
{% endif %}
description: if "dns_over_https.provider" is not "Custom"
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
proxy_mode: proxy_mode:
description: Configure Proxy Access to the Internet description: Configure Proxy Access to the Internet
@ -8,3 +9,4 @@ proxy_mode:
- Manual proxy configuration - Manual proxy configuration
- Automatic proxy configuration URL - Automatic proxy configuration URL
default: No proxy default: No proxy
...

View file

@ -1,9 +1,10 @@
%YAML 1.2
--- ---
manual: manual:
description: Manual proxy configuration description: Manual proxy configuration
disabled: disabled:
variable: _.proxy_mode variable: _.proxy_mode
when_not: 'Manual proxy configuration' when_not: Manual proxy configuration
http_proxy: # HTTP Proxy http_proxy: # HTTP Proxy
@ -17,3 +18,4 @@ manual:
description: HTTP Port description: HTTP Port
type: port type: port
default: 8080 default: 8080
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
manual: manual:
@ -38,3 +39,4 @@ manual:
disabled: disabled:
type: identifier type: identifier
when: 'HTTPS' when: 'HTTPS'
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
auto: auto:
description: Automatic proxy configuration URL description: Automatic proxy configuration URL
@ -5,3 +6,4 @@ auto:
disabled: disabled:
variable: _.proxy_mode variable: _.proxy_mode
when_not: Automatic proxy configuration URL when_not: Automatic proxy configuration URL
...

View file

@ -1,7 +1,13 @@
%YAML 1.2
--- ---
no_proxy: no_proxy:
description: Address for which proxy will be desactivated description: Address for which proxy will be desactivated
type: "domainname" help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied
examples:
- .mozilla.org
- .net.nz
- 192.168.1.0/24
type: domainname
params: params:
allow_ip: true allow_ip: true
allow_cidr_network: true allow_cidr_network: true
@ -12,8 +18,4 @@ no_proxy:
disabled: disabled:
variable: _.proxy_mode variable: _.proxy_mode
when: No proxy when: No proxy
examples: ...
- .mozilla.org
- .net.nz
- 192.168.1.0/24
help: Connections to localhost, 127.0.0.1/8 and ::1 are never proxied

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
prompt_authentication: prompt_authentication:
description: Prompt for authentication if password is saved description: Prompt for authentication if password is saved
@ -5,3 +6,4 @@ prompt_authentication:
disabled: disabled:
variable: _.proxy_mode variable: _.proxy_mode
when: No proxy when: No proxy
...

View file

@ -1,15 +1,17 @@
%YAML 1.2
--- ---
proxy_dns_socks5: proxy_dns_socks5:
description: Use proxy DNS when using SOCKS v5 description: Use proxy DNS when using SOCKS v5
default: false
mode: advanced mode: advanced
default: false
disabled: disabled:
jinja: | jinja: |-
{% if _.manual.socks_proxy.version is propertyerror %} {% if _.manual.socks_proxy.version is propertyerror %}
the proxy mode is not manual the proxy mode is not manual
{% elif _.manual.socks_proxy.version == 'v4' %} {% elif _.manual.socks_proxy.version == 'v4' %}
socks version is v4 socks version is v4
{% endif %} {% endif %}
description: | description: |
if "firefox.proxy_mode" is not "Manual proxy configuration" if "firefox.proxy_mode" is not "Manual proxy configuration"
or "firefox.manual.socks_proxy.version" is "v4" or "firefox.manual.socks_proxy.version" is "v4"
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
dns_over_https: # DNS over HTTPS dns_over_https: # DNS over HTTPS
@ -17,15 +18,16 @@ dns_over_https: # DNS over HTTPS
custom_dns_url: custom_dns_url:
description: Custom DNS URL description: Custom DNS URL
type: web_address type: web_address
disabled:
jinja: |
{% if _.provider is propertyerror or _.provider != 'Custom' %}
provider is not custom
{% endif %}
description: if "dns_over_https.provider" is not "Custom"
validators: validators:
- jinja: | - jinja: |-
{% if dns_over_https.custom_dns_url.startswith('http://') %} {% if dns_over_https.custom_dns_url.startswith('http://') %}
only https is allowed only https is allowed
{% endif %} {% endif %}
description: must starts with 'https://' only description: must starts with 'https://' only
disabled:
jinja: |-
{% if _.provider is propertyerror or _.provider != 'Custom' %}
provider is not custom
{% endif %}
description: if "dns_over_https.provider" is not "Custom"
...

View file

@ -1,31 +1,32 @@
%YAML 1.2
--- ---
manual: manual:
use_for_https: true # Also use this proxy for HTTPS use_for_https: true # Also use this proxy for HTTPS
"{{ identifier }}_proxy": '{{ identifier }}_proxy':
description: "{{ identifier }} Proxy" description: '{{ identifier }} Proxy'
dynamic:
- HTTPS
- SOCKS
hidden: hidden:
jinja: | jinja: |-
{% if my_identifier == 'HTTPS' and _.use_for_https %} {% if my_identifier == 'HTTPS' and _.use_for_https %}
HTTPS is same has HTTP HTTPS is same has HTTP
{% endif %} {% endif %}
description: |
in HTTPS case if "manual.use_for_https" is set to True
params: params:
my_identifier: my_identifier:
type: identifier type: identifier
description: | dynamic:
in HTTPS case if "manual.use_for_https" is set to True - HTTPS
- SOCKS
address: address:
description: "{{ identifier }} address" description: '{{ identifier }} address'
default: default:
variable: __.http_proxy.address variable: __.http_proxy.address
port: port:
description: "{{ identifier }} port" description: '{{ identifier }} port'
default: default:
variable: __.http_proxy.port variable: __.http_proxy.port
@ -37,4 +38,5 @@ manual:
default: v5 default: v5
disabled: disabled:
type: identifier type: identifier
when: 'HTTPS' when: HTTPS
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
proxies: proxies:
description: Proxy configuration description: Proxy configuration
@ -7,5 +8,5 @@ proxies:
description: Title or Description description: Title or Description
mandatory: false mandatory: false
color: color: # Color
description: Color ...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
proxies: proxies:
description: Proxy configuration description: Proxy configuration
@ -9,12 +10,14 @@ proxies:
color: color:
description: Color description: Color
regexp: "^#(?:[0-9a-f]{3}){1,2}$" regexp: ^#(?:[0-9a-f]{3}){1,2}$
auto_save: true
default: default:
jinja: | jinja: >-
# #
{%- for i in range(6) -%} {%- for i in range(6) -%}
{{- '0123456789abcdef' | random -}} {{- '0123456789abcdef' | random -}}
{%- endfor -%} {%- endfor -%}
description: random color value description: random color value
auto_save: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
proxies: proxies:
description: Proxy configuration description: Proxy configuration
@ -22,12 +23,14 @@ proxies:
color: color:
description: Color description: Color
regexp: "^#(?:[0-9a-f]{3}){1,2}$" regexp: ^#(?:[0-9a-f]{3}){1,2}$
auto_save: true
default: default:
jinja: | jinja: >-
# #
{%- for i in range(6) -%} {%- for i in range(6) -%}
{{- '0123456789abcdef' | random -}} {{- '0123456789abcdef' | random -}}
{%- endfor -%} {%- endfor -%}
description: random color value description: random color value
auto_save: true
...

View file

@ -1,3 +1,4 @@
%YAML 1.2
--- ---
proxies: proxies:
description: Proxy configuration description: Proxy configuration
@ -22,15 +23,16 @@ proxies:
color: color:
description: Color description: Color
regexp: "^#(?:[0-9a-f]{3}){1,2}$" regexp: ^#(?:[0-9a-f]{3}){1,2}$
auto_save: true
default: default:
jinja: | jinja: >-
# #
{%- for i in range(6) -%} {%- for i in range(6) -%}
{{- '0123456789abcdef' | random -}} {{- '0123456789abcdef' | random -}}
{%- endfor -%} {%- endfor -%}
description: random color value description: random color value
auto_save: true
address: address:
description: IP address, DNS name, server name description: IP address, DNS name, server name
@ -38,10 +40,16 @@ proxies:
params: params:
allow_ip: true allow_ip: true
allow_without_dot: true allow_without_dot: true
disabled: &needs_address default:
jinja: | jinja: >-
{% if firefox.manual.http_proxy.address is not propertyerror %}
{{ firefox.manual.http_proxy.address }}
{% endif %}
description: copy HTTP address if proxy is not "Manual"
disabled:
jinja: |-
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %} {% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
disabled disabled
{% endif %} {% endif %}
description: | description: |
if type not in: if type not in:
@ -49,56 +57,85 @@ proxies:
- HTTPS/SSL - HTTPS/SSL
- SOCKS4 - SOCKS4
- SOCKS5 - SOCKS5
default:
jinja: |
{% if firefox.manual.http_proxy.address is not propertyerror %}
{{ firefox.manual.http_proxy.address }}
{% endif %}
description: copy HTTP address if proxy is not "Manual"
port: port:
description: Port description: Port
type: port type: port
default: default:
jinja: | jinja: >-
{% if firefox.manual.http_proxy.port is not propertyerror %} {% if firefox.manual.http_proxy.port is not propertyerror %}
{{ firefox.manual.http_proxy.port }} {{ firefox.manual.http_proxy.port }}
{% endif %} {% endif %}
description: copy HTTP port if proxy is not "Manual" description: copy HTTP port if proxy is not "Manual"
disabled: *needs_address disabled:
jinja: |-
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
disabled
{% endif %}
description: |
if type not in:
- HTTP
- HTTPS/SSL
- SOCKS4
- SOCKS5
username: username:
description: Username description: Username
type: unix_user type: unix_user
mandatory: mandatory:
jinja: | jinja: |-
{% if _.password is not propertyerror and _.password %} {% if _.password is not propertyerror and _.password %}
username is mandatory username is mandatory
{% endif %} {% endif %}
description: if a password is set description: if a password is set
disabled: *needs_address disabled:
jinja: |-
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
disabled
{% endif %}
description: |
if type not in:
- HTTP
- HTTPS/SSL
- SOCKS4
- SOCKS5
password: password:
description: Password description: Password
type: secret type: secret
mandatory: false mandatory: false
disabled: *needs_address disabled:
jinja: |-
{% if _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] %}
disabled
{% endif %}
description: |
if type not in:
- HTTP
- HTTPS/SSL
- SOCKS4
- SOCKS5
url: url:
description: URL description: URL
type: web_address type: web_address
default:
jinja: >-
{% if firefox.auto is not propertyerror %}
{{ firefox.auto }}
{% endif %}
description: copy HTTP address if proxy is "Auto"
disabled: disabled:
jinja: | jinja: |-
{% if _.type not in ['PAC URL', 'WPAD'] %} {% if _.type not in ['PAC URL', 'WPAD'] %}
proxy does not need url proxy does not need url
{% endif %} {% endif %}
description: | description: |
if type is not in: if type is not in:
- PAC URL - PAC URL
- WPAD - WPAD
default: ...
jinja: |
{% if firefox.auto is not propertyerror %}
{{ firefox.auto }}
{% endif %}
description: copy HTTP address if proxy is "Auto"

View file

@ -1,5 +1,7 @@
%YAML 1.2
--- ---
proxies: proxies:
username: username:
redefine: true redefine: true
mandatory: false mandatory: false
@ -7,9 +9,9 @@ proxies:
password: password:
redefine: true redefine: true
hidden: hidden:
type: jinja jinja: |-
jinja: |
{% if not _.username %} {% if not _.username %}
no username defined no username defined
{% endif %} {% endif %}
description: if username is not defined description: if username is not defined
...