mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-22 06:04:22 +00:00
Compare commits
76
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7fb96ee185 | ||
|
|
67497f8a99 | ||
|
|
e34905807f | ||
|
|
30bcbcf33c | ||
|
|
ddcc18c115 | ||
|
|
a54ad475f5 | ||
|
|
959df2e72c | ||
|
|
c90e7a9dc0 | ||
|
|
df325fc15f | ||
|
|
cfeb211e75 | ||
|
|
c043892f12 | ||
|
|
2a2ffca169 | ||
|
|
1a5095c0f4 | ||
|
|
2418da031f | ||
|
|
1a53d8f4c2 | ||
|
|
18bc6dc98d | ||
|
|
9825c8d290 | ||
|
|
dc880d861c | ||
|
|
a03fd8aaad | ||
|
|
e3a90718c2 | ||
|
|
54a85ba439 | ||
|
|
4ced82d554 | ||
|
|
f83e02b740 | ||
|
|
04c9413ed9 | ||
|
|
5e98d8e279 | ||
|
|
4caecf77e0 | ||
|
|
37d304d075 | ||
|
|
25086a9b3f | ||
|
|
7a3f1cbd41 | ||
|
|
616717bc0d | ||
|
|
6fd271ee64 | ||
|
|
7459cc046a | ||
|
|
58dad73eee | ||
|
|
b21acd4787 | ||
|
|
4ab954dcd1 | ||
|
|
eefc17274e | ||
|
|
4878840bdd | ||
|
|
869bcb3c42 | ||
|
|
0bcde13500 | ||
|
|
867b9dddab | ||
|
|
a4326e6642 | ||
|
|
c5e89a9e03 | ||
|
|
45d31b3279 | ||
|
|
24780ea5fb | ||
|
|
38b031e10c | ||
|
|
e2fb833ceb | ||
|
|
e27cb83326 | ||
|
|
f810cecd3a | ||
|
|
cfad223824 | ||
|
|
6d20463acb | ||
|
|
1a42c19050 | ||
|
|
b9f8eb4c31 | ||
|
|
ce4150f921 | ||
|
|
7cc8cac705 | ||
|
|
3fd1d017cf | ||
|
|
8597954f91 | ||
|
|
2b4ffe8808 | ||
|
|
1911847c3b | ||
|
|
497872080b | ||
|
|
a0dc3447f8 | ||
|
|
e0640949a2 | ||
|
|
bf744413bd | ||
|
|
262de81da1 | ||
|
|
5f13bb2046 | ||
|
|
0a0686ef19 | ||
|
|
24b91f6089 | ||
|
|
5705a48724 | ||
|
|
2f76230daf | ||
|
|
498434ee3d | ||
|
|
f662af4c50 | ||
|
|
8d4895a54d | ||
|
|
81d6b1f547 | ||
|
|
8db3cae826 | ||
|
|
d93f32072e | ||
|
|
7b658fa65c | ||
|
|
9f934af3f2 |
No files matched your search
@@ -3,6 +3,11 @@
|
||||
# THIS SCRIPT IS DESIGNED TO BE RUNNING BY MAILCOW SCRIPTS ONLY!
|
||||
# DO NOT, AGAIN, NOT TRY TO RUN THIS SCRIPT STANDALONE!!!!!!
|
||||
|
||||
# Global IPv6 address that is no unique local address (fc00::/7, e.g. Docker bridges)
|
||||
_has_public_ipv6() {
|
||||
ip -6 -o addr show scope global 2>/dev/null | awk '{print $4}' | grep -qviE '^f[cd]'
|
||||
}
|
||||
|
||||
# 1) Check if the host supports IPv6
|
||||
get_ipv6_support() {
|
||||
# ---- helper: probe external IPv6 connectivity without DNS ----
|
||||
@@ -37,6 +42,9 @@ get_ipv6_support() {
|
||||
if _probe_ipv6_connectivity; then
|
||||
DETECTED_IPV6=true
|
||||
echo -e "IPv6 detected on host – ${LIGHT_GREEN}leaving IPv6 support enabled${YELLOW}.${NC}"
|
||||
elif _has_public_ipv6; then
|
||||
DETECTED_IPV6=true
|
||||
echo -e "${YELLOW}External IPv6 connectivity test failed, but the host has a public IPv6 address – ${LIGHT_GREEN}leaving IPv6 support enabled${YELLOW}.${NC}"
|
||||
else
|
||||
DETECTED_IPV6=false
|
||||
echo -e "${YELLOW}Default IPv6 route present but external IPv6 connectivity failed – ${LIGHT_RED}disabling IPv6 support${YELLOW}.${NC}"
|
||||
@@ -192,9 +200,31 @@ EOF
|
||||
fi
|
||||
}
|
||||
|
||||
_set_enable_ipv6() {
|
||||
if [[ -n "$MAILCOW_CONF" && -f "$MAILCOW_CONF" ]]; then
|
||||
if grep -q '^ENABLE_IPV6=' "$MAILCOW_CONF"; then
|
||||
sed -i "s/^ENABLE_IPV6=.*/ENABLE_IPV6=$1/" "$MAILCOW_CONF"
|
||||
else
|
||||
echo "ENABLE_IPV6=$1" >> "$MAILCOW_CONF"
|
||||
fi
|
||||
else
|
||||
export IPV6_BOOL=$1
|
||||
fi
|
||||
}
|
||||
|
||||
_warn_ipv6_disabled() {
|
||||
_has_public_ipv6 || return 0
|
||||
ip -6 route show default 2>/dev/null | grep -qE '^default' || return 0
|
||||
grep -Eq '"userland-proxy"[[:space:]]*:[[:space:]]*false' /etc/docker/daemon.json 2>/dev/null && return 0
|
||||
echo -e "${LIGHT_RED}WARNING: ENABLE_IPV6=false, but this host has a public IPv6 address.${NC}"
|
||||
echo -e "${YELLOW}Docker forwards IPv6 connections to mailcow with an internal source address, which Postfix trusts. This can make your server an open relay over IPv6.${NC}"
|
||||
echo -e "${YELLOW}Set ENABLE_IPV6=true in mailcow.conf, or set \"userland-proxy\": false in /etc/docker/daemon.json and restart Docker.${NC}"
|
||||
echo -e "${YELLOW}See https://docs.mailcow.email/post_installation/firststeps-disable_ipv6/${NC}"
|
||||
sleep 5
|
||||
}
|
||||
|
||||
# 3) Main wrapper for generate_config.sh and update.sh
|
||||
configure_ipv6() {
|
||||
# detect manual override if mailcow.conf is present
|
||||
if [[ -n "$MAILCOW_CONF" && -f "$MAILCOW_CONF" ]] && grep -q '^ENABLE_IPV6=' "$MAILCOW_CONF"; then
|
||||
MANUAL_SETTING=$(grep '^ENABLE_IPV6=' "$MAILCOW_CONF" | cut -d= -f2)
|
||||
elif [[ -z "$MAILCOW_CONF" ]] && [[ -n "${ENABLE_IPV6:-}" ]]; then
|
||||
@@ -203,19 +233,23 @@ configure_ipv6() {
|
||||
MANUAL_SETTING=""
|
||||
fi
|
||||
|
||||
if [[ "${MANUAL_SETTING,,}" == "false" ]]; then
|
||||
_set_enable_ipv6 false
|
||||
echo "ENABLE_IPV6=false is set, skipping Docker IPv6 configuration."
|
||||
_warn_ipv6_disabled
|
||||
echo "IPv6 configuration complete: ENABLE_IPV6=false"
|
||||
return
|
||||
fi
|
||||
|
||||
get_ipv6_support
|
||||
|
||||
# if user manually set it, check for mismatch
|
||||
if [[ "$DETECTED_IPV6" != "true" && "${MANUAL_SETTING,,}" == "true" ]] && _has_public_ipv6; then
|
||||
echo -e "${YELLOW}Keeping ENABLE_IPV6=true, the host has a public IPv6 address.${NC}"
|
||||
DETECTED_IPV6=true
|
||||
fi
|
||||
|
||||
if [[ "$DETECTED_IPV6" != "true" ]]; then
|
||||
if [[ -n "$MAILCOW_CONF" && -f "$MAILCOW_CONF" ]]; then
|
||||
if grep -q '^ENABLE_IPV6=' "$MAILCOW_CONF"; then
|
||||
sed -i 's/^ENABLE_IPV6=.*/ENABLE_IPV6=false/' "$MAILCOW_CONF"
|
||||
else
|
||||
echo "ENABLE_IPV6=false" >> "$MAILCOW_CONF"
|
||||
fi
|
||||
else
|
||||
export IPV6_BOOL=false
|
||||
fi
|
||||
_set_enable_ipv6 false
|
||||
echo "Skipping Docker IPv6 configuration because host does not support IPv6."
|
||||
echo "Make sure to check if your docker daemon.json does not include \"enable_ipv6\": true if you do not want IPv6."
|
||||
echo "IPv6 configuration complete: ENABLE_IPV6=false"
|
||||
@@ -224,16 +258,7 @@ configure_ipv6() {
|
||||
fi
|
||||
|
||||
docker_daemon_edit
|
||||
|
||||
if [[ -n "$MAILCOW_CONF" && -f "$MAILCOW_CONF" ]]; then
|
||||
if grep -q '^ENABLE_IPV6=' "$MAILCOW_CONF"; then
|
||||
sed -i 's/^ENABLE_IPV6=.*/ENABLE_IPV6=true/' "$MAILCOW_CONF"
|
||||
else
|
||||
echo "ENABLE_IPV6=true" >> "$MAILCOW_CONF"
|
||||
fi
|
||||
else
|
||||
export IPV6_BOOL=true
|
||||
fi
|
||||
_set_enable_ipv6 true
|
||||
|
||||
echo "IPv6 configuration complete: ENABLE_IPV6=true"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
FROM alpine:3.24 AS builder
|
||||
|
||||
WORKDIR /src
|
||||
ENV CLAMD_VERSION=1.4.6
|
||||
ENV CLAMD_VERSION=1.4.7
|
||||
|
||||
RUN apk upgrade --no-cache \
|
||||
&& apk add --update --no-cache \
|
||||
|
||||
@@ -587,7 +587,7 @@ class DockerApi:
|
||||
return Response(content=json.dumps({ 'type': 'danger', 'msg': 'user and id required' }, indent=4), media_type="application/json")
|
||||
action = 'doveadm acl set -u "$ACL_USER" -- "$folder" "$ACL_ID" $ACL_RIGHTS' if rights else 'doveadm acl delete -u "$ACL_USER" -- "$folder" "$ACL_ID"'
|
||||
script = ('set -o pipefail; doveadm mailbox list -u "$ACL_USER" | while IFS= read -r folder; do '
|
||||
'case "$folder" in Shared/*) continue;; esac; ' + action + ' || exit 1; done && doveadm acl recalc -u "$ACL_USER"')
|
||||
'case "$folder" in Shared|Shared/*) continue;; esac; ' + action + ' || exit 1; done && doveadm acl recalc -u "$ACL_USER"')
|
||||
acl_return = container.exec_run(["/bin/bash", "-c", script],
|
||||
environment={ 'ACL_USER': user, 'ACL_ID': id, 'ACL_RIGHTS': ' '.join(rights) })
|
||||
return self.exec_run_handler('generic', acl_return)
|
||||
|
||||
@@ -4,7 +4,7 @@ catch_non_zero() {
|
||||
${CMD} > /dev/null
|
||||
EC=$?
|
||||
if [ ${EC} -ne 0 ]; then
|
||||
echo "Command ${CMD} failed to execute, exit code was ${EC}"
|
||||
echo "Command ${CMD//${REDISPASS}/***} failed to execute, exit code was ${EC}"
|
||||
fi
|
||||
}
|
||||
source /source_env.sh
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
FROM nginx:1.30.6-alpine
|
||||
FROM nginx:1.30.7-alpine
|
||||
LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
|
||||
|
||||
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
RUN apk add --no-cache nginx \
|
||||
RUN apk upgrade --no-cache && \
|
||||
apk add --no-cache nginx \
|
||||
python3 \
|
||||
py3-pip && \
|
||||
pip install --upgrade pip && \
|
||||
|
||||
@@ -4,7 +4,7 @@ WORKDIR /src
|
||||
ENV CGO_ENABLED=0 \
|
||||
GO111MODULE=on \
|
||||
NOOPT=1 \
|
||||
VERSION=1.14.0
|
||||
VERSION=1.14.5
|
||||
|
||||
RUN git clone --branch v${VERSION} https://github.com/Zuplu/postfix-tlspol && \
|
||||
cd /src/postfix-tlspol && \
|
||||
|
||||
@@ -277,9 +277,34 @@ if [[ ! -z ${SPAMHAUS_DQS_KEY} ]]; then
|
||||
}
|
||||
}
|
||||
"DBL" {
|
||||
# override the defaults for DBL defined in modules.d/rbl.conf
|
||||
# full copy of the DBL rule from modules.d/rbl.conf, pointed at DQS:
|
||||
# the override include replaces the stock rule instead of merging into it
|
||||
rbl = "${SPAMHAUS_DQS_KEY}.dbl.dq.spamhaus.net";
|
||||
disable_monitoring = true;
|
||||
checks = ["emails", "dkim", "helo", "rdns", "replyto", "urls", "content_urls"];
|
||||
no_ip = true;
|
||||
ignore_defaults = true;
|
||||
exclude_users = false;
|
||||
emails_domainonly = true;
|
||||
selector = {
|
||||
from_smtp = "from('smtp'):domain";
|
||||
from_mime = "from('mime'):domain";
|
||||
mid = "header(Message-Id).regexp('@([^\.]+\.[^>]+)').last";
|
||||
}
|
||||
returncodes = {
|
||||
DBL_SPAM = "127.0.1.2";
|
||||
DBL_PHISH = "127.0.1.4";
|
||||
DBL_MALWARE = "127.0.1.5";
|
||||
DBL_BOTNET = "127.0.1.6";
|
||||
DBL_ABUSE = "127.0.1.102";
|
||||
DBL_ABUSE_REDIR = "127.0.1.103";
|
||||
DBL_ABUSE_PHISH = "127.0.1.104";
|
||||
DBL_ABUSE_MALWARE = "127.0.1.105";
|
||||
DBL_ABUSE_BOTNET = "127.0.1.106";
|
||||
DBL_PROHIBIT = "127.0.1.255";
|
||||
DBL_BLOCKED_OPENRESOLVER = "127.255.255.254";
|
||||
DBL_BLOCKED = "127.255.255.255";
|
||||
}
|
||||
}
|
||||
"ZRD" {
|
||||
ignore_defaults = true;
|
||||
|
||||
@@ -116,8 +116,8 @@ if ($result === false){
|
||||
exit;
|
||||
}
|
||||
if ($result) {
|
||||
error_log('MAILCOWAUTH: User auth for user ' . $post['username'] . " with service " . $post['service'] . " from IP " . $client_ip);
|
||||
set_sasl_log($post['username'], $client_ip, $post['service']);
|
||||
error_log('MAILCOWAUTH: User auth for user ' . $post['username'] . " with service " . $service . " from IP " . $client_ip);
|
||||
set_sasl_log($post['username'], $client_ip, $service);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -94,11 +94,11 @@ location / {
|
||||
}
|
||||
|
||||
location /qhandler {
|
||||
rewrite ^/qhandler/(.*)/(.*) /qhandler.php?action=$1&hash=$2;
|
||||
rewrite ^/qhandler/([^/]+)/(.+?)/?$ /qhandler.php?action=$1&hash=$2;
|
||||
}
|
||||
|
||||
location /edit {
|
||||
rewrite ^/edit/(.*)/(.*) /edit.php?$1=$2;
|
||||
rewrite ^/edit/([^/]+)/(.+?)/?$ /edit.php?$1=$2;
|
||||
}
|
||||
|
||||
location ~ ^/api/v1/(.*)$ {
|
||||
@@ -187,6 +187,12 @@ location /sogo-auth-verify {
|
||||
}
|
||||
|
||||
location ^~ /Microsoft-Server-ActiveSync {
|
||||
# Outlook for iOS/Android (Microsoft's sync service) sends EAS commands without credentials
|
||||
# and only authenticates after a 401 Basic challenge. SOGo answers those with 403, so challenge here.
|
||||
if ($http_authorization = "") {
|
||||
add_header WWW-Authenticate 'Basic realm="SOGo"' always;
|
||||
return 401;
|
||||
}
|
||||
auth_request /sogo-auth-verify;
|
||||
auth_request_set $user $upstream_http_x_user;
|
||||
auth_request_set $auth $upstream_http_x_auth;
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
MX_IMPLICIT {
|
||||
expression = "MX_GOOD & MX_MISSING";
|
||||
score = -0.01;
|
||||
}
|
||||
VIRUS_FOUND {
|
||||
expression = "CLAM_VIRUS & !MAILCOW_WHITE";
|
||||
score = 2000.0;
|
||||
|
||||
@@ -23,24 +23,6 @@ symbols {
|
||||
}
|
||||
}
|
||||
|
||||
group "MX" {
|
||||
"MX_INVALID" {
|
||||
score = 0.5;
|
||||
description = "No connectable MX";
|
||||
one_shot = true;
|
||||
}
|
||||
"MX_MISSING" {
|
||||
score = 2.0;
|
||||
description = "No MX record";
|
||||
one_shot = true;
|
||||
}
|
||||
"MX_GOOD" {
|
||||
score = -0.01;
|
||||
description = "MX was ok";
|
||||
one_shot = true;
|
||||
}
|
||||
}
|
||||
|
||||
group "reputation" {
|
||||
symbols = {
|
||||
"IP_REPUTATION_HAM" {
|
||||
|
||||
@@ -5,12 +5,6 @@ RCPT_MAILCOW_DOMAIN {
|
||||
symbols_set = ["RCPT_MAILCOW_DOMAIN"];
|
||||
}
|
||||
|
||||
WHITELISTED_FWD_HOST {
|
||||
type = "ip";
|
||||
map = "redis://WHITELISTED_FWD_HOST";
|
||||
symbols_set = ["WHITELISTED_FWD_HOST"];
|
||||
}
|
||||
|
||||
BULK_HEADER {
|
||||
type = "content";
|
||||
map = "${LOCAL_CONFDIR}/custom/bulk_header.map";
|
||||
@@ -151,20 +145,6 @@ BAD_LANG {
|
||||
score = 5.0;
|
||||
}
|
||||
|
||||
BAZAAR_ABUSE_CH {
|
||||
type = "selector";
|
||||
selector = "attachments(hex,md5)";
|
||||
map = "https://bazaar.abuse.ch/export/txt/md5/recent/";
|
||||
score = 10.0;
|
||||
}
|
||||
|
||||
URLHAUS_ABUSE_CH {
|
||||
type = "selector";
|
||||
selector = "urls";
|
||||
map = "https://urlhaus.abuse.ch/downloads/text_online/";
|
||||
score = 10.0;
|
||||
}
|
||||
|
||||
SMTP_LIMITED_ACCESS {
|
||||
type = "user";
|
||||
map = "redis://SMTP_LIMITED_ACCESS";
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
timeout = 8.0;
|
||||
symbol_bad_mx = "MX_INVALID";
|
||||
symbol_no_mx = "MX_MISSING";
|
||||
symbol_good_mx = "MX_GOOD";
|
||||
expire = 86400;
|
||||
key_prefix = "rmx";
|
||||
|
||||
@@ -9,3 +9,5 @@ disable_monitoring = true;
|
||||
# instead of silently accepting the message without further processing.
|
||||
soft_reject_on_timeout = true;
|
||||
local_addrs = /etc/rspamd/custom/mailcow_networks.map;
|
||||
# Must not be lower than message_size_limit in postfix main.cf
|
||||
max_message = 134217728;
|
||||
@@ -362,6 +362,61 @@ rspamd_config:register_symbol({
|
||||
priority = 19
|
||||
})
|
||||
|
||||
rspamd_config:register_symbol({
|
||||
name = 'WHITELISTED_FWD_HOST',
|
||||
type = 'prefilter',
|
||||
score = 0.0,
|
||||
callback = function(task)
|
||||
local rspamd_logger = require "rspamd_logger"
|
||||
local redis_params = rspamd_parse_redis_server('fwd_host')
|
||||
local ip = task:get_from_ip()
|
||||
|
||||
if ip == nil or not ip:is_valid() then
|
||||
return false
|
||||
end
|
||||
|
||||
local from_ip_string = tostring(ip)
|
||||
local ip_check_table = {'WHITELISTED_FWD_HOST', from_ip_string}
|
||||
|
||||
local maxbits = 128
|
||||
local minbits = 7
|
||||
if ip:get_version() == 4 then
|
||||
maxbits = 32
|
||||
minbits = 8
|
||||
end
|
||||
for i=maxbits,minbits,-1 do
|
||||
table.insert(ip_check_table, ip:apply_mask(i):to_string() .. "/" .. i)
|
||||
end
|
||||
|
||||
local function fwd_host_cb(err, data)
|
||||
if err or type(data) ~= 'table' then
|
||||
rspamd_logger.infox(rspamd_config, "fwd_host query request for ip %s returned invalid or empty data (\"%s\") or error (\"%s\")", ip, data, err)
|
||||
return
|
||||
end
|
||||
for _,v in pairs(data) do
|
||||
if type(v) == 'string' then
|
||||
task:insert_result('WHITELISTED_FWD_HOST', 1.0, from_ip_string)
|
||||
task:set_flag('pass_all')
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local redis_ret = rspamd_redis_make_request(task,
|
||||
redis_params, -- connect params
|
||||
'WHITELISTED_FWD_HOST', -- hash key
|
||||
false, -- is write
|
||||
fwd_host_cb, --callback
|
||||
'HMGET', -- command
|
||||
ip_check_table -- arguments
|
||||
)
|
||||
if not redis_ret then
|
||||
rspamd_logger.infox(rspamd_config, "cannot check fwd_host redis map")
|
||||
end
|
||||
end,
|
||||
priority = 18
|
||||
})
|
||||
|
||||
rspamd_config:register_symbol({
|
||||
name = 'TLS_HEADER',
|
||||
type = 'postfilter',
|
||||
@@ -390,9 +445,8 @@ rspamd_config:register_symbol({
|
||||
local rspamd_logger = require "rspamd_logger"
|
||||
local redis_params = rspamd_parse_redis_server('taghandler')
|
||||
local rspamd_http = require "rspamd_http"
|
||||
local rcpts = task:get_recipients('smtp')
|
||||
local rcpts = task:get_recipients({'smtp', 'orig'})
|
||||
local lua_util = require "lua_util"
|
||||
local tagged_rcpt = task:get_symbol("TAGGED_RCPT")
|
||||
|
||||
local function remove_moo_tag()
|
||||
local moo_tag_header = task:get_header('X-Moo-Tag', false)
|
||||
@@ -417,8 +471,9 @@ rspamd_config:register_symbol({
|
||||
|
||||
-- Check if recipient has a tag (contains '+')
|
||||
local tag = nil
|
||||
if tagged_rcpt ~= nil then
|
||||
tag = tagged_rcpt
|
||||
local base_user, tag_part = rcpt_user:match('^([^%+]+)%+(.+)$')
|
||||
if base_user and tag_part then
|
||||
tag = tag_part
|
||||
rspamd_logger.infox("TAG_MOO: found tag in recipient: %s (base: %s, tag: %s)", rcpt_addr, base_user, tag)
|
||||
end
|
||||
|
||||
@@ -498,8 +553,7 @@ rspamd_config:register_symbol({
|
||||
else
|
||||
rspamd_logger.infox("TAG_MOO: user wants subject modified for tagged mail")
|
||||
local sbj = task:get_header('Subject') or ''
|
||||
local tag_value = tag[1] and tag[1].options and tag[1].options[1] or ''
|
||||
new_sbj = '=?UTF-8?B?' .. tostring(util.encode_base64('[' .. tag_value .. '] ' .. sbj)) .. '?='
|
||||
new_sbj = '=?UTF-8?B?' .. tostring(util.encode_base64('[' .. tag .. '] ' .. sbj)) .. '?='
|
||||
task:set_milter_reply({
|
||||
remove_headers = {
|
||||
['Subject'] = 1,
|
||||
@@ -907,6 +961,9 @@ rspamd_config:register_symbol({
|
||||
|
||||
if not seen_cte and rewrite.need_rewrite_ct then
|
||||
out[#out + 1] = string.format('%s: %s', 'Content-Transfer-Encoding', new_cte)
|
||||
task:set_milter_reply({
|
||||
add_headers = {['Content-Transfer-Encoding'] = new_cte}
|
||||
})
|
||||
end
|
||||
|
||||
-- End of headers
|
||||
|
||||
@@ -109,7 +109,7 @@ foreach ($rcpts as $rcpt) {
|
||||
}
|
||||
|
||||
// Skip if domain is excluded
|
||||
if (in_array($parsed_rcpt['domain'], $exclude_domains)) {
|
||||
if (is_array($exclude_domains) && in_array($parsed_rcpt['domain'], $exclude_domains)) {
|
||||
error_log(sprintf("QUARANTINE: Skipped domain %s", $parsed_rcpt['domain']) . PHP_EOL);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -14,3 +14,19 @@ body {
|
||||
margin: 0;
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
/* mailcow: inline code in descriptions in the text colour instead of bold purple */
|
||||
.swagger-ui .markdown code,
|
||||
.swagger-ui .renderedMarkdown code {
|
||||
color: inherit;
|
||||
font-weight: normal;
|
||||
font-size: 0.9em;
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
html.dark-mode .swagger-ui .markdown code,
|
||||
html.dark-mode .swagger-ui .renderedMarkdown code {
|
||||
color: inherit;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
@@ -1,79 +1,6 @@
|
||||
<!doctype html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title>Swagger UI: OAuth2 Redirect</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
'use strict';
|
||||
function run () {
|
||||
var oauth2 = window.opener.swaggerUIRedirectOauth2;
|
||||
var sentState = oauth2.state;
|
||||
var redirectUrl = oauth2.redirectUrl;
|
||||
var isValid, qp, arr;
|
||||
|
||||
if (/code|token|error/.test(window.location.hash)) {
|
||||
qp = window.location.hash.substring(1).replace('?', '&');
|
||||
} else {
|
||||
qp = location.search.substring(1);
|
||||
}
|
||||
|
||||
arr = qp.split("&");
|
||||
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';});
|
||||
qp = qp ? JSON.parse('{' + arr.join() + '}',
|
||||
function (key, value) {
|
||||
return key === "" ? value : decodeURIComponent(value);
|
||||
}
|
||||
) : {};
|
||||
|
||||
isValid = qp.state === sentState;
|
||||
|
||||
if ((
|
||||
oauth2.auth.schema.get("flow") === "accessCode" ||
|
||||
oauth2.auth.schema.get("flow") === "authorizationCode" ||
|
||||
oauth2.auth.schema.get("flow") === "authorization_code"
|
||||
) && !oauth2.auth.code) {
|
||||
if (!isValid) {
|
||||
oauth2.errCb({
|
||||
authId: oauth2.auth.name,
|
||||
source: "auth",
|
||||
level: "warning",
|
||||
message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
|
||||
});
|
||||
}
|
||||
|
||||
if (qp.code) {
|
||||
delete oauth2.state;
|
||||
oauth2.auth.code = qp.code;
|
||||
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
|
||||
} else {
|
||||
let oauthErrorMsg;
|
||||
if (qp.error) {
|
||||
oauthErrorMsg = "["+qp.error+"]: " +
|
||||
(qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
|
||||
(qp.error_uri ? "More info: "+qp.error_uri : "");
|
||||
}
|
||||
|
||||
oauth2.errCb({
|
||||
authId: oauth2.auth.name,
|
||||
source: "auth",
|
||||
level: "error",
|
||||
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server."
|
||||
});
|
||||
}
|
||||
} else {
|
||||
oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
|
||||
}
|
||||
window.close();
|
||||
}
|
||||
|
||||
if (document.readyState !== 'loading') {
|
||||
run();
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
run();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<script src="oauth2-redirect.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";function run(){var e,r,t,a=window.opener.swaggerUIRedirectOauth2,o=a.state,n=a.redirectUrl;if((t=(r=/code|token|error/.test(window.location.hash)?window.location.hash.substring(1).replace("?","&"):location.search.substring(1)).split("&")).forEach((function(e,r,t){t[r]='"'+e.replace("=",'":"')+'"'})),e=(r=r?JSON.parse("{"+t.join()+"}",(function(e,r){return""===e?r:decodeURIComponent(r)})):{}).state===o,"accessCode"!==a.auth.schema.get("flow")&&"authorizationCode"!==a.auth.schema.get("flow")&&"authorization_code"!==a.auth.schema.get("flow")||a.auth.code)a.callback({auth:a.auth,token:r,isValid:e,redirectUrl:n});else if(e||a.errCb({authId:a.auth.name,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),r.code)delete a.state,a.auth.code=r.code,a.callback({auth:a.auth,redirectUrl:n});else{let e;r.error&&(e="["+r.error+"]: "+(r.error_description?r.error_description+". ":"no accessCode received from the server. ")+(r.error_uri?"More info: "+r.error_uri:"")),a.errCb({authId:a.auth.name,source:"auth",level:"error",message:e||"[Authorization failed]: no accessCode received from the server"})}window.close()}"loading"!==document.readyState?run():document.addEventListener("DOMContentLoaded",(function(){run()}));
|
||||
+13966
-7500
File diff suppressed because it is too large.
Load diff
@@ -1,3 +1,2 @@
|
||||
/*! For license information please see swagger-ui-bundle.js.LICENSE.txt */
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUIBundle=t():e.SwaggerUIBundle=t()}(this,(()=>(()=>{var e={17967:(e,t)=>{"use strict";t.N=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,o=/&(newline|tab);/gi,s=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,i=/^.+(:|:)/gim,a=[".","/"];t.N=function(e){var t,l=(t=e||"",t.replace(r,(function(e,t){return String.fromCharCode(t)}))).replace(o,"").replace(s,"").trim();if(!l)return"about:blank";if(function(e){return a.indexOf(e[0])>-1}(l))return l;var c=l.match(i);if(!c)return l;var u=c[0];return n.test(u)?"about:blank":l}},53795:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(23101),o=n.n(r),s=n(61125),i=n.n(s),a=n(11882),l=n.n(a),c=n(97606),u=n.n(c),p=n(67294),h=n(43393);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var w={};function E(e,t,n){return function(e){return null==e}(e)?n:function(e){return null!==e&&"object"===f(e)&&"function"==typeof e.get&&"function"==typeof e.has}(e)?e.has(t)?e.get(t):n:hasOwnProperty.call(e,t)?e[t]:n}function x(e,t,n){for(var r=0;r!==t.length;)if((e=E(e,t[r++],w))===w)return n;return e}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,t){return function(n){if("string"==typeof n)return(0,h.is)(t[n],e[n]);if(Array.isArray(n))return(0,h.is)(x(t,n),x(e,n));throw new TypeError("Invalid key: expected Array or string: "+n)}}(t,n),o=e||Object.keys(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(n,!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{},t));return o.every(r)}const _=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(this,y(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,r=[{key:"shouldComponentUpdate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!S(this.updateOnProps,this.props,e,"updateOnProps")||!S(this.updateOnStates,this.state,t,"updateOnStates")}}],r&&d(n.prototype,r),o&&d(n,o),t}(p.Component);var j=n(23930),O=n.n(j),k=n(45697),A=n.n(k);const C=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class P extends _{constructor(){super(...arguments),i()(this,"getModelName",(e=>-1!==l()(e).call(e,"#/definitions/")?C(e.replace(/^.*#\/definitions\//,"")):-1!==l()(e).call(e,"#/components/schemas/")?C(e.replace(/^.*#\/components\/schemas\//,"")):void 0)),i()(this,"getRefSchema",(e=>{let{specSelectors:t}=this.props;return t.findDefinition(e)}))}render(){let{getComponent:e,getConfigs:t,specSelectors:r,schema:s,required:i,name:a,isRef:l,specPath:c,displayName:u,includeReadOnly:h,includeWriteOnly:f}=this.props;const d=e("ObjectModel"),m=e("ArrayModel"),g=e("PrimitiveModel");let y="object",v=s&&s.get("$$ref");if(!a&&v&&(a=this.getModelName(v)),!s&&v&&(s=this.getRefSchema(a)),!s)return p.createElement("span",{className:"model model-title"},p.createElement("span",{className:"model-title__text"},u||a),p.createElement("img",{src:n(2517),height:"20px",width:"20px"}));const b=r.isOAS3()&&s.get("deprecated");switch(l=void 0!==l?l:!!v,y=s&&s.get("type")||y,y){case"object":return p.createElement(d,o()({className:"object"},this.props,{specPath:c,getConfigs:t,scLine truncated
|
||||
//# sourceMappingURL=swagger-ui-bundle.js.map
|
||||
!function webpackUniversalModuleDefinition(s,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.SwaggerUIBundle=o():s.SwaggerUIBundle=o()}(this,(()=>(()=>{var s={67526(s,o){"use strict";o.byteLength=function byteLength(s){var o=getLens(s),i=o[0],a=o[1];return 3*(i+a)/4-a},o.toByteArray=function toByteArray(s){var o,i,_=getLens(s),w=_[0],x=_[1],C=new u(function _byteLength(s,o,i){return 3*(o+i)/4-i}(0,w,x)),j=0,L=x>0?w-4:w;for(i=0;i<L;i+=4)o=a[s.charCodeAt(i)]<<18|a[s.charCodeAt(i+1)]<<12|a[s.charCodeAt(i+2)]<<6|a[s.charCodeAt(i+3)],C[j++]=o>>16&255,C[j++]=o>>8&255,C[j++]=255&o;2===x&&(o=a[s.charCodeAt(i)]<<2|a[s.charCodeAt(i+1)]>>4,C[j++]=255&o);1===x&&(o=a[s.charCodeAt(i)]<<10|a[s.charCodeAt(i+1)]<<4|a[s.charCodeAt(i+2)]>>2,C[j++]=o>>8&255,C[j++]=255&o);return C},o.fromByteArray=function fromByteArray(s){for(var o,a=s.length,u=a%3,_=[],w=16383,x=0,C=a-u;x<C;x+=w)_.push(encodeChunk(s,x,x+w>C?C:x+w));1===u?(o=s[a-1],_.push(i[o>>2]+i[o<<4&63]+"==")):2===u&&(o=(s[a-2]<<8)+s[a-1],_.push(i[o>>10]+i[o>>4&63]+i[o<<2&63]+"="));return _.join("")};for(var i=[],a=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0;w<64;++w)i[w]=_[w],a[_.charCodeAt(w)]=w;function getLens(s){var o=s.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=s.indexOf("=");return-1===i&&(i=o),[i,i===o?0:4-i%4]}function encodeChunk(s,o,a){for(var u,_,w=[],x=o;x<a;x+=3)u=(s[x]<<16&16711680)+(s[x+1]<<8&65280)+(255&s[x+2]),w.push(i[(_=u)>>18&63]+i[_>>12&63]+i[_>>6&63]+i[63&_]);return w.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},48287(s,o,i){"use strict";const a=i(67526),u=i(251),_="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;o.Buffer=Buffer,o.SlowBuffer=function SlowBuffer(s){+s!=s&&(s=0);return Buffer.alloc(+s)},o.INSPECT_MAX_BYTES=50;const w=2147483647;function createBuffer(s){if(s>w)throw new RangeError('The value "'+s+'" is invalid for option "size"');const o=new Uint8Array(s);return Object.setPrototypeOf(o,Buffer.prototype),o}function Buffer(s,o,i){if("number"==typeof s){if("string"==typeof o)throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(s)}return from(s,o,i)}function from(s,o,i){if("string"==typeof s)return function fromString(s,o){"string"==typeof o&&""!==o||(o="utf8");if(!Buffer.isEncoding(o))throw new TypeError("Unknown encoding: "+o);const i=0|byteLength(s,o);let a=createBuffer(i);const u=a.write(s,o);u!==i&&(a=a.slice(0,u));return a}(s,o);if(ArrayBuffer.isView(s))return function fromArrayView(s){if(isInstance(s,Uint8Array)){const o=new Uint8Array(s);return fromArrayBuffer(o.buffer,o.byteOffset,o.byteLength)}return fromArrayLike(s)}(s);if(null==s)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s);if(isInstance(s,ArrayBuffer)||s&&isInstance(s.buffer,ArrayBuffer))return fromArrayBuffer(s,o,i);if("undefined"!=typeof SharedArrayBuffer&&(isInstance(s,SharedArrayBuffer)||s&&isInstance(s.buffer,SharedArrayBuffer)))return fromArrayBuffer(s,o,i);if("number"==typeof s)throw new TypeError('The "value" argument must not be of type number. Received type number');const a=s.valueOf&&s.valueOf();if(null!=a&&a!==s)return Buffer.from(a,o,i);const u=function fromObject(s){if(Buffer.isBuffer(s)){const o=0|checked(s.length),i=createBuffer(o);return 0===i.length||s.copy(i,0,0,o),i}if(void 0!==s.length)return"number"!=typeof s.length||numberIsNaN(s.length)?createBuffer(0):fromArrayLike(s);if("Buffer"===s.type&&Array.isArray(s.data))return fromArrayLike(s.data)}(s);if(u)return u;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof s[Symbol.toPrimitive])return Buffer.from(s[Symbol.toPrimitive]("string"),o,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s)}function assertSize(s){if("number"!=typeof s)throw new TypeError('"size" argument must be of type number');if(s<0)throw new RangeError('The value "'+s+'" is invalid for option "size"')}function allocUnsafe(s){return assertSize(s),createBuffer(s<0?0:0|checked(s))}function fromArrayLike(s){const o=s.length<0?0:0|checked(s.length),i=createBuffer(o);for(let a=0;a<o;a+=1)i[a]=255&s[a];return i}function fromArrayBuffer(s,o,i){if(o<0||s.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(s.byteLength<o+(i||0))throw new RangeError('"length" is outside of buffer bounds');let a;return a=void 0===o&&void 0===i?new Uint8Array(s):void 0===i?new Uint8Array(s,o):new Uint8Array(s,o,i),Object.setPrototypeOf(a,Buffer.prototype),a}function checked(s){if(s>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+"
Line truncated
|
||||
@@ -0,0 +1,131 @@
|
||||
/*!
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/
|
||||
|
||||
/*!
|
||||
* @description Recursive object extending
|
||||
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
||||
* @license MIT
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2013-2018 Viacheslav Lotsmanov
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/*!
|
||||
* https://github.com/Starcounter-Jack/JSON-Patch
|
||||
* (c) 2017-2021 Joachim Wester
|
||||
* MIT license
|
||||
*/
|
||||
|
||||
/*!
|
||||
* https://github.com/Starcounter-Jack/JSON-Patch
|
||||
* (c) 2017-2022 Joachim Wester
|
||||
* MIT licensed
|
||||
*/
|
||||
|
||||
/*!
|
||||
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
|
||||
|
||||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
||||
|
||||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
|
||||
/**
|
||||
* @license
|
||||
* MIT License
|
||||
*
|
||||
* Copyright (c) 2014-present, Lee Byron and other contributors.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-with-selector.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"swagger-ui-bundle.js","mappings":";CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAyB,gBAAID,IAE7BD,EAAsB,gBAAIC,GAC3B,CATD,CASGK,MAAM,4CCPTJ,EAAQ,OAAc,EACtB,IAAIK,EAAuB,wCACvBC,EAAoB,mBACpBC,EAAsB,oBACtBC,EAAsB,qDACtB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AOiG,oBAClBjG,GAAS2F,WAAW3F,EAAM8F,OAAQG,oBACrC,OAAOJ,gBAAgB7F,EAAO4E,EAAkBxD,GAGlD,GAAqB,iBAAVpB,EACT,MAAM,IAAI6E,UACR,yEAIJ,MAAMqB,EAAUlG,EAAMkG,SAAWlG,EAAMkG,UACvC,GAAe,MAAXA,GAAmBA,IAAYlG,EACjC,OAAOiE,OAAOc,Line truncated
|
||||
@@ -1,3 +1,3 @@
|
||||
/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */
|
||||
import*as e from"react-immutable-pure-component";import*as t from"remarkable/linkify";import*as a from"dompurify";import*as n from"zenscroll";import*as r from"lodash/reduce";import*as s from"@babel/runtime-corejs3/core-js-stable/string/raw";import*as o from"@babel/runtime-corejs3/core-js-stable/number/epsilon";import*as l from"@babel/runtime-corejs3/core-js-stable/instance/repeat";import*as i from"@babel/runtime-corejs3/core-js-stable/instance/fill";import*as c from"lodash/zipObject";import*as u from"@babel/runtime-corejs3/core-js-stable/promise";import*as d from"@babel/runtime-corejs3/core-js-stable/date/now";import*as p from"lodash/isString";import*as m from"lodash/debounce";import*as f from"lodash/set";import*as h from"lodash/fp/assocPath";import*as g from"swagger-client/es/resolver/strategies/generic";import*as y from"swagger-client/es/resolver/strategies/openapi-2";import*as v from"swagger-client/es/resolver/strategies/openapi-3-0";import*as E from"swagger-client/es/resolver/strategies/openapi-3-1-apidom";import*as S from"swagger-client/es/resolver";import*as w from"swagger-client/es/execute";import*as b from"swagger-client/es/http";import*as x from"swagger-client/es/subtree-resolver";import*as _ from"react-dom";import*as C from"react-redux";import*as j from"lodash/omit";import*as O from"react-syntax-highlighter/dist/esm/light";import*as N from"react-syntax-highlighter/dist/esm/languages/hljs/javascript";import*as k from"react-syntax-highlighter/dist/esm/languages/hljs/json";import*as A from"react-syntax-highlighter/dist/esm/languages/hljs/xml";import*as I from"react-syntax-highlighter/dist/esm/languages/hljs/bash";import*as R from"react-syntax-highlighter/dist/esm/languages/hljs/yaml";import*as P from"react-syntax-highlighter/dist/esm/languages/hljs/http";import*as T from"react-syntax-highlighter/dist/esm/languages/hljs/powershell";import*as M from"react-syntax-highlighter/dist/esm/styles/hljs/agate";import*as D from"react-syntax-highlighter/dist/esm/styles/hljs/arta";import*as L from"react-syntax-highlighter/dist/esm/styles/hljs/monokai";import*as q from"react-syntax-highlighter/dist/esm/styles/hljs/nord";import*as B from"react-syntax-highlighter/dist/esm/styles/hljs/obsidian";import*as U from"react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night";import*as J from"@babel/runtime-corejs3/core-js-stable/instance/starts-with";import*as $ from"@braintree/sanitize-url";import*as K from"lodash/camelCase";import*as V from"lodash/upperFirst";import*as F from"lodash/find";import*as z from"lodash/eq";import*as W from"css.escape";import*as H from"@babel/runtime-corejs3/core-js-stable/instance/find-index";import*as G from"@babel/runtime-corejs3/core-js-stable/array/from";import*as Z from"@babel/runtime-corejs3/core-js-stable/array/is-array";import*as Y from"@babel/runtime-corejs3/core-js-stable/instance/bind";import*as X from"@babel/runtime-corejs3/core-js-stable/instance/concat";import*as Q from"@babel/runtime-corejs3/core-js-stable/instance/entries";import*as ee from"@babel/runtime-corejs3/core-js-stable/instance/every";import*as te from"@babel/runtime-corejs3/core-js-stable/instance/filter";import*as ae from"@babel/runtime-corejs3/core-js-stable/instance/find";import*as ne from"@babel/runtime-corejs3/core-js-stable/instance/for-each";import*as re from"@babel/runtime-corejs3/core-js-stable/instance/includes";import*as se from"@babel/runtime-corejs3/core-js-stable/instance/index-of";import*as oe from"@babel/runtime-corejs3/core-js-stable/instance/keys";import*as le from"@babel/runtime-corejs3/core-js-stable/instance/map";import*as ie from"@babel/runtime-corejs3/core-js-stable/instance/reduce";import*as ce from"@babel/runtime-corejs3/core-js-stable/instance/slice";import*as ue from"@babel/runtime-corejs3/core-js-stable/instance/some";import*as de from"@babel/runtime-corejs3/core-js-stable/instance/sort";import*as pe from"@babel/runtime-corejs3/core-js-stable/instance/trim";import*as me from"@babel/runtime-corejs3/core-js-stable/json/stringify";import*as fe from"@babel/runtime-corejs3/core-js-stable/map";import*as he from"@babel/runtime-corejs3/core-js-stable/number/is-integer";import*as ge from"@babel/runtime-corejs3/core-js-stable/object/assign";import*as ye from"@babel/runtime-corejs3/core-js-stable/object/entries";import*as ve from"@babel/runtime-corejs3/core-js-stable/object/from-entries";import*as Ee from"@babel/runtime-corejs3/core-js-stable/object/keys";import*as Se from"@babel/runtime-corejs3/core-js-stable/object/values";import*as we from"@babel/runtime-corejs3/core-js-stable/set";import*as be from"@babel/runtime-corejs3/core-js-stable/set-timeout";import*as xe from"@babel/runtime-corejs3/core-js-stable/url";import*as _e from"@babel/runtime-corejs3/core-js-stable/weak-map";import*as Ce from"@babel/runtime-corejs3/core-js-stable/weak-set";import*as je from"@babel/runtime-corejs3/helpers/classPrivateFieldGet";import*as Oe from"@babel/runtime-corejs3/helpers/defineProperty";import*as Ne from"@babelLine truncated
|
||||
import*as e from"base64-js";import*as t from"ieee754";import*as r from"to-buffer";import{Component as n,PureComponent as a,createContext as s,createElement as o,default as i,forwardRef as l,useCallback as c,useContext as u,useEffect as p,useLayoutEffect as m,useMemo as d,useRef as h,useState as f}from"react";import{applyMiddleware as g,bindActionCreators as y,compose as S,createStore as v}from"redux";import*as b from"immutable";import{serializeError as w}from"serialize-error";import{default as _}from"lodash/merge";import"lodash/camelCase";import"lodash/upperFirst";import{default as C}from"lodash/memoize";import{default as x}from"lodash/find";import{default as O}from"lodash/some";import{default as N}from"lodash/eq";import{default as A}from"lodash/isFunction";import{default as k}from"css.escape";import{default as I}from"url-parse";import{createSelector as j}from"reselect";import{default as T}from"prop-types";import{default as R}from"lodash/omit";import{JSON_SCHEMA as M,default as P}from"js-yaml";import{default as B}from"zenscroll";import{default as L}from"react-immutable-proptypes";import{default as q}from"lodash/reduce";import{default as U}from"lodash/get";import{default as D}from"@babel/runtime-corejs3/helpers/extends";import{default as J}from"classnames";import{CopyToClipboard as $}from"react-copy-to-clipboard";import{default as V}from"react-immutable-pure-component";import{useVirtualizer as F,useWindowVirtualizer as z}from"@tanstack/react-virtual";import{default as K}from"react-debounce-input";import{default as W}from"lodash/isPlainObject";import{default as H}from"randexp";import{default as G}from"lodash/isEmpty";import{default as X}from"lodash/constant";import{default as Y}from"lodash/isString";import{default as Q}from"lodash/debounce";import{default as Z}from"lodash/set";import{default as ee}from"lodash/fp/assocPath";import{default as te}from"swagger-client/es/resolver/strategies/generic";import{default as re}from"swagger-client/es/resolver/strategies/openapi-2";import{default as ne}from"swagger-client/es/resolver/strategies/openapi-3-0";import{default as ae}from"swagger-client/es/resolver/strategies/openapi-3-1-apidom";import{default as se}from"swagger-client/es/resolver/strategies/openapi-3-2-apidom";import{makeResolve as oe}from"swagger-client/es/resolver";import{buildRequest as ie,execute as le}from"swagger-client/es/execute";import{default as ce,makeHttp as ue,serializeRes as pe}from"swagger-client/es/http";import{makeResolveSubtree as me}from"swagger-client/es/subtree-resolver";import{opId as de}from"swagger-client/es/helpers";import{default as he}from"react-dom";import{Provider as fe,connect as ge}from"react-redux";import{default as ye}from"lodash/identity";import{default as Se}from"react-syntax-highlighter/dist/esm/light";import{default as Ee}from"react-syntax-highlighter/dist/esm/languages/hljs/javascript";import{default as ve}from"react-syntax-highlighter/dist/esm/languages/hljs/json";import{default as be}from"react-syntax-highlighter/dist/esm/languages/hljs/xml";import{default as we}from"react-syntax-highlighter/dist/esm/languages/hljs/bash";import{default as _e}from"react-syntax-highlighter/dist/esm/languages/hljs/yaml";import{default as Ce}from"react-syntax-highlighter/dist/esm/languages/hljs/http";import{default as xe}from"react-syntax-highlighter/dist/esm/languages/hljs/powershell";import{default as Oe}from"react-syntax-highlighter/dist/esm/styles/hljs/agate";import{default as Ne}from"react-syntax-highlighter/dist/esm/styles/hljs/arta";import{default as Ae}from"react-syntax-highlighter/dist/esm/styles/hljs/monokai";import{default as ke}from"react-syntax-highlighter/dist/esm/styles/hljs/nord";import{default as Ie}from"react-syntax-highlighter/dist/esm/styles/hljs/obsidian";import{default as je}from"react-syntax-highlighter/dist/esm/styles/hljs/tomorrow-night";import{default as Te}from"react-syntax-highlighter/dist/esm/styles/hljs/idea";import{default as Re}from"js-file-download";import{default as Me}from"lodash/zipObject";import{default as Pe}from"lodash/toString";import{default as Be}from"xml-but-prettier";import{default as Le}from"lodash/toLower";import{Remarkable as qe}from"remarkable";import{linkify as Ue}from"remarkable/linkify";import{default as De}from"dompurify";import{default as Je}from"lodash/escapeRegExp";import{default as $e}from"lodash/has";import{default as Ve}from"lodash/fp/set";var Fe={287:function(e,t,r){const n=r(987),a=r(362),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=Buffer,t.SlowBuffer=function SlowBuffer(e){+e!=e&&(e=0);return Buffer.alloc(+e)},t.INSPECT_MAX_BYTES=50;const o=2147483647;function createBuffer(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,Buffer.prototype),t}function Buffer(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. ReLine truncated
|
||||
//# sourceMappingURL=swagger-ui-es-bundle-core.js.map
|
||||
@@ -0,0 +1,35 @@
|
||||
/*!
|
||||
* @description Recursive object extending
|
||||
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
||||
* @license MIT
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2013-2018 Viacheslav Lotsmanov
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"swagger-ui-es-bundle-core.js","mappings":";usMAEA,MAAM,EAFEA,KAAO,IAAIC,EAAI,CAAC,EAAgC,OAA7BC,EAAoBC,EAAEF,EAAGD,GAAWC,CAAC,EAE3BA,CAAE,CAAE,QAAa,IAAMG,EAA6E,kCCGzI,MAAMC,EAAgBC,IACpB,MAAMC,EAAYD,EAAIE,QAAQ,MAAO,KAAKA,QAAQ,MAAO,KAEzD,IACE,OAAOC,mBAAmBF,EAC5B,CAAE,MACA,OAAOA,CACT,GAGa,MAAMG,UAAcC,EAAAA,QAAuBC,cAAA,SAAAC,YAAAC,EAAAA,EAAAA,SAAA,qBAiBxCC,IAC0B,KAAnCC,EAAAA,EAAAA,SAAAD,GAAGE,KAAHF,EAAY,kBACRV,EAAcU,EAAIP,QAAQ,sBAAuB,MAEX,KAA1CQ,EAAAA,EAAAA,SAAAD,GAAGE,KAAHF,EAAY,yBACRV,EAAcU,EAAIP,QAAQ,8BAA+B,UADlE,KAGDM,EAAAA,EAA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LICENSE.txt */
|
||||
(()=>{var e={17967:(e,t)=>{"use strict";t.N=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,o=/&(newline|tab);/gi,s=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,i=/^.+(:|:)/gim,a=[".","/"];t.N=function(e){var t,l=(t=e||"",t.replace(r,(function(e,t){return String.fromCharCode(t)}))).replace(o,"").replace(s,"").trim();if(!l)return"about:blank";if(function(e){return a.indexOf(e[0])>-1}(l))return l;var c=l.match(i);if(!c)return l;var u=c[0];return n.test(u)?"about:blank":l}},53795:(e,t,n)=>{"use strict";n.d(t,{Z:()=>P});var r=n(23101),o=n.n(r),s=n(61125),i=n.n(s),a=n(11882),l=n.n(a),c=n(97606),u=n.n(c),p=n(67294),h=n(43393);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var w={};function E(e,t,n){return function(e){return null==e}(e)?n:function(e){return null!==e&&"object"===f(e)&&"function"==typeof e.get&&"function"==typeof e.has}(e)?e.has(t)?e.get(t):n:hasOwnProperty.call(e,t)?e[t]:n}function x(e,t,n){for(var r=0;r!==t.length;)if((e=E(e,t[r++],w))===w)return n;return e}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,t){return function(n){if("string"==typeof n)return(0,h.is)(t[n],e[n]);if(Array.isArray(n))return(0,h.is)(x(t,n),x(e,n));throw new TypeError("Invalid key: expected Array or string: "+n)}}(t,n),o=e||Object.keys(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(n,!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{},t));return o.every(r)}const _=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(this,y(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,e),n=t,r=[{key:"shouldComponentUpdate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!S(this.updateOnProps,this.props,e,"updateOnProps")||!S(this.updateOnStates,this.state,t,"updateOnStates")}}],r&&d(n.prototype,r),o&&d(n,o),t}(p.Component);var j=n(23930),O=n.n(j),k=n(45697),A=n.n(k);const C=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class P extends _{constructor(){super(...arguments),i()(this,"getModelName",(e=>-1!==l()(e).call(e,"#/definitions/")?C(e.replace(/^.*#\/definitions\//,"")):-1!==l()(e).call(e,"#/components/schemas/")?C(e.replace(/^.*#\/components\/schemas\//,"")):void 0)),i()(this,"getRefSchema",(e=>{let{specSelectors:t}=this.props;return t.findDefinition(e)}))}render(){let{getComponent:e,getConfigs:t,specSelectors:r,schema:s,required:i,name:a,isRef:l,specPath:c,displayName:u,includeReadOnly:h,includeWriteOnly:f}=this.props;const d=e("ObjectModel"),m=e("ArrayModel"),g=e("PrimitiveModel");let y="object",v=s&&s.get("$$ref");if(!a&&v&&(a=this.getModelName(v)),!s&&v&&(s=this.getRefSchema(a)),!s)return p.createElement("span",{className:"model model-title"},p.createElement("span",{className:"model-title__text"},u||a),p.createElement("img",{src:n(2517),height:"20px",width:"20px"}));const b=r.isOAS3()&&s.get("deprecated");switch(l=void 0!==l?l:!!v,y=s&&s.get("type")||y,y){case"object":return p.createElement(d,o()({className:"object"},this.props,{specPath:c,getConfigs:t,schema:s,name:a,deprecated:b,isRef:l,includeReadOnly:h,includeWriteOnly:f}));case"array":return p.createElement(m,o()({className:"array"},this.props,{getConfigs:t,schema:s,name:a,deprecated:b,required:i,includeReadOnly:h,inLine truncated
|
||||
//# sourceMappingURL=swagger-ui-es-bundle.js.map
|
||||
(()=>{var s={67526(s,o){"use strict";o.byteLength=function byteLength(s){var o=getLens(s),i=o[0],a=o[1];return 3*(i+a)/4-a},o.toByteArray=function toByteArray(s){var o,i,_=getLens(s),w=_[0],x=_[1],C=new u(function _byteLength(s,o,i){return 3*(o+i)/4-i}(0,w,x)),j=0,L=x>0?w-4:w;for(i=0;i<L;i+=4)o=a[s.charCodeAt(i)]<<18|a[s.charCodeAt(i+1)]<<12|a[s.charCodeAt(i+2)]<<6|a[s.charCodeAt(i+3)],C[j++]=o>>16&255,C[j++]=o>>8&255,C[j++]=255&o;2===x&&(o=a[s.charCodeAt(i)]<<2|a[s.charCodeAt(i+1)]>>4,C[j++]=255&o);1===x&&(o=a[s.charCodeAt(i)]<<10|a[s.charCodeAt(i+1)]<<4|a[s.charCodeAt(i+2)]>>2,C[j++]=o>>8&255,C[j++]=255&o);return C},o.fromByteArray=function fromByteArray(s){for(var o,a=s.length,u=a%3,_=[],w=16383,x=0,C=a-u;x<C;x+=w)_.push(encodeChunk(s,x,x+w>C?C:x+w));1===u?(o=s[a-1],_.push(i[o>>2]+i[o<<4&63]+"==")):2===u&&(o=(s[a-2]<<8)+s[a-1],_.push(i[o>>10]+i[o>>4&63]+i[o<<2&63]+"="));return _.join("")};for(var i=[],a=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",w=0;w<64;++w)i[w]=_[w],a[_.charCodeAt(w)]=w;function getLens(s){var o=s.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=s.indexOf("=");return-1===i&&(i=o),[i,i===o?0:4-i%4]}function encodeChunk(s,o,a){for(var u,_,w=[],x=o;x<a;x+=3)u=(s[x]<<16&16711680)+(s[x+1]<<8&65280)+(255&s[x+2]),w.push(i[(_=u)>>18&63]+i[_>>12&63]+i[_>>6&63]+i[63&_]);return w.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},48287(s,o,i){"use strict";const a=i(67526),u=i(251),_="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;o.Buffer=Buffer,o.SlowBuffer=function SlowBuffer(s){+s!=s&&(s=0);return Buffer.alloc(+s)},o.INSPECT_MAX_BYTES=50;const w=2147483647;function createBuffer(s){if(s>w)throw new RangeError('The value "'+s+'" is invalid for option "size"');const o=new Uint8Array(s);return Object.setPrototypeOf(o,Buffer.prototype),o}function Buffer(s,o,i){if("number"==typeof s){if("string"==typeof o)throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(s)}return from(s,o,i)}function from(s,o,i){if("string"==typeof s)return function fromString(s,o){"string"==typeof o&&""!==o||(o="utf8");if(!Buffer.isEncoding(o))throw new TypeError("Unknown encoding: "+o);const i=0|byteLength(s,o);let a=createBuffer(i);const u=a.write(s,o);u!==i&&(a=a.slice(0,u));return a}(s,o);if(ArrayBuffer.isView(s))return function fromArrayView(s){if(isInstance(s,Uint8Array)){const o=new Uint8Array(s);return fromArrayBuffer(o.buffer,o.byteOffset,o.byteLength)}return fromArrayLike(s)}(s);if(null==s)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s);if(isInstance(s,ArrayBuffer)||s&&isInstance(s.buffer,ArrayBuffer))return fromArrayBuffer(s,o,i);if("undefined"!=typeof SharedArrayBuffer&&(isInstance(s,SharedArrayBuffer)||s&&isInstance(s.buffer,SharedArrayBuffer)))return fromArrayBuffer(s,o,i);if("number"==typeof s)throw new TypeError('The "value" argument must not be of type number. Received type number');const a=s.valueOf&&s.valueOf();if(null!=a&&a!==s)return Buffer.from(a,o,i);const u=function fromObject(s){if(Buffer.isBuffer(s)){const o=0|checked(s.length),i=createBuffer(o);return 0===i.length||s.copy(i,0,0,o),i}if(void 0!==s.length)return"number"!=typeof s.length||numberIsNaN(s.length)?createBuffer(0):fromArrayLike(s);if("Buffer"===s.type&&Array.isArray(s.data))return fromArrayLike(s.data)}(s);if(u)return u;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof s[Symbol.toPrimitive])return Buffer.from(s[Symbol.toPrimitive]("string"),o,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s)}function assertSize(s){if("number"!=typeof s)throw new TypeError('"size" argument must be of type number');if(s<0)throw new RangeError('The value "'+s+'" is invalid for option "size"')}function allocUnsafe(s){return assertSize(s),createBuffer(s<0?0:0|checked(s))}function fromArrayLike(s){const o=s.length<0?0:0|checked(s.length),i=createBuffer(o);for(let a=0;a<o;a+=1)i[a]=255&s[a];return i}function fromArrayBuffer(s,o,i){if(o<0||s.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(s.byteLength<o+(i||0))throw new RangeError('"length" is outside of buffer bounds');let a;return a=void 0===o&&void 0===i?new Uint8Array(s):void 0===i?new Uint8Array(s,o):new Uint8Array(s,o,i),Object.setPrototypeOf(a,Buffer.prototype),a}function checked(s){if(s>=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return 0|s}function byteLength(s,o){if(Buffer.isBuffer(s))return s.length;if(ArrayBuffer.isView(s)||isInstance(s,ArrayBuffer))return s.byteLength;if("string"!=typeof s)throw new TypeError('The "string" argument must be one of type string, Buffer,Line truncated
|
||||
@@ -0,0 +1,131 @@
|
||||
/*!
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/
|
||||
|
||||
/*!
|
||||
* @description Recursive object extending
|
||||
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
||||
* @license MIT
|
||||
*
|
||||
* The MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2013-2018 Viacheslav Lotsmanov
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
* the Software without restriction, including without limitation the rights to
|
||||
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
* the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/*!
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/*!
|
||||
* https://github.com/Starcounter-Jack/JSON-Patch
|
||||
* (c) 2017-2021 Joachim Wester
|
||||
* MIT license
|
||||
*/
|
||||
|
||||
/*!
|
||||
* https://github.com/Starcounter-Jack/JSON-Patch
|
||||
* (c) 2017-2022 Joachim Wester
|
||||
* MIT licensed
|
||||
*/
|
||||
|
||||
/*!
|
||||
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
|
||||
|
||||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
||||
|
||||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
|
||||
/**
|
||||
* @license
|
||||
* MIT License
|
||||
*
|
||||
* Copyright (c) 2014-present, Lee Byron and other contributors.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* use-sync-external-store-with-selector.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"swagger-ui-es-bundle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aACrC,OAAOM,gBAAgB7F,EAAO4E,EAAkBxD,GAGlD,GAAiC,oBAAtB6E,oBACNN,WAAW3F,EAAOiG,oBAClBjG,GAAS2F,WAAW3F,EAAM8F,OAAQG,oBACrC,OAAOJ,gBAAgB7F,EAAO4E,EAAkBxD,GAGlD,GAAqB,iBAAVpB,EACT,MAAM,IAAI6E,UACR,yEAIJ,MAAMqB,EAAUlG,EAAMkG,SAAWlG,EAAMkG,UACvC,GAAe,MAAXA,GAAmBA,IAAYlG,EACjC,OAAOiE,OAAOc,KAAKmB,EAAStB,EAAkBxD,GAGhD,MAAM+E,EAkJR,SAASC,WAAYC,GACnB,GAAIpC,OAAOqC,SAASD,GAAM,CACxB,MAAM7D,EAA4B,EAAtB+D,QAAQF,EAAIjF,QAClBoD,EAAMF,aAAa9B,GAEzB,OAAmB,IAAfgC,EAAIpD,QAIRiF,EAAIT,KAAKpBLine truncated
|
||||
@@ -1,3 +1,2 @@
|
||||
/*! For license information please see swagger-ui-standalone-preset.js.LICENSE.txt */
|
||||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SwaggerUIStandalonePreset=e():t.SwaggerUIStandalonePreset=e()}(this,(()=>(()=>{var t={7967:(t,e)=>{"use strict";var r=/^([^\w]*)(javascript|data|vbscript)/im,n=/&#(\w+)(^\w|;)?/g,i=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,u=/^.+(:|:)/gim,s=[".","/"]},9742:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=s(t),u=o[0],a=o[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,u,a)),f=0,l=a>0?u-4:u;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],c[f++]=e>>16&255,c[f++]=e>>8&255,c[f++]=255&e;2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[f++]=255&e);1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[f++]=e>>8&255,c[f++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],u=16383,s=0,c=n-i;s<c;s+=u)o.push(a(t,s,s+u>c?c:s+u));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)r[u]=o[u],n[o.charCodeAt(u)]=u;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function a(t,e,n){for(var i,o,u=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),u.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return u.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8764:(t,e,r)=>{"use strict";const n=r(9742),i=r(645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(t){+t!=t&&(t=0);return a.alloc(+t)},e.INSPECT_MAX_BYTES=50;const u=2147483647;function s(t){if(t>u)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,r)}function c(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|M(t,e);let n=s(r);const i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if($(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if($(t,ArrayBuffer)||t&&$(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&($(t,SharedArrayBuffer)||t&&$(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return a.from(n,e,r);const i=function(t){if(a.isBuffer(t)){const e=0|y(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||X(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),s(t<0?0:0|y(t))}function h(t){const e=t.length<0?0:0|y(t.length),r=s(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,a.prototype),n}function y(t){if(t>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|t}function M(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||$(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.leLine truncated
|
||||
//# sourceMappingURL=swagger-ui-standalone-preset.js.map
|
||||
!function webpackUniversalModuleDefinition(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SwaggerUIStandalonePreset=e():t.SwaggerUIStandalonePreset=e()}(this,(()=>(()=>{var t={7526(t,e){"use strict";e.byteLength=function byteLength(t){var e=getLens(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function toByteArray(t){var e,r,i=getLens(t),a=i[0],s=i[1],u=new o(function _byteLength(t,e,r){return 3*(e+r)/4-r}(0,a,s)),c=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===s&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e);1===s&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function fromByteArray(t){for(var e,n=t.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(encodeChunk(t,s,s+a>u?u:s+a));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function getLens(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function encodeChunk(t,e,n){for(var o,i,a=[],s=e;s<n;s+=3)o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},8287(t,e,r){"use strict";const n=r(7526),o=r(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=Buffer,e.SlowBuffer=function SlowBuffer(t){+t!=t&&(t=0);return Buffer.alloc(+t)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function createBuffer(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,Buffer.prototype),e}function Buffer(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(t)}return from(t,e,r)}function from(t,e,r){if("string"==typeof t)return function fromString(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!Buffer.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|byteLength(t,e);let n=createBuffer(r);const o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return function fromArrayView(t){if(isInstance(t,Uint8Array)){const e=new Uint8Array(t);return fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return fromArrayLike(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(isInstance(t,ArrayBuffer)||t&&isInstance(t.buffer,ArrayBuffer))return fromArrayBuffer(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(isInstance(t,SharedArrayBuffer)||t&&isInstance(t.buffer,SharedArrayBuffer)))return fromArrayBuffer(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return Buffer.from(n,e,r);const o=function fromObject(t){if(Buffer.isBuffer(t)){const e=0|checked(t.length),r=createBuffer(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||numberIsNaN(t.length)?createBuffer(0):fromArrayLike(t);if("Buffer"===t.type&&Array.isArray(t.data))return fromArrayLike(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return Buffer.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function assertSize(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function allocUnsafe(t){return assertSize(t),createBuffer(t<0?0:0|checked(t))}function fromArrayLike(t){const e=t.length<0?0:0|checked(t.length),r=createBuffer(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function fromArrayBuffer(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,Buffer.prototype),n}function checked(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Line truncated
|
||||
@@ -0,0 +1,45 @@
|
||||
/*!
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
|
||||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||||
|
||||
/**
|
||||
* @license
|
||||
* MIT License
|
||||
*
|
||||
* Copyright (c) 2014-present, Lee Byron and other contributors.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
@@ -1 +1 @@
|
||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BgC,IAAfH,EAAI1D,OACN,MAA0B,iBAAf0D,EAAI1D,QAAuB8D,YAAYJ,EAAI1D,QAC7C2B,aAAa,GAEf0B,cAAcK,GAGvB,GAAiB,WAAbA,EAAIK,MAAqBrD,MAAMsD,QAAQN,EAAIO,MAC7C,OAAOZ,cAAcK,EAAIO,KAE7B,CAzKYR,CAAWpF,GACrB,GAAImF,EAAG,OAAOA,EAEd,GAAsB,oBAAXnC,QAAgD,MAAtBA,OAAO6C,aACH,mBAA9B7F,EAAMgD,OAAO6C,aACtB,OAAO5C,OAAOc,KAAK/D,EAAMgD,OAAO6C,aAAa,UAAWjC,EAAkBjC,GAG5E,MAAM,IAAIkC,UACR,yHACiD7D,EAErD,CAmBA,SAAS8F,WAAYC,GACnB,GAAoB,iBAATA,EACT,MAAM,IAAIlC,UAAU,0CACf,GAAIkC,EAAO,EAChB,MAAM,IAAIxLine truncated
|
||||
@@ -1,3 +1,3 @@
|
||||
.swagger-ui{color:#3b4151;font-family:sans-serif/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */}.swagger-ui html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.15}.swagger-ui body{margin:0}.swagger-ui article,.swagger-ui aside,.swagger-ui footer,.swagger-ui header,.swagger-ui nav,.swagger-ui section{display:block}.swagger-ui h1{font-size:2em;margin:.67em 0}.swagger-ui figcaption,.swagger-ui figure,.swagger-ui main{display:block}.swagger-ui figure{margin:1em 40px}.swagger-ui hr{box-sizing:content-box;height:0;overflow:visible}.swagger-ui pre{font-family:monospace,monospace;font-size:1em}.swagger-ui a{-webkit-text-decoration-skip:objects;background-color:transparent}.swagger-ui abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.swagger-ui b,.swagger-ui strong{font-weight:inherit;font-weight:bolder}.swagger-ui code,.swagger-ui kbd,.swagger-ui samp{font-family:monospace,monospace;font-size:1em}.swagger-ui dfn{font-style:italic}.swagger-ui mark{background-color:#ff0;color:#000}.swagger-ui small{font-size:80%}.swagger-ui sub,.swagger-ui sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.swagger-ui sub{bottom:-.25em}.swagger-ui sup{top:-.5em}.swagger-ui audio,.swagger-ui video{display:inline-block}.swagger-ui audio:not([controls]){display:none;height:0}.swagger-ui img{border-style:none}.swagger-ui svg:not(:root){overflow:hidden}.swagger-ui button,.swagger-ui input,.swagger-ui optgroup,.swagger-ui select,.swagger-ui textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}.swagger-ui button,.swagger-ui input{overflow:visible}.swagger-ui button,.swagger-ui select{text-transform:none}.swagger-ui [type=reset],.swagger-ui [type=submit],.swagger-ui button,.swagger-ui html [type=button]{-webkit-appearance:button}.swagger-ui [type=button]::-moz-focus-inner,.swagger-ui [type=reset]::-moz-focus-inner,.swagger-ui [type=submit]::-moz-focus-inner,.swagger-ui button::-moz-focus-inner{border-style:none;padding:0}.swagger-ui [type=button]:-moz-focusring,.swagger-ui [type=reset]:-moz-focusring,.swagger-ui [type=submit]:-moz-focusring,.swagger-ui button:-moz-focusring{outline:1px dotted ButtonText}.swagger-ui fieldset{padding:.35em .75em .625em}.swagger-ui legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.swagger-ui progress{display:inline-block;vertical-align:baseline}.swagger-ui textarea{overflow:auto}.swagger-ui [type=checkbox],.swagger-ui [type=radio]{box-sizing:border-box;padding:0}.swagger-ui [type=number]::-webkit-inner-spin-button,.swagger-ui [type=number]::-webkit-outer-spin-button{height:auto}.swagger-ui [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.swagger-ui [type=search]::-webkit-search-cancel-button,.swagger-ui [type=search]::-webkit-search-decoration{-webkit-appearance:none}.swagger-ui ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.swagger-ui details,.swagger-ui menu{display:block}.swagger-ui summary{display:list-item}.swagger-ui canvas{display:inline-block}.swagger-ui [hidden],.swagger-ui template{display:none}.swagger-ui .debug *{outline:1px solid gold}.swagger-ui .debug-white *{outline:1px solid #fff}.swagger-ui .debug-black *{outline:1px solid #000}.swagger-ui .debug-grid{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTRDOTY4N0U2N0VFMTFFNjg2MzZDQjkwNkQ4MjgwMEIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTRDOTY4N0Q2N0VFMTFFNjg2MzZDQjkwNkQ4MjgwMEIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3NjcyQkQ3NjY3QzUxMUU2QjJCQ0UyNDA4MTAwMjE3MSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3NjcyQkQ3NzY3QzUxMUU2QjJCQ0UyNDA4MTAwMjE3MSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PsBS+GMAAAAjSURBVHjaYvz//z8DLsD4gcGXiYEAGBIKGBne//fFpwAgwAB98AaF2pjlUQAAAABJRU5ErkJggg==) repeat 0 0}.swagger-ui .debug-grid-16{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+ILine truncated
|
||||
.swagger-ui{color:#3b4151;container-name:swagger-ui;container-type:inline-size;/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */font-family:sans-serif}.swagger-ui html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.swagger-ui body{margin:0}.swagger-ui article,.swagger-ui aside,.swagger-ui footer,.swagger-ui header,.swagger-ui nav,.swagger-ui section{display:block}.swagger-ui h1{font-size:2em;margin:.67em 0}.swagger-ui figcaption,.swagger-ui figure,.swagger-ui main{display:block}.swagger-ui figure{margin:1em 40px}.swagger-ui hr{box-sizing:content-box;height:0;overflow:visible}.swagger-ui pre{font-family:monospace,monospace;font-size:1em}.swagger-ui a{background-color:transparent;-webkit-text-decoration-skip:objects}.swagger-ui abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.swagger-ui b,.swagger-ui strong{font-weight:inherit;font-weight:bolder}.swagger-ui code,.swagger-ui kbd,.swagger-ui samp{font-family:monospace,monospace;font-size:1em}.swagger-ui dfn{font-style:italic}.swagger-ui mark{background-color:#ff0;color:#000}.swagger-ui small{font-size:80%}.swagger-ui sub,.swagger-ui sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.swagger-ui sub{bottom:-.25em}.swagger-ui sup{top:-.5em}.swagger-ui audio,.swagger-ui video{display:inline-block}.swagger-ui audio:not([controls]){display:none;height:0}.swagger-ui img{border-style:none}.swagger-ui svg:not(:root){overflow:hidden}.swagger-ui button,.swagger-ui input,.swagger-ui optgroup,.swagger-ui select,.swagger-ui textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}.swagger-ui button,.swagger-ui input{overflow:visible}.swagger-ui button,.swagger-ui select{text-transform:none}.swagger-ui [type=reset],.swagger-ui [type=submit],.swagger-ui button,.swagger-ui html [type=button]{-webkit-appearance:button}.swagger-ui [type=button]::-moz-focus-inner,.swagger-ui [type=reset]::-moz-focus-inner,.swagger-ui [type=submit]::-moz-focus-inner,.swagger-ui button::-moz-focus-inner{border-style:none;padding:0}.swagger-ui [type=button]:-moz-focusring,.swagger-ui [type=reset]:-moz-focusring,.swagger-ui [type=submit]:-moz-focusring,.swagger-ui button:-moz-focusring{outline:1px dotted ButtonText}.swagger-ui fieldset{padding:.35em .75em .625em}.swagger-ui legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}.swagger-ui progress{display:inline-block;vertical-align:baseline}.swagger-ui textarea{overflow:auto}.swagger-ui [type=checkbox],.swagger-ui [type=radio]{box-sizing:border-box;padding:0}.swagger-ui [type=number]::-webkit-inner-spin-button,.swagger-ui [type=number]::-webkit-outer-spin-button{height:auto}.swagger-ui [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.swagger-ui [type=search]::-webkit-search-cancel-button,.swagger-ui [type=search]::-webkit-search-decoration{-webkit-appearance:none}.swagger-ui ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.swagger-ui details,.swagger-ui menu{display:block}.swagger-ui summary{display:list-item}.swagger-ui canvas{display:inline-block}.swagger-ui [hidden],.swagger-ui template{display:none}.swagger-ui .debug *{outline:1px solid gold}.swagger-ui .debug-white *{outline:1px solid #fff}.swagger-ui .debug-black *{outline:1px solid #000}.swagger-ui .debug-grid{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTRDOTY4N0U2N0VFMTFFNjg2MzZDQjkwNkQ4MjgwMEIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTRDOTY4N0Q2N0VFMTFFNjg2MzZDQjkwNkQ4MjgwMEIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3NjcyQkQ3NjY3QzUxMUU2QjJCQ0UyNDA4MTAwMjE3MSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3NjcyQkQ3NzY3QzUxMUU2QjJCQ0UyNDA4MTAwMjE3MSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PsBS+GMAAAAjSURBVHjaYvz//z8DLsD4gcGXiYEAGBIKGBne//fFpwAgwAB98AaF2pjlUQAAAABJRU5ErkJggg==) repeat 0 0}.swagger-ui .debug-grid-16{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpLine truncated
|
||||
|
||||
/*# sourceMappingURL=swagger-ui.css.map*/
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"swagger-ui.css","mappings":"AAAA,YCII,aCYU,CDdV,sBEKJ,4EDSc,CCEd,iBAEE,0BACA,8BAFA,gBAEA,CAUF,iBACE,SAOF,gHAME,cAQF,eACE,cACA,eAWF,2DAGE,cAOF,mBACE,gBAQF,eACE,uBACA,SACA,iBAQF,gBACE,gCACA,cAWF,cAEE,qCADA,4BACA,CAQF,wBACE,mBAEA,oGAOF,iCAEE,oBASA,kBATA,CAiBF,kDAGE,gCACA,cAOF,gBACE,kBAOF,iBACE,sBACA,WAOF,kBACE,cAQF,gCAEE,cACA,cACA,kBACA,wBAGF,gBACE,cAGF,gBACE,UAUF,oCAEE,qBAOF,kCACE,aACA,SAOF,gBACE,kBAOF,2BACE,gBAWF,kGAKE,uBACA,eACA,iBACA,SAQF,qCAEE,iBAQF,sCAEE,oBASF,qGAIE,0BAOF,wKAIE,kBACA,UAOF,4JAIE,8BAOF,qBACE,2BAUF,mBACE,sBACA,cACA,cACA,eACA,UACA,mBAQF,qBACE,qBACA,wBAOF,qBACE,cAQF,qDAEE,sBACA,UAOF,0GAEE,YAQF,0BACE,6BACA,oBAOF,6GAEE,wBAQF,yCACE,0BACA,aAWF,qCAEE,cAOF,oBACE,kBAUF,mBACE,qBAkBF,0CACE,aCnbF,4CACA,kDACA,kDCDA,wBACE,0EAGF,2BACE,0EAGF,gCACE,mEAGF,iCACE,mEClBF,0tBAkCE,sBCrBF,0BACE,SACA,kBAGF,sDACA,uDAEA,kDACA,sDAEA,oDACA,mDAEA,oDACA,mDAEA,qDACA,mDAEA,mDAEA,kCAII,SAGA,YAFA,OAJA,kBAEA,QADA,MAIA,WAEA,YAGJ,mCACI,6BACE,SACA,kBAEF,yDACA,0DACA,qDACA,yDACA,uDACA,sDACA,uDACA,sDACA,wDACA,sDACA,sDACA,qCAII,SAGA,YAFA,OAJA,kBAEA,QADA,MAIA,WAEA,aAIR,uDACI,4BACE,SACA,kBAEF,wDACA,yDACA,oDACA,wDACA,sDACA,qDACA,sDACA,qDACA,uDACA,qDACA,qDACA,oCAII,SAGA,YAFA,OAJA,kBAEA,QADA,MAIA,WAEA,aAIR,mCACI,4BACE,SACA,kBAEF,wDACA,yDACA,oDACA,wDACA,sDACA,qDACA,sDACA,qDACA,uDACA,qDACA,qDACA,oCAII,SAGA,YAFA,OAJA,kBAEA,QADA,MAIA,WAEA,aC3HR,+BCQE,mDACA,uDAEF,mCACE,sDACA,2DAGF,uDACE,qDACA,0DAGF,mCACE,qDACA,0DCXF,uBAEE,wBADA,2BACA,CAGF,oBAEE,wBADA,2BACA,CAGF,sBAEE,yBADA,2BACA,CAGF,uBAEE,2BADA,2BACA,CAGF,qBAEE,sBADA,2BACA,CAGF,mCACE,0BAEE,wBADA,2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kCACA,8BAEA,8BACA,kCACA,oCACA,gCAEA,8BACA,kCACA,oCACA,gCAGA,4BAGE,SACA,OAFA,QADA,KAGA,CAGF,mCACE,4BACA,8BACA,gCACA,kCACA,+BACA,iCACA,mCACA,qCACA,+BACA,iCACA,mCACA,qCACA,iCACA,qCACA,uCACA,mCACA,iCACA,qCACA,uCACA,mCACA,+BAGE,SACA,OAFA,QADA,KAGA,EAIJ,uDACE,2BACA,6BACA,+BACA,iLine truncated
|
||||
{"version":3,"file":"swagger-ui.css","mappings":"AAAA,YCII,aCcU,CFfd,yBACE,2BACA,4EGEF,CFJE,sBEIF,CDWc,iCCCZ,0BACA,8BACA,kBAUF,QACE,iHAOF,aAME,gBAQF,aACE,eACA,4DAWF,aAGE,oBAOF,eACE,gBAQF,sBACE,SACA,iBACA,iBAQF,+BACE,cACA,eAWF,4BACE,qCACA,yBAQF,kBACE,CACA,yBACA,CADA,wCACA,CADA,gCACA,kCAOF,mBAEE,CAOF,kBAPE,CASA,kDAQF,+BAGE,cACA,iBAOF,iBACE,kBAOF,qBACE,WACA,mBAOF,aACE,iCAQF,aAEE,cACA,kBACA,wBACA,iBAGF,aACE,iBAGF,SACE,qCAUF,oBAEE,mCAOF,YACE,SACA,iBAOF,iBACE,4BAOF,eACE,mGAWF,sBAKE,eACA,iBACA,SACA,sCAQF,gBAEE,uCAQF,mBAEE,sGASF,yBAIE,yKAOF,iBAIE,UACA,6JAOF,6BAIE,sBAOF,0BACE,oBAUF,qBACE,cACA,cACA,eACA,UACA,mBACA,sBAQF,oBACE,wBACA,sBAOF,aACE,sDAQF,qBAEE,UACA,2GAOF,WAEE,2BAQF,4BACE,oBACA,8GAOF,uBAEE,0CAQF,yBACE,aACA,sCAWF,aAEE,qBAOF,iBACE,oBAUF,oBACE,CAQA,0CAUF,YACE,sBCnbF,kDACA,kDACA,+CCDA,yEACE,4BAGF,yEACE,iCAGF,kEACE,kCAGF,kEACE,2tBClBF,qBAkCE,2BCrBF,QACE,kBACA,iCAGF,sDACA,sDAEA,kDACA,sDAEA,oDACA,mDAEA,oDACA,mDAEA,qDACA,mDAEA,sDAKI,QACA,CAEA,WACA,CAHA,MACA,CALJ,iBACI,CACA,OACA,CAFA,KACA,CAGA,UACA,CACA,WACA,oCAGJ,6BACI,QACE,kBACA,oCAEF,yDACA,yDACA,qDACA,yDACA,uDACA,sDACA,uDACA,sDACA,wDACA,sDACA,yDAII,QACA,CAEA,WACA,CAHA,MACA,CALJ,iBACI,CACA,OACA,CAFA,KACA,CAGA,UACA,CACA,WACA,yDAIR,4BACI,QACE,kBACA,mCAEF,wDACA,wDACA,oDACA,wDACA,sDACA,qDACA,sDACA,qDACA,uDACA,qDACA,wDAII,QACA,CAEA,WACA,CAHA,MACA,CALJ,iBACI,CACA,OACA,CAFA,KACA,CAGA,UACA,CACA,WACA,qCAIR,4BACI,QACE,kBACA,mCAEF,wDACA,wDACA,oDACA,wDACA,sDACA,qDACA,sDACA,qDACA,uDACA,qDACA,wDAII,QACA,CAEA,WACA,CAHA,MACA,CALJ,iBACI,CACA,OACA,CAFA,KACA,CAGA,UACA,CACA,WACA,kBC3HR,kCCQE,qDACA,qEAEF,sBACE,wDACA,0FAGF,qBACE,uDACA,sEAGF,qBACE,uDACA,0DCVA,uBACA,CAFF,2BAEE,qBAIA,uBACA,CAFF,2BAEE,uBAIA,wBACA,CAFF,2BAEE,wBAIA,0BACA,CAFF,2BAEE,sBAIA,qBACA,CAFF,2BAEE,oCAGF,0BAEI,uBACA,CAFF,2BAEE,wBAIA,uBACA,CAFF,2BAEE,0BAIA,wBACA,CAFF,2BAEE,2BAIA,0BACA,CAFF,2BAEE,yBAIA,qBACA,CAFF,2BAEE,yDAIJ,yBAEI,uBACA,CAFF,2BAEE,uBAIA,uBACA,CAFF,2BAEE,yBAIA,wBACA,CAFF,2BAEE,0BAIA,0BACA,CAFF,2BAEE,wBAIA,qBACA,CAFF,2BAEE,qCAIJ,yBAEI,uBACA,CAFF,2BAEE,uBAIA,uBACA,CAF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BH6BiB,kBG5BjB,mBH6BiB,kBG5BjB,kBH6BiB,kBG5BjB,iBH6BiB,kBG5BjB,iBH6BiB,mBG1BjB,kBHqBoB,mBGpBpB,oBHoBoB,mBGnBpB,qBHmBoB,mBGlBpB,mBHkBoB,oCGhBpB,oBACE,cHekB,qBGdlB,oBHee,qBGdf,mBHee,qBGdf,kBHee,qBGdf,iBHee,qBGdf,iBHee,sBGdf,kBHSkB,sBGRlB,oBHQkB,sBGPlB,qBHOkB,sBGNlB,mBHMkB,yDGHpB,mBACE,cHEkB,oBGDlB,oBHEe,oBGDf,mBHEe,oBGDf,kBHEe,oBGDf,iBHEe,oBGDf,iBHEe,qBGDf,kBHJkB,qBGKlB,oBHLkB,qBGMlB,qBHNkB,qBGOlB,mBHPkB,qCGUpB,mBACE,cHXkB,oBGYlB,oBHXe,oBGYf,mBHXe,oBGYf,kBHXe,oBGYf,iBHXe,oBGYf,iBHXe,qBGYf,kBHjBkB,qBGkBlB,oBHlBkB,qBGmBlB,qBHnBkB,qBGoBlB,mBHpBkB,wBIxCpB,qCJ8Ce,uBI7Cf,qCJ8Ce,uBI7Cf,yCJ8Ce,uBI7Cf,uCJ8Ce,uBI7Cf,uCJ8Ce,oCI5Cf,yBACE,qCJuCa,0BItCb,qCJuCa,0BItCb,yCJuCa,0BItCb,uCJuCa,0BItCb,uCJuCa,yDIpCf,wBACE,qCJ+Ba,yBI9Bb,qCJ+Ba,yBI9Bb,yCJ+Ba,yBI9Bb,uCJ+Ba,yBI9Bb,uCJ+Ba,qCI5Bf,wBACE,qCJuBa,yBItBb,qCJuBa,yBItBb,yCJuBa,yBItBb,uCJuBa,yBItBb,uCJuBa,mBKxDf,eACE,kBACA,gBACA,oBCkBF,2BACA,8BACALine truncated
|
||||
@@ -1,2 +1,2 @@
|
||||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUICore=t():e.SwaggerUICore=t()}(this,(()=>(()=>{var e={6024:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var s=n(4250),r=n.n(s),a=n(1093),o=n.n(a),l=n(8493),c=n.n(l),i=n(3942),u=n.n(i),p=n(6689),m=n.n(p);const d=require("react-immutable-pure-component");var h=n.n(d),g=n(8082),f=n.n(g),y=n(580),S=n.n(y);const v=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class E extends(h()){constructor(){super(...arguments),o()(this,"getModelName",(e=>-1!==c()(e).call(e,"#/definitions/")?v(e.replace(/^.*#\/definitions\//,"")):-1!==c()(e).call(e,"#/components/schemas/")?v(e.replace(/^.*#\/components\/schemas\//,"")):void 0)),o()(this,"getRefSchema",(e=>{let{specSelectors:t}=this.props;return t.findDefinition(e)}))}render(){let{getComponent:e,getConfigs:t,specSelectors:s,schema:a,required:o,name:l,isRef:c,specPath:i,displayName:u,includeReadOnly:p,includeWriteOnly:d}=this.props;const h=e("ObjectModel"),g=e("ArrayModel"),f=e("PrimitiveModel");let y="object",S=a&&a.get("$$ref");if(!l&&S&&(l=this.getModelName(S)),!a&&S&&(a=this.getRefSchema(l)),!a)return m().createElement("span",{className:"model model-title"},m().createElement("span",{className:"model-title__text"},u||l),m().createElement("img",{src:n(2517),height:"20px",width:"20px"}));const v=s.isOAS3()&&a.get("deprecated");switch(c=void 0!==c?c:!!S,y=a&&a.get("type")||y,y){case"object":return m().createElement(h,r()({className:"object"},this.props,{specPath:i,getConfigs:t,schema:a,name:l,deprecated:v,isRef:c,includeReadOnly:p,includeWriteOnly:d}));case"array":return m().createElement(g,r()({className:"array"},this.props,{getConfigs:t,schema:a,name:l,deprecated:v,required:o,includeReadOnly:p,includeWriteOnly:d}));default:return m().createElement(f,r()({},this.props,{getComponent:e,getConfigs:t,schema:a,name:l,deprecated:v,required:o}))}}}o()(E,"propTypes",{schema:u()(f()).isRequired,getComponent:S().func.isRequired,getConfigs:S().func.isRequired,specSelectors:S().object.isRequired,name:S().string,displayName:S().string,isRef:S().bool,required:S().bool,expandDepth:S().number,depth:S().number,specPath:f().list.isRequired,includeReadOnly:S().bool,includeWriteOnly:S().bool})},5623:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var s=n(1093),r=n.n(s),a=n(7252),o=n.n(a),l=n(6689),c=n.n(l),i=n(3883),u=n.n(i),p=(n(580),n(1669)),m=n(7504);class d extends c().Component{constructor(e,t){super(e,t),r()(this,"getDefinitionUrl",(()=>{let{specSelectors:e}=this.props;return new(u())(e.url(),m.Z.location).toString()}));let{getConfigs:n}=e,{validatorUrl:s}=n();this.state={url:this.getDefinitionUrl(),validatorUrl:void 0===s?"https://validator.swagger.io/validator":s}}UNSAFE_componentWillReceiveProps(e){let{getConfigs:t}=e,{validatorUrl:n}=t();this.setState({url:this.getDefinitionUrl(),validatorUrl:void 0===n?"https://validator.swagger.io/validator":n})}render(){let{getConfigs:e}=this.props,{spec:t}=e(),n=(0,p.Nm)(this.state.validatorUrl);return"object"==typeof t&&o()(t).length?null:this.state.url&&(0,p.hW)(this.state.validatorUrl)&&(0,p.hW)(this.state.url)?c().createElement("span",{className:"float-right"},c().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${n}/debug?url=${encodeURIComponent(this.state.url)}`},c().createElement(h,{src:`${n}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class h extends c().Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){const e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){const t=new Image;t.onload=()=>{this.setState({loaded:!0})},t.onerror=()=>{this.setState({error:!0})},t.src=e.src}}render(){return this.state.error?c().createElement("img",{alt:"Error"}):this.state.loaded?c().createElement("img",{src:this.props.src,alt:this.props.alt}):null}}},2552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m,s:()=>d});var s=n(6689),r=n.n(s),a=(n(580),n(963));const o=require("remarkable/linkify"),l=require("dompurify");var c=n.n(l),i=n(9003),u=n.n(i);function p(e){let{source:t,className:n="",getConfigs:s}=e;if("string"!=typeof t)return null;const l=new a.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(o.linkify);l.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:c}=s(),i=l.render(t),p=d(i,{useUnsafeMarkdown:c});return t&&i&&p?r().createElement("div",{className:u()(n,"markdown"),dangerouslySetInnerHTML:{__html:p}}):null}c().addHook&&c().addHook("beforeSanitizeElements",(function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e})),p.defaultProps={getConfigs:()=>({useUnsafeMarkdown:!1})};const m=p;function d(e){let{useUnsafeMarkdown:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguLine truncated
|
||||
!function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerUICore=t():e.SwaggerUICore=t()}(this,(()=>(()=>{"use strict";var e={158(e){e.exports=require("buffer")}},t={};function __webpack_require__(a){var r=t[a];if(void 0!==r)return r.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};__webpack_require__.d(a,{default:()=>Cl});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{CLEAR:()=>$,CLEAR_BY:()=>L,NEW_AUTH_ERR:()=>V,NEW_SPEC_ERR:()=>R,NEW_SPEC_ERR_BATCH:()=>J,NEW_THROWN_ERR:()=>P,NEW_THROWN_ERR_BATCH:()=>T,clear:()=>clear,clearBy:()=>clearBy,newAuthErr:()=>newAuthErr,newSpecErr:()=>newSpecErr,newSpecErrBatch:()=>newSpecErrBatch,newThrownErr:()=>newThrownErr,newThrownErrBatch:()=>newThrownErrBatch});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{AUTHORIZE:()=>ue,AUTHORIZE_OAUTH2:()=>he,CONFIGURE_AUTH:()=>ge,LOGOUT:()=>de,RESTORE_AUTHORIZATION:()=>ye,SHOW_AUTH_POPUP:()=>me,authPopup:()=>authPopup,authorize:()=>authorize,authorizeAccessCodeWithBasicAuthentication:()=>authorizeAccessCodeWithBasicAuthentication,authorizeAccessCodeWithFormParams:()=>authorizeAccessCodeWithFormParams,authorizeApplication:()=>authorizeApplication,authorizeOauth2:()=>authorizeOauth2,authorizeOauth2WithPersistOption:()=>authorizeOauth2WithPersistOption,authorizePassword:()=>authorizePassword,authorizeRequest:()=>authorizeRequest,authorizeWithPersistOption:()=>authorizeWithPersistOption,configureAuth:()=>configureAuth,logout:()=>logout,logoutWithPersistOption:()=>logoutWithPersistOption,persistAuthorizationIfNeeded:()=>persistAuthorizationIfNeeded,preAuthorizeImplicit:()=>preAuthorizeImplicit,restoreAuthorization:()=>restoreAuthorization,showDefinitions:()=>showDefinitions});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{authorized:()=>ve,definitionsForRequirements:()=>definitionsForRequirements,definitionsToAuthorize:()=>_e,getConfigs:()=>we,getDefinitionsByNames:()=>getDefinitionsByNames,isAuthorized:()=>isAuthorized,selectAuthPath:()=>selectAuthPath,shownDefinitions:()=>Ee});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{TOGGLE_CONFIGS:()=>qe,UPDATE_CONFIGS:()=>Ie,downloadConfig:()=>downloadConfig,getConfigByUrl:()=>getConfigByUrl,loaded:()=>actions_loaded,toggle:()=>toggle,update:()=>update});var l={};__webpack_require__.r(l),__webpack_require__.d(l,{get:()=>get});var c={};__webpack_require__.r(c),__webpack_require__.d(c,{transform:()=>transform});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{transform:()=>parameter_oneof_transform});var p={};__webpack_require__.r(p),__webpack_require__.d(p,{allErrors:()=>Ye,lastError:()=>Qe});var m={};__webpack_require__.r(m),__webpack_require__.d(m,{SHOW:()=>nt,UPDATE_FILTER:()=>at,UPDATE_LAYOUT:()=>tt,UPDATE_MODE:()=>rt,changeMode:()=>changeMode,show:()=>actions_show,updateFilter:()=>updateFilter,updateLayout:()=>updateLayout});var u={};__webpack_require__.r(u),__webpack_require__.d(u,{current:()=>current,currentFilter:()=>currentFilter,isShown:()=>isShown,showSummary:()=>ot,whatMode:()=>whatMode});var d={};__webpack_require__.r(d),__webpack_require__.d(d,{taggedOperations:()=>taggedOperations});var h={};__webpack_require__.r(h),__webpack_require__.d(h,{getActiveLanguage:()=>it,getDefaultExpanded:()=>pt,getGenerators:()=>ct,getSnippetGenerators:()=>getSnippetGenerators});var g={};__webpack_require__.r(g),__webpack_require__.d(g,{JsonSchemaArrayItemFile:()=>JsonSchemaArrayItemFile,JsonSchemaArrayItemText:()=>JsonSchemaArrayItemText,JsonSchemaForm:()=>JsonSchemaForm,JsonSchema_array:()=>JsonSchema_array,JsonSchema_boolean:()=>JsonSchema_boolean,JsonSchema_object:()=>JsonSchema_object,JsonSchema_string:()=>JsonSchema_string});var y={};__webpack_require__.r(y),__webpack_require__.d(y,{allowTryItOutFor:()=>allowTryItOutFor,basePath:()=>ga,canExecuteScheme:()=>canExecuteScheme,consumes:()=>pa,consumesOptionsFor:()=>consumesOptionsFor,contentTypeValues:()=>contentTypeValues,currentProducesFor:()=>currentProducesFor,definitions:()=>ha,externalDocs:()=>na,findDefinition:()=>findDefinition,getOAS3RequiredRequestBodyContentType:()=>getOAS3RequiredRequestBodyContentType,getParameter:()=>getParameter,hasHost:()=>Ca,host:()=>ya,info:()=>ra,isMediaTypeSchemaPropertiesEqual:()=>isMediaTypeSchemaPropertiesEqual,isOAS3:()=>aa,lastError:()=>Ht,mutatedLine truncated
|
||||
//# sourceMappingURL=swagger-ui.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"swagger-ui.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAuB,cAAID,IAE3BD,EAAoB,cAAIC,GACzB,CATD,CASGK,MAAM,I,6JCTT,MAAM,EAA+BC,QAAQ,kC,kDCK7C,MAAMC,EAAgBC,IACpB,MAAMC,EAAYD,EAAIE,QAAQ,MAAO,KAAKA,QAAQ,MAAO,KAEzD,IACE,OAAOC,mBAAmBF,EAC5B,CAAE,MACA,OAAOA,CACT,GAGa,MAAMG,UAAcC,KAAuBC,cAAA,SAAAC,WAAAC,IAAA,qBAiBxCC,IAC0B,IAAnCC,IAAAD,GAAGE,KAAHF,EAAY,kBACRV,EAAcU,EAAIP,QAAQ,sBAAuB,MAEX,IAA1CQ,IAAAD,GAAGE,KAAHF,EAAY,yBACRV,EAAcU,EAAIP,QAAQ,8BAA+B,UADlE,IAGDM,IAAA,qBAEeI,IACd,IAAI,cAAEC,GAAkBhB,KAAKiB,MAE7B,OAAOD,EAAcE,eAAeH,EAAM,GAC3C,CAEDI,SACE,IAAI,aAAEC,EAAY,WAAEC,EAAU,cAAEL,EAAa,OAAEM,EAAM,SAAEC,EAAQ,KAAEC,EAAI,MAAEC,EAAK,SAAEC,EAAQ,YAAEC,EAAW,gBACjGC,EAAe,iBAAEC,GAAoB7B,KAAKiB,MAC5C,MAAMa,EAAcV,EAAa,eAC3BW,EAAaX,EAAa,cAC1BY,EAAiBZ,EAAa,kBACpC,IAAIa,EAAO,SACPC,EAAQZ,GAAUA,EAAOa,IAAI,SAWjC,IARM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AAOgG,KAAK5F,GAAK6F,QAAO,CAAChB,EAAQnF,KACtC,IAAIqG,EAAMR,EAAGvF,EAAIN,GAAMA,GAGvB,OAFGqG,GAAsB,iBAARA,GACfnG,OAAOoG,OAAOnB,EAAQkB,GACjBlB,CAAM,GACZ,CAAC,EACN,CAGO,SAASoB,sBAAsBC,GACpC,MAAO,EAAGC,WAAUC,cACXC,GAAQC,GACS,mBAAXA,EACFA,EAAOJ,KAGTG,EAAKC,EAGlB,CAyOA,SAASC,sBAAsB/F,EAAO0C,EAAQsD,EAAiBC,EAAqBtD,EAA2BuD,GAC7G,IAAIxD,EAAQ,MAAO,GACnB,IAAI5B,EAAS,GACTqF,EAAWzD,EAAOnD,IAAI,YACtB6G,EAAmB1D,EAAOnD,IAAI,YAC9B8G,EAAU3D,EAAOnD,IAAI,WACrB+G,EAAU5D,EAAOnD,IAAI,WACrBmB,EAAOgC,EAAOnD,IAAI,QAClBgH,EAAS7D,EAAOnD,IAAI,UACpBiH,EAAY9D,EAAOnD,IAAI,aACvBkH,EAAY/D,EAAOnD,IAAI,aACvBmH,EAAchE,EAAOnD,IAAI,eACzBoH,EAAWjLine truncated
|
||||
@@ -8,7 +8,7 @@ if(file_exists('inc/vars.local.inc.php')) {
|
||||
$autodiscover_config = array_merge($default_autodiscover_config, $autodiscover_config);
|
||||
|
||||
header('Content-type: application/json');
|
||||
if (strtolower($_GET['Protocol']) == 'activesync' && getenv('SKIP_SOGO') != "y") {
|
||||
if (strtolower($_GET['Protocol']) == 'activesync' && $autodiscover_config['autodiscoverType'] == 'activesync' && getenv('SKIP_SOGO') != "y") {
|
||||
echo '{"Protocol":"ActiveSync","Url":"' . $autodiscover_config['activesync']['url'] . '"}';
|
||||
}
|
||||
elseif (strtolower($_GET['Protocol']) == 'autodiscoverv1') {
|
||||
|
||||
@@ -31,7 +31,7 @@ error_reporting(0);
|
||||
|
||||
$data = trim(file_get_contents("php://input"));
|
||||
|
||||
if (strpos($data, 'autodiscover/outlook/responseschema') !== false) {
|
||||
if (strpos($data, 'autodiscover/outlook/responseschema') !== false && $autodiscover_config['autodiscoverType'] == 'activesync') {
|
||||
$autodiscover_config['autodiscoverType'] = 'imap';
|
||||
if ($autodiscover_config['useEASforOutlook'] == 'yes' &&
|
||||
// Office for macOS does not support EAS
|
||||
|
||||
@@ -15,6 +15,10 @@ table.dataTable>tbody>tr.child ul.dtr-details>li {
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.129);
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
/* like the first entry has no top padding, the last one needs no bottom padding */
|
||||
table.dataTable>tbody>tr.child ul.dtr-details>li:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before:hover,
|
||||
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before:hover {
|
||||
background-color: var(--mc-dtr-hover-bg);
|
||||
@@ -28,7 +32,8 @@ table.dataTable td.dt-control:before {
|
||||
color: var(--mc-dtr-color);
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
line-height: 1.25em;
|
||||
line-height: 1em;
|
||||
margin-top: calc(-0.5em - 1.5px);
|
||||
border-radius: 0px;
|
||||
box-shadow: none;
|
||||
font-size: 14px;
|
||||
@@ -39,11 +44,29 @@ table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control:before,
|
||||
table.dataTable td.dt-control:before {
|
||||
background-color: var(--mc-dtr-active-bg) !important;
|
||||
}
|
||||
/* The default initial order targets column 0, which is usually the non-orderable expand column */
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_asc,
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_desc {
|
||||
padding-right: 0.5rem;
|
||||
cursor: auto;
|
||||
}
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_asc:before,
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_asc:after,
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_desc:before,
|
||||
table.dataTable thead > tr > th.sorting_disabled.sorting_desc:after {
|
||||
display: none;
|
||||
}
|
||||
table.dataTable.table-striped>tbody>tr>td {
|
||||
vertical-align: middle;
|
||||
}
|
||||
table.dataTable.table-striped>tbody>tr>td>input[type="checkbox"] {
|
||||
margin-top: 7px;
|
||||
/* centers the 1em checkbox in the 1.5em line, level with the expand control */
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
/* the vertical margin is meant for the tag editor in edit forms, in tables it only adds height */
|
||||
table.dataTable .tag-badge {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
td.dtr-col-lg {
|
||||
min-width: 350px;
|
||||
|
||||
@@ -139,6 +139,13 @@ body {
|
||||
display: inline-block;
|
||||
font-size: inherit;
|
||||
}
|
||||
.badge .bi {
|
||||
font-size: inherit;
|
||||
}
|
||||
/* keeps icons from making a badge taller than one with text only */
|
||||
.badge .bi::before {
|
||||
line-height: 0;
|
||||
}
|
||||
.btn-group-xs > .btn, .btn-xs {
|
||||
padding: .25rem .4rem;
|
||||
font-size: .875rem;
|
||||
@@ -343,6 +350,7 @@ code {
|
||||
}
|
||||
.tag-badge .bi {
|
||||
font-size: 12px;
|
||||
line-height: 0;
|
||||
}
|
||||
.tag-badge.btn-badge:hover {
|
||||
filter: brightness(0.9);
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
height: 2rem;
|
||||
width: 2rem;
|
||||
line-height: 2rem;
|
||||
margin-top: -15px;
|
||||
margin-top: calc(-1rem - 1.5px);
|
||||
}
|
||||
|
||||
li .dtr-data {
|
||||
|
||||
+107
-24
@@ -1,26 +1,109 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" id="flag-icon-css-sa" viewBox="0 0 512 512">
|
||||
<defs>
|
||||
<clipPath id="a">
|
||||
<path fill-opacity=".7" d="M124 0h496v496H124z"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(-128) scale(1.0321)">
|
||||
<path fill="#199d00" d="M0 0h744v496H0z"/>
|
||||
<path fill="#fff" d="M187.5 140.6c-.8 11.6-1.9 32 8 34.1 11.9 1.1 5.3-20.2 9.6-24 .9-2 2.4-2 2.5.5v18c-.1 6 3.7 7.6 6.7 8.9 3.2-.3 5.2-.2 6.5 2.8l1.4 31.3s7.3 2 7.6-17.6c.4-11.5-2.3-21.2-.7-23.4 0-2.2 2.8-2.3 4.8-1.3 3.1 2.2 4.5 5 9.3 3.8 7.4-2 11.8-5.6 12-11.2a51 51 0 00-3.4-16.1c.3-1-1.5-3.5-1.1-4.5 1.3 2 3.3 1.9 3.8 0-1.3-4.2-3.2-8.1-6.4-9.8-2.6-2.3-6.4-1.8-7.8 3a26 26 0 006 17.3 17 17 0 011.5 8.7c-2.1 1.3-4.2.7-6-1.1 0 0-5.9-4.5-5.9-5.4 1.6-10 .4-11.1-.5-13.9-.6-3.8-2.4-5-3.9-7.6-1.5-1.6-3.4-1.6-4.4 0-2.6 4.5-1.4 14.1.5 18.4 1.4 4 3.4 6.5 2.4 6.5-.8 2.2-2.4 1.7-3.6-.9a61.2 61.2 0 01-2.1-16.9c-.5-4.5-1-14-4-16.4-1.8-2.4-4.5-1.2-5.4 1a80 80 0 00.3 13c2 7 2.6 13.4 3.6 20.7.3 9.8-5.7 4.3-5.4-.6 1.4-6.3 1-16.3-.2-18.8-1-2.5-2.1-3.1-4.4-2.7-2-.2-6.7 5-8 13.8 0 0-1.2 4.5-1.7 8.4-.7 4.5-3.6 7.7-5.7-.6-1.8-6-2.9-20.9-5.9-17.4z"/>
|
||||
<path fill="#fff" d="M219.9 188.2l-31 14.9c.3-7 14.7-19.8 24.5-20 6.4.2 4.8 2.5 6.5 5z"/>
|
||||
<path fill="#fff" d="M214.5 197.9c-16.4 42.1 38.2 48 44.3 1.7.6-1.9 3-3.8 3.3-.7-1.3 42-42.2 44.8-49.2 31.6-1.7-3-2.2-10-2.4-14.2-1-8.2-5.4-5-6 3.2-.7 4.5-.6 5.8-.6 10.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-.6 8.3-.7 12zm-69.6 46.6c1-9.6-.3-26.5-.4-32.1-.4-13.3-2.6-39-3.6-43.2-1.2-8.1 3.3.9 2.7-3.8-1.5-8-6-13.6-11.2-21-1.7-2.3-1.6-2.8-4.3.6-2.8 6.6-.3 11.1.4 16.2 3.8 16.7 6 32 7 47.2a381.2 381.2 0 01.4 47.5c2.9.2 7.5-4.6 9-11.4z"/>
|
||||
<path fill="#fff" d="M544.5 209.2c-6.7-11.1-16.7-23.2-19.4-27.7a639.2 639.2 0 00-28.2-36.7c-8.3-8.7 3.8-1.4-1.6-8.1-4.6-5-6-6.6-9.8-9.6-2-1.3-3.2-3.7-3.8.4-.3 3.6-.5 7.8-.3 10.9 0 1.7 1.8 4.8 3.3 6.7 20 24.7 42 50 59.7 81.7 2.5-1.4 1.7-15.6 0-17.6z"/>
|
||||
<path fill="#1ba400" d="M242.8 188.6c-.5.9-1.6 2-1.2 3 .8 1 1.4 1.3 2.6 1.4 1 0 2.6.2 2.9-.4a3.2 3.2 0 00.5-3.2c-1-2.8-4.2-1.8-4.8-.8z"/>
|
||||
<path fill="#fff" d="M467.2 351.3c8.9.3 14.7.4 22.6 1.3l9.2-1c10.3-1 10.8 14.7 10.8 14.7-.1 9.2-3.7 9.6-8.2 10.6-2.6.4-4-1.5-5.3-3.5-1.7.7-4 .8-6.9.4-3.7-.2-7.4-.2-11-.5-4-.3-6.1.5-10 .1-.9 1.3-2 3-4.3 2.5-2-.2-4.4-5.9-3.7-10.1 1.4-3.1 1-2.1.9-3.5-36.4-.9-73-2.5-108.7-2-28 0-55.5 1.2-83 2.4-14.7-.2-26-2.6-33.7-14 .7 0 37.5 2.2 48.2 1.5 20-.3 38.1-1.9 58.4-2.5 40 .7 79.5.7 119.5 3.5-3.8-2.6-4-8.8 2-10.3.4-.3.7 3 1.6 3 4.6-.3 2.6 6 1.6 7.4zM306.8 131c-6 17.3 3.4 36.2 10 34.4 4.8 2 7.8-7.1 9.8-17 1.3-2.8 2.3-3.1 3-1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5 19.4-14 19.4-14 1.9-.6 1.5 7 .6 7a75.3 75.3 0 01-20 13.9c-1 .6-1.9-5.2 0-7zm17.2-.1c3.3 1.6 4.7 11.4 4.3 14 .1 5.2-3.2 9.3-4.5 8.6-1.4-.6.1-6.4-.5-8.4-.7-2.9-3.6-8.3-3.1-9.8-1-3.3 1.8-5 3.8-4.4zm-112.4 42c1.3-2 5.3-4.7 5.4-4.7 1.9-1 3.7.7 3.6.6.3 1.9-1.2 3.6-.7 6.1.4 1 .7 2.1 2.6 1.7 3-2.3 5.8-2.5 8.8-2.7 2.3.2 2.3 4 .9 4.1-5.6 1.2-8 2.7-12 4.2-1.9 1.1-3.5-.3-3.5-.4s-1-1.1-.3-3.6c.1-2-.7-3-2.3-2.8-1.3.6-2.4 1-3-.4-.3-1-.3-1.5.5-2.1zm132.3 5.2c.8 1 1.4 2 0 3.7l-3.6 3c-.7 1.2-1 2.8.9 3.3 3.5 1 11.7-4.3 11.7-4.4 1.3-1 .9-2.9.7-2.9-.7-.9-2.5-.4-3.6-.5-.6 0-2.4-.3-1.6-1.9.8-1 1-1.6 1.5-2.9.6-1.2.1-2-1.9-2.7-2-.3-2.8-.1-5 0-1.3.3-1.7.8-2 2.3.2 2.2 1.5 2.1 3 3z"/>
|
||||
<path fill="#259f00" d="M383.8 183.8c-.5 1-2.3.9-4 0s-2.5-2.5-2-3.4 2.3-.9 4 0 2.5 2.5 2 3.4zM297.5 132c-1 .3-2.3-.6-2.9-2s-.3-2.5.7-2.8 2.3.7 2.9 2 .3 2.6-.7 2.8z"/>
|
||||
<path fill="#209000" d="M468.2 363.3c9 .4 17.6.1 26.6.6 1.7 1.3.5 4.8-.6 4.5l-7.6-.2c0-2.9-7.5-2.4-7.2.1-4 .5-7.6-.1-11.6-.3-1.2-1.5-1-4.1.4-4.7z"/>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" version="1.0" id="flag-icons-arab" viewBox="0 0 512 512">
|
||||
<path fill="#006233" d="M0 0v512h512V0Z" class="arab-fil0 arab-str0"/>
|
||||
<g fill="#fff" fill-rule="evenodd" stroke="#fff">
|
||||
<path stroke-width=".4" d="M1071.9 2779.7c-25.9 38.9-7.2 64.2 19.5 66 17.6 1.3 54.2-24.9 54.1-55.7l-10-5.6c5.6 15.8-.2 20.8-12.1 31.6-23.5 21.3-71.5 22.8-51.5-36.3z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path d="M1277.2 2881.7c145.8 4.1 192.2-137 102.2-257.8l-8.9 13.3c5.8 56.3 14.2 111.8 15 169.5-17.6 20.7-43.2 13-48.3-10 .3-31.2-9.9-57.6-22.8-82.8l-7.2 13.3c8.4 20.7 17.5 44 19.4 69.5-41.6 49.9-87.6 60-70.5-5.6-32.9 57.5 16.9 98 73.3 9.5 12.1 60.4 58.9 22.9 61.7 9.9 5.1-39.6 2.5-103.4-7.8-153.8 40.6 70.3 42 121 20.4 154.9-24 37.7-76.2 55.3-126.5 70.1z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path d="M1359.9 2722.2c-31.2 2.3-47.2-4.1-30.3-27.2 16.7-22.6 32.3-4.6 36.5 25.6 3.9 28.3-54.8 64.4-75.1 64.4-30.7 0-44.9-39.5-16.6-75-36.4 103.6 78.6 43.5 85.5 12.2zm-21.6-24c-3.8-.2-6.6 6.5-4.7 7.8 5.5 3.8 14.2 1.5 15.1-.4 1.9-4.2-5.1-7.2-10.4-7.4z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path d="M1190.5 2771.1c-30 59-.1 83.4 38.4 76.6 22.4-4.1 50.8-20 67.2-41.7.3-47.8-.4-95.2-4.6-141.5 15-17.9-1.3-17.8-7-37-2.6 11.2-8.9 23.3-2.8 32q6.6 70 6.6 142.2c-30.2 24.3-52.9 33.3-69.1 33.1-33.5-.3-40.7-28.5-28.7-63.7z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path d="M1251.8 2786.7c-.5-44.5-1.2-95-5.2-126.1 15.6-17.3-.8-17.7-5.9-37.1-3 11-9.6 23-3.8 31.9 2.6 47.6 5.1 95.2 5.6 142.8 3.6-2.3 7.7-3.2 9.3-11.5z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path stroke-width=".4" d="M1135.4 2784.6c-3.8-4.8-6.5-10.2-9.6-14.9-.5-6.7 4-12.9 4.6-16.3 5.1 7.9 8.1 13.9 12.2 17.8m5.4 3.1c7.5 3 16.7 3 25.2 3.2 32.8.6 67.3-4.8 63.6 39.6a66 66 0 0 1-65.2 61.9c-41.7-.4-77.3-46.4-13-131.1 6.2-1 14.3.7 21 1.3 11.5.9 23.3-.2 36.8-11-1.6-27.9-1.6-54.3-5-79.5-5.8-8.9.8-20.8 3.8-31.9 5.1 19.4 21.4 19.8 5.9 37.2 3.7 28 4.1 56.5 4.1 73.5-7.8 11.9-13.9 24.5-36.7 29.3-23.3-3.4-33.8-36-58.1-25.2 6.7-29.4 68.4-36.1 74.6-12.9-4.1 24.2-61.7 14.5-77 92.7-4.7 24.1 20.7 46.3 46.8 44.5 25.5-1.7 52.7-19.4 55.4-49.2 2.1-24.9-33-22-47.7-21.7-21.4.5-34.9-2.8-43-7.5m21.9-53.9c3.8-3.6 17.1-6.1 21.9-.3q-5.5 3.5-10 8.1c-5-2.6-8.3-5.2-11.9-7.8z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path d="M1194 2650.9a49 49 0 0 1 5.3 21c-2.2 10.4-11.1 20.1-20.3 20.4-5.7.2-12.1-1.4-16.6-10.3-.5-1.1-2.9-3.7-5.2-2.5-10.1 16.6-17.6 23.6-26.7 23.5-18.2-.3-12.8-16.5-29.6-21.5-7-.2-18.5 6.9-24.4 20.8-22.4 63.5-42.8-.2-34.1-29.8 1.3 28.3 8.1 45.1 15.1 44.6 5.1-.5 9.6-12.3 16.1-24.7 5-9.5 17-26.6 29.7-26.6 11.6.3 4.3 21.6 27.5 21.3 11.2-.2 21.5-8.8 31.9-26 2.3-.4 2.9 3.7 3.4 5.1 1.6 5.9 11.8 22.1 25.6 7.3-.7-3.2-.4-8.5-3.9-9.6z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path stroke-width=".4" d="M1266.9 2598.3c-12.3 6.1-21.3.5-26.4-4.9 8.9-1.8 15.8-5 17.8-12-4-9-13.5-12.9-26.9-13-17.9.5-27.1 7.7-28.2 17.6 8.3.3 15.8-2 19 6-14.7 7.2-32 9.8-50.8 9.7-30.8 1.6-35.3-12.3-43.4-24.5-.6-.8-3.3-2.1-4.7-1.9-9.5 0-16.5 33.2-27.2 33.1-10.7-1.4-8.3-21.4-11.4-32.8-2.6 17.9 3.3 84.5 36.4 12.2 1-2.4 2.4-1.7 3.3.3 8.9 20.2 27 27.2 46.5 28.2 16.3.9 37.1-6.2 59.4-18.8 5.9 6.5 10.6 13.9 23 15.3 14.5.7 30-9.8 33.5-22.8 1.8-6.7 2.1-19.9-5-20.1-9.9-.3-17.1 23.7-14.8 45.3.2-.3 1.3-5.4 1.3-5.4m-43.8-28.8c6.5-3 12.8-4.4 17.8 2.2a27 27 0 0 0-8.4 4c-2.8-2.2-6.6-3.3-9.4-6.2zm47.8 14.9c1.6-7.1 2.5-12.8 8.3-16.5 1.2 7.5 1.4 11.7-8.3 16.5zm39 11c-1.9-6.1-3.8-11.4-4.4-18-1.4-13.4 10.1-21 20.5-19.9 10.7 1.1 17.8 5.1 28 8.6 8 2.7 18.8 4.8 29.1 7.7 5.8 2.6 0 9.4-1.5 10.3-25.8 10.1-44.1 26.1-60.5 26.8q-14.6.7-26.4-19c-.5-25.4-1.4-55.2-3.9-73.9 3.8-3.8 4.6-6.6 6.4-9.7 2 24.7 2.8 50.7 3.3 76.9 2.1 4.5 4.7 8.3 9.4 10.2zm16.5 2c-13.8 3.9-12.1-7.8-13.4-15-1.5-8.4-.5-17.9 10.2-15.5 13.9 3.7 26.6 8.6 38.9 13.8z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path stroke-width=".4" d="m1314.3 2621.3 1.9 9.3h1.5l-.6-8.7" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m1094.2 2718.5 7-7.2 8.1 6.9-7.5 6.7zm17.8-2.4 7.1-7.2 8.1 6.9-7.5 6.7zm-49.5-74.6 7.1-7.2 8.1 6.9-7.5 6.7zm3.2 21.2 7.1-7.2 8 6.9-7.5 6.7zm128.5 35.5 6.5-5.3 6 6.5-6.8 4.8zm-85.8-135.7 4.6-4.7 5.3 4.5-4.9 4.4zm11.7-1.5 4.6-4.8 5.3 4.6-4.9 4.3zm245.6 53.7-4.4 3.7-4.2-4.3 4.6-3.4z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path stroke-width=".4" d="m1158.7 2747.4-.5 7.9 12.6 1.2 10.1-7.6z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
<path d="m1265.2 2599.8 3.7-.8-.4 10.3-2.3.9z" transform="matrix(.38779 0 0 .35285 -224 -715.6)"/>
|
||||
</g>
|
||||
<path fill="#fff" d="M256 348c55 0 99.8-40.7 99.8-90.8a87 87 0 0 0-34.7-68.8 75 75 0 0 1 20.5 51.3c0 43.5-38.3 78.8-85.6 78.8s-85.6-35.3-85.6-78.8a75 75 0 0 1 20.6-51.3 87 87 0 0 0-34.8 68.8c0 50.1 44.8 90.9 99.8 90.9z" class="arab-fil2"/>
|
||||
<g fill="#fff" stroke="#000" stroke-width="8">
|
||||
<path d="M-54 1623c-88 44-198 32-291-28-4-2-6 1-2 12 10 29 18 52-12 95-13 19 2 22 24 20 112-11 222-36 275-57zm-2 52c-35 14-95 31-162 43-27 4-26 21 22 27 49 5 112-30 150-61z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M0 1579c12 0 34-5 56-8 41-7 11 56-56 56v21c68 0 139-74 124-107-21-48-79-7-124-7s-103-41-124 7c-15 33 56 107 124 107v-21c-67 0-97-63-56-56 22 3 44 8 56 8z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M54 1623c88 44 198 32 291-28 4-2 6 1 2 12-10 29-18 52 12 95 13 19-2 22-24 20-112-11-222-36-275-57zm2 52c35 14 94 31 162 43 27 4 26 21-22 27-49 5-112-30-150-61z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M3 1665c2 17 5 54 28 38 31-21 38-37 38-67 0-19-23-47-69-47s-69 28-69 47c0 30 7 46 38 67 23 16 25-21 28-38 1-6 6-4 6 0z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
</g>
|
||||
<g fill="#fff" stroke="#000" stroke-width="8">
|
||||
<path d="M-29 384c-13-74-122-79-139-91-20-13-17 0-10 20 20 52 88 73 119 79 25 4 33 6 30-8z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M4 386c11-76-97-112-110-129-15-18-17-7-10 14 13 45 60 98 88 112 23 12 30 17 32 3z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M93 430c10-91-78-105-101-134-15-18-16-8-11 13 10 46 54 100 81 117 21 13 30 18 31 4z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M66 410c-91-59-155-26-181-29-25-3-33 13 10 37 53 29 127 25 156 14 30-12 21-18 15-22zm137 40c-28-98-93-82-112-94s-21-9-17 13c8 39 75 82 108 95 12 4 27 10 21-14z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M190 467c-78-63-139-16-163-23-18-5-10 7-3 12 50 35 112 54 160 32 19-8 20-10 6-21zm169 64c1-62-127-88-154-126-16-23-30-11-22 26 12 48 100 101 148 111 29 6 28-4 28-11z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M355 542c-81-73-149-49-174-56-25-6-35 9 4 39 48 36 122 43 153 36s23-14 17-19zm145 107c-23-106-96-128-114-148-17-20-35-14-20 34 18 57 77 107 108 119 30 13 28 3 26-5z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M499 663c-59-95-136-92-160-105-23-14-39-2-8 39 36 50 110 78 144 80s28-7 24-14z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M575 776c34-108-44-148-52-166-9-18-18-18-23 1-22 77 49 152 60 167 11 14 13 7 15-2z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M559 806c-27-121-98-114-114-131-17-17-19-5-16 17 8 59 79 99 111 119 10 6 22 13 19-5zm68 142c49-114-9-191-27-208-18-16-29-23-23 0 8 35-20 125 23 191 14 22 16 43 27 17z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M601 971c11-70-29-134-72-159-25-15-26-11-26 10 2 65 63 119 81 149 17 28 16 7 17 0z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M590 1153c-36-132 39-208 62-223 22-16 36-22 26 3-15 37 1 140-56 205-18 22-25 45-32 15z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M598 1124c30-115-35-180-55-193-19-13-31-18-22 3 12 32-1 122 49 178 16 19 22 38 28 12z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M561 1070c-54 58-55 143-31 193 15 29 17 27 31 6 38-61 15-149 17-188 1-37-11-17-17-11z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M650 1162c0 80-49 145-101 165-30 11-30 8-26-16 14-90 83-123 108-152 24-28 19-5 19 3z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M464 1400c88-80 41-136 45-188 2-28-9-21-19-11-56 55-59 153-47 191 5 17 13 15 21 8z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M582 1348c-29 88-106 142-171 145-38 2-37-1-24-27 49-94 136-105 175-129 36-22 23 2 20 11z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M343 1513c114-57 91-152 112-176 15-17-3-15-12-9-67 39-121 101-122 167 0 25 2 28 22 18z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M187 1619c144 23 211-86 253-96 22-5 6-14-5-15-96-11-218 34-255 84-15 20-15 24 7 27z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M333 1448c-29 95-137 173-218 179-38 3-38-1-24-26 65-118 178-138 218-168 34-26 27 6 24 15zM29 384c13-74 122-79 139-91 20-13 17 0 10 20-20 52-88 73-119 79-25 4-33 6-30-8z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-4 386c-11-76 97-112 110-129 15-18 17-7 10 14-13 45-60 98-88 112-23 12-30 17-32 3z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-93 430c-10-91 78-105 101-134 15-18 16-8 11 13-10 46-54 100-81 117-21 13-30 18-31 4z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-66 410c91-59 155-26 181-29 25-3 33 13-10 37-53 29-127 25-156 14-30-12-21-18-15-22zm-137 40c28-98 93-82 112-94s21-9 17 13c-8 39-75 82-108 95-12 4-27 10-21-14z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-190 467c78-63 139-16 163-23 18-5 10 7 3 12-50 35-112 54-160 32-19-8-20-10-6-21zm-169 64c-1-62 127-88 154-126 16-23 30-11 22 26-12 48-100 101-148 111-29 6-28-4-28-11z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-355 542c81-73 149-49 174-56 25-6 35 9-4 39-48 36-122 43-153 36s-23-14-17-19zm-145 107c23-106 96-128 114-148 17-20 35-14 20 34-18 57-77 107-108 119-30 13-28 3-26-5z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-499 663c59-95 136-92 160-105 23-14 39-2 8 39-36 50-110 78-144 80s-28-7-24-14z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-575 776c-34-108 44-148 52-166 9-18 18-18 23 1 22 77-49 152-60 167-11 14-13 7-15-2z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-559 806c27-121 98-114 114-131 17-17 19-5 16 17-8 59-79 99-111 119-10 6-22 13-19-5zm-68 142c-49-114 9-191 27-208 18-16 29-23 23 0-8 35 20 125-23 191-14 22-16 43-27 17z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-601 971c-11-70 29-134 72-159 25-15 26-11 26 10-2 65-63 119-81 149-17 28-16 7-17 0z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-590 1153c36-132-39-208-62-223-22-16-36-22-26 3 15 37-1 140 56 205 18 22 24 45 32 15z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-598 1124c-30-115 35-180 55-193 19-13 31-18 22 3-12 32 1 122-49 178-16 19-22 38-28 12z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-561 1070c54 58 55 143 31 193-15 29-17 27-31 6-38-61-15-149-17-188-1-37 11-17 17-11z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-650 1162c0 80 49 145 101 165 30 11 30 8 26-16-14-90-83-123-108-152-24-28-19-5-19 3z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-464 1400c-88-80-41-136-45-188-2-28 9-21 19-11 56 55 59 153 47 191-5 17-13 15-21 8z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-582 1348c29 88 106 142 171 145 38 2 37-1 24-27-49-94-136-105-175-129-36-22-23 2-20 11z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-343 1513c-114-57-91-152-112-176-15-17 3-15 12-9 67 39 121 101 122 167 0 25-2 28-22 18z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-187 1619c-144 23-211-86-253-96-22-5-6-14 5-15 96-11 218 34 255 84 15 20 15 24-7 27z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
<path d="M-333 1448c29 95 137 173 218 179 38 3 38-1 24-26-65-118-178-138-218-168-34-26-27 6-24 15z" class="arab-fil2 arab-str2" transform="matrix(.25022 0 0 .22768 256 29)"/>
|
||||
</g>
|
||||
<path fill="#006233" d="M298.3 137.4c-4.8-3.1-22.3-1.3-25.5-3.4 6.2 4.8 20.2 1.4 25.5 3.4m42.3 8.2c-3.8-6.1-26-10.2-29.3-15.7 5.8 10.5 23 9.1 29.3 15.7m-3.3 7c-8.2-7.2-27.5-4.2-33.2-8.6 13.5 11.2 21 2.5 33.2 8.7zM289 120.4c5.3 2.5 11.8 5 15 10.9-3.7-4.6-10.5-6.4-16-10.2q.6-.2 1-.7m82.1 46.9c-3.3-6.9-14.8-14.4-15.8-16.9 3.3 8.9 12.8 11 15.8 16.9m3 12c-10-14.3-25.8-12.7-32-18.2 4.7 5.3 22.8 8.7 32 18.2m23.3 22.1c.7-15.2-11.8-21-12.3-29.6-.2 10.3 12.8 24.2 12.3 29.6m-6.3 8.2c-2.5-13.2-19.5-14.1-22.5-21.8 0 7.2 20 14.8 22.5 21.8m14-7.5c9 10 2.8 25.3 6.5 36.4-4.5-8.2-2.2-28.6-6.5-36.4m-14.7 42.8c13.5 13.2 8 28 13.5 34.4-6.8-9-5.8-26.2-13.5-34.4m28 1.8c-11.5 11.6-4.5 29.1-10.5 37.4 6.7-7.1 5.7-28.8 10.5-37.4m-14.5 0c-1.5-13.4-15.3-20.5-16.5-27.8-1.5 7.3 13.2 18.7 16.5 27.8m-7 32.1c2.2 9.4-6 29.4-3.5 35.5-5.5-10.7 4.7-31 3.5-35.5m17.7 21.4c-5.5 16.6-16.5 15.5-20 25.5 2.5-9.5 17-18.2 20-25.5m-35.7 7.8c-7.3 11.1-1.3 23.9-7.3 31.8 8.5-8 4-22.7 7.3-31.8m17.5 30.5c-8.8 14.8-26.8 13.4-34 24.1 7.2-13.4 29.5-15.7 34-24.1m-31.8-1.9c-15.5 9.8-10.8 20-22.5 31 14.7-11 13.5-23 22.5-31m-7.3 39.7c-15-.5-36.5 17.3-49.5 15.9 13 2.5 37-13.4 49.5-16zm-24.2-16c-1 13.9-40 22.8-44.3 32.1 4.7-12.3 39-21.4 44.3-32zm-88.4-256c-5-4-11-7.1-12.7-11 1.2 5 6.2 8.7 11.2 12 .5-.2 1-.9 1.5-1m-8.5 4c-7.7-3.4-16.7-3.2-20.7-8 2.5 4.8 11 6.7 18.2 9.2q1.3-.8 2.6-1.2zm-22.5 29.2c4.8-3.2 22.3-1.4 25.5-3.4-6.2 4.7-20.2 1.3-25.5 3.4m-42.3 8.2c3.8-6.2 26-10.3 29.3-15.7-5.8 10.4-23 9-29.3 15.7m3.3 7c8.2-7.3 27.5-4.3 33.3-8.6-13.5 11.1-21 2.5-33.3 8.6m33.3-21.4c4.7-9 18.2-10.2 21.7-15.7-5.2 8.2-16.7 9.6-21.7 15.7m38.5-8c13.8-5.9 27.3-.9 33.8-3.6-8 3.9-27 2-33.8 3.7zm-105.6 44c3.3-6.8 14.8-14.4 15.8-16.9-3.3 9-12.8 11-15.8 16.9m-3 12c10-14.3 25.8-12.7 32-18.2-4.7 5.3-22.7 8.7-32 18.3zm-23.3 22.1c-.7-15.2 11.8-21 12.3-29.6.2 10.3-12.8 24.2-12.3 29.6m6.3 8.2c2.5-13.2 19.5-14 22.5-21.8 0 7.3-20 14.8-22.5 21.8m-14-7.5c-9 10-2.8 25.3-6.5 36.4 4.5-8.1 2.2-28.6 6.5-36.4m14.7 42.8c-13.5 13.2-8 28-13.5 34.4 6.8-8.9 5.8-26.2 13.5-34.4m-28 1.9c11.5 11.6 4.5 29 10.5 37.3-6.7-7-5.7-28.7-10.5-37.3m14.5 0c1.5-13.5 15.3-20.5 16.5-27.8 1.5 7.3-13.2 18.7-16.5 27.8m7 32c-2.2 9.4 6 29.4 3.5 35.6 5.5-10.7-4.7-31-3.5-35.5zm-17.7 21.4c5.5 16.7 16.5 15.5 20 25.5-2.5-9.5-17-18.2-20-25.4zm35.8 7.8c7.2 11.2 1.2 23.9 7.2 31.9-8.5-8-4-22.8-7.2-31.9m-17.6 30.5c8.8 14.8 26.8 13.4 34 24.1-7.2-13.4-29.5-15.7-34-24.1m31.8-1.8c15.5 9.8 10.8 20 22.5 31-14.7-11-13.5-23-22.5-31m7.3 39.6c15-.5 36.5 17.3 49.5 16-13 2.4-37-13.5-49.5-16m24.3-16c1 14 40 22.8 44.2 32.2-4.7-12.3-39-21.4-44.3-32.1zm56.7-236.5c3-12.3 18-14.6 20-21.9-.7 7.8-18.5 16.4-20 22zM280 93.3c-2.2 9.3-18.5 14.6-20.7 21.6.7-9.5 17.5-15 20.7-21.6m-12.7 22c7.7-11.3 23.7-8.3 29.3-15-4 7.8-23.8 8-29.3 15" class="arab-fil0"/>
|
||||
<path fill="none" stroke="#f7c608" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.9" d="M373.2 256c0 59.2-52.7 107.1-117.7 107.1s-117.6-47.9-117.6-107c0-59.2 52.6-107 117.6-107s117.7 47.8 117.7 107z"/>
|
||||
<path fill="#f7c608" d="m232.4 363.2-.4 1.3q-.6 1.3-2.2 1.3c-2.5-.7-5.6-1.3-8.5-2l2.7-8.3a90 90 0 0 0 8.5 1.8q1.6.4 1.2 2l-.4 1m-20.2-5.1.4-1.3q.6-1.5 2.2-1.1 3.5 1.3 8.3 2.7l-2.7 8.3q-4.5-1.2-8.3-2.5c-1-.5-1.2-2.2-.9-3"/>
|
||||
<path fill="#006233" d="m230.8 362.5-.3.9q-.4 1-1.8.9l-7-1.8 1.9-5.9 7 1.6q1.4.4 1 1.5l-.2.7m-16.8-4.3.3-1q.4-1 1.8-.6l6.9 2.1-2 6-7-2c-.6-.4-.9-1.7-.7-2.3"/>
|
||||
<path fill="#f7c608" d="m200.2 352.8-.8 1.2q-.9 1.1-2.5.6c-2.1-1.2-5-2.6-7.5-4.1l5.1-7.3a86 86 0 0 0 7.6 4q1.4.9.6 2.2l-.7 1m-17.8-10.2.8-1.2c.5-.7 1.6-1 2.4-.5q3 2.3 7.1 4.7l-5.1 7.3-7.2-4.5c-.8-.7-.4-2.4 0-3.1"/>
|
||||
<path fill="#006233" d="m198.9 351.7-.6.8q-.7.9-2 .4l-6.2-3.5 3.7-5.2c2.2 1.4 4.6 2.5 6.3 3.4q1.2.6.5 1.6l-.5.7m-14.8-8.5.6-.8q.7-.8 2-.2l5.9 3.8-3.7 5.2-6-3.7c-.6-.5-.5-1.8-.1-2.3"/>
|
||||
<path fill="#f7c608" d="m172.6 334.6-1.2.9q-1.2.8-2.6 0l-6-5.9 7.3-5.6c2 2.2 4.4 4.3 6 5.7q1 1.2-.1 2.2l-1 .8m-14-14.3 1.2-1a2 2 0 0 1 2.5.2 78 78 0 0 0 5.3 6.4l-7.1 5.6-5.6-6.1c-.4-.9.4-2.5 1.1-3"/>
|
||||
<path fill="#006233" d="m171.6 333.2-.8.6q-.8.6-2-.1l-5-5 5.2-4 5 4.8q.9 1 0 1.8l-.6.5m-11.6-12 .8-.5q1-.7 2 .2l4.4 5.2-5.1 4-4.6-5c-.5-.7 0-1.9.6-2.3"/>
|
||||
<path fill="#f7c608" d="m151.7 310-1.4.6q-1.5.5-2.5-.7c-1-2-2.7-4.7-4-7.1l8.7-3.6q2.3 4.3 4.1 7 .5 1.5-.8 2.1l-1.2.5m-9-17.3 1.4-.6q1.7-.4 2.3.8a75 75 0 0 0 3.2 7.5l-8.6 3.6q-2-3.8-3.4-7.4c-.2-1 1-2.2 2-2.6"/>
|
||||
<path fill="#006233" d="m151.2 308.4-1 .4q-1 .4-1.9-.6l-3.2-6 6.2-2.6 3.4 6q.4 1-.6 1.6l-.8.4m-7.4-14.4 1-.4q1-.4 1.7.7 1 2.8 2.7 6.2l-6.2 2.5-2.9-6c-.1-.8.7-1.8 1.4-2"/>
|
||||
<path fill="#f7c608" d="m139.2 281.1-1.5.2a2 2 0 0 1-2.2-1.3l-1.5-7.9 9.4-1.2a68 68 0 0 0 1.7 7.8q.2 1.6-1.4 1.8l-1.3.2m-3.2-18.9 1.5-.2q1.6-.1 2 1.4 0 3.4.7 8l-9.4 1.1q-.7-4-1-7.9c.1-1 1.7-1.8 2.7-2"/>
|
||||
<path fill="#006233" d="m139.2 279.5-1 .1q-1.1 0-1.6-1.1l-1.2-6.6 6.7-.9 1.4 6.6q0 1.1-1 1.4l-1 .2m-2.6-15.8 1-.1q1.3 0 1.5 1.2.1 2.8.7 6.5l-6.8 1q-.6-3.5-.8-6.6c0-.8 1.2-1.5 2-1.6"/>
|
||||
<path fill="#f7c608" d="m136.2 250.2-1.5-.2c-1-.1-1.6-1-1.7-1.9l1-7.9 9.4 1.3a69 69 0 0 0-.7 7.9q-.4 1.5-2 1.3l-1.3-.1m2.8-19 1.5.2q1.6.4 1.4 1.8a73 73 0 0 0-1.7 7.9l-9.4-1.3 1.5-7.8c.4-1 2.2-1.4 3.2-1.2"/>
|
||||
<path fill="#006233" d="m136.8 248.6-1.1-.2q-1.1-.1-1.2-1.5l.9-6.5 6.7.8-.7 6.7q-.2 1.1-1.4 1.1l-1-.1m2.4-15.8 1 .2q1.3.2 1 1.4-.7 2.9-1.3 6.5l-6.7-.8q.4-3.4 1.2-6.6c.3-.7 1.6-1 2.3-1"/>
|
||||
<path fill="#f7c608" d="m142.9 219.7-1.3-.6q-1.5-.6-1.1-2.2c1-2 2.1-4.8 3.4-7.3l8.6 3.6a75 75 0 0 0-3.2 7.4q-.8 1.4-2.3.8l-1.1-.4m8.5-17.5 1.3.5q1.5.8.9 2.1a77 77 0 0 0-4.1 7l-8.6-3.5a78 78 0 0 1 3.8-7.1c.7-.8 2.6-.8 3.5-.4"/>
|
||||
<path fill="#006233" d="m144 218.4-1-.5q-1.1-.5-.7-1.7l2.8-6 6.2 2.5-2.7 6.1q-.6 1-1.7.8l-.9-.4m7.1-14.5 1 .4q1 .6.6 1.7l-3.4 5.9-6.2-2.6 3.2-6c.5-.6 2-.6 2.6-.4"/>
|
||||
<path fill="#f7c608" d="m158.8 192.2-1.2-.9q-1-1-.3-2.4c1.6-1.7 3.5-4.1 5.5-6.2l7.2 5.7a77 77 0 0 0-5.4 6.3 2 2 0 0 1-2.4.2l-1-.8m13.6-14.6 1.1 1c.8.5.9 1.5.2 2.2a84 84 0 0 0-6.1 5.7l-7.2-5.7 6-5.8c.8-.6 2.6 0 3.4.5"/>
|
||||
<path fill="#006233" d="m160.2 191.1-.8-.6q-.8-.7-.2-1.9l4.7-5 5.1 4-4.5 5.2q-.9.9-1.9.3l-.7-.6m11.3-12.1.9.6q.7.8 0 1.8l-5 4.8-5.2-4a58 58 0 0 1 4.9-5c.6-.5 2-.1 2.5.3"/>
|
||||
<path fill="#f7c608" d="m182.5 169.9-.8-1.2q-.8-1.3.4-2.4l7.2-4.5 5.1 7.3a83 83 0 0 0-7 4.7 2 2 0 0 1-2.5-.5l-.7-1m17.6-10.5.8 1.2c.6.7.3 1.7-.5 2.2a84 84 0 0 0-7.7 3.9l-5.1-7.3q3.8-2.3 7.5-4.1c1-.3 2.6.7 3 1.4"/>
|
||||
<path fill="#006233" d="m184.2 169.2-.6-.8q-.6-1 .4-1.8 2.9-1.7 6-3.8l3.7 5.2-5.9 3.9q-1.2.6-1.9-.2l-.5-.7m14.6-8.8.6.9q.6.9-.5 1.6l-6.4 3.3-3.6-5.2 6.2-3.4c.8-.3 2 .4 2.4 1"/>
|
||||
<path fill="#f7c608" d="m212.2 154.5-.4-1.3q-.3-1.4 1-2.2c2.5-.6 5.5-1.7 8.4-2.5l2.7 8.3a88 88 0 0 0-8.3 2.7q-1.6.3-2.1-1l-.4-1.1m20-5.7.5 1.3q.4 1.6-1.2 2l-8.5 1.8-2.7-8.3 8.5-2c1 0 2.2 1.3 2.5 2.2"/>
|
||||
<path fill="#006233" d="m214 154.3-.3-1q-.2-1 1-1.5 3.1-1 7-2l1.9 5.9-7 2.2q-1.3.2-1.7-.8l-.2-.7m16.7-4.7.3 1q.2 1-1 1.4l-7.2 1.6-1.9-6 7-1.7c1 0 1.9.9 2 1.5"/>
|
||||
<path fill="#f7c608" d="M245.4 147.4v-1.3q.2-1.5 1.8-1.9l8.7-.2v8.7a90 90 0 0 0-8.7.4q-1.7-.1-1.8-1.6v-1.1m21-.3v1.4q-.1 1.5-1.7 1.6a96 96 0 0 0-8.8-.4V144q4.6 0 8.8.2c1 .2 1.7 1.8 1.7 2.7"/>
|
||||
<path fill="#006233" d="M247.2 147.7v-1q0-1 1.5-1.3l7.3-.1v6.1l-7.3.4q-1.4 0-1.5-1.2v-.8m17.5-.2v1q0 1.1-1.5 1.2l-7.2-.4v-6.1l7.2.1c.9.2 1.5 1.3 1.5 2"/>
|
||||
<path fill="#f7c608" d="m277.3 149 .4-1.4q.5-1.2 2.2-1.3c2.4.6 5.6 1.2 8.5 2l-2.6 8.3a90 90 0 0 0-8.6-1.7q-1.6-.6-1.2-2l.4-1.1m20.3 5-.5 1.3c-.2.9-1.2 1.4-2.1 1.1a93 93 0 0 0-8.3-2.6l2.6-8.3a82 82 0 0 1 8.3 2.4c1 .4 1.2 2.2 1 3"/>
|
||||
<path fill="#006233" d="m279 149.7.2-1q.4-1 1.8-.9c2 .6 4.6 1 7 1.7l-1.8 6-7.1-1.6q-1.3-.4-1-1.4l.2-.8m16.8 4.2-.3 1q-.5 1-1.7.7l-7-2.2 2-6 6.9 2c.8.4 1 1.7.8 2.3"/>
|
||||
<path fill="#f7c608" d="m309.5 159 .8-1q1-1.2 2.6-.8l7.5 4-5 7.4a86 86 0 0 0-7.7-3.8 1.6 1.6 0 0 1-.6-2.3l.7-1m18 10-.9 1.2a2 2 0 0 1-2.4.5 88 88 0 0 0-7.1-4.6l5-7.3q4 2.1 7.3 4.4c.7.7.4 2.4-.1 3.2"/>
|
||||
<path fill="#006233" d="m310.9 160.2.6-.8q.7-.9 2-.4c1.7 1 4.1 2.1 6.2 3.4l-3.6 5.2-6.4-3.3q-1.2-.7-.5-1.6l.5-.7m14.8 8.3-.5.8q-.7.9-2 .3l-6-3.8 3.7-5.2q3.3 1.8 6 3.6c.7.6.6 1.8.2 2.4"/>
|
||||
<path fill="#f7c608" d="m337.4 177 1.1-.8q1.3-1 2.7 0c1.6 1.7 4 3.7 6 5.8l-7.2 5.7a80 80 0 0 0-6.2-5.7q-.9-1.2.2-2.2l1-.8m14 14.2-1.1 1a2 2 0 0 1-2.5-.2q-2.2-2.9-5.4-6.3l7.2-5.7q3 3 5.5 6.1c.5.8-.3 2.4-1 3"/>
|
||||
<path fill="#006233" d="m338.3 178.5.8-.7q1-.6 2 .1c1.4 1.5 3.4 3.2 5 5l-5 4-5.2-4.8q-.8-1 0-1.7l.7-.6m11.7 11.9-.8.6q-1 .6-2-.2l-4.5-5.2 5.1-4q2.6 2.4 4.7 5c.4.6-.1 1.8-.6 2.3"/>
|
||||
<path fill="#f7c608" d="m358.5 201.5 1.4-.6q1.5-.5 2.5.7c1 2 2.7 4.6 4 7l-8.7 3.7c-1.3-2.7-3-5.2-4.1-7q-.5-1.3.8-2.1l1.2-.5m9 17.2-1.3.6q-1.5.5-2.3-.8a76 76 0 0 0-3.3-7.4l8.7-3.6 3.4 7.3c.2 1-1 2.2-2 2.6"/>
|
||||
<path fill="#006233" d="m359 203 1-.4q1-.3 1.9.7l3.2 6-6.1 2.5-3.4-5.8q-.6-1.1.5-1.7l.8-.4m7.6 14.4-1 .4q-1.1.4-1.8-.7-1-2.8-2.7-6.2l6.1-2.6 3 6c.1.9-.7 1.8-1.4 2.1"/>
|
||||
<path fill="#f7c608" d="m371.2 230.3 1.5-.2q1.6-.2 2.3 1.3l1.5 7.8-9.3 1.3a70 70 0 0 0-1.9-7.8q0-1.5 1.5-1.8l1.2-.2m3.4 18.9-1.4.2q-1.7.1-2-1.3l-.8-8 9.3-1.3q.9 4.1 1.1 7.9c0 1-1.7 1.9-2.7 2"/>
|
||||
<path fill="#006233" d="m371.2 232 1-.2q1.2 0 1.7 1.1l1.3 6.5-6.7 1-1.5-6.6q-.1-1.1 1-1.4l1-.2m2.7 15.7-1 .2q-1.2 0-1.5-1.2l-.7-6.5 6.7-1 1 6.6c-.1.8-1.3 1.5-2 1.6"/>
|
||||
<path fill="#f7c608" d="m374.5 261.2 1.5.2c1 0 1.7.9 1.8 1.8l-1 8-9.4-1.2c.5-3 .7-6 .7-8q.3-1.5 2-1.3l1.2.1m-2.5 19-1.5-.2q-1.6-.3-1.5-1.8.9-3.4 1.6-7.8l9.5 1.1q-.5 4.1-1.5 7.9c-.3.9-2.2 1.3-3.2 1.2"/>
|
||||
<path fill="#006233" d="m374 262.8 1 .1q1.2.1 1.3 1.5l-.8 6.6-6.8-.8c.4-2.5.6-5 .7-6.6q.2-1.3 1.4-1.2h.9m-2.2 15.9-1-.1q-1.2-.3-1-1.5l1.3-6.6 6.7.9-1.2 6.5c-.2.8-1.6 1.2-2.3 1"/>
|
||||
<path fill="#f7c608" d="m368.2 291.7 1.3.6q1.5.6 1.1 2.2c-1 2-2 4.8-3.3 7.3l-8.7-3.5a76 76 0 0 0 3.1-7.5q.8-1.2 2.3-.8l1.2.5m-8.4 17.6-1.3-.6q-1.5-.7-1-2.1 2-3 4.1-7l8.7 3.4q-1.8 3.8-3.8 7.2c-.6.8-2.5.7-3.5.3"/>
|
||||
<path fill="#006233" d="m367.1 293 1 .5q1 .6.7 1.7l-2.8 6.1-6.2-2.5 2.6-6.2q.7-1 1.8-.7l.8.3m-7 14.6-1-.4q-1-.5-.5-1.7l3.3-5.9 6.2 2.5-3.1 6c-.5.7-1.9.7-2.5.5"/>
|
||||
<path fill="#f7c608" d="m352.5 319.4 1.2.8q1.1 1 .4 2.4l-5.5 6.2-7.2-5.6c2-2.2 4-4.6 5.3-6.3q1-1 2.4-.2l1 .7m-13.5 14.7-1.1-.8q-1.2-1-.2-2.3a77 77 0 0 0 6-5.8l7.3 5.6-5.9 6c-.8.5-2.6 0-3.4-.6"/>
|
||||
<path fill="#006233" d="m351.1 320.4.9.6q.7.8.1 1.9l-4.6 5.1-5.2-4q2.8-2.9 4.5-5.2.9-.9 1.9-.3l.7.5m-11.2 12.3-.8-.7q-.9-.7 0-1.7l5-4.9 5.1 4-4.8 5c-.7.5-2 .2-2.6-.3"/>
|
||||
<path fill="#f7c608" d="m329 341.9.8 1.1q.8 1.3-.3 2.4l-7.2 4.6-5.2-7.3a83 83 0 0 0 7-4.7 2 2 0 0 1 2.5.4l.6 1m-17.4 10.7-.8-1.2c-.6-.7-.4-1.7.5-2.2a90 90 0 0 0 7.6-4l5.2 7.3q-3.7 2.3-7.5 4.1c-1 .4-2.5-.6-3-1.4"/>
|
||||
<path fill="#006233" d="m327.3 342.5.6.9q.5.8-.4 1.8l-6 3.7-3.7-5.1 5.9-4q1.2-.6 1.9.3l.5.7m-14.6 8.8-.5-.8q-.6-1 .5-1.7l6.3-3.3 3.7 5.1q-3.1 2-6.2 3.5c-.8.3-2-.3-2.4-.9"/>
|
||||
<path fill="#f7c608" d="m299.5 357.4.4 1.4q.3 1.4-1 2.1l-8.4 2.6-2.7-8.3a80 80 0 0 0 8.2-2.7q1.6-.4 2.2 1l.3 1.1m-20 5.8-.4-1.3q-.4-1.5 1.1-2 3.9-.6 8.6-1.9l2.7 8.3q-4.3 1.3-8.4 2c-1 .1-2.3-1.2-2.6-2"/>
|
||||
<path fill="#006233" d="m297.7 357.7.3.9q.3 1-1 1.6-3.1 1-7 2l-1.9-5.8 6.9-2.3q1.3-.2 1.8.7l.2.8m-16.7 4.8-.3-1q-.2-1 1-1.4l7.1-1.6 2 5.9-7 1.7c-.9.1-1.8-.8-2-1.4"/>
|
||||
<path fill="#f7c608" d="M266.3 364.8v1.4q-.1 1.5-1.7 1.8l-8.8.3v-8.6a88 88 0 0 0 8.7-.5q1.7 0 1.8 1.5v1.2m-21 .4v-1.4q.1-1.5 1.7-1.6 3.8.4 8.7.4l.1 8.6-8.7-.1c-1-.2-1.8-1.8-1.8-2.7"/>
|
||||
<path fill="#006233" d="M264.5 364.6v1q-.1.9-1.4 1.3l-7.3.2v-6.2c2.6 0 5.3-.2 7.2-.4q1.4.1 1.5 1.1v.8m-17.5.4v-1q.1-1.1 1.4-1.2 3.2.3 7.3.3l.1 6.2-7.3-.1c-.8-.2-1.5-1.3-1.5-2"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 24 KiB |
+107
-24
@@ -1,26 +1,109 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" id="flag-icon-css-sa" viewBox="0 0 640 480">
|
||||
<defs>
|
||||
<clipPath id="sa-a">
|
||||
<path fill-opacity=".7" d="M-85.3 0h682.6v512H-85.3z"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g fill-rule="evenodd" clip-path="url(#sa-a)" transform="translate(80) scale(.9375)">
|
||||
<path fill="#199d00" d="M-128 0h768v512h-768z"/>
|
||||
<path fill="#fff" d="M65.5 145.1c-.8 12-2 33 8.3 35.2 12.3 1.2 5.5-20.8 10-24.8.8-2 2.3-2 2.4.5v18.7c0 6 4 7.8 7 9 3.2-.2 5.4 0 6.6 3l1.6 32.3s7.4 2.2 7.8-18.1c.3-12-2.4-21.9-.8-24.2 0-2.3 3-2.4 5-1.3 3.2 2.2 4.6 5 9.6 4 7.6-2.2 12.2-5.9 12.3-11.7a47 47 0 00-3.5-16.6c.4-1-1.4-3.7-1-4.7 1.3 2.2 3.4 2 3.8 0-1.3-4.2-3.3-8.3-6.5-10-2.7-2.4-6.7-2-8 3-.8 5.7 2 12.4 6.1 18 .9 2.1 2.1 5.7 1.6 8.9-2.2 1.3-4.4.7-6.3-1.2 0 0-6-4.5-6-5.6 1.6-10.2.3-11.4-.6-14.3-.6-3.9-2.5-5.2-4-7.8-1.5-1.6-3.5-1.6-4.5 0-2.7 4.6-1.4 14.5.5 19 1.4 4.1 3.5 6.7 2.5 6.7-.8 2.3-2.5 1.7-3.8-1a66.6 66.6 0 01-2.1-17.4c-.5-4.6-1.1-14.4-4.2-17-1.8-2.4-4.5-1.2-5.5 1a82.4 82.4 0 00.3 13.4c2 7.4 2.7 14 3.7 21.5.3 10.1-5.8 4.4-5.5-.7a45 45 0 00-.3-19.4c-1-2.6-2.1-3.2-4.6-2.8-1.9 0-6.8 5.3-8.2 14.3 0 0-1.2 4.6-1.7 8.7-.7 4.6-3.7 8-5.9-.6-1.8-6.3-3-21.6-6-18z"/>
|
||||
<path fill="#fff" d="M99 194.2l-32 15.4c.3-7.3 15.1-20.4 25.3-20.5 6.5.1 4.9 2.5 6.6 5.1z"/>
|
||||
<path fill="#fff" d="M93.3 204.2c-16.8 43.5 39.5 49.6 45.8 1.8.6-2 3-3.9 3.4-.7-1.3 43.3-43.6 46.2-50.8 32.6a41.9 41.9 0 01-2.5-14.6c-1-8.5-5.5-5.2-6.2 3.2-.7 4.7-.5 6-.5 10.5 2.2 34.2 56.7 19.5 65.6-8.7 4.7-15.6-.8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||
<path fill="#fff" d="M299.6 251.5c-1.2 1.3 2.8 6.8 8 6.8 8.6-1 16.2-5.8 23.2-18.6a33 33 0 005.3-14.2 317 317 0 00-5.8-72.4c-.3-2 0-4.4.2-5 .6-.7 2.5 0 3.5-1.7 1.5-1.5-4-14-7-18.7-1-2.2-1.5-3.6-3.3.2a27 27 0 00-3 13.6c4.1 28.5 5.4 53.4 8 81.9.3 2.8-.1 6.8-2 8.4a80.2 80.2 0 01-27.1 19.7zm116.5-.1c-6.2 3.6-6.2 7.7-1.2 7.8 8.6-1 18.8-1.7 25.8-12.3a41 41 0 004.2-16 303 303 0 00-4.7-71.4c-.2-2-1.1-6.7-.8-7.3.6-1.4 3.4.1 4.4-1.5 1.4-1.5-7.3-12.7-10.4-17.5-1-2.2-1.4-3.6-3.3.2a22.3 22.3 0 00-1.8 13.6c4.6 31 8 54.2 8.7 81.6-.4 2.6-.5 4-1.7 7.3-2.7 3.4-5.7 7.8-8.5 9.9-2.8 2-8.8 4-10.7 5.6z"/>
|
||||
<path fill="#fff" d="M420.7 223.7c0-7.3.1-13.5-.1-19a34 34 0 00-3-13.5c-1.8-4.1-.7-7.4-1.6-11.8-.8-4.4-.6-11-1.8-16.1-.4-2-1.4-8.5-1.1-9.2.5-1.4 2.4 0 3.4-1.6 1.4-1.5-5-18-8.2-22.7-1.1-2.1-3.3-1.4-5.8 2-2.5 2.3-1.6 7.4-.6 12.3 6.1 32.3 10.8 61.6 9.8 92.3-.4 2.6 9-7.8 9-12.7zm-45.7-40c-3.9-.2-12-7.7-14.4-12a8 8 0 01.4-6.5c1.5-1 3.7-2 5.4-1 0 0 1.7 2.4 1.4 2.7 2 1 3 .5 3.2-.4.1-1.5-.6-2.4-.6-4 .9-4.6 6-5.3 8-2.4 1.4 1.8 2 5.5 2.1 8 0 1.3-2-.2-3.3 0-1.1.4-1.4 1.8-1.5 3-.2 3.3-.6 8.6-.7 12.5zm-71.8 48c1-9.8-.4-27.3-.5-33.1A477 477 0 00299 154c-1.2-8.4 3.4.9 2.8-4-1.5-8.3-6.1-14-11.6-21.5-1.7-2.5-1.7-3-4.4.6-3 6.7-.4 11.4.4 16.7 3.9 17.2 6.2 33 7.3 48.7a393.4 393.4 0 01.4 49c3 .1 7.6-4.7 9.3-11.8z"/>
|
||||
<path fill="#fff" d="M434 216c-6.9-11.6-17.2-24-20-28.7a658 658 0 00-29.2-37.8c-8.5-9 4-1.5-1.6-8.5-4.7-5.1-6-6.8-10.1-9.9-2-1.3-3.2-3.8-4 .5a83 83 0 00-.2 11.2c0 1.7 1.8 5 3.4 7 20.7 25.5 43.4 51.5 61.6 84.2 2.6-1.3 1.7-16 0-18z"/>
|
||||
<path fill="#1ba400" d="M122.6 194.7c-.5.9-1.6 2-1.2 3.1.7 1 1.4 1.3 2.6 1.3 1.1 0 2.7.3 3-.3.6-.7 1-2 .6-3.3-1.2-3-4.4-1.8-5-.8z"/>
|
||||
<path fill="#fff" d="M354.2 362.5c9.2.4 15.2.5 23.3 1.4l9.6-1c10.6-1 11 15.1 11 15.1 0 9.5-3.7 10-8.4 11-2.7.4-4-1.6-5.5-3.6a14 14 0 01-7 .4c-3.9-.2-7.7-.2-11.5-.5-4-.3-6.2.5-10.3.1-.8 1.3-2 3.1-4.4 2.6-2-.3-4.5-6-3.8-10.5 1.5-3.2 1-2.1 1-3.5-37.6-1-75.5-2.7-112.3-2.2-28.8.1-57.2 1.3-85.7 2.5-15.2-.2-26.8-2.6-34.8-14.3.8 0 38.8 2.1 49.9 1.4 20.5-.2 39.3-1.9 60.2-2.5 41.2.7 82.1.7 123.3 3.6-4-2.7-4-9 2-10.6.5-.4.8 3.1 1.7 3 4.9-.3 2.7 6.3 1.7 7.6zM188.6 135.3c-6.2 17.8 3.6 37.4 10.4 35.5 5 2 8-7.4 10-17.6 1.5-2.9 2.5-3.2 3.2-1.7-.2 13.6 1 16.7 4.5 20.8 7.8 6 14.3.8 14.8.3l6-6.1c1.4-1.5 3.2-1.5 5.1-.3 1.9 1.7 1.6 4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2.6 7.1a77.8 77.8 0 01-20.7 14.3c-1 .7-1.9-5.3 0-7zm17.7-.2c3.5 1.7 4.9 11.8 4.5 14.5 0 5.4-3.3 9.6-4.7 9-1.4-.7.2-6.7-.5-8.8-.8-3-3.7-8.5-3.2-10.1-1-3.4 1.8-5.2 4-4.6zm-116 43.4a26 26 0 015.6-4.9c2-1 3.8.8 3.7.7.3 2-1.2 3.7-.7 6.3.4 1 .7 2.2 2.6 1.8 3.1-2.5 6-2.7 9-2.8 2.5.1 2.6 4.2 1 4.2-5.7 1.2-8.2 2.8-12.3 4.3-2 1.2-3.6-.3-3.6-.4s-1.1-1.1-.4-3.7c.2-2-.6-3.2-2.4-3-1.2.8-2.4 1.2-3-.3-.3-1-.4-1.6.5-2.2zm136.6 5.4c.8 1 1.4 2-.1 3.8l-3.7 3.2c-.6 1-1 2.8 1 3.3 3.6 1 12-4.5 12-4.6 1.4-1 1-3 .8-3-.8-.9-2.6-.3-3.8-.5-.6 0-2.5-.2-1.6-2a11.4 11.4 0 001.6-2.9c.5-1.2 0-2-2-2.7-2.1-.4-3-.2-5.3 0-1.2.2-1.6.8-1.9 2.3.1 2.3 1.5 2.2 3 3z"/>
|
||||
<path fill="#259f00" d="M268.1 189.7c-.5 1-2.3 1-4 0s-2.7-2.6-2.1-3.5 2.3-.9 4 0 2.6 2.6 2.1 3.5zm-89-53.6c-1 .3-2.4-.6-3-2s-.3-2.6.7-2.9 2.3.7 3 2 .3 2.7-.8 3z"/>
|
||||
<path fill="#209000" d="M355.2 375c9.4.4 18.2 0 27.5.5 1.7 1.5.5 5-.6 4.8l-7.8-.3c-.1-3-7.7-2.5-7.5.1-4.1.5-7.8-.1-12-.3-1.2-1.5-1-4.2.4-4.8z"/>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" version="1.0" id="flag-icons-arab" viewBox="0 0 640 480">
|
||||
<path fill="#006233" d="M0 0v480h640V0Z" class="arab-fil0 arab-str0"/>
|
||||
<g fill="#fff" fill-rule="evenodd" stroke="#fff">
|
||||
<path stroke-width=".4" d="M1071.9 2779.7c-25.9 38.9-7.2 64.2 19.5 66 17.6 1.3 54.2-24.9 54.1-55.7l-10-5.6c5.6 15.8-.2 20.8-12.1 31.6-23.5 21.3-71.5 22.8-51.5-36.3z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path d="M1277.2 2881.7c145.8 4.1 192.2-137 102.2-257.8l-8.9 13.3c5.8 56.3 14.2 111.8 15 169.5-17.6 20.7-43.2 13-48.3-10 .3-31.2-9.9-57.6-22.8-82.8l-7.2 13.3c8.4 20.7 17.5 44 19.4 69.5-41.6 49.9-87.6 60-70.5-5.6-32.9 57.5 16.9 98 73.3 9.5 12.1 60.4 58.9 22.9 61.7 9.9 5.1-39.6 2.5-103.4-7.8-153.8 40.6 70.3 42 121 20.4 154.9-24 37.7-76.2 55.3-126.5 70.1z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path d="M1359.9 2722.2c-31.2 2.3-47.2-4.1-30.3-27.2 16.7-22.6 32.3-4.6 36.5 25.6 3.9 28.3-54.8 64.4-75.1 64.4-30.7 0-44.9-39.5-16.6-75-36.4 103.6 78.6 43.5 85.5 12.2zm-21.6-24c-3.8-.2-6.6 6.5-4.7 7.8 5.5 3.8 14.2 1.5 15.1-.4 1.9-4.2-5.1-7.2-10.4-7.4z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path d="M1190.5 2771.1c-30 59-.1 83.4 38.4 76.6 22.4-4.1 50.8-20 67.2-41.7.3-47.8-.4-95.2-4.6-141.5 15-17.9-1.3-17.8-7-37-2.6 11.2-8.9 23.3-2.8 32q6.6 70 6.6 142.2c-30.2 24.3-52.9 33.3-69.1 33.1-33.5-.3-40.7-28.5-28.7-63.7z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path d="M1251.8 2786.7c-.5-44.5-1.2-95-5.2-126.1 15.6-17.3-.8-17.7-5.9-37.1-3 11-9.6 23-3.8 31.9 2.6 47.6 5.1 95.2 5.6 142.8 3.6-2.3 7.7-3.2 9.3-11.5z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path stroke-width=".4" d="M1135.4 2784.6c-3.8-4.8-6.5-10.2-9.6-14.9-.5-6.7 4-12.9 4.6-16.3 5.1 7.9 8.1 13.9 12.2 17.8m5.4 3.1c7.5 3 16.7 3 25.2 3.2 32.8.6 67.3-4.8 63.6 39.6a66 66 0 0 1-65.2 61.9c-41.7-.4-77.3-46.4-13-131.1 6.2-1 14.3.7 21 1.3 11.5.9 23.3-.2 36.8-11-1.6-27.9-1.6-54.3-5-79.5-5.8-8.9.8-20.8 3.8-31.9 5.1 19.4 21.4 19.8 5.9 37.2 3.7 28 4.1 56.5 4.1 73.5-7.8 11.9-13.9 24.5-36.7 29.3-23.3-3.4-33.8-36-58.1-25.2 6.7-29.4 68.4-36.1 74.6-12.9-4.1 24.2-61.7 14.5-77 92.7-4.7 24.1 20.7 46.3 46.8 44.5 25.5-1.7 52.7-19.4 55.4-49.2 2.1-24.9-33-22-47.7-21.7-21.4.5-34.9-2.8-43-7.5m21.9-53.9c3.8-3.6 17.1-6.1 21.9-.3q-5.5 3.5-10 8.1c-5-2.6-8.3-5.2-11.9-7.8z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path d="M1194 2650.9a49 49 0 0 1 5.3 21c-2.2 10.4-11.1 20.1-20.3 20.4-5.7.2-12.1-1.4-16.6-10.3-.5-1.1-2.9-3.7-5.2-2.5-10.1 16.6-17.6 23.6-26.7 23.5-18.2-.3-12.8-16.5-29.6-21.5-7-.2-18.5 6.9-24.4 20.8-22.4 63.5-42.8-.2-34.1-29.8 1.3 28.3 8.1 45.1 15.1 44.6 5.1-.5 9.6-12.3 16.1-24.7 5-9.5 17-26.6 29.7-26.6 11.6.3 4.3 21.6 27.5 21.3 11.2-.2 21.5-8.8 31.9-26 2.3-.4 2.9 3.7 3.4 5.1 1.6 5.9 11.8 22.1 25.6 7.3-.7-3.2-.4-8.5-3.9-9.6z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path stroke-width=".4" d="M1266.9 2598.3c-12.3 6.1-21.3.5-26.4-4.9 8.9-1.8 15.8-5 17.8-12-4-9-13.5-12.9-26.9-13-17.9.5-27.1 7.7-28.2 17.6 8.3.3 15.8-2 19 6-14.7 7.2-32 9.8-50.8 9.7-30.8 1.6-35.3-12.3-43.4-24.5-.6-.8-3.3-2.1-4.7-1.9-9.5 0-16.5 33.2-27.2 33.1-10.7-1.4-8.3-21.4-11.4-32.8-2.6 17.9 3.3 84.5 36.4 12.2 1-2.4 2.4-1.7 3.3.3 8.9 20.2 27 27.2 46.5 28.2 16.3.9 37.1-6.2 59.4-18.8 5.9 6.5 10.6 13.9 23 15.3 14.5.7 30-9.8 33.5-22.8 1.8-6.7 2.1-19.9-5-20.1-9.9-.3-17.1 23.7-14.8 45.3.2-.3 1.3-5.4 1.3-5.4m-43.8-28.8c6.5-3 12.8-4.4 17.8 2.2a27 27 0 0 0-8.4 4c-2.8-2.2-6.6-3.3-9.4-6.2zm47.8 14.9c1.6-7.1 2.5-12.8 8.3-16.5 1.2 7.5 1.4 11.7-8.3 16.5zm39 11c-1.9-6.1-3.8-11.4-4.4-18-1.4-13.4 10.1-21 20.5-19.9 10.7 1.1 17.8 5.1 28 8.6 8 2.7 18.8 4.8 29.1 7.7 5.8 2.6 0 9.4-1.5 10.3-25.8 10.1-44.1 26.1-60.5 26.8q-14.6.7-26.4-19c-.5-25.4-1.4-55.2-3.9-73.9 3.8-3.8 4.6-6.6 6.4-9.7 2 24.7 2.8 50.7 3.3 76.9 2.1 4.5 4.7 8.3 9.4 10.2zm16.5 2c-13.8 3.9-12.1-7.8-13.4-15-1.5-8.4-.5-17.9 10.2-15.5 13.9 3.7 26.6 8.6 38.9 13.8z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path stroke-width=".4" d="m1314.3 2621.3 1.9 9.3h1.5l-.6-8.7" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="m1094.2 2718.5 7-7.2 8.1 6.9-7.5 6.7zm17.8-2.4 7.1-7.2 8.1 6.9-7.5 6.7zm-49.5-74.6 7.1-7.2 8.1 6.9-7.5 6.7zm3.2 21.2 7.1-7.2 8 6.9-7.5 6.7zm128.5 35.5 6.5-5.3 6 6.5-6.8 4.8zm-85.8-135.7 4.6-4.7 5.3 4.5-4.9 4.4zm11.7-1.5 4.6-4.8 5.3 4.6-4.9 4.3zm245.6 53.7-4.4 3.7-4.2-4.3 4.6-3.4z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path stroke-width=".4" d="m1158.7 2747.4-.5 7.9 12.6 1.2 10.1-7.6z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
<path d="m1265.2 2599.8 3.7-.8-.4 10.3-2.3.9z" transform="matrix(.36355 0 0 .3308 -130 -670.9)"/>
|
||||
</g>
|
||||
<path fill="#fff" d="M320 326.3c51.6 0 93.6-38.2 93.6-85.2a82 82 0 0 0-32.6-64.4 70 70 0 0 1 19.2 48c0 40.8-35.9 73.9-80.2 73.9s-80.2-33.1-80.2-74c0-18.3 7.2-35.1 19.2-48a82 82 0 0 0-32.6 64.6c0 46.9 42 85.1 93.6 85.1" class="arab-fil2"/>
|
||||
<g fill="#fff" stroke="#000" stroke-width="8">
|
||||
<path d="M-54 1623c-88 44-198 32-291-28-4-2-6 1-2 12 10 29 18 52-12 95-13 19 2 22 24 20 112-11 222-36 275-57zm-2 52c-35 14-95 31-162 43-27 4-26 21 22 27 49 5 112-30 150-61z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M0 1579c12 0 34-5 56-8 41-7 11 56-56 56v21c68 0 139-74 124-107-21-48-79-7-124-7s-103-41-124 7c-15 33 56 107 124 107v-21c-67 0-97-63-56-56 22 3 44 8 56 8z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M54 1623c88 44 198 32 291-28 4-2 6 1 2 12-10 29-18 52 12 95 13 19-2 22-24 20-112-11-222-36-275-57zm2 52c35 14 94 31 162 43 27 4 26 21-22 27-49 5-112-30-150-61z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M3 1665c2 17 5 54 28 38 31-21 38-37 38-67 0-19-23-47-69-47s-69 28-69 47c0 30 7 46 38 67 23 16 25-21 28-38 1-6 6-4 6 0z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
</g>
|
||||
<g fill="#fff" stroke="#000" stroke-width="8">
|
||||
<path d="M-29 384c-13-74-122-79-139-91-20-13-17 0-10 20 20 52 88 73 119 79 25 4 33 6 30-8z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M4 386c11-76-97-112-110-129-15-18-17-7-10 14 13 45 60 98 88 112 23 12 30 17 32 3z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M93 430c10-91-78-105-101-134-15-18-16-8-11 13 10 46 54 100 81 117 21 13 30 18 31 4z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M66 410c-91-59-155-26-181-29-25-3-33 13 10 37 53 29 127 25 156 14 30-12 21-18 15-22zm137 40c-28-98-93-82-112-94s-21-9-17 13c8 39 75 82 108 95 12 4 27 10 21-14z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M190 467c-78-63-139-16-163-23-18-5-10 7-3 12 50 35 112 54 160 32 19-8 20-10 6-21zm169 64c1-62-127-88-154-126-16-23-30-11-22 26 12 48 100 101 148 111 29 6 28-4 28-11z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M355 542c-81-73-149-49-174-56-25-6-35 9 4 39 48 36 122 43 153 36s23-14 17-19zm145 107c-23-106-96-128-114-148-17-20-35-14-20 34 18 57 77 107 108 119 30 13 28 3 26-5z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M499 663c-59-95-136-92-160-105-23-14-39-2-8 39 36 50 110 78 144 80s28-7 24-14z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M575 776c34-108-44-148-52-166-9-18-18-18-23 1-22 77 49 152 60 167 11 14 13 7 15-2z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M559 806c-27-121-98-114-114-131-17-17-19-5-16 17 8 59 79 99 111 119 10 6 22 13 19-5zm68 142c49-114-9-191-27-208-18-16-29-23-23 0 8 35-20 125 23 191 14 22 16 43 27 17z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M601 971c11-70-29-134-72-159-25-15-26-11-26 10 2 65 63 119 81 149 17 28 16 7 17 0z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M590 1153c-36-132 39-208 62-223 22-16 36-22 26 3-15 37 1 140-56 205-18 22-25 45-32 15z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M598 1124c30-115-35-180-55-193-19-13-31-18-22 3 12 32-1 122 49 178 16 19 22 38 28 12z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M561 1070c-54 58-55 143-31 193 15 29 17 27 31 6 38-61 15-149 17-188 1-37-11-17-17-11z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M650 1162c0 80-49 145-101 165-30 11-30 8-26-16 14-90 83-123 108-152 24-28 19-5 19 3z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M464 1400c88-80 41-136 45-188 2-28-9-21-19-11-56 55-59 153-47 191 5 17 13 15 21 8z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M582 1348c-29 88-106 142-171 145-38 2-37-1-24-27 49-94 136-105 175-129 36-22 23 2 20 11z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M343 1513c114-57 91-152 112-176 15-17-3-15-12-9-67 39-121 101-122 167 0 25 2 28 22 18z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M187 1619c144 23 211-86 253-96 22-5 6-14-5-15-96-11-218 34-255 84-15 20-15 24 7 27z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M333 1448c-29 95-137 173-218 179-38 3-38-1-24-26 65-118 178-138 218-168 34-26 27 6 24 15zM29 384c13-74 122-79 139-91 20-13 17 0 10 20-20 52-88 73-119 79-25 4-33 6-30-8z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-4 386c-11-76 97-112 110-129 15-18 17-7 10 14-13 45-60 98-88 112-23 12-30 17-32 3z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-93 430c-10-91 78-105 101-134 15-18 16-8 11 13-10 46-54 100-81 117-21 13-30 18-31 4z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-66 410c91-59 155-26 181-29 25-3 33 13-10 37-53 29-127 25-156 14-30-12-21-18-15-22zm-137 40c28-98 93-82 112-94s21-9 17 13c-8 39-75 82-108 95-12 4-27 10-21-14z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-190 467c78-63 139-16 163-23 18-5 10 7 3 12-50 35-112 54-160 32-19-8-20-10-6-21zm-169 64c-1-62 127-88 154-126 16-23 30-11 22 26-12 48-100 101-148 111-29 6-28-4-28-11z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-355 542c81-73 149-49 174-56 25-6 35 9-4 39-48 36-122 43-153 36s-23-14-17-19zm-145 107c23-106 96-128 114-148 17-20 35-14 20 34-18 57-77 107-108 119-30 13-28 3-26-5z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-499 663c59-95 136-92 160-105 23-14 39-2 8 39-36 50-110 78-144 80s-28-7-24-14z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-575 776c-34-108 44-148 52-166 9-18 18-18 23 1 22 77-49 152-60 167-11 14-13 7-15-2z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-559 806c27-121 98-114 114-131 17-17 19-5 16 17-8 59-79 99-111 119-10 6-22 13-19-5zm-68 142c-49-114 9-191 27-208 18-16 29-23 23 0-8 35 20 125-23 191-14 22-16 43-27 17z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-601 971c-11-70 29-134 72-159 25-15 26-11 26 10-2 65-63 119-81 149-17 28-16 7-17 0z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-590 1153c36-132-39-208-62-223-22-16-36-22-26 3 15 37-1 140 56 205 18 22 24 45 32 15z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-598 1124c-30-115 35-180 55-193 19-13 31-18 22 3-12 32 1 122-49 178-16 19-22 38-28 12z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-561 1070c54 58 55 143 31 193-15 29-17 27-31 6-38-61-15-149-17-188-1-37 11-17 17-11z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-650 1162c0 80 49 145 101 165 30 11 30 8 26-16-14-90-83-123-108-152-24-28-19-5-19 3z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-464 1400c-88-80-41-136-45-188-2-28 9-21 19-11 56 55 59 153 47 191-5 17-13 15-21 8z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-582 1348c29 88 106 142 171 145 38 2 37-1 24-27-49-94-136-105-175-129-36-22-23 2-20 11z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-343 1513c-114-57-91-152-112-176-15-17 3-15 12-9 67 39 121 101 122 167 0 25-2 28-22 18z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-187 1619c-144 23-211-86-253-96-22-5-6-14 5-15 96-11 218 34 255 84 15 20 15 24-7 27z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
<path d="M-333 1448c29 95 137 173 218 179 38 3 38-1 24-26-65-118-178-138-218-168-34-26-27 6-24 15z" class="arab-fil2 arab-str2" transform="matrix(.23458 0 0 .21345 320 27.3)"/>
|
||||
</g>
|
||||
<path fill="#006233" d="M359.6 128.9c-4.4-3-20.8-1.3-23.9-3.3 5.9 4.5 19 1.3 24 3.3zm39.7 7.6c-3.5-5.7-24.4-9.6-27.5-14.7 5.5 9.8 21.6 8.5 27.5 14.7m-3 6.6c-7.8-6.8-25.8-4-31.3-8 12.7 10.4 19.7 2.3 31.2 8zM351 112.8c4.9 2.4 11 4.7 14 10.3-3.5-4.3-9.8-6-15-9.6q.5-.1 1-.7m77 44c-3.1-6.4-14-13.4-14.9-15.8 3 8.3 12 10.3 14.8 15.8zm2.7 11.3c-9.4-13.4-24.1-12-30-17 4.5 4.9 21.4 8 30 17m21.8 20.7c.7-14.3-11-19.6-11.4-27.7-.3 9.6 12 22.6 11.4 27.7m-5.8 7.7c-2.4-12.4-18.3-13.2-21.1-20.5 0 6.8 18.7 13.9 21 20.5zm13.1-7c8.5 9.4 2.6 23.7 6.1 34.1-4.2-7.7-2.1-26.9-6-34.1zm-13.8 40c12.6 12.5 7.5 26.3 12.6 32.3-6.3-8.3-5.4-24.5-12.6-32.2zm26.3 1.8c-10.9 10.9-4.3 27.3-10 35 6.4-6.6 5.5-27 10-35m-13.7 0c-1.4-12.6-14.3-19.2-15.4-26-1.5 6.8 12.4 17.5 15.4 26m-6.5 30c2 8.8-5.7 27.6-3.3 33.4-5.2-10 4.4-29 3.3-33.3zm16.6 20.1c-5.1 15.6-15.5 14.6-18.7 24 2.3-9 16-17.1 18.7-24m-33.5 7.3c-6.8 10.5-1.2 22.4-6.8 29.9 8-7.5 3.7-21.4 6.8-29.9m16.4 28.6c-8.2 13.9-25.1 12.6-31.9 22.6 6.8-12.6 27.7-14.7 32-22.6zm-29.8-1.7c-14.5 9.2-10 18.8-21.1 29 13.8-10.2 12.7-21.5 21.1-29m-6.8 37.2c-14-.5-34.2 16.2-46.4 14.9 12.2 2.4 34.7-12.6 46.4-15zm-22.7-15c-1 13-37.6 21.4-41.5 30.1 4.4-11.5 36.6-20 41.5-30zm-82.8-240c-4.7-3.7-10.4-6.7-12-10.3 1.2 4.7 5.8 8 10.5 11.3.5-.2 1-.9 1.5-1.1zm-8 3.7c-7.3-3.2-15.7-3-19.5-7.4 2.4 4.4 10.3 6.1 17.1 8.5q1.2-.7 2.4-1zm-21.1 27.3c4.4-3 20.8-1.2 23.9-3.2-5.9 4.5-19 1.3-24 3.2zm-39.7 7.7c3.5-5.7 24.4-9.6 27.5-14.7-5.4 9.8-21.6 8.5-27.5 14.7m3 6.6c7.8-6.8 25.9-4 31.3-8-12.7 10.4-19.7 2.3-31.2 8zm31.3-20c4.4-8.6 17-9.6 20.4-14.8-5 7.7-15.7 9-20.4 14.8m36-7.5c13-5.5 25.7-.8 31.8-3.4-7.5 3.6-25.4 1.9-31.7 3.4zm-98.9 41.2c3-6.4 13.8-13.5 14.8-15.8-3 8.3-12 10.3-14.8 15.8m-2.8 11.3c9.4-13.4 24.1-12 30-17-4.4 4.9-21.3 8-30 17m-21.8 20.7c-.7-14.3 11-19.6 11.5-27.7.2 9.6-12 22.6-11.5 27.7m5.8 7.7c2.4-12.4 18.3-13.2 21.1-20.5 0 6.8-18.7 13.9-21 20.5zm-13.1-7c-8.4 9.4-2.6 23.6-6 34.1 4.1-7.7 2-26.9 6-34.1m13.8 40c-12.6 12.5-7.5 26.3-12.6 32.3 6.3-8.3 5.4-24.5 12.6-32.2zm-26.2 1.8c10.8 10.9 4.2 27.3 9.8 35-6.3-6.6-5.4-27-9.8-35m13.6 0c1.4-12.6 14.3-19.2 15.4-26 1.5 6.8-12.4 17.5-15.4 26m6.5 30c-2 8.8 5.7 27.6 3.3 33.4 5.2-10-4.4-29-3.3-33.3zm-16.6 20.1c5.2 15.6 15.5 14.6 18.8 24-2.4-9-16-17.1-18.8-24m33.5 7.3c6.8 10.5 1.2 22.4 6.8 29.9-8-7.5-3.7-21.4-6.8-29.9m-16.4 28.6c8.2 13.9 25.1 12.6 32 22.6-6.9-12.6-27.8-14.7-32-22.6m29.8-1.7c14.5 9.2 10.1 18.8 21.1 29-13.8-10.2-12.6-21.5-21.1-29m6.8 37.1c14-.4 34.3 16.3 46.4 15-12.1 2.3-34.7-12.6-46.4-15m22.8-15c.9 13.1 37.5 21.4 41.5 30.2-4.5-11.5-36.6-20-41.6-30.1zM301 116c2.8-11.5 17-13.6 18.8-20.5-.7 7.3-17.4 15.4-18.8 20.5m41.5-28.6c-2 8.8-17.3 13.7-19.4 20.3.7-9 16.4-14 19.4-20.3m-12 20.8c7.3-10.7 22.3-8 27.5-14.1-3.8 7.2-22.3 7.4-27.5 14z" class="arab-fil0"/>
|
||||
<path fill="none" stroke="#f7c608" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8" d="M429.8 240c0 55.5-49.3 100.4-110.3 100.4-60.9 0-110.3-44.9-110.3-100.3 0-55.5 49.4-100.4 110.3-100.4 61 0 110.3 45 110.3 100.4z"/>
|
||||
<path fill="#f7c608" d="m298 340.5-.5 1.2q-.5 1.3-2.1 1.2l-8-1.9 2.6-7.7 8 1.7q1.5.4 1 1.8l-.2 1m-19-4.8.4-1.2q.5-1.4 2-1l7.8 2.5-2.5 7.7q-4.2-1-7.9-2.3c-.8-.4-1-2-.7-2.9"/>
|
||||
<path fill="#006233" d="m296.4 339.8-.3.9q-.5 1-1.7.8l-6.6-1.6 1.8-5.6c2.4.7 4.9 1.2 6.6 1.5q1.3.4 1 1.4l-.2.7m-15.8-4 .3-1q.4-.8 1.6-.6 2.8 1 6.5 2l-1.8 5.6-6.5-1.9c-.7-.4-1-1.5-.7-2.1"/>
|
||||
<path fill="#f7c608" d="m267.7 330.8-.7 1q-.9 1.2-2.4.7c-2-1.2-4.7-2.5-7-3.9l4.8-6.8 7.1 3.7q1.2.8.5 2l-.6 1m-16.7-9.6.7-1q1-1.2 2.3-.5 2.8 2 6.7 4.4l-4.9 6.8-6.7-4.2c-.7-.7-.4-2.3 0-3"/>
|
||||
<path fill="#006233" d="m266.5 329.7-.6.8q-.6.8-1.9.3c-1.6-1-3.8-2-5.8-3.2l3.5-4.9c2 1.3 4.3 2.4 5.9 3.1q1 .6.5 1.6l-.5.6m-13.8-7.9.5-.8q.7-.8 1.8-.2l5.6 3.6-3.5 4.9q-3.1-1.7-5.6-3.5c-.6-.5-.5-1.7-.1-2.2"/>
|
||||
<path fill="#f7c608" d="m241.8 313.7-1 .8q-1.3.8-2.6 0c-1.5-1.6-3.7-3.5-5.5-5.5l6.7-5.3c2 2.1 4.2 4 5.7 5.4q1 1-.1 2l-.9.8m-13-13.4 1-.9q1.2-.8 2.3.2a73 73 0 0 0 5 6l-6.7 5.2q-2.9-3-5.2-5.8c-.5-.8.3-2.2 1-2.8"/>
|
||||
<path fill="#006233" d="m240.9 312.4-.8.6q-.8.6-1.9-.2l-4.6-4.6 4.9-3.8 4.7 4.5q.7 1 0 1.7l-.7.5m-10.8-11.2.7-.6q1-.6 1.8.2 1.8 2.3 4.3 5l-4.9 3.7-4.3-4.8c-.4-.6.1-1.7.6-2.1"/>
|
||||
<path fill="#f7c608" d="m222.2 290.7-1.3.5q-1.3.4-2.4-.6l-3.6-6.8 8.1-3.3c1.3 2.5 2.7 5 3.8 6.6q.5 1.3-.8 2l-1 .4m-8.4-16.2 1.2-.6q1.5-.4 2.2.8a71 71 0 0 0 3 7l-8 3.3a60 60 0 0 1-3.3-6.8c-.2-1 1-2.1 1.9-2.5"/>
|
||||
<path fill="#006233" d="m221.7 289.2-.9.3q-1 .4-1.8-.6l-3-5.6 5.8-2.4 3.2 5.5q.4 1.2-.5 1.6l-.8.3m-7-13.5 1-.3q1-.4 1.6.6l2.5 5.8-5.7 2.4-2.7-5.7c-.2-.7.6-1.6 1.2-1.9"/>
|
||||
<path fill="#f7c608" d="m210.5 263.5-1.4.2a2 2 0 0 1-2-1.2l-1.5-7.4 8.8-1.1a64 64 0 0 0 1.7 7.3q0 1.4-1.4 1.7l-1.2.2m-3-17.7 1.4-.2q1.5-.1 1.8 1.2.1 3.3.7 7.5l-8.8 1.1-1-7.4c.2-.9 1.7-1.7 2.6-1.8"/>
|
||||
<path fill="#006233" d="m210.5 262-1 .1q-1 .1-1.5-1l-1.1-6.2 6.3-.8 1.3 6.1q.1 1.1-1 1.4l-.8.1m-2.5-14.7 1-.2q1.2 0 1.3 1.1.2 2.8.7 6.2l-6.3.8q-.6-3.1-.8-6.1c0-.7 1.1-1.4 1.8-1.5"/>
|
||||
<path fill="#f7c608" d="m207.7 234.5-1.4-.2q-1.5-.2-1.6-1.7c.3-2 .5-4.8 1-7.4l8.7 1.2a65 65 0 0 0-.7 7.4q-.3 1.4-1.8 1.3l-1.2-.2m2.6-17.7 1.4.1q1.4.4 1.4 1.7a69 69 0 0 0-1.7 7.4l-8.8-1.2q.6-3.8 1.4-7.4c.4-.8 2.1-1.2 3-1"/>
|
||||
<path fill="#006233" d="M208.2 233h-1q-1-.4-1.1-1.5l.8-6.1 6.3.8-.6 6.2q-.2 1.1-1.4 1h-.8m2.1-14.9 1 .2q1.1.2 1 1.4-.7 2.6-1.3 6l-6.3-.7 1.1-6.2c.3-.7 1.5-1 2.2-1"/>
|
||||
<path fill="#f7c608" d="m214 206-1.3-.6q-1.3-.5-1-2c1-2 2-4.6 3.2-6.9l8 3.4a70 70 0 0 0-3 7q-.6 1.1-2 .7l-1.2-.5m8-16.4 1.3.6q1.3.6.8 2l-3.8 6.6-8.1-3.4q1.7-3.6 3.6-6.7c.6-.7 2.4-.7 3.2-.3"/>
|
||||
<path fill="#006233" d="m215 204.7-1-.4c-.6-.2-.8-1-.6-1.6l2.6-5.7 5.8 2.4-2.5 5.8q-.6 1-1.6.6l-.8-.3m6.7-13.6.9.4q1 .4.5 1.6l-3.2 5.5-5.7-2.4q1.4-3.1 3-5.6c.4-.6 1.7-.7 2.3-.4"/>
|
||||
<path fill="#f7c608" d="m228.9 180.2-1.1-.9q-1-.9-.4-2.2c1.6-1.6 3.4-3.9 5.2-5.8l6.8 5.3a72 72 0 0 0-5 6 2 2 0 0 1-2.4 0l-.9-.6m12.8-13.7 1 .8q1.2 1 .2 2.2l-5.7 5.3-6.8-5.3q2.8-3 5.6-5.5c.8-.5 2.5 0 3.2.5"/>
|
||||
<path fill="#006233" d="m230.2 179.2-.8-.6q-.7-.7-.1-1.7l4.3-4.9 4.8 3.8-4.2 5q-.8.8-1.8.2l-.6-.5m10.6-11.4.8.6q.7.7 0 1.6l-4.8 4.6-4.8-3.8q2.3-2.6 4.6-4.6c.7-.5 2-.2 2.4.2"/>
|
||||
<path fill="#f7c608" d="m251 159.2-.7-1q-.7-1.2.4-2.3c2-1.1 4.4-2.8 6.8-4.2l4.8 6.8a78 78 0 0 0-6.7 4.4 2 2 0 0 1-2.2-.4l-.7-1m16.5-9.8.7 1q.8 1.4-.4 2.1-3.3 1.5-7.2 3.7l-4.8-6.8q3.5-2.2 7-3.9c1-.2 2.4.7 2.9 1.4"/>
|
||||
<path fill="#006233" d="m252.7 158.6-.6-.7q-.4-1 .4-1.7l5.7-3.5 3.4 4.8-5.5 3.7q-1.1.6-1.8-.3l-.5-.6m13.7-8.2.6.8q.4.9-.5 1.5l-6 3.1-3.4-4.8 5.8-3.3c.8-.2 1.9.4 2.3.9"/>
|
||||
<path fill="#f7c608" d="m279 144.9-.5-1.3q-.2-1.3 1-2l7.9-2.3 2.5 7.7a83 83 0 0 0-7.8 2.6q-1.4.3-2-1l-.3-1m18.8-5.4.4 1.3q.3 1.3-1 1.8l-8.1 1.7-2.5-7.7a85 85 0 0 1 8-2c.9 0 2 1.3 2.3 2"/>
|
||||
<path fill="#006233" d="m280.6 144.7-.3-1q-.1-.8 1-1.4l6.5-2 1.8 5.6-6.5 2q-1.2.4-1.6-.6l-.3-.7m15.7-4.4.3.9q.3 1-1 1.4-3 .5-6.6 1.4l-1.8-5.5 6.6-1.6c.8-.1 1.6.8 1.8 1.4"/>
|
||||
<path fill="#f7c608" d="M310 138.2v-1.3q.2-1.3 1.7-1.7l8.2-.2v8.1a84 84 0 0 0-8.2.4q-1.6 0-1.6-1.5v-1m19.7-.2v1.2q-.1 1.4-1.7 1.5l-8.2-.4V135q4.3 0 8.2.2c1 .2 1.7 1.7 1.7 2.6"/>
|
||||
<path fill="#006233" d="M311.8 138.5v-1q0-.9 1.3-1.2l6.9-.1v5.8q-4 0-6.9.3-1.2-.1-1.3-1v-.9m16.3-.1v.9q0 1-1.3 1l-6.8-.2v-5.8l6.8.1c.8.2 1.3 1.2 1.3 1.9"/>
|
||||
<path fill="#f7c608" d="m340 139.6.3-1.2q.5-1.2 2.1-1.2l8 1.8-2.5 7.8-8-1.6q-1.4-.5-1.1-1.9l.3-1m19 4.7-.4 1.2q-.5 1.4-2 1l-7.8-2.4 2.5-7.8q4.1 1 7.8 2.3c.8.4 1 2 .8 2.8"/>
|
||||
<path fill="#006233" d="m341.5 140.3.2-.9q.5-1 1.7-.8l6.6 1.5-1.7 5.6-6.7-1.4q-1.1-.4-1-1.4l.3-.7m15.8 4-.3.8q-.4 1-1.6.7l-6.5-2 1.7-5.6q3.5.9 6.6 1.9c.7.3 1 1.5.7 2"/>
|
||||
<path fill="#f7c608" d="m370.2 149.1.7-1q.9-1.2 2.4-.7c2 1.1 4.7 2.4 7.1 3.8l-4.7 6.9a81 81 0 0 0-7.3-3.6q-1.2-.9-.5-2.1l.7-1m16.8 9.5-.8 1a2 2 0 0 1-2.2.5l-6.7-4.3 4.7-6.9q3.7 2 6.8 4.2c.7.6.4 2.2-.1 3"/>
|
||||
<path fill="#006233" d="m371.5 150.2.5-.8q.6-.7 1.9-.4l5.8 3.2-3.4 5-6-3.1q-1-.6-.4-1.6l.4-.7m14 7.9-.6.8q-.6.8-1.8.2l-5.6-3.6 3.4-4.9 5.7 3.4c.6.6.5 1.7.1 2.3"/>
|
||||
<path fill="#f7c608" d="m396.3 166 1-.9q1.2-.8 2.5 0l5.6 5.5-6.6 5.3a75 75 0 0 0-5.8-5.3q-1-1 .1-2l.9-.8m13.2 13.3-1 .9a2 2 0 0 1-2.4-.2 72 72 0 0 0-5-5.9l6.7-5.3 5.2 5.7c.4.8-.3 2.3-1 2.8"/>
|
||||
<path fill="#006233" d="m397.2 167.3.7-.6q.8-.5 2 .1l4.6 4.6-4.8 3.8-4.8-4.5q-.8-.9 0-1.6l.7-.5m11 11-.8.7q-.9.6-1.8-.2l-4.3-4.9 4.8-3.8 4.4 4.7c.4.7-.1 1.8-.6 2.2"/>
|
||||
<path fill="#f7c608" d="m416.1 188.9 1.3-.6q1.4-.4 2.4.7l3.7 6.6-8.1 3.5q-2-4-4-6.6-.5-1.3.9-2l1-.5m8.6 16.2-1.3.5c-.8.4-1.8 0-2.1-.7a71 71 0 0 0-3.1-7l8-3.4 3.3 6.9c.2.9-1 2-1.8 2.4"/>
|
||||
<path fill="#006233" d="m416.6 190.4.9-.4q1-.4 1.8.6l3 5.5-5.8 2.5-3.2-5.5q-.4-1 .5-1.6l.8-.3m7 13.5-.8.3q-1 .4-1.7-.6-1-2.6-2.6-5.8l5.8-2.5 2.8 5.7c.1.8-.7 1.7-1.3 2"/>
|
||||
<path fill="#f7c608" d="m428 215.9 1.4-.2a2 2 0 0 1 2.1 1.2l1.5 7.3-8.8 1.3a65 65 0 0 0-1.7-7.3q-.1-1.4 1.4-1.7l1.1-.2m3.2 17.7-1.4.2q-1.5.1-1.8-1.3l-.8-7.4 8.8-1.3 1 7.5c0 .9-1.6 1.7-2.5 1.8"/>
|
||||
<path fill="#006233" d="m428 217.4 1-.1q1.1 0 1.5 1l1.2 6.1-6.3 1-1.3-6.2q-.2-1.2 1-1.3l.8-.2m2.6 14.7-1 .2q-1.1 0-1.4-1l-.7-6.3 6.3-.9q.7 3.3.9 6.2c0 .7-1.1 1.4-1.8 1.5"/>
|
||||
<path fill="#f7c608" d="m431.1 244.9 1.4.1q1.5.3 1.7 1.8l-.9 7.4-8.8-1.1c.4-2.7.6-5.5.6-7.5.1-.8 1-1.4 1.9-1.2l1.1.1m-2.4 17.8-1.4-.2q-1.5-.2-1.4-1.7 1-3.1 1.6-7.3l8.8 1q-.6 4-1.3 7.4c-.4.9-2.1 1.3-3 1.2"/>
|
||||
<path fill="#006233" d="M430.6 246.4h1q1 .4 1.2 1.5l-.8 6.2-6.3-.8.6-6.2q.1-1.1 1.3-1.1h.9m-2 14.9-1-.1q-1.1-.2-1-1.4.7-2.7 1.2-6.1l6.3.8-1 6c-.3.8-1.6 1.2-2.2 1"/>
|
||||
<path fill="#f7c608" d="m425.1 273.5 1.3.5q1.3.7 1 2l-3 7-8.2-3.3a66 66 0 0 0 3-7q.6-1.2 2-.8l1.2.4m-7.9 16.5-1.2-.5q-1.4-.7-.9-2 1.9-2.8 3.8-6.6l8.1 3.3-3.5 6.7c-.6.7-2.4.7-3.3.3"/>
|
||||
<path fill="#006233" d="m424.2 274.8 1 .3q.7.5.6 1.7l-2.6 5.7-5.9-2.3 2.5-5.8q.6-1 1.6-.8l.8.4m-6.5 13.6-1-.3q-1-.6-.4-1.6l3-5.5 5.9 2.3-3 5.6c-.5.6-1.8.7-2.4.4"/>
|
||||
<path fill="#f7c608" d="m410.5 299.4 1.1.8q1 1 .4 2.3c-1.6 1.6-3.4 3.8-5.2 5.8L400 303c2-2 3.8-4.3 5-6q1-.9 2.3-.1l.9.7m-12.6 13.8-1-.8q-1.2-1-.3-2.1 2.6-2.2 5.7-5.5l6.8 5.3-5.5 5.6c-.8.5-2.5 0-3.2-.6"/>
|
||||
<path fill="#006233" d="m409.2 300.4.8.6q.7.6.1 1.7l-4.3 4.8-4.9-3.7q2.6-2.8 4.2-5 .9-.8 1.8-.2l.6.5m-10.4 11.5-.8-.6q-.8-.7 0-1.7l4.6-4.5 5 3.7q-2.4 2.6-4.7 4.7c-.6.4-1.8.1-2.4-.3"/>
|
||||
<path fill="#f7c608" d="m388.5 320.5.7 1q.7 1.3-.3 2.3l-6.7 4.3-5-6.8a78 78 0 0 0 6.7-4.4 2 2 0 0 1 2.2.4l.7.9m-16.4 10-.7-1q-.8-1.3.4-2.2l7.2-3.7 4.8 6.8-7 4c-.9.2-2.3-.7-2.9-1.4"/>
|
||||
<path fill="#006233" d="m386.9 321.1.5.8q.5.8-.4 1.7l-5.6 3.5-3.5-4.8 5.6-3.7q1-.6 1.7.2l.5.7m-13.6 8.3-.6-.8q-.4-.9.5-1.6l6-3.1 3.4 4.8q-3 1.9-5.8 3.3c-.7.3-1.9-.3-2.2-.8"/>
|
||||
<path fill="#f7c608" d="m360.8 335.1.4 1.2q.3 1.4-1 2l-7.8 2.5-2.6-7.8a75 75 0 0 0 7.7-2.6q1.5-.2 2 1l.4 1m-18.8 5.5-.4-1.3q-.3-1.4 1-1.8 3.6-.6 8-1.8l2.7 7.8-8 2c-1 0-2-1.3-2.3-2"/>
|
||||
<path fill="#006233" d="m359 335.3.4.9q.2 1-1 1.5l-6.4 2-1.9-5.6 6.4-2q1.3-.4 1.7.6l.2.7m-15.6 4.5-.3-.9q-.2-1 1-1.4l6.6-1.5 1.9 5.6-6.6 1.6c-.8 0-1.7-.8-2-1.4"/>
|
||||
<path fill="#f7c608" d="M329.7 342v1.3q-.1 1.4-1.6 1.7c-2.4 0-5.4.3-8.2.3l-.1-8.1a82 82 0 0 0 8.2-.5q1.6 0 1.6 1.5v1m-19.6.4v-1.2q0-1.4 1.6-1.5l8.2.3v8.1l-8.2-.1c-.9-.2-1.6-1.7-1.6-2.6"/>
|
||||
<path fill="#006233" d="M328 341.8v.9q-.1.9-1.4 1.2l-6.8.2v-5.7q4-.1 6.8-.4 1.2 0 1.4 1v.8m-16.4.3v-1q0-.9 1.3-1 3 .3 6.9.2v5.8H313c-.8-.2-1.4-1.3-1.4-1.9"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 24 KiB |
@@ -601,6 +601,13 @@ function keycloak_mbox_login_rest($user, $pass, $extra = null){
|
||||
|
||||
// validate mailcow_password
|
||||
$mailcow_password = $user_res['attributes']['mailcow_password'][0];
|
||||
// Keycloak returns binary LDAP attributes like userPassword Base64 encoded
|
||||
if (substr($mailcow_password, 0, 1) != '{') {
|
||||
$decoded_password = base64_decode($mailcow_password, true);
|
||||
if ($decoded_password !== false && substr($decoded_password, 0, 1) == '{') {
|
||||
$mailcow_password = $decoded_password;
|
||||
}
|
||||
}
|
||||
if (!verify_hash($mailcow_password, $pass)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -35,6 +35,13 @@ function fwdhost($_action, $_data = null) {
|
||||
);
|
||||
return false;
|
||||
}
|
||||
$hosts = array_unique(array_map(function ($host) {
|
||||
$net = explode('/', $host, 2);
|
||||
if (filter_var($net[0], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
|
||||
$net[0] = inet_ntop(inet_pton($net[0]));
|
||||
}
|
||||
return implode('/', $net);
|
||||
}, $hosts));
|
||||
foreach ($hosts as $host) {
|
||||
try {
|
||||
$redis->hSet('WHITELISTED_FWD_HOST', $host, $source);
|
||||
|
||||
@@ -1394,6 +1394,18 @@ function set_tfa($_data) {
|
||||
case "webauthn":
|
||||
$key_id = (!isset($_data["key_id"])) ? 'unidentified' : $_data["key_id"];
|
||||
|
||||
// Refuse incomplete WebAuthn registrations. Without this guard a request
|
||||
// that does not contain the parsed credential data (e.g. a plain form
|
||||
// POST) would silently insert an empty keyHandle while reporting success.
|
||||
if (empty($_data['registration']) || empty($_data['registration']->credentialId)) {
|
||||
$_SESSION['return'][] = array(
|
||||
'type' => 'danger',
|
||||
'log' => array(__FUNCTION__, $_data_log),
|
||||
'msg' => 'webauthn_registration_failed'
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
$stmt = $pdo->prepare("INSERT INTO `tfa` (`username`, `key_id`, `authmech`, `keyHandle`, `publicKey`, `certificate`, `counter`, `active`)
|
||||
VALUES (?, ?, 'webauthn', ?, ?, ?, ?, '1')");
|
||||
$stmt->execute(array(
|
||||
@@ -1416,11 +1428,11 @@ function set_tfa($_data) {
|
||||
// Block TFA removal if force_tfa policy is active
|
||||
$is_forced_tfa = false;
|
||||
if ($_SESSION['mailcow_cc_role'] === 'user') {
|
||||
$stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `mailbox` WHERE `username` = ?");
|
||||
$stmt_check = $pdo->prepare("SELECT JSON_VALUE(`attributes`, '$.force_tfa') FROM `mailbox` WHERE `username` = ?");
|
||||
$stmt_check->execute(array($username));
|
||||
$is_forced_tfa = ($stmt_check->fetchColumn() == '1');
|
||||
} else {
|
||||
$stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `admin` WHERE `username` = ?");
|
||||
$stmt_check = $pdo->prepare("SELECT JSON_VALUE(`attributes`, '$.force_tfa') FROM `admin` WHERE `username` = ?");
|
||||
$stmt_check->execute(array($username));
|
||||
$is_forced_tfa = ($stmt_check->fetchColumn() == '1');
|
||||
}
|
||||
@@ -1687,11 +1699,11 @@ function unset_tfa_key($_data) {
|
||||
// Block key removal if force_tfa policy is active
|
||||
$is_forced_tfa = false;
|
||||
if ($_SESSION['mailcow_cc_role'] === 'user') {
|
||||
$stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `mailbox` WHERE `username` = ?");
|
||||
$stmt_check = $pdo->prepare("SELECT JSON_VALUE(`attributes`, '$.force_tfa') FROM `mailbox` WHERE `username` = ?");
|
||||
$stmt_check->execute(array($username));
|
||||
$is_forced_tfa = ($stmt_check->fetchColumn() == '1');
|
||||
} else {
|
||||
$stmt_check = $pdo->prepare("SELECT JSON_EXTRACT(`attributes`, '$.force_tfa') FROM `admin` WHERE `username` = ?");
|
||||
$stmt_check = $pdo->prepare("SELECT JSON_VALUE(`attributes`, '$.force_tfa') FROM `admin` WHERE `username` = ?");
|
||||
$stmt_check->execute(array($username));
|
||||
$is_forced_tfa = ($stmt_check->fetchColumn() == '1');
|
||||
}
|
||||
@@ -2420,7 +2432,7 @@ function identity_provider($_action = null, $_data = null, $_extra = null) {
|
||||
case "use_ssl":
|
||||
case "use_tls":
|
||||
case "login_provisioning":
|
||||
case "ignore_ssl_errors":
|
||||
case "ignore_ssl_error":
|
||||
$settings[$row["key"]] = boolval($row["value"]);
|
||||
break;
|
||||
default:
|
||||
@@ -2444,7 +2456,7 @@ function identity_provider($_action = null, $_data = null, $_extra = null) {
|
||||
if ($settings["authsource"] == "ldap"){
|
||||
$settings['use_ssl'] = !isset($settings['use_ssl']) ? false : $settings['use_ssl'];
|
||||
$settings['use_tls'] = !isset($settings['use_tls']) ? false : $settings['use_tls'];
|
||||
$settings['ignore_ssl_errors'] = !isset($settings['ignore_ssl_errors']) ? false : $settings['ignore_ssl_errors'];
|
||||
$settings['ignore_ssl_error'] = !isset($settings['ignore_ssl_error']) ? false : $settings['ignore_ssl_error'];
|
||||
}
|
||||
return $settings;
|
||||
break;
|
||||
@@ -3106,7 +3118,17 @@ function identity_provider($_action = null, $_data = null, $_extra = null) {
|
||||
case "get-keycloak-admin-token":
|
||||
// get access_token for service account of mailcow client
|
||||
if ($iam_settings['authsource'] !== 'keycloak') return false;
|
||||
if (isset($iam_settings['access_token'])) {
|
||||
// only introspect a cached access_token that is not (about to be) expired,
|
||||
// introspecting an expired token makes Keycloak log INTROSPECT_TOKEN_ERROR
|
||||
$token_not_expired = false;
|
||||
if (!empty($iam_settings['access_token'])) {
|
||||
$token_parts = explode('.', $iam_settings['access_token']);
|
||||
if (count($token_parts) === 3) {
|
||||
$token_payload = json_decode(base64_decode(strtr($token_parts[1], '-_', '+/')), true);
|
||||
$token_not_expired = is_array($token_payload) && isset($token_payload['exp']) && intval($token_payload['exp']) > time() + 30;
|
||||
}
|
||||
}
|
||||
if ($token_not_expired) {
|
||||
// check if access_token is valid
|
||||
$url = "{$iam_settings['server_url']}/realms/{$iam_settings['realm']}/protocol/openid-connect/token/introspect";
|
||||
$req = http_build_query(array(
|
||||
@@ -3157,6 +3179,8 @@ function identity_provider($_action = null, $_data = null, $_extra = null) {
|
||||
':key' => 'access_token',
|
||||
':value' => $res['access_token']
|
||||
));
|
||||
// keep the cached token in sync, so subsequent calls in the same run reuse it
|
||||
$iam_settings['access_token'] = $res['access_token'];
|
||||
return $res['access_token'];
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2524,6 +2524,10 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
':domain' => $domain,
|
||||
':tag_name' => $tag,
|
||||
));
|
||||
$stmt = $pdo->prepare("UPDATE `domain` SET `modified` = NOW() WHERE `domain` = :domain");
|
||||
$stmt->execute(array(
|
||||
':domain' => $domain,
|
||||
));
|
||||
}
|
||||
|
||||
$_SESSION['return'][] = array(
|
||||
@@ -2692,6 +2696,10 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
':domain' => $domain,
|
||||
':tag_name' => $tag,
|
||||
));
|
||||
$stmt = $pdo->prepare("UPDATE `domain` SET `modified` = NOW() WHERE `domain` = :domain");
|
||||
$stmt->execute(array(
|
||||
':domain' => $domain,
|
||||
));
|
||||
}
|
||||
|
||||
$_SESSION['return'][] = array(
|
||||
@@ -3170,6 +3178,10 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
':username' => $username,
|
||||
':tag_name' => $tag,
|
||||
));
|
||||
$stmt = $pdo->prepare("UPDATE `mailbox` SET `modified` = NOW() WHERE `username` = :username");
|
||||
$stmt->execute(array(
|
||||
':username' => $username,
|
||||
));
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
}
|
||||
@@ -3988,6 +4000,9 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
$stmt->execute(array(':goto' => '(^|,)'.preg_quote($_data, '/').'($|,)'));
|
||||
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
while ($row = array_shift($rows)) {
|
||||
if (!hasAliasObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $row['address'])) {
|
||||
continue;
|
||||
}
|
||||
// Keep old array for backward compatibility
|
||||
$data['fixed_sender_aliases'][] = $row['address'];
|
||||
// Split into allowed/blocked for proper display
|
||||
@@ -4923,6 +4938,9 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
else if ($SaslLogs['service'] == 'SSO') {
|
||||
$last_sso_login = strtotime($SaslLogs['datetime']);
|
||||
}
|
||||
else if ($SaslLogs['service'] == 'SOGO') {
|
||||
$last_sogo_login = strtotime($SaslLogs['datetime']);
|
||||
}
|
||||
}
|
||||
if (!isset($last_imap_login) || $GLOBALS['SHOW_LAST_LOGIN'] === false) {
|
||||
$last_imap_login = 0;
|
||||
@@ -4936,10 +4954,14 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
if (!isset($last_sso_login) || $GLOBALS['SHOW_LAST_LOGIN'] === false) {
|
||||
$last_sso_login = 0;
|
||||
}
|
||||
if (!isset($last_sogo_login) || $GLOBALS['SHOW_LAST_LOGIN'] === false) {
|
||||
$last_sogo_login = 0;
|
||||
}
|
||||
$mailboxdata['last_imap_login'] = $last_imap_login;
|
||||
$mailboxdata['last_smtp_login'] = $last_smtp_login;
|
||||
$mailboxdata['last_pop3_login'] = $last_pop3_login;
|
||||
$mailboxdata['last_sso_login'] = $last_sso_login;
|
||||
$mailboxdata['last_sogo_login'] = $last_sogo_login;
|
||||
|
||||
if (!isset($_extra) || $_extra != 'reduced') {
|
||||
$rl = ratelimit('get', 'mailbox', $_data);
|
||||
@@ -4977,7 +4999,16 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
$stmt->execute(array(':username' => $_data));
|
||||
$sender_acl_rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
foreach ($sender_acl_rows as $sender_acl_row) {
|
||||
$mailboxdata['sender_acl'][] = $sender_acl_row['send_as'];
|
||||
$send_as = $sender_acl_row['send_as'];
|
||||
if ($_SESSION['mailcow_cc_role'] == 'domainadmin' && $send_as != '*') {
|
||||
$in_scope = (substr($send_as, 0, 1) == '@')
|
||||
? hasDomainAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], substr($send_as, 1))
|
||||
: hasAliasObjectAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], $send_as);
|
||||
if (!$in_scope) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
$mailboxdata['sender_acl'][] = $send_as;
|
||||
}
|
||||
}
|
||||
$stmt = $pdo->prepare("SELECT `tag_name`
|
||||
@@ -5916,6 +5947,12 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
':domain' => $domain,
|
||||
':tag_name' => $tag,
|
||||
));
|
||||
if ($stmt->rowCount() > 0) {
|
||||
$stmt = $pdo->prepare("UPDATE `domain` SET `modified` = NOW() WHERE `domain` = :domain");
|
||||
$stmt->execute(array(
|
||||
':domain' => $domain,
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5968,6 +6005,12 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||
':username' => $username,
|
||||
':tag_name' => $tag,
|
||||
));
|
||||
if ($stmt->rowCount() > 0) {
|
||||
$stmt = $pdo->prepare("UPDATE `mailbox` SET `modified` = NOW() WHERE `username` = :username");
|
||||
$stmt->execute(array(
|
||||
':username' => $username,
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ $DEFAULT_LANG = 'en-gb';
|
||||
// https://www.iso.org/obp/ui/#search
|
||||
// https://en.wikipedia.org/wiki/IETF_language_tag
|
||||
$AVAILABLE_LANGUAGES = array(
|
||||
'ar-sa' => 'العربية (Arabic)',
|
||||
// 'ca-es' => 'Català (Catalan)',
|
||||
'bg-bg' => 'Български (Bulgarian)',
|
||||
'cs-cz' => 'Čeština (Czech)',
|
||||
|
||||
@@ -614,7 +614,7 @@ jQuery(function($){
|
||||
defaultContent: ''
|
||||
},
|
||||
{
|
||||
title: 'RL',
|
||||
title: lang_edit.ratelimit,
|
||||
data: 'rl',
|
||||
searchable: false,
|
||||
orderable: false,
|
||||
@@ -715,10 +715,6 @@ jQuery(function($){
|
||||
$.each(json, function (i, item) {
|
||||
item.chkbox = '<input type="checkbox" class="form-check-input" data-id="domain_template" name="multi_select" value="' + encodeURIComponent(item.id) + '" />';
|
||||
|
||||
item.attributes.def_quota_for_mbox = humanFileSize(item.attributes.def_quota_for_mbox);
|
||||
item.attributes.max_quota_for_mbox = humanFileSize(item.attributes.max_quota_for_mbox);
|
||||
item.attributes.max_quota_for_domain = humanFileSize(item.attributes.max_quota_for_domain);
|
||||
|
||||
item.template = escapeHtml(item.template);
|
||||
if (item.attributes.rl_frame === "s"){
|
||||
item.attributes.rl_frame = lang_rl.second;
|
||||
@@ -801,16 +797,25 @@ jQuery(function($){
|
||||
title: lang.mailbox_defquota,
|
||||
data: 'attributes.def_quota_for_mbox',
|
||||
defaultContent: '',
|
||||
render: function (data, type) {
|
||||
return type === 'sort' || type === 'type' ? data : humanFileSize(data);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: lang.max_quota,
|
||||
data: 'attributes.max_quota_for_mbox',
|
||||
defaultContent: '',
|
||||
render: function (data, type) {
|
||||
return type === 'sort' || type === 'type' ? data : humanFileSize(data);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: lang.domain_quota_total,
|
||||
data: 'attributes.max_quota_for_domain',
|
||||
defaultContent: '',
|
||||
render: function (data, type) {
|
||||
return type === 'sort' || type === 'type' ? data : humanFileSize(data);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: lang.gal,
|
||||
@@ -932,6 +937,7 @@ jQuery(function($){
|
||||
item.last_mail_login = (item.attributes.imap_access == 1 ? '<div class="text-start badge bg-info mb-2" style="min-width: 70px;">IMAP @ ' + unix_time_format(Number(item.last_imap_login)) + '</div><br>' : '') +
|
||||
(item.attributes.pop3_access == 1 ? '<div class="text-start badge bg-info mb-2" style="min-width: 70px;">POP3 @ ' + unix_time_format(Number(item.last_pop3_login)) + '</div><br>' : '') +
|
||||
(item.attributes.smtp_access == 1 ? '<div class="text-start badge bg-info mb-2" style="min-width: 70px;">SMTP @ ' + unix_time_format(Number(item.last_smtp_login)) + '</div><br>' : '') +
|
||||
'<div class="text-start badge bg-info mb-2" style="min-width: 70px;">SOGO @ ' + unix_time_format(Number(item.last_sogo_login)) + '</div><br>' +
|
||||
'<div class="text-start badge bg-info" style="min-width: 70px;">SSO @ ' + unix_time_format(Number(item.last_sso_login)) + '</div>';
|
||||
/*
|
||||
if (!item.rl) {
|
||||
@@ -1244,8 +1250,6 @@ jQuery(function($){
|
||||
item.attributes.rl_value = (!item.attributes.rl_value) ? "∞" : escapeHtml(item.attributes.rl_value);
|
||||
item.attributes.ratelimit = item.attributes.rl_value + " " + item.attributes.rl_frame;
|
||||
|
||||
item.attributes.quota = humanFileSize(item.attributes.quota);
|
||||
|
||||
item.attributes.tls_enforce_in = '<i class="text-' + (item.attributes.tls_enforce_in == 1 ? 'success bi bi-lock-fill' : 'danger bi bi-unlock-fill') + '"><span class="sorting-value">' + (item.attributes.tls_enforce_in == 1 ? '1' : '0') + '</span></i>';
|
||||
item.attributes.tls_enforce_out = '<i class="text-' + (item.attributes.tls_enforce_out == 1 ? 'success bi bi-lock-fill' : 'danger bi bi-unlock-fill') + '"><span class="sorting-value">' + (item.attributes.tls_enforce_out == 1 ? '1' : '0') + '</span></i>';
|
||||
item.attributes.pop3_access = '<i class="text-' + (item.attributes.pop3_access == 1 ? 'success' : 'danger') + ' bi bi-' + (item.attributes.pop3_access == 1 ? 'check-lg' : 'x-lg') + '"><span class="sorting-value">' + (item.attributes.pop3_access == 1 ? '1' : '0') + '</span></i>';
|
||||
@@ -1332,6 +1336,9 @@ jQuery(function($){
|
||||
title: lang.domain_quota,
|
||||
data: 'attributes.quota',
|
||||
defaultContent: '',
|
||||
render: function (data, type) {
|
||||
return type === 'sort' || type === 'type' ? data : humanFileSize(data);
|
||||
}
|
||||
},
|
||||
{
|
||||
title: lang.tls_enforce_in,
|
||||
|
||||
@@ -1087,10 +1087,14 @@ if (isset($_GET['query'])) {
|
||||
$data['mailboxes'][$mailbox][] = $mailbox;
|
||||
$user_alias_details = user_get_alias_details($mailbox);
|
||||
foreach ($user_alias_details['direct_aliases'] as $k => $v) {
|
||||
$data['mailboxes'][$mailbox][] = $k;
|
||||
if (hasDomainAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], substr(strrchr($k, '@'), 1))) {
|
||||
$data['mailboxes'][$mailbox][] = $k;
|
||||
}
|
||||
}
|
||||
foreach ($user_alias_details['shared_aliases'] as $k => $v) {
|
||||
$data['mailboxes'][$mailbox][] = $k;
|
||||
if (hasDomainAccess($_SESSION['mailcow_cc_username'], $_SESSION['mailcow_cc_role'], substr(strrchr($k, '@'), 1))) {
|
||||
$data['mailboxes'][$mailbox][] = $k;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,186 @@
|
||||
{
|
||||
"header": {
|
||||
"administration": "الإعدادات والتفاصيل",
|
||||
"apps": "التطبيقات",
|
||||
"debug": "معلومات",
|
||||
"email": "البريد الإلكتروني",
|
||||
"mailcow_system": "النظام",
|
||||
"mailcow_config": "الإعدادات",
|
||||
"quarantine": "الحجر",
|
||||
"restart_netfilter": "إعادة تشغيل netfilter",
|
||||
"restart_sogo": "إعادة تشغيل SOGo",
|
||||
"user_settings": "إعدادات المستخدم"
|
||||
},
|
||||
"login": {
|
||||
"back_to_mailcow": "العودة إلى mailcow",
|
||||
"delayed": "تم تأخير تسجيل الدخول لمدة %s ثانية.",
|
||||
"fido2_webauthn": "تسجيل الدخول عبر FIDO2/WebAuthn",
|
||||
"forgot_password": "> نسيت كلمة المرور؟",
|
||||
"invalid_pass_reset_token": "رمز إعادة تعيين كلمة المرور غير صالح أو منتهي الصلاحية.<br>يرجى طلب رابط جديد لإعادة تعيين كلمة المرور.",
|
||||
"login": "تسجيل الدخول",
|
||||
"login_linkstext": "ليست صفحة الدخول الصحيحة؟",
|
||||
"login_usertext": "الدخول كمستخدم",
|
||||
"login_domainadmintext": "الدخول كمدير نطاق",
|
||||
"login_admintext": "الدخول كمدير",
|
||||
"login_user": "دخول المستخدم",
|
||||
"login_dadmin": "دخول مدير النطاق",
|
||||
"login_admin": "دخول المدير",
|
||||
"mobileconfig_info": "يرجى تسجيل الدخول كمستخدم صندوق بريد لتنزيل ملف اتصال Apple المطلوب.",
|
||||
"new_password": "كلمة المرور الجديدة",
|
||||
"new_password_confirm": "تأكيد كلمة المرور الجديدة",
|
||||
"other_logins": "أو سجّل الدخول باستخدام",
|
||||
"password": "كلمة المرور",
|
||||
"reset_password": "إعادة تعيين كلمة المرور",
|
||||
"request_reset_password": "طلب تغيير كلمة المرور",
|
||||
"username": "اسم المستخدم",
|
||||
"email": "عنوان البريد الإلكتروني"
|
||||
},
|
||||
"footer": {
|
||||
"cancel": "إلغاء",
|
||||
"confirm_delete": "تأكيد الحذف",
|
||||
"delete_now": "احذف الآن",
|
||||
"delete_these_items": "يرجى تأكيد تغييراتك على معرّف الكائن التالي",
|
||||
"hibp_check": "التحقق عبر haveibeenpwned.com",
|
||||
"hibp_nok": "تم العثور على تطابق! كلمة المرور هذه قد تكون خطيرة!",
|
||||
"hibp_ok": "لم يتم العثور على تطابق.",
|
||||
"loading": "يرجى الانتظار...",
|
||||
"nothing_selected": "لم يتم تحديد أي شيء",
|
||||
"restart_container": "إعادة تشغيل الحاوية",
|
||||
"restart_container_info": "<b>مهم:</b> قد تستغرق إعادة التشغيل الآمنة بعض الوقت، يرجى الانتظار حتى تكتمل.",
|
||||
"restart_now": "أعد التشغيل الآن",
|
||||
"restarting_container": "جارٍ إعادة تشغيل الحاوية، قد يستغرق ذلك بعض الوقت"
|
||||
},
|
||||
"start": {
|
||||
"help": "إظهار/إخفاء لوحة المساعدة",
|
||||
"imap_smtp_server_auth_info": "يرجى استخدام عنوان بريدك الإلكتروني الكامل وآلية المصادقة PLAIN.<br>\r\nسيتم تشفير بيانات تسجيل الدخول بواسطة التشفير الإلزامي من جهة الخادم."
|
||||
},
|
||||
"info": {
|
||||
"awaiting_tfa_confirmation": "بانتظار تأكيد المصادقة الثنائية",
|
||||
"no_action": "لا يوجد إجراء قابل للتطبيق",
|
||||
"session_expires": "ستنتهي جلستك خلال 15 ثانية تقريباً"
|
||||
},
|
||||
"datatables": {
|
||||
"collapse_all": "طي الكل",
|
||||
"decimal": ".",
|
||||
"emptyTable": "لا توجد بيانات في الجدول",
|
||||
"expand_all": "توسيع الكل",
|
||||
"info": "عرض _START_ إلى _END_ من أصل _TOTAL_ إدخال",
|
||||
"infoEmpty": "عرض 0 إلى 0 من أصل 0 إدخال",
|
||||
"infoFiltered": "(تمت التصفية من إجمالي _MAX_ إدخال)",
|
||||
"infoPostFix": "",
|
||||
"thousands": ",",
|
||||
"lengthMenu": "عرض _MENU_ إدخالات",
|
||||
"loadingRecords": "جارٍ التحميل...",
|
||||
"processing": "يرجى الانتظار...",
|
||||
"search": "بحث:",
|
||||
"zeroRecords": "لم يتم العثور على سجلات مطابقة",
|
||||
"paginate": {
|
||||
"first": "الأول",
|
||||
"last": "الأخير",
|
||||
"next": "التالي",
|
||||
"previous": "السابق"
|
||||
},
|
||||
"aria": {
|
||||
"sortAscending": ": تفعيل لترتيب العمود تصاعدياً",
|
||||
"sortDescending": ": تفعيل لترتيب العمود تنازلياً"
|
||||
}
|
||||
},
|
||||
"warning": {
|
||||
"cannot_delete_self": "لا يمكن حذف المستخدم المسجّل دخوله",
|
||||
"domain_added_sogo_failed": "تمت إضافة النطاق لكن فشلت إعادة تشغيل SOGo، يرجى مراجعة سجلات الخادم.",
|
||||
"dovecot_restart_failed": "فشلت إعادة تشغيل Dovecot، يرجى مراجعة السجلات",
|
||||
"fuzzy_learn_error": "خطأ في تعلّم البصمة التقريبية (Fuzzy hash): %s",
|
||||
"group_imap_grant_failed": "تعذّر حالياً ضبط صلاحية الوصول إلى صندوق البريد %s في Dovecot، ستتم إعادة المحاولة كل 15 دقيقة",
|
||||
"group_sogo_init_failed": "تعذّر حالياً إنشاء مجلدات SOGo للمجموعة %s، ستتم إعادة المحاولة كل 15 دقيقة",
|
||||
"group_subscription_failed": "فشل الاشتراك في %s، ستتم إعادة المحاولة تلقائياً",
|
||||
"group_template_failed": "تعذّر تطبيق القالب %s على %s",
|
||||
"group_too_many_members": "المجموعة %s تضم أكثر من %s عضواً. يسلّم Postfix البريد المرسل إلى عنوان واحد لهذا العدد من المستلمين كحد أقصى.",
|
||||
"hash_not_found": "البصمة غير موجودة أو تم حذفها مسبقاً",
|
||||
"ip_invalid": "تم تخطي عنوان IP غير صالح: %s",
|
||||
"is_not_primary_alias": "تم تخطي الاسم المستعار غير الأساسي %s",
|
||||
"no_active_admin": "لا يمكن تعطيل آخر مدير نشط",
|
||||
"quota_exceeded_scope": "تم تجاوز حصة النطاق: يمكن إنشاء صناديق بريد غير محدودة فقط ضمن هذا النطاق.",
|
||||
"session_token": "رمز النموذج غير صالح: عدم تطابق الرمز",
|
||||
"session_ua": "رمز النموذج غير صالح: خطأ في التحقق من User-Agent"
|
||||
},
|
||||
"tfa": {
|
||||
"authenticators": "أدوات المصادقة",
|
||||
"api_register": "يستخدم %s واجهة Yubico Cloud API. يرجى الحصول على مفتاح API لمفتاحك من <a href=\"https://upgrade.yubico.com/getapikey/\" target=\"_blank\">هنا</a>",
|
||||
"confirm": "تأكيد",
|
||||
"confirm_totp_token": "يرجى تأكيد تغييراتك بإدخال الرمز المُولَّد",
|
||||
"delete_tfa": "تعطيل المصادقة الثنائية",
|
||||
"disable_tfa": "تعطيل المصادقة الثنائية حتى تسجيل الدخول الناجح التالي",
|
||||
"force_tfa": "فرض إعداد المصادقة الثنائية عند تسجيل الدخول",
|
||||
"force_tfa_info": "سيُطلب من المستخدم إعداد المصادقة الثنائية قبل الوصول إلى اللوحة.",
|
||||
"setup_title": "المصادقة الثنائية مطلوبة",
|
||||
"setup_required": "حسابك يتطلب المصادقة الثنائية. يرجى إعداد طريقة مصادقة ثنائية للمتابعة.",
|
||||
"cancel_setup": "إلغاء وتسجيل الخروج",
|
||||
"enter_qr_code": "رمز TOTP الخاص بك إذا كان جهازك لا يستطيع مسح رموز QR",
|
||||
"error_code": "رمز الخطأ",
|
||||
"init_webauthn": "جارٍ التهيئة، يرجى الانتظار...",
|
||||
"key_id": "معرّف لجهازك",
|
||||
"key_id_totp": "معرّف لمفتاحك",
|
||||
"none": "تعطيل",
|
||||
"reload_retry": "- (أعد تحميل المتصفح إذا استمر الخطأ)",
|
||||
"scan_qr_code": "يرجى مسح الرمز التالي باستخدام تطبيق المصادقة أو إدخال الرمز يدوياً.",
|
||||
"select": "يرجى الاختيار",
|
||||
"set_tfa": "تعيين طريقة المصادقة الثنائية",
|
||||
"start_webauthn_validation": "بدء التحقق",
|
||||
"tfa": "المصادقة الثنائية",
|
||||
"tfa_token_invalid": "رمز المصادقة الثنائية غير صالح",
|
||||
"totp": "كلمة مرور لمرة واحدة مبنية على الوقت (Google Authenticator، Authy، إلخ)",
|
||||
"u2f_deprecated": "يبدو أن مفتاحك مسجّل باستخدام طريقة U2F المهملة. سنقوم بتعطيل المصادقة الثنائية لك وحذف مفتاحك.",
|
||||
"u2f_deprecated_important": "يرجى تسجيل مفتاحك في لوحة الإدارة باستخدام طريقة WebAuthn الجديدة.",
|
||||
"webauthn": "مصادقة WebAuthn",
|
||||
"waiting_usb_auth": "<i>بانتظار جهاز USB...</i><br><br>يرجى الضغط على الزر الموجود في جهاز USB الآن.",
|
||||
"waiting_usb_register": "<i>بانتظار جهاز USB...</i><br><br>يرجى إدخال كلمة المرور أعلاه وتأكيد التسجيل بالضغط على الزر الموجود في جهاز USB.",
|
||||
"yubi_otp": "مصادقة Yubico OTP"
|
||||
},
|
||||
"fido2": {
|
||||
"confirm": "تأكيد",
|
||||
"fido2_auth": "تسجيل الدخول عبر FIDO2",
|
||||
"fido2_success": "تم تسجيل الجهاز بنجاح",
|
||||
"fido2_validation_failed": "فشل التحقق",
|
||||
"fn": "اسم مألوف",
|
||||
"known_ids": "المعرّفات المعروفة",
|
||||
"none": "معطّل",
|
||||
"register_status": "حالة التسجيل",
|
||||
"rename": "إعادة تسمية",
|
||||
"set_fido2": "تسجيل جهاز FIDO2",
|
||||
"set_fido2_touchid": "تسجيل Touch ID على Apple M1",
|
||||
"set_fn": "تعيين اسم مألوف",
|
||||
"start_fido2_validation": "بدء التحقق عبر FIDO2"
|
||||
},
|
||||
"oauth2": {
|
||||
"access_denied": "يرجى تسجيل الدخول كمالك صندوق البريد لمنح الوصول عبر OAuth2.",
|
||||
"authorize_app": "تفويض التطبيق",
|
||||
"deny": "رفض",
|
||||
"permit": "تفويض التطبيق",
|
||||
"profile": "الملف الشخصي",
|
||||
"profile_desc": "عرض المعلومات الشخصية: اسم المستخدم، الاسم الكامل، تاريخ الإنشاء، تاريخ التعديل، الحالة",
|
||||
"scope_ask_permission": "طلب أحد التطبيقات الصلاحيات التالية"
|
||||
},
|
||||
"ratelimit": {
|
||||
"disabled": "معطّل",
|
||||
"second": "رسالة / ثانية",
|
||||
"minute": "رسالة / دقيقة",
|
||||
"hour": "رسالة / ساعة",
|
||||
"day": "رسالة / يوم"
|
||||
},
|
||||
"queue": {
|
||||
"delete": "حذف الكل",
|
||||
"flush": "تفريغ الطابور",
|
||||
"info": "يحتوي طابور البريد على جميع الرسائل التي تنتظر التسليم. إذا بقيت رسالة عالقة في الطابور لفترة طويلة، يحذفها النظام تلقائياً.<br>توضح رسالة الخطأ الخاصة بكل رسالة سبب تعذّر تسليمها.",
|
||||
"legend": "وظائف إجراءات طابور البريد:",
|
||||
"ays": "يرجى التأكيد أنك تريد حذف جميع العناصر من الطابور الحالي.",
|
||||
"deliver_mail": "تسليم",
|
||||
"deliver_mail_legend": "محاولة إعادة تسليم الرسائل المحددة.",
|
||||
"hold_mail": "تعليق",
|
||||
"hold_mail_legend": "تعليق الرسائل المحددة. (يمنع محاولات التسليم اللاحقة)",
|
||||
"queue_manager": "مدير الطابور",
|
||||
"show_message": "عرض الرسالة",
|
||||
"unban": "رفع الحظر عن الطابور",
|
||||
"unhold_mail": "إلغاء التعليق",
|
||||
"unhold_mail_legend": "تحرير الرسائل المحددة للتسليم. (يتطلب تعليقاً مسبقاً)"
|
||||
}
|
||||
}
|
||||
@@ -1127,7 +1127,7 @@
|
||||
"mailbox_defaults_info": "Define default settings for new mailboxes.",
|
||||
"mailbox_defquota": "Default mailbox size",
|
||||
"mailbox_templates": "Mailbox Templates",
|
||||
"mailbox_quota": "Max. size of a mailbox",
|
||||
"mailbox_quota": "Max. mailbox size",
|
||||
"mailboxes": "Mailboxes",
|
||||
"max_aliases": "Max. aliases",
|
||||
"max_mailboxes": "Max. possible mailboxes",
|
||||
@@ -1429,6 +1429,7 @@
|
||||
"u2f_deprecated": "It seems that your Key was registered using the deprecated U2F method. We will deactivate Two-Factor-Authenticaiton for you and delete your Key.",
|
||||
"u2f_deprecated_important": "Please register your Key in the admin panel with the new WebAuthn method.",
|
||||
"webauthn": "WebAuthn authentication",
|
||||
"webauthn_registration_failed": "WebAuthn registration failed. The credential could not be verified, please try again.",
|
||||
"waiting_usb_auth": "<i>Waiting for USB device...</i><br><br>Please tap the button on your USB device now.",
|
||||
"waiting_usb_register": "<i>Waiting for USB device...</i><br><br>Please enter your password above and confirm your registration by tapping the button on your USB device.",
|
||||
"yubi_otp": "Yubico OTP authentication"
|
||||
|
||||
@@ -29,7 +29,8 @@
|
||||
"sogo_access": "Permitir la gestión del acceso a SOGo",
|
||||
"mailbox_relayhost": "Cambiar el host de reenvío para un buzón",
|
||||
"smtp_ip_access": "Cambiar hosts permitidos para SMTP",
|
||||
"alias_external_goto": "Permitir alias con dominios de destino externos"
|
||||
"alias_external_goto": "Permitir alias con dominios de destino externos",
|
||||
"mailbox_groups": "Grupos"
|
||||
},
|
||||
"add": {
|
||||
"activate_filter_warn": "Todos los demás filtros se desactivarán cuando este filtro se active.",
|
||||
@@ -399,7 +400,82 @@
|
||||
"ui_theme_dark": "Incluye una variante en modo oscuro",
|
||||
"ui_theme_default": "Predeterminado",
|
||||
"ui_theme_info": "Los temas son carpetas en <code>data/web/css/themes/<name>/</code> con los siguientes archivos:<ul class=\"mb-0\"><li><code>theme.css</code> (obligatorio)</li><li><code>dark.css</code> (opcional, modo oscuro)</li><li><code>bootstrap.css</code> (opcional, reemplaza el tema base de Bootstrap)</li><li><code>theme.json</code> (opcional, <code>name</code> y <code>description</code>)</li></ul>",
|
||||
"ui_theme_none": "No se encontraron temas."
|
||||
"ui_theme_none": "No se encontraron temas.",
|
||||
"api_key_add": "Añadir clave de API",
|
||||
"api_keys": "Claves de API",
|
||||
"api_networks": "Direcciones/redes IP permitidas",
|
||||
"api_service_key": "Clave de servicio en mailcow.conf, solamente puede cambiarse ahí",
|
||||
"api_service_key_info": "Esta clave de API se define en mailcow.conf (API_KEY, API_KEY_READ_ONLY, API_ALLOW_FROM) y solo puede cambiarse ahí.",
|
||||
"iam_attribute_field_info": "Opcional. Atributo LDAP cuyo valor selecciona la plantilla en la asignación siguiente.",
|
||||
"iam_disabled_filter": "Filtro deshabilitado",
|
||||
"iam_disabled_filter_info": "Filtro LDAP para usuarios inhabilitados. Las cuentas de Active Directory con ACCOUNTDISABLE en userAccountControl siempre se consideran deshabilitadas.",
|
||||
"iam_encryption": "Cifrado",
|
||||
"iam_encryption_info": "StartTLS utiliza el puerto normal (389). SSL (LDAPS) utiliza el puerto 636, el puerto 389 se cambia automáticamente.",
|
||||
"iam_encryption_none": "Ninguno",
|
||||
"iam_filter_info": "Filtro LDAP para los usuarios que pueden iniciar sesión y están sincronizados, por ejemplo <code>(objectClass=person)</code>.",
|
||||
"iam_group_autocreate": "Crear grupos",
|
||||
"iam_group_autocreate_info": "Crea un grupo de buzones para cada grupo IdP que todavía no lo tiene. El correo del grupo se convierte en su dirección si está libre.",
|
||||
"iam_group_default_domain_info": "Dominio de nuevos grupos cuyo correo no está en un dominio de mailcow.",
|
||||
"iam_group_filter": "Filtro de grupo",
|
||||
"iam_login_provisioning_info": "Crea el buzón en el primer inicio de sesión del usuario, con la plantilla correspondiente o la plantilla por defecto.",
|
||||
"iam_offboarding_limit": "Cambiar límite (%)",
|
||||
"iam_periodic_full_sync_info": "Actualiza el nombre y la plantilla de buzones existentes desde el IdP.",
|
||||
"iam_redirect_url_add": "Añadir URL de redirección",
|
||||
"iam_section_connection": "Conexión",
|
||||
"iam_section_groups": "Grupos",
|
||||
"iam_section_login": "Inicio de sesión",
|
||||
"iam_section_sync": "Sincronización",
|
||||
"iam_section_templates": "Plantillas de buzón",
|
||||
"iam_section_users": "Usuarios",
|
||||
"iam_sync_accounts": "Buzones IdP",
|
||||
"iam_sync_changes": "Cambios",
|
||||
"iam_sync_count_conflicts": "Conflictos",
|
||||
"iam_sync_count_creates": "Creado",
|
||||
"iam_sync_count_deactivate": "Inicio de sesión deshabilitado",
|
||||
"iam_sync_count_errors": "Errores",
|
||||
"iam_sync_count_found": "Encontrado de nuevo",
|
||||
"iam_sync_count_group_creates": "Grupos creados",
|
||||
"iam_sync_count_group_renames": "Grupos renombrados",
|
||||
"iam_sync_count_links": "Enlazado",
|
||||
"iam_sync_count_membership_removals": "Membresías eliminadas",
|
||||
"iam_sync_count_memberships": "Grupos con miembros nuevos",
|
||||
"iam_sync_count_missing": "Ausente",
|
||||
"iam_sync_count_release": "Liberado",
|
||||
"iam_sync_count_restore": "Inicio de sesión habilitado",
|
||||
"iam_sync_count_skipped": "Omitido",
|
||||
"iam_sync_count_updates": "Actualizado",
|
||||
"iam_sync_details": "Detalles",
|
||||
"iam_sync_force": "Ejecutar sin límite",
|
||||
"iam_sync_force_confirm": "¿Ejecutar la sincronización sin límite de cambios? Los buzones pueden ser deshabilitados y la pertenencia a grupos eliminada.",
|
||||
"iam_sync_idp_disabled": "Deshabilitado por IdP",
|
||||
"iam_sync_linked": "Enlazado",
|
||||
"iam_sync_missing": "Ausente en IdP",
|
||||
"iam_sync_mode": "Modo",
|
||||
"iam_sync_mode_force": "Sin límite",
|
||||
"iam_sync_mode_preview": "Vista previa",
|
||||
"iam_sync_mode_run": "Ejecutar",
|
||||
"iam_sync_no_changes": "Sin cambios",
|
||||
"iam_sync_none": "No se han ejecutado tareas de sincronización todavía.",
|
||||
"iam_sync_off": "La sincronización está apagada. Habilite importación, sincronización periódica, desvinculación (offboarding) o sincronización de grupos.",
|
||||
"iam_sync_preview": "Vista previa",
|
||||
"iam_sync_result": "Resultado",
|
||||
"iam_sync_run": "Ejecutar ahora",
|
||||
"iam_sync_started": "Comenzado",
|
||||
"iam_sync_status": "Estado de sincronización",
|
||||
"iam_sync_status_blocked": "Bloqueado",
|
||||
"iam_sync_status_error": "Error",
|
||||
"iam_sync_status_info": "Las tareas se inician antes de un minuto. Una vista previa muestra los cambios sin aplicarlos.",
|
||||
"iam_sync_status_ok": "De acuerdo",
|
||||
"iam_sync_status_pending": "En cola",
|
||||
"iam_sync_status_running": "Ejecutando",
|
||||
"iam_username_field_info": "Atributo que contiene la dirección de correo, se convierte en el nombre del buzón. Por defecto: mail.",
|
||||
"description": "Descripción",
|
||||
"unban_all": "Desbloquear todos",
|
||||
"syncjobs": "Tareas de sincronización",
|
||||
"syncjob_max_parallel": "Nº máximo de procesos de sincronización en paralelo",
|
||||
"syncjob_max_parallel_info": "El número de tareas de sincronización que pueden ejecutarse simultáneamente (1-32).",
|
||||
"syncjob_max_kb_per_second": "Límite de ancho de banda por proceso (KB/s)",
|
||||
"syncjob_max_kb_per_second_info": "0 = ilimitado. Límite para cada proceso de sincronización en KB/s; tiene precedencia sobre el límite por tarea (bytes/s). Total ≈ este valor × número máximo de tareas en paralelo."
|
||||
},
|
||||
"danger": {
|
||||
"access_denied": "Acceso denegado o datos del formulario inválidos",
|
||||
@@ -545,7 +621,42 @@
|
||||
"external_goto_denied": "La dirección de destino externa %s no está permitida",
|
||||
"max_age_invalid": "La antigüedad máxima %s no es válida",
|
||||
"quarantine_category_invalid": "La categoría de cuarentena debe ser una de: add_header, reject, all",
|
||||
"ui_theme_invalid": "Tema no encontrado"
|
||||
"ui_theme_invalid": "Tema no encontrado",
|
||||
"alias_group_managed": "El alias %s pertenece a un grupo y solamente puede cambiarse ahí",
|
||||
"api_key_access_invalid": "Tipo de acceso a API no válido, los valores permitidos son ro y rw",
|
||||
"api_key_description_invalid": "La descripción de la clave de API no puede exceder de 255 caracteres",
|
||||
"api_key_network_invalid": "Dirección o red IP no válida: %s",
|
||||
"api_key_service_locked": "La clave de API %s se define en mailcow.conf y solamente puede cambiarse ahí",
|
||||
"group_address_invalid": "La dirección de grupo %s no es válida o no está en el dominio del grupo",
|
||||
"group_description_invalid": "La descripción del grupo no puede exceder 255 caracteres",
|
||||
"group_member_idp": "%s es un miembro a través del proveedor de identidades y solamente puede eliminarse ahí",
|
||||
"group_member_invalid": "% no es un buzón y no puede ser miembro de grupo",
|
||||
"group_name_invalid": "El nombre del grupo no es válido (1-100 caracteres)",
|
||||
"group_priority_invalid": "La prioridad debe ser un número",
|
||||
"group_send_as_invalid": "La dirección de \"enviar como\" %s no es válida o es desconocida",
|
||||
"iam_sync_mode_invalid": "Modo de sincronización no válido",
|
||||
"iam_sync_unavailable": "El proveedor de identidades no se puede sincronizar (solamente Keycloak y LDAP)",
|
||||
"tfa_login_locked": "Demasiados intentos de inicio de sesión con doble factor, pruebe de nuevo más tarde",
|
||||
"iam_unavailable": "No es posible contactar con el proveedor de identidades, inténtelo más tarde.",
|
||||
"refresh_login_failed": "No se puede refrescar la sesión. Inicie sesión de nuevo.",
|
||||
"version_invalid": "Versión %s no válida",
|
||||
"imapsync_source_in_use": "El origen de sincronización %s está siendo utilizado por una tarea de sincronización y no se puede eliminar",
|
||||
"imapsync_source_used_by_others": "El servidor del origen de sincronización %s no puede cambiarse, por estar en uso para tareas de sincronización en otros buzones",
|
||||
"imapsync_source_scope_empty": "Seleccione al menos un dominio para la visibilidad elegida",
|
||||
"imapsync_source_unavailable": "El origen de sincronización seleccionado no está disponible",
|
||||
"imapsync_source_oauth_connect_required": "Iniciar sesión con el proveedor antes de guardar esta tarea de sincronización",
|
||||
"imapsync_source_name_invalid": "Nombre de origen de sincronización no válido",
|
||||
"imapsync_source_host_invalid": "Nombre de host o IP no válido",
|
||||
"imapsync_source_port_invalid": "Puerto no válido",
|
||||
"imapsync_source_enc_invalid": "Método de cifrado no válido",
|
||||
"imapsync_source_auth_invalid": "Método de autenticación no válido",
|
||||
"imapsync_custom_param_invalid": "Los parámetros personalizados contienen una opción imapsync no permitida: %s",
|
||||
"imapsync_source_tenant_missing": "Introduzca el tenant de Microsoft 365",
|
||||
"imapsync_source_oauth_invalid": "Configuración OAuth2 no válida",
|
||||
"imapsync_max_parallel_invalid": "El número de procesos en paralelo debe estar entre 1 y 32",
|
||||
"imapsync_source_description_invalid": "La descripción no puede superar 255 caracteres",
|
||||
"imapsync_custom_params_format": "Los parámetros personalizados deben enviarse como una conjunto de pares opción/valor",
|
||||
"imapsync_custom_param_value": "Valor no válido para la opción imapsync %s (valor omitido, no booleano cuando debiera serlo, o valor no permitido)"
|
||||
},
|
||||
"debug": {
|
||||
"containers_info": "Información de los contenedores",
|
||||
@@ -1074,7 +1185,6 @@
|
||||
"verified_webauthn_login": "Inicio de sesión WebAuthn verificado",
|
||||
"verified_yotp_login": "Inicio de sesión Yubico OTP verificado",
|
||||
"admin_added": "Se agregó el administrador %s",
|
||||
"admin_api_modified": "Se guardaron los cambios en la API",
|
||||
"admin_removed": "Se eliminó el administrador %s",
|
||||
"app_links": "Se guardaron los cambios en los enlaces de aplicaciones",
|
||||
"app_passwd_added": "Se agregó una nueva contraseña de aplicación",
|
||||
@@ -1333,10 +1443,6 @@
|
||||
"sogo_profile_reset_help": "Esto destruirá el perfil de SOGo del usuario y <b>eliminará de forma irrecuperable todos sus contactos y datos de calendario</b>.",
|
||||
"spam_score_reset": "Restablecer al valor predeterminado del servidor",
|
||||
"spamfilter_table_domain_policy": "n/d (política del dominio)",
|
||||
"syncjob_check_log": "Revisar registro",
|
||||
"syncjob_EX_OK": "Correcto",
|
||||
"syncjob_EXIT_OVERQUOTA": "El buzón de destino superó su cuota",
|
||||
"syncjob_EXIT_AUTHENTICATION_FAILURE_USER1": "Usuario o contraseña incorrectos",
|
||||
"tfa_info": "La autenticación de dos factores ayuda a proteger su cuenta. Si la activa, necesitará contraseñas de aplicación para iniciar sesión en aplicaciones o servicios que no admiten la autenticación de dos factores (p. ej., clientes de correo)."
|
||||
},
|
||||
"warning": {
|
||||
|
||||
@@ -95,7 +95,6 @@
|
||||
"bcc_dest_format": "Il destinatario in copia nascosta deve essere un singolo indirizzo email.<br>Se si vuole spedire una copia del messaggio a più destinatari, bisogna creare un alias ed utilizzarlo per questa opzione.",
|
||||
"app_passwd_protocols": "Protocolli consentiti per la password dell'app",
|
||||
"tags": "Tag",
|
||||
"dry": "Simula sincronizzazione",
|
||||
"internal": "Interno",
|
||||
"internal_info": "Gli alias interni sono accessibili solo dal proprio dominio o dai domini alias.",
|
||||
"sender_allowed": "Consenti l'invio con questo alias"
|
||||
|
||||
+327
-11
@@ -30,7 +30,8 @@
|
||||
"quarantine_category": "Spremeni kategorijo obvestil o karanteni",
|
||||
"syncjobs": "Sinhronizacijska opravila",
|
||||
"pw_reset": "Dovoli ponastavitev uporabniškega gesla mailcow",
|
||||
"alias_external_goto": "Dovoli vzdevke z zunanjimi domenami goto"
|
||||
"alias_external_goto": "Dovoli vzdevke z zunanjimi domenami goto",
|
||||
"mailbox_groups": "Skupine"
|
||||
},
|
||||
"add": {
|
||||
"active": "Aktivno",
|
||||
@@ -361,7 +362,7 @@
|
||||
"iam_default_template": "Privzeta predloga",
|
||||
"iam_default_template_description": "Če uporabniku ni dodeljena nobena predloga, bo privzeta predloga uporabljena za ustvarjanje nabiralnika, ne pa za posodabljanje nabiralnika.",
|
||||
"iam_description": "Konfigurirajte zunanjega ponudnika za preverjanje pristnosti<br>Uporabnikovi poštni nabiralniki bodo samodejno ustvarjeni ob prvi prijavi, če je nastavljeno preslikavanje atributov.",
|
||||
"iam_extra_permission": "Za delovanje naslednjih nastavitev potrebuje odjemalec mailcow v Keycloaku <code>Servisni račun</code> in dovoljenje za <code>ogled uporabnikov</code>.",
|
||||
"iam_extra_permission": "Da bi spodnje nastavitve delovale, odjemalec mailcow v sistemu Keycloak potrebuje <code>servisni račun</code> (service account) in dovoljenje za <code>view-users</code> (pri sinhronizaciji skupin tudi <code>query-groups</code>).",
|
||||
"iam_host": "Gostitelj",
|
||||
"iam_host_info": "Vnesite enega ali več gostiteljev LDAP, ločenih z vejicami.",
|
||||
"iam_import_users": "Uvozi uporabnike",
|
||||
@@ -401,7 +402,104 @@
|
||||
"ui_theme_dark": "Vključuje različico s temnim načinom",
|
||||
"ui_theme_default": "Privzeto",
|
||||
"ui_theme_info": "Teme so mape v <code>data/web/css/themes/<name>/</code>, ki vsebujejo naslednje datoteke:<ul class=\"mb-0\"><li><code>theme.css</code> (obvezna)</li><li><code>dark.css</code> (neobvezna, temni način)</li><li><code>bootstrap.css</code> (neobvezna, nadomesti osnovno temo Bootstrap)</li><li><code>theme.json</code> (neobvezna, <code>name</code> in <code>description</code>)</li></ul>",
|
||||
"ui_theme_none": "Tem ni bilo mogoče najti."
|
||||
"ui_theme_none": "Tem ni bilo mogoče najti.",
|
||||
"api_key_add": "Dodaj API ključ",
|
||||
"api_keys": "API ključi",
|
||||
"api_networks": "Dovoljeni naslovi IP/omrežja",
|
||||
"api_service_key": "Ključ storitve iz datoteke mailcow.conf; spremeniti ga je mogoče le tam.",
|
||||
"api_service_key_info": "Ta ključ API je določen v datoteki mailcow.conf (API_KEY, API_KEY_READ_ONLY, API_ALLOW_FROM) in ga je mogoče spremeniti le tam.",
|
||||
"iam_attribute_field_info": "Neobvezno. Atribut LDAP, katerega vrednost izbere predlogo v spodnjem preslikovanju.",
|
||||
"iam_disabled_filter": "Onemogočen filter",
|
||||
"iam_disabled_filter_info": "Filter LDAP za onemogočene uporabnike. Računi v imeniku Active Directory, ki imajo v atributu userAccountControl nastavljeno vrednost ACCOUNTDISABLE, se vedno štejejo za onemogočene.",
|
||||
"iam_encryption": "Šifriranje",
|
||||
"iam_encryption_info": "StartTLS uporablja običajna vrata (389). SSL (LDAPS) uporablja vrata 636, pri čemer se vrata 389 samodejno spremenijo.",
|
||||
"iam_encryption_none": "Nič",
|
||||
"iam_filter_info": "LDAP-filter za uporabnike, ki se lahko prijavijo in so sinhronizirani, npr. <code>(objectClass=person)</code>.",
|
||||
"iam_group_autocreate": "Ustvari skupine",
|
||||
"iam_group_autocreate_info": "Za vsako skupino IdP, ki še nima poštnega predala, ustvari skupino s poštnim predalom. Če je naslov skupine prost, postane ta naslov njen naslov.",
|
||||
"iam_group_basedn": "DN osnove za skupine",
|
||||
"iam_group_default_domain": "Privzeta domena skupine",
|
||||
"iam_group_default_domain_info": "Domena novih skupin, katerih e-pošta ni v domeni mailcow.",
|
||||
"iam_group_filter": "Filter skupin",
|
||||
"iam_group_member_attribute": "Atribut člana",
|
||||
"iam_group_member_attribute_info": "Samo za \"Atribut članstva v skupinah\", npr. member ali uniqueMember.",
|
||||
"iam_group_member_mode": "Članstva",
|
||||
"iam_group_member_mode_ad_chain": "Active Directory, vključno z ugnezdenimi skupinami",
|
||||
"iam_group_member_mode_member": "Atribut članstva v skupinah",
|
||||
"iam_group_member_mode_memberof": "memberOf uporabnikov",
|
||||
"iam_group_name_attribute": "Atribut imena skupine",
|
||||
"iam_group_paths": "Pot skupine",
|
||||
"iam_group_paths_info": "Z vejicami ločene poti do skupin v Keycloaku: <code>/Sales</code> ali <code>/mailcow/*</code> za vse skupine pod <code>/mailcow</code>. Odjemalec mailcow potrebuje dovoljenje <code>query-groups</code>.",
|
||||
"iam_group_sync": "Sinhronizacija skupin",
|
||||
"iam_group_sync_info": "Sinhronizira člane skupin iz ponudnika identitete (IdP) s skupinami poštnih predalov (Poštni predali → Skupine). Člani, dodani v sistemu mailcow, ostanejo.",
|
||||
"iam_id_attribute": "ID atribut",
|
||||
"iam_id_attribute_info": "Stalen ID uporabnika. Prazno = objectGUID, entryUUID, nsUniqueId ali ipaUniqueID. Sprememba povzroči ponovno povezovanje vseh poštnih predalov na podlagi e-poštnega naslova.",
|
||||
"iam_import_users_info": "Ustvari poštne predale za vse uporabnike ponudnika identitete (IdP) na podlagi ustrezne predloge, ne da bi bilo treba čakati na njihovo prvo prijavo.",
|
||||
"iam_login_provisioning_info": "Ob prvi prijavi uporabnika ustvari poštni predal z ustrezno ali privzeto predlogo.",
|
||||
"iam_mapping_add": "Dodaj preslikavo",
|
||||
"iam_mapping_info": "Vrednost uporabniškega atributa določa predlogo (Keycloak in OIDC: <code>mailcow_template</code>). Predloge skupin imajo prednost.",
|
||||
"iam_offboarding": "Zaključek sodelovanja",
|
||||
"iam_offboarding_info": "Uporabniki, ki so onemogočeni v IdP ali pa so manjkali v dveh popolnih sinhronizacijah, se ne morejo več prijaviti. Njihov poštni nabiralnik še vedno prejema pošto. Ponovno so omogočeni samo poštni nabiralniki, ki jih je sinhronizacija onemogočila.",
|
||||
"iam_offboarding_limit": "Sprememba meje (%)",
|
||||
"iam_offboarding_limit_info": "Sinhronizacijski postopki, ki bi onemogočili več nabiralnikov ali odstranili več članstev v skupinah, kot je določeno s to omejitvijo (vsaj 5), so blokirani.",
|
||||
"iam_periodic_full_sync_info": "Posodobi ime in predlogo obstoječih poštnih predalov na podlagi podatkov iz ponudnika identitete (IdP).",
|
||||
"iam_redirect_url_add": "Dodaj URL za preusmeritev",
|
||||
"iam_section_connection": "Povezava",
|
||||
"iam_section_groups": "Skupine",
|
||||
"iam_section_login": "Prijava",
|
||||
"iam_section_sync": "Sinhronizacija",
|
||||
"iam_section_templates": "Predloge za poštne predale",
|
||||
"iam_section_users": "Uporabniki",
|
||||
"iam_sync_accounts": "Poštni predali IdP",
|
||||
"iam_sync_changes": "Spremembe",
|
||||
"iam_sync_count_conflicts": "Konflikti",
|
||||
"iam_sync_count_creates": "Ustvarjeno",
|
||||
"iam_sync_count_deactivate": "Prijava onemogočena",
|
||||
"iam_sync_count_errors": "Napake",
|
||||
"iam_sync_count_found": "Ponovno najdeno",
|
||||
"iam_sync_count_group_creates": "Ustvarjene skupine",
|
||||
"iam_sync_count_group_renames": "Skupine preimenovane",
|
||||
"iam_sync_count_links": "Povezano",
|
||||
"iam_sync_count_membership_removals": "Članstva odstranjena",
|
||||
"iam_sync_count_memberships": "Skupine z novimi člani",
|
||||
"iam_sync_count_missing": "Manjka",
|
||||
"iam_sync_count_orphaned_groups": "Skupine, ki niso v IdP",
|
||||
"iam_sync_count_release": "Sproščeno",
|
||||
"iam_sync_count_restore": "Prijava omogočena",
|
||||
"iam_sync_count_skipped": "Preskočeno",
|
||||
"iam_sync_count_updates": "Posodobljeno",
|
||||
"iam_sync_details": "Podrobnosti",
|
||||
"iam_sync_force": "Zaženi brez omejitev",
|
||||
"iam_sync_force_confirm": "Želite zagnati sinhronizacijo brez omejitve števila sprememb? Nabiralniki so lahko onemogočeni, članstva v skupinah pa odstranjena.",
|
||||
"iam_sync_idp_disabled": "Onemogočeno s strani IdP",
|
||||
"iam_sync_linked": "Povezano",
|
||||
"iam_sync_missing": "Manjka v IdP",
|
||||
"iam_sync_mode": "Način",
|
||||
"iam_sync_mode_force": "Brez omejitev",
|
||||
"iam_sync_mode_preview": "Predogled",
|
||||
"iam_sync_mode_run": "Zaženi",
|
||||
"iam_sync_no_changes": "Ni sprememb",
|
||||
"iam_sync_none": "Ni še bilo izvedenih sinhronizacij.",
|
||||
"iam_sync_off": "Sinhronizacija ni aktivna. Omogočite uvoz, periodično sinhronizacijo, postopek ob zaključku sodelovanja (offboarding) ali sinhronizacijo skupin.",
|
||||
"iam_sync_preview": "Predogled",
|
||||
"iam_sync_result": "Rezultat",
|
||||
"iam_sync_run": "Zaženi zdaj",
|
||||
"iam_sync_started": "Začeto",
|
||||
"iam_sync_status": "Stanje sinhronizacije",
|
||||
"iam_sync_status_blocked": "Blokirano",
|
||||
"iam_sync_status_error": "Napaka",
|
||||
"iam_sync_status_info": "Izvajanje se začne v eni minuti. Predogled prikaže spremembe, ne da bi jih uveljavil.",
|
||||
"iam_sync_status_ok": "OK",
|
||||
"iam_sync_status_pending": "V čakalni vrsti",
|
||||
"iam_sync_status_running": "V teku",
|
||||
"iam_username_field_info": "Atribut z e-poštnim naslovom postane ime poštnega predala. Privzeto: mail.",
|
||||
"description": "Opis",
|
||||
"unban_all": "Odblokiraj vse",
|
||||
"syncjobs": "Opravila sinhronizacije",
|
||||
"syncjob_max_parallel": "Največje število vzporednih sinhronizacijskih procesov",
|
||||
"syncjob_max_parallel_info": "Koliko opravil sinhronizacije lahko poteka hkrati (1–32).",
|
||||
"syncjob_max_kb_per_second": "Omejitev pasovne širine na proces (KB/s)",
|
||||
"syncjob_max_kb_per_second_info": "0 = neomejeno. Omejuje vsak postopek sinhronizacije (v KB/s); omejitev za posamezno opravilo (v bajtih/s) je navzgor omejena s to vrednostjo. Skupna vrednost ≈ ta vrednost × največje število vzporednih postopkov."
|
||||
},
|
||||
"danger": {
|
||||
"alias_goto_identical": "Vzdevek in ciljni naslov se ne smeta ujemati",
|
||||
@@ -550,7 +648,50 @@
|
||||
"tfa_removal_blocked": "Dvofaktorske avtentikacije ni mogoče odstraniti, ker je obvezna za vaš račun.",
|
||||
"quarantine_category_invalid": "Kategorija karantene mora biti ena od: add_header, reject, all",
|
||||
"external_goto_denied": "Zunanji naslov goto %s ni dovoljen",
|
||||
"ui_theme_invalid": "Tema ni najdena"
|
||||
"ui_theme_invalid": "Tema ni najdena",
|
||||
"alias_group_managed": "Vzdevek %s pripada skupini in ga je mogoče spremeniti le tam.",
|
||||
"api_key_access_invalid": "Neveljavna vrsta dostopa do API-ja; dovoljene vrednosti so ro in rw",
|
||||
"api_key_description_invalid": "Opis ključa API ne sme presegati 255 znakov",
|
||||
"api_key_network_invalid": "Neveljaven naslov IP ali omrežje: %s",
|
||||
"api_key_service_locked": "Ključ API %s je določen v datoteki mailcow.conf in ga je mogoče spremeniti le tam",
|
||||
"group_address_invalid": "Skupinski naslov %s je neveljaven ali pa ni v domeni skupine",
|
||||
"group_description_invalid": "Opis skupine ne sme presegati 255 znakov.",
|
||||
"group_grant_invalid": "Neveljavna delitev za poštni predal %s",
|
||||
"group_member_idp": "%s je član prek ponudnika identitete in ga je mogoče odstraniti le tam",
|
||||
"group_member_invalid": "%s ni poštni predal in ne more biti član skupine",
|
||||
"group_name_invalid": "Ime skupine ni veljavno (1–100 znakov)",
|
||||
"group_priority_invalid": "Prednostna naloga mora biti številka",
|
||||
"group_send_as_invalid": "Naslov za pošiljanje »%s« je neveljaven ali neznan",
|
||||
"iam_sync_mode_invalid": "Neveljaven način sinhronizacije",
|
||||
"iam_sync_unavailable": "Ponudnika identitete ni mogoče sinhronizirati (samo Keycloak in LDAP)",
|
||||
"tfa_login_locked": "Preveč neuspešnih poskusov prijave z dvostopenjskim preverjanjem; poskusite znova pozneje",
|
||||
"iam_unavailable": "Ponudnik identitete ni dosegljiv; poskusite znova pozneje.",
|
||||
"refresh_login_failed": "Seje ni bilo mogoče osvežiti. Prosimo, prijavite se znova.",
|
||||
"imapsync_source_in_use": "Vir sinhronizacije %s še vedno uporablja opravilo sinhronizacije in ga ni mogoče izbrisati",
|
||||
"imapsync_source_used_by_others": "Strežnika vira sinhronizacije %s ni mogoče spremeniti, saj ga uporabljajo opravila sinhronizacije drugih poštnih predalov",
|
||||
"imapsync_source_token_refresh_failed": "Osvežitev žetona OAuth za %s ni uspela",
|
||||
"imapsync_source_scope_empty": "Izberite vsaj eno domeno za izbrano vidnost",
|
||||
"imapsync_source_unavailable": "Izbrani vir sinhronizacije ni na voljo",
|
||||
"imapsync_source_oauth_connect_required": "Pred shranjevanjem tega opravila sinhronizacije se prijavite pri ponudniku.",
|
||||
"imapsync_source_name_invalid": "Neveljavno ime vira sinhronizacije",
|
||||
"imapsync_source_host_invalid": "Neveljavno ime gostitelja ali naslov IP",
|
||||
"imapsync_source_port_invalid": "Neveljavna vrata",
|
||||
"imapsync_source_enc_invalid": "Neveljaven način šifriranja",
|
||||
"imapsync_source_auth_invalid": "Neveljaven način preverjanja pristnosti",
|
||||
"imapsync_custom_param_invalid": "Parametri po meri vsebujejo nedovoljeno možnost za imapsync: %s",
|
||||
"imapsync_source_oauth_required": "OAuth2 zahteva končno točko za žetone, ID odjemalca, skrivnost odjemalca in obseg.",
|
||||
"imapsync_source_oauth_endpoint_invalid": "Neveljavna končna točka OAuth2: zahtevan je naslov URL s protokolom https:// in veljavnim imenom gostitelja (viri, ki jih ni ustvaril skrbnik, potrebujejo javno dostopnega gostitelja)",
|
||||
"imapsync_source_oauth_extra_invalid": "Dodatni parametri OAuth2 morajo biti objekt JSON s preprostimi vrednostmi, npr. {\"vir\": \"https://example.com\"}",
|
||||
"imapsync_source_tenant_missing": "Vnesite najemnika Microsoft 365",
|
||||
"imapsync_source_oauth_invalid": "Neveljavna konfiguracija OAuth2",
|
||||
"imapsync_max_parallel_invalid": "Število vzporednih procesov mora biti med 1 in 32",
|
||||
"imapsync_source_description_invalid": "Opis ne sme presegati 255 znakov.",
|
||||
"imapsync_source_refresh_unsupported": "Ročno osveževanje žetonov je na voljo samo za vire poverilnic odjemalcev",
|
||||
"imapsync_custom_params_format": "Prilagojene parametre je treba poslati kot seznam parov možnost/vrednost",
|
||||
"imapsync_custom_param_value": "Neveljavna vrednost za možnost %s programa imapsync (manjkajoča vrednost, vrednost, podana pri zastavici, ali nedovoljena vrednost)",
|
||||
"imapsync_job_running": "Opravilo sinhronizacije %s se trenutno izvaja, zato ga ni mogoče načrtovati za naslednji izvedbeni termin",
|
||||
"imapsync_user1_invalid": "Neveljavno oddaljeno uporabniško ime",
|
||||
"imapsync_max_kb_per_second_invalid": "Omejitev pasovne širine mora biti med 0 in 10485760 KB/s"
|
||||
},
|
||||
"debug": {
|
||||
"containers_info": "Informacije o zabojniku",
|
||||
@@ -764,7 +905,13 @@
|
||||
"internal_info": "Notranji vzdevki so dostopni samo iz lastne domene ali vzdevkov domen.",
|
||||
"sender_allowed": "Dovoli pošiljanje kot ta vzdevek",
|
||||
"sender_allowed_info": "Če je onemogočeno, lahko ta vzdevek samo prejema pošto. Za preglasitev in dodelitev dovoljenja za pošiljanje določenim poštnim predalom uporabite seznam za nadzor dostopa pošiljatelja.",
|
||||
"mta_sts_active_info": "Če ni označeno, pravilnik MTA-STS ne bo objavljen in za poddomeno mta-sts ne bo zahtevano nobeno potrdilo prek ACME."
|
||||
"mta_sts_active_info": "Če ni označeno, pravilnik MTA-STS ne bo objavljen in za poddomeno mta-sts ne bo zahtevano nobeno potrdilo prek ACME.",
|
||||
"iam_idp_disabled": "Prijava onemogočena zaradi sinhronizacije z IdP",
|
||||
"iam_link": "Povezava do IdP",
|
||||
"iam_link_info": "Poštni predal je povezan s tem uporabnikom IdP. Če je bil naslov dodeljen drugemu uporabniku IdP, povezavo odstranite; ponovna povezava se vzpostavi prek e-pošte.",
|
||||
"iam_missing_since": "Manjka v IdP od",
|
||||
"iam_not_linked": "Še ni povezano",
|
||||
"iam_unlink": "Odstrani povezavo"
|
||||
},
|
||||
"footer": {
|
||||
"restart_container_info": "<b>Pomembno:</b> Eleganten ponovni zagon lahko traja nekaj časa, zato počakajte, da se konča.",
|
||||
@@ -896,7 +1043,7 @@
|
||||
"mailbox_defaults": "Privzete nastavitve",
|
||||
"mailbox_defquota": "Privzeta velikost poštnega nabiralnika",
|
||||
"mailbox_templates": "Predloge poštnih nabiralnikov",
|
||||
"mailbox_quota": "Največja velikost poštnega nabiralnika",
|
||||
"mailbox_quota": "Največja velikost poštnega predala",
|
||||
"mailboxes": "Poštni nabiralniki",
|
||||
"max_aliases": "Največje število vzdevkov",
|
||||
"max_mailboxes": "Največje možno število poštnih predalov",
|
||||
@@ -971,7 +1118,9 @@
|
||||
"sieve_info": "Na uporabnika lahko shranite več filtrov, vendar je lahko hkrati aktiven le en predfilter in en postfilter.<br>\nVsak filter bo obdelan v opisanem vrstnem redu. Niti neuspešen skript niti izdan ukaz »keep;« ne bosta ustavila obdelave nadaljnjih skript. Spremembe globalnih skriptov sita bodo sprožile ponovni zagon Dovecota.<br><br>Globalni predfilter sita • Predfilter • Uporabniški skripti • Postfilter • Globalni postfilter sita",
|
||||
"tls_policy_maps_info": "Ta preslikava pravilnikov preglasi pravila odhodnega prenosa TLS neodvisno od uporabnikovih nastavitev pravilnikov TLS.<br>\n Za več informacij preverite <a href=\"http://www.postfix.org/postconf.5.html#smtp_tls_policy_maps\" target=\"_blank\">dokumentacijo »smtp_tls_policy_maps«</a>.",
|
||||
"internal": "Notranje",
|
||||
"force_tfa": "TFA"
|
||||
"force_tfa": "TFA",
|
||||
"shared_mailbox": "Skupni poštni predal",
|
||||
"shared_mailbox_info": "Nima lastne prijave (IMAP, SMTP, SOGo, ActiveSync, gesla za aplikacije, uporabniški vmesnik mailcow). Prejema e-pošto, člani skupin pa do nje dostopajo prek deljenih map. Geslo ni potrebno."
|
||||
},
|
||||
"fido2": {
|
||||
"known_ids": "Znani ID-ji",
|
||||
@@ -1172,7 +1321,21 @@
|
||||
"item_released": "Izdan je bil element %s",
|
||||
"saved_settings": "Shranjene nastavitve",
|
||||
"learned_ham": "Uspešno naučen ID %s kot zaželjen",
|
||||
"ui_theme_modified": "Tema je bila uspešno shranjena"
|
||||
"ui_theme_modified": "Tema je bila uspešno shranjena",
|
||||
"api_key_added": "Ključ API %s je bil dodan",
|
||||
"api_key_deleted": "Ključ API %s je bil izbrisan",
|
||||
"api_key_modified": "Spremembe ključa API %s so bile shranjene",
|
||||
"group_added": "Skupina %s je bila dodana",
|
||||
"group_modified": "Spremembe skupine %s so bile shranjene",
|
||||
"group_removed": "Skupina %s je bila odstranjena",
|
||||
"iam_link_removed": "Povezava IdP za %s je bila odstranjena",
|
||||
"iam_sync_requested": "Postopek sinhronizacije je v čakalni vrsti; začel se bo v eni minuti.",
|
||||
"imapsync_source_added": "Vir sinhronizacije %s je bil dodan",
|
||||
"imapsync_source_modified": "Vir sinhronizacije %s je bil shranjen",
|
||||
"imapsync_source_deleted": "Vir sinhronizacije %s je bil izbrisan",
|
||||
"imapsync_source_token_refreshed": "Žeton OAuth za %s je bil osvežen",
|
||||
"max_parallel_saved": "Nastavitve opravila sinhronizacije so shranjene",
|
||||
"imapsync_run_next_done": "%s opravilo(-a) za sinhronizacijo premaknjeno(-a) na začetek čakalne vrste"
|
||||
},
|
||||
"start": {
|
||||
"imap_smtp_server_auth_info": "Prosimo, uporabite svoj celoten e-poštni naslov in mehanizem za preverjanje pristnosti PLAIN.<br>\nVaši podatki za prijavo bodo šifrirani z obveznim šifriranjem na strani strežnika.",
|
||||
@@ -1209,7 +1372,8 @@
|
||||
"force_tfa_info": "Uporabnik bo moral pred dostopom do nadzorne plošče nastaviti dvofaktorsko overjanje.",
|
||||
"setup_title": "Zahtevana je dvofaktorska avtentikacija",
|
||||
"setup_required": "Vaš račun zahteva dvofaktorsko overjanje. Za nadaljevanje nastavite metodo dvofaktorske overitve.",
|
||||
"cancel_setup": "Prekliči in se odjavi"
|
||||
"cancel_setup": "Prekliči in se odjavi",
|
||||
"webauthn_registration_failed": "Registracija WebAuthn ni uspela. Verodajnice ni bilo mogoče preveriti; poskusite znova."
|
||||
},
|
||||
"ratelimit": {
|
||||
"disabled": "Onemogočeno",
|
||||
@@ -1247,7 +1411,103 @@
|
||||
"timeout1": "Časovna omejitev za povezavo do oddaljenega gostitelja",
|
||||
"timeout2": "Časovna omejitev za povezavo do lokalnega gostitelja",
|
||||
"maxbytespersecond": "Največ bajtov na sekundo <br><small>(0 = neomejeno)</small>",
|
||||
"custom_params": "Parametri po meri"
|
||||
"custom_params": "Parametri po meri",
|
||||
"sources_panel": "Viri za sinhronizacijo",
|
||||
"sources_hint": "Viri sinhronizacije določajo strežnike IMAP (in način njihove overitve), ki jih je mogoče ponovno uporabiti pri opravilih sinhronizacije. Vsak vir določite enkrat, nato pa ga pri ustvarjanju opravil sinhronizacije izberite s spustnega seznama.",
|
||||
"source_add": "Dodaj vir",
|
||||
"source": "Vir",
|
||||
"source_name": "Ime",
|
||||
"source_description": "Opis",
|
||||
"source_scope": "Vidljivost",
|
||||
"source_scope_all": "Vsi uporabniki",
|
||||
"source_scope_domain": "Specifične domene",
|
||||
"source_scope_user": "Specifični uporabniki",
|
||||
"source_domains": "Domene",
|
||||
"source_users": "Uporabniki",
|
||||
"source_select": "Izberi vir",
|
||||
"source_auth_type": "Overjanje",
|
||||
"source_oauth_block": "Konfiguracija OAuth2",
|
||||
"source_token_status": "Žeton veljaven do",
|
||||
"source_token_error": "Napaka pri zadnji osvežitvi",
|
||||
"source_refresh_now": "Osveži žeton zdaj",
|
||||
"source_secret_unchanged_hint": "Pustite prazno, da ohranite shranjeno skrivnost.",
|
||||
"source_oauth_flow": "Postopek OAuth2",
|
||||
"source_oauth_flow_app": "Aplikacija (poverilnice odjemalca)",
|
||||
"source_oauth_flow_user": "Prijava uporabnika (koda za avtorizacijo)",
|
||||
"source_flow_badge_app": "Poverilnice stranke",
|
||||
"source_flow_badge_user": "Prijava uporabnika",
|
||||
"token_state_issued": "Žeton izdan",
|
||||
"token_state_pending": "Žeton v čakanju",
|
||||
"token_state_failed": "Žeton ni uspel",
|
||||
"source_authorize_endpoint": "Avtorizacija končne točke",
|
||||
"source_userinfo_endpoint": "Končna točka za podatke o uporabniku",
|
||||
"source_redirect_uri": "URI za preusmeritev",
|
||||
"source_redirect_uri_hint": "Registrirajte ta URI v aplikaciji ponudnika (npr. Azure). Prijava prek ponudnika deluje le, če se mailcow odpre prek tega imena gostitelja.",
|
||||
"syncjob_oauth_connect": "Prijavite se s ponudnikom",
|
||||
"syncjob_oauth_connected": "Povezano",
|
||||
"syncjob_OAUTH_TOKEN_NOT_READY": "Žeton OAuth ni pripravljen (znova se prijavite ali počakajte na osvežitev žetona)",
|
||||
"custom_params_hint": "V vsako vrstico vnesite eno možnost za imapsync. Sprejete so le možnosti s seznama dovoljenih; vrednost lahko vsebuje poljubne znake (presledke, regularne izraze itd.) in se posreduje kot en sam argument.",
|
||||
"custom_param_option": "Možnost",
|
||||
"custom_param_value": "Vrednost",
|
||||
"custom_param_no_value": "vrednost ni potrebna",
|
||||
"custom_param_add": "Dodaj parameter",
|
||||
"prio": "Prednostna naloga",
|
||||
"prio_hint": "Opravila z višjo prioriteto se izvedejo prva. Znotraj iste prioritete imajo prednost opravila, ki še nikoli niso bila izvedena, sledijo jim tista, ki so bila izvedena najmanj nedavno (0 = običajno).",
|
||||
"oauth_popup_title": "Prijavite se s ponudnikom",
|
||||
"oauth_popup_success": "Povezano. To okno lahko zaprete.",
|
||||
"oauth_popup_failed": "Prijava ni uspela. To okno lahko zaprete.",
|
||||
"oauth_error_access_denied": "Nimate dovoljenja za upravljanje opravil sinhronizacije",
|
||||
"oauth_error_mailbox_denied": "Ni dostopa do izbranega lokalnega poštnega predala",
|
||||
"oauth_error_source_unavailable": "Vir sinhronizacije ni na voljo ali pa ni konfiguriran za prijavo prek ponudnika",
|
||||
"oauth_error_provider_denied": "Ponudnik je zavrnil prijavo",
|
||||
"oauth_error_invalid_state": "Seja za prijavo je potekla ali pa ni veljavna; poskusite znova",
|
||||
"oauth_error_token_failed": "Ponudnik ni izdal žetona (preverite ID odjemalca, skrivnost in URI za preusmeritev)",
|
||||
"oauth_error_no_identity": "Ponudnik ni vrnil e-poštnega naslova za prijavljeni račun",
|
||||
"user2_label": "Lokalni poštni predal (cilj)",
|
||||
"user1_label": "Uporabniško ime na oddaljeni strani (vir)",
|
||||
"password1_label": "Geslo za oddaljeni dostop (vir)",
|
||||
"no_sources": "Na voljo ni vira za sinhronizacijo. Najprej dodajte vir za sinhronizacijo.",
|
||||
"source_list_error": "Virov za sinhronizacijo ni bilo mogoče naložiti",
|
||||
"source_not_visible": "(ni vidno)",
|
||||
"oauth_waiting": "Čakanje na ponudnika…",
|
||||
"oauth_popup_blocked": "Okno za prijavo je bilo blokirano. Za to spletno mesto omogočite pojavna okna in poskusite znova.",
|
||||
"oauth_select_mailbox": "Najprej izberite lokalni poštni predal",
|
||||
"oauth_error_unknown": "Prijava ni uspela",
|
||||
"oauth_hint": "Oddaljeno uporabniško ime se pridobi iz računa, ki je bil uporabljen za prijavo pri ponudniku.",
|
||||
"token_state_none": "Žeton v čakanju",
|
||||
"custom_params_legacy": "Podedovani parametri (niso bili preneseni)",
|
||||
"custom_params_legacy_hint": "Te parametre po meri iz prvotnega opravila sinhronizacije ni bilo mogoče pretvoriti, zato so prezrti. Možnosti, ki jih še vedno potrebujete, dodajte z zgornjim urejevalnikom parametrov.",
|
||||
"custom_params_legacy_badge": "Podedovani parametri",
|
||||
"custom_param_remove": "Odstrani parameter",
|
||||
"never_run": "Nikoli",
|
||||
"status_inactive": "Neaktivno",
|
||||
"source_server": "Izvorni strežnik",
|
||||
"id": "ID",
|
||||
"source_created_by": "Ustvaril/a",
|
||||
"source_oauth_token_endpoint": "Končna točka za žetone",
|
||||
"source_oauth_client_id": "ID odjemalca",
|
||||
"source_oauth_client_secret": "Skrivnost odjemalca",
|
||||
"source_oauth_scope": "Obseg",
|
||||
"source_oauth_extra_params": "Dodatni parametri (JSON)",
|
||||
"source_oauth_extra_params_hint": "Izbirni objekt JSON. Parametri prompt, access_type, login_hint, domain_hint in hd se pošljejo ob prijavi pri ponudniku, vsi ostali pa ob zahtevku za žeton, npr. {\"vir\": \"https://provider.example.com\"}",
|
||||
"source_presets": "Prednastavitve",
|
||||
"source_presets_hint": "Izpolni nastavitve strežnika ponudnika. Številni ponudniki (npr. Gmail, iCloud, Yahoo) zahtevajo uporabo gesla za aplikacijo ali omogočanje dostopa prek protokola IMAP v nastavitvah poštnega predala.",
|
||||
"source_tenant": "Najemnik Microsoft 365",
|
||||
"source_tenant_hint": "ID imenika (najemnika) ali domena najemnika, npr. contoso.onmicrosoft.com. Vstavi se v končne točke.",
|
||||
"source_scope_cc_hint": "Viri, ki uporabljajo tok poverilnic odjemalca, so vedno zasebni za svojega ustvarjalca.",
|
||||
"source_readonly_hint": "Ta vir sinhronizacije je v skupni rabi z vami in ga je mogoče le ogledati.",
|
||||
"source_verify_cert": "Preverite potrdilo strežnika",
|
||||
"source_verify_cert_hint": "Za SSL in STARTTLS. Izklopite za strežnike s samopodpisanim ali poteklim potrdilom oziroma s potrdilom, ki se ne ujema z gostiteljem.",
|
||||
"source_verify_cert_off": "Potrdilo strežnika ni preverjeno",
|
||||
"copy": "Kopiraj",
|
||||
"copied": "Kopirano v odložišče",
|
||||
"source_view": "Prikaži",
|
||||
"custom_params_options_error": "Seznama dovoljenih možnosti za imapsync ni bilo mogoče naložiti",
|
||||
"source_missing": "Temu opravilu ni dodeljen vir za sinhronizacijo. Prosimo, izberite vir.",
|
||||
"oauth_window_closed": "Okno za prijavo se je zaprlo, še preden je prispel rezultat. Če ste postopek prijave zaključili, ponovno naložite stran ali poskusite znova.",
|
||||
"custom_params_legacy_badge_title": "Stare parametre po meri, ki jih ni bilo mogoče pretvoriti, se prezre. Za podrobnosti odprite stran za urejanje.",
|
||||
"status_waiting": "Čakanje",
|
||||
"status_running": "V teku"
|
||||
},
|
||||
"user": {
|
||||
"open_webmail_sso": "Spletna pošta",
|
||||
@@ -1424,6 +1684,62 @@
|
||||
"no_active_admin": "Zadnjega aktivnega skrbnika ni mogoče deaktivirati",
|
||||
"quota_exceeded_scope": "Kvota domene presežena: V tem obsegu domene je mogoče ustvariti le neomejeno število poštnih predalov.",
|
||||
"session_token": "Neveljaven žeton obrazca: Neujemanje žetonov",
|
||||
"session_ua": "Neveljaven žeton obrazca: Napaka pri preverjanju uporabniškega agenta"
|
||||
"session_ua": "Neveljaven žeton obrazca: Napaka pri preverjanju uporabniškega agenta",
|
||||
"group_imap_grant_failed": "Dostopa do poštnega predala %s v sistemu Dovecot še ni bilo mogoče nastaviti; ponovni poskus bo izveden vsakih 15 minut",
|
||||
"group_sogo_init_failed": "Map SOGo za %s še ni bilo mogoče ustvariti; ponovni poskus bo izveden vsakih 15 minut",
|
||||
"group_subscription_failed": "Naročnina za %s ni uspela; poskus se samodejno se ponovi",
|
||||
"group_template_failed": "Predloge %s ni bilo mogoče uporabiti na %s",
|
||||
"group_too_many_members": "Skupina %s ima več kot %s članov. Postfix dostavi pošto na naslov, ki ima največ toliko prejemnikov."
|
||||
},
|
||||
"groups": {
|
||||
"active": "Aktivno",
|
||||
"add": "Dodaj skupino",
|
||||
"address": "Skupinski naslov",
|
||||
"address_hint": "Neobvezno. Pošta na ta naslov se dostavi vsem članom.",
|
||||
"description": "Opis",
|
||||
"domain": "Domena",
|
||||
"effective_template": "Predloga iz skupin",
|
||||
"grant_add": "Dodaj",
|
||||
"grant_folder": "ID mape v SOGo, osebna = privzeta mapa",
|
||||
"grant_owner": "Poštni nabiralnik",
|
||||
"grant_state_applied": "Aktivno",
|
||||
"grant_state_failed": "Neuspešno",
|
||||
"grant_state_pending": "V čakanju",
|
||||
"grant_subscribe": "Naroči se",
|
||||
"grant_subscribe_imap_hint": "V roku ene minute naroči mape poštnega predala za vsakega člana, tako da so te vidne v e-poštnih odjemalcih. Pomembno: če se član odjavi, to stanje ostane nespremenjeno",
|
||||
"grant_subscribe_sogo_hint": "Mapa se v roku ene minute doda v SOGo vsakega člana – vendar le enkrat: če jo član odstrani, ostane odstranjena.",
|
||||
"group": "Skupina",
|
||||
"groups": "Skupine",
|
||||
"idp": "IdP",
|
||||
"idp_member": "Sinhronizirano iz ponudnika identitet; spremeniti je mogoče le tam",
|
||||
"idp_ref": "Skupina IdP",
|
||||
"imap_grants": "Dostop do poštnega predala",
|
||||
"imap_grants_hint": "Člani odprejo te poštne nabiralnike v svojem poštnem odjemalcu (mapa V skupni rabi/<poštni nabiralnik>). Branje: branje in označevanje kot prebrano. Pisanje: tudi shranjevanje, premikanje in brisanje e-pošte. Polni dostop: tudi brisanje map. Za poštne nabiralnike ekipe brez lastne prijave označite nabiralnik kot skupni nabiralnik.",
|
||||
"info": "Skupine združujejo nabiralnike. Skupina ima lahko svoj naslov: vzdevek, ki samodejno dostavlja vsem članom. Člani lahko pošiljajo kot drugi naslovi, dostopajo do skupnih nabiralnikov, koledarjev in imenikov ter dobijo predlogo nabiralnika. Člani, sinhronizirani s ponudnikom identitete, so označeni z IdP.",
|
||||
"internal": "Sprejemaj pošto samo od pošiljateljev iz domene",
|
||||
"list_error": "Skupin ni bilo mogoče naložiti",
|
||||
"managed_alias": "Upravlja skupina %s",
|
||||
"members": "Člani",
|
||||
"memberships": "Članstva v skupinah",
|
||||
"name": "Ime",
|
||||
"no_memberships": "Ni član nobene skupine",
|
||||
"priority": "Prednostna naloga",
|
||||
"reapply_template": "Ponovno uporabite predlogo za vse člane",
|
||||
"rights_full": "Popoln dostop",
|
||||
"rights_read": "Beri",
|
||||
"rights_write": "Piši",
|
||||
"send_as": "Pošlji kot",
|
||||
"send_as_groups": "Lahko pošlje kot (prek skupin)",
|
||||
"send_as_hint": "Naslovi (poštni predal ali vzdevek) ali @domena, v imenu katerih lahko člani pošiljajo sporočila – en naslov v vsaki vrstici.",
|
||||
"sender_allowed": "Člani lahko pošiljajo prek naslova skupine",
|
||||
"sogo_grants": "Koledarji in imeniki",
|
||||
"sogo_grants_hint": "Člani dobijo dostop do mape SOGo v poštnem predalu. Z izbiro možnosti »Naroči se« (Subscribe) se mapa samodejno prikaže v njihovem vmesniku SOGo; v nasprotnem primeru se morajo nanjo naročiti sami. Na čakanju: poštni predal še ni odprl vmesnika SOGo.",
|
||||
"sogo_visible": "Prikaži naslov skupine kot identiteto v SOGo",
|
||||
"template": "Predloga poštnega predala",
|
||||
"template_hint": "Velja za vse člane. Če je poštni predal vključen v več skupin, prevzame predlogo skupine z najvišjo prioriteto.",
|
||||
"template_none": "Brez predloge",
|
||||
"type_calendar": "Koledar",
|
||||
"type_contacts": "Imenik",
|
||||
"view": "Pogled"
|
||||
}
|
||||
}
|
||||
@@ -416,18 +416,24 @@ function recursiveBase64StrToArrayBuffer(obj) {
|
||||
return navigator.credentials.create(json);
|
||||
}).then(function(cred) {
|
||||
return {
|
||||
id: cred.id,
|
||||
rawId: arrayBufferToBase64(cred.rawId),
|
||||
response: {
|
||||
attestationObject: arrayBufferToBase64(cred.response.attestationObject),
|
||||
clientDataJSON: arrayBufferToBase64(cred.response.clientDataJSON)
|
||||
},
|
||||
type: cred.type
|
||||
clientDataJSON: arrayBufferToBase64(cred.response.clientDataJSON),
|
||||
attestationObject: arrayBufferToBase64(cred.response.attestationObject),
|
||||
key_id: keyId,
|
||||
tfa_method: 'webauthn',
|
||||
confirm_password: ''
|
||||
};
|
||||
}).then(function(credData) {
|
||||
$('#setup_webauthn_register_data').val(JSON.stringify(credData));
|
||||
$('#setup_webauthn_reg_form input[name=set_tfa]').val('1');
|
||||
$('#setup_webauthn_reg_form').submit();
|
||||
}).then(JSON.stringify).then(function(credentialData) {
|
||||
// send the attestation to the JSON API, like the regular WebAuthn modal does,
|
||||
// so that the credential is parsed and stored correctly
|
||||
return window.fetch('/api/v1/add/webauthn-tfa-registration', {method: 'POST', body: credentialData, cache: 'no-cache'});
|
||||
}).then(function(response) {
|
||||
return response.json();
|
||||
}).then(function(json) {
|
||||
if (json.success) {
|
||||
window.location = window.location.href.split('#')[0];
|
||||
} else {
|
||||
throw new Error(json.msg);
|
||||
}
|
||||
}).catch(function(err) {
|
||||
$('#setup_webauthn_return_code').show().text(err.message || 'Registration failed');
|
||||
});
|
||||
|
||||
@@ -97,9 +97,11 @@
|
||||
<div class="col-sm-10">
|
||||
<select data-live-search="true" data-width="100%" style="width:100%" id="editSelectSenderACL" name="sender_acl" size="10" multiple>
|
||||
{% for domain in sender_acl_handles.sender_acl_domains.ro %}
|
||||
<option data-subtext="Admin" value="{{ domain }}" disabled selected>
|
||||
{{ lang.edit.dont_check_sender_acl|format(domain) }}
|
||||
</option>
|
||||
{% if domain == '*' or mailcow_cc_role == 'admin' %}
|
||||
<option data-subtext="Admin" value="{{ domain }}" disabled selected>
|
||||
{{ lang.edit.dont_check_sender_acl|format(domain) }}
|
||||
</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% for domain in sender_acl_handles.sender_acl_domains.rw %}
|
||||
<option value="{{ domain }}" selected>
|
||||
|
||||
+8
-8
@@ -68,7 +68,7 @@ services:
|
||||
- redis
|
||||
|
||||
clamd-mailcow:
|
||||
image: ghcr.io/mailcow/clamd:1.4.6-1
|
||||
image: ghcr.io/mailcow/clamd:1.4.7-1
|
||||
restart: always
|
||||
depends_on:
|
||||
unbound-mailcow:
|
||||
@@ -87,7 +87,7 @@ services:
|
||||
- clamd
|
||||
|
||||
rspamd-mailcow:
|
||||
image: ghcr.io/mailcow/rspamd:4.2.3-1
|
||||
image: ghcr.io/mailcow/rspamd:4.2.3-2
|
||||
stop_grace_period: 30s
|
||||
depends_on:
|
||||
- dovecot-mailcow
|
||||
@@ -120,7 +120,7 @@ services:
|
||||
- rspamd
|
||||
|
||||
php-fpm-mailcow:
|
||||
image: ghcr.io/mailcow/phpfpm:8.2.35-2
|
||||
image: ghcr.io/mailcow/phpfpm:8.2.36-1
|
||||
command: "php-fpm -d date.timezone=${TZ} -d expose_php=0"
|
||||
depends_on:
|
||||
- redis-mailcow
|
||||
@@ -259,7 +259,7 @@ services:
|
||||
- sogo
|
||||
|
||||
dovecot-mailcow:
|
||||
image: ghcr.io/mailcow/dovecot:2.3.21.1-4
|
||||
image: ghcr.io/mailcow/dovecot:2.3.21.1-5
|
||||
depends_on:
|
||||
- mysql-mailcow
|
||||
- netfilter-mailcow
|
||||
@@ -348,7 +348,7 @@ services:
|
||||
- dovecot
|
||||
|
||||
postfix-mailcow:
|
||||
image: ghcr.io/mailcow/postfix:3.10.12-1
|
||||
image: ghcr.io/mailcow/postfix:3.10.13-1
|
||||
depends_on:
|
||||
mysql-mailcow:
|
||||
condition: service_started
|
||||
@@ -391,7 +391,7 @@ services:
|
||||
- postfix
|
||||
|
||||
postfix-tlspol-mailcow:
|
||||
image: ghcr.io/mailcow/postfix-tlspol:1.14.0
|
||||
image: ghcr.io/mailcow/postfix-tlspol:1.14.5
|
||||
depends_on:
|
||||
unbound-mailcow:
|
||||
condition: service_healthy
|
||||
@@ -428,7 +428,7 @@ services:
|
||||
- php-fpm-mailcow
|
||||
- sogo-mailcow
|
||||
- rspamd-mailcow
|
||||
image: ghcr.io/mailcow/nginx:1.30.6-2
|
||||
image: ghcr.io/mailcow/nginx:1.30.7-1
|
||||
dns:
|
||||
- ${IPV4_NETWORK:-172.22.1}.254
|
||||
environment:
|
||||
@@ -612,7 +612,7 @@ services:
|
||||
- watchdog
|
||||
|
||||
dockerapi-mailcow:
|
||||
image: ghcr.io/mailcow/dockerapi:2.15
|
||||
image: ghcr.io/mailcow/dockerapi:2.16
|
||||
security_opt:
|
||||
- label=disable
|
||||
restart: always
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Admin;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Routes admin: administrator accounts */
|
||||
class AdminRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const DETAILS = ['username' => 'admin', 'tfa_active' => 0, 'tfa_active_int' => 0, 'active' => 1, 'active_int' => 1,
|
||||
'created' => '2026-09-21 10:23:08', 'attributes' => ['force_tfa' => '0', 'force_pw_update' => '0']];
|
||||
|
||||
public function testGetAllCollectsTheDetailsOfEveryAdmin(): void
|
||||
{
|
||||
$result = $this->get('get/admin/all', ['script' => [
|
||||
self::answer('admin', ['get'], ['admin', 'gone']),
|
||||
self::answer('admin', ['details', 'admin'], self::DETAILS),
|
||||
self::answer('admin', ['details', 'gone'], false),
|
||||
]]);
|
||||
|
||||
$this->assertSame([self::DETAILS], $result->json());
|
||||
$this->assertSame([['get'], ['details', 'admin'], ['details', 'gone']], $result->callsTo('admin'));
|
||||
}
|
||||
|
||||
public function testGetAllWithoutAdmins(): void
|
||||
{
|
||||
$result = $this->get('get/admin/all', ['script' => [self::answer('admin', ['get'], [])]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
$this->assertSame([['get']], $result->callsTo('admin'));
|
||||
}
|
||||
|
||||
public function testGetOne(): void
|
||||
{
|
||||
$found = $this->get('get/admin/admin', ['script' => [self::answer('admin', ['details', 'admin'], self::DETAILS)]]);
|
||||
$this->assertSame(self::DETAILS, $found->json());
|
||||
|
||||
$missing = $this->get('get/admin/nobody', ['script' => [self::answer('admin', ['details'], false)]]);
|
||||
$this->assertSame('{}', $missing->body);
|
||||
$this->assertCalled($missing, 'admin', ['details', 'nobody']);
|
||||
}
|
||||
|
||||
public function testAdd(): void
|
||||
{
|
||||
$attr = ['username' => 'admin2', 'password' => 'Rand0m-Passw0rd!', 'password2' => 'Rand0m-Passw0rd!', 'active' => 1];
|
||||
$messages = [self::message('success', ['admin_added', 'admin2'], ['admin', 'add', ['username' => 'admin2', 'password' => '*']])];
|
||||
|
||||
$result = $this->post('add/admin', $attr, ['script' => [self::answer('admin', ['add'], null, $messages)]]);
|
||||
|
||||
$this->assertSame([['add', $attr]], $result->callsTo('admin'));
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testEdit(): void
|
||||
{
|
||||
$result = $this->post('edit/admin', ['items' => ['admin2', 'admin3'], 'attr' => ['active' => '0', 'force_tfa' => 1]]);
|
||||
|
||||
$this->assertSame([['edit', ['username' => ['admin2', 'admin3'], 'active' => '0', 'force_tfa' => 1]]], $result->callsTo('admin'));
|
||||
}
|
||||
|
||||
public function testEditTakesASingleUsername(): void
|
||||
{
|
||||
$result = $this->post('edit/admin', ['items' => 'admin2', 'attr' => ['password' => 'x', 'password2' => 'x']]);
|
||||
|
||||
$this->assertCalled($result, 'admin', ['edit', ['username' => ['admin2'], 'password' => 'x', 'password2' => 'x']]);
|
||||
}
|
||||
|
||||
public function testDelete(): void
|
||||
{
|
||||
$messages = [
|
||||
self::message('success', ['admin_removed', 'admin2']),
|
||||
self::message('danger', ['username_invalid', 'nobody']),
|
||||
];
|
||||
|
||||
$result = $this->post('delete/admin', ['admin2', 'nobody'], ['script' => [self::answer('admin', ['delete'], null, $messages)]]);
|
||||
|
||||
$this->assertSame([['delete', ['username' => ['admin2', 'nobody']]]], $result->callsTo('admin'));
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Admin;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Routes api-key: the ApiKey module */
|
||||
class ApiKeyRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const API = 'Mailcow\ApiKey\ApiKeyModule->api->';
|
||||
private const KEY = ['id' => 3, 'description' => 'provisioning', 'access' => 'rw', 'api_key' => '1B7E2C-94F0A3-6D5B18-C2E7F4-03A9D6',
|
||||
'allow_from' => ['192.0.2.10'], 'skip_ip_check' => 0, 'service' => 0, 'active' => 1, 'created' => '2026-11-02 09:12:44', 'modified' => null];
|
||||
|
||||
public function testGetAll(): void
|
||||
{
|
||||
$result = $this->get('get/api-key/all', ['script' => [self::answer(self::API . 'getKeys', [], [self::KEY])]]);
|
||||
|
||||
$this->assertSame([self::KEY], $result->json());
|
||||
$this->assertSame([[]], $result->callsTo(self::API . 'getKeys'));
|
||||
}
|
||||
|
||||
public function testGetAllAnswersAnEmptyObjectWithoutKeys(): void
|
||||
{
|
||||
// also the answer for read-only API keys: the module returns no keys for them
|
||||
$result = $this->get('get/api-key/all', ['session' => self::API_RO, 'script' => [self::answer(self::API . 'getKeys', [], [])]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testGetOne(): void
|
||||
{
|
||||
$found = $this->get('get/api-key/3', ['script' => [self::answer(self::API . 'getKey', ['3'], self::KEY)]]);
|
||||
$this->assertSame(self::KEY, $found->json());
|
||||
|
||||
$missing = $this->get('get/api-key/99', ['script' => [self::answer(self::API . 'getKey', [], [])]]);
|
||||
$this->assertSame('{}', $missing->body);
|
||||
$this->assertSame([['99']], $missing->callsTo(self::API . 'getKey'));
|
||||
}
|
||||
|
||||
public function testAdd(): void
|
||||
{
|
||||
$attr = ['description' => 'provisioning', 'access' => 'rw', 'allow_from' => '192.0.2.10, 2001:db8::/64', 'skip_ip_check' => 0, 'active' => 1];
|
||||
$messages = [self::message('success', ['api_key_added', 'provisioning'], ['api', 'add', 'key', $attr])];
|
||||
|
||||
$result = $this->post('add/api-key', $attr, ['script' => [self::answer(self::API . 'addKey', [], true, $messages)]]);
|
||||
|
||||
$this->assertSame([[$attr]], $result->callsTo(self::API . 'addKey'));
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testEdit(): void
|
||||
{
|
||||
$result = $this->post('edit/api-key', ['items' => [3, 4], 'attr' => ['regen_key' => 1]]);
|
||||
|
||||
$this->assertSame([[[3, 4], ['regen_key' => 1]]], $result->callsTo(self::API . 'editKeys'));
|
||||
}
|
||||
|
||||
public function testEditTakesASingleId(): void
|
||||
{
|
||||
$result = $this->post('edit/api-key', ['items' => 3, 'attr' => ['active' => 0]]);
|
||||
|
||||
$this->assertSame([[[3], ['active' => 0]]], $result->callsTo(self::API . 'editKeys'));
|
||||
}
|
||||
|
||||
public function testDelete(): void
|
||||
{
|
||||
$messages = [self::message('danger', ['api_key_service_locked', 'API_KEY'])];
|
||||
|
||||
$result = $this->post('delete/api-key', [1], ['script' => [self::answer(self::API . 'deleteKeys', [], true, $messages)]]);
|
||||
|
||||
$this->assertSame([[[1]]], $result->callsTo(self::API . 'deleteKeys'));
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Admin;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Routes domain-admin, da-acl and sso/domain-admin */
|
||||
class DomainAdminRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const DETAILS = ['username' => 'domainadmin1', 'tfa_active' => 0, 'tfa_active_int' => 0, 'active' => 1, 'active_int' => 1,
|
||||
'created' => '2026-09-21 10:24:48', 'attributes' => ['force_tfa' => '0', 'force_pw_update' => '0'],
|
||||
'selected_domains' => ['example.org'], 'unselected_domains' => ['example.com']];
|
||||
|
||||
public function testGetAllCollectsTheDetailsOfEveryDomainAdmin(): void
|
||||
{
|
||||
$result = $this->get('get/domain-admin/all', ['script' => [
|
||||
self::answer('domain_admin', ['get'], ['domainadmin1', 'gone']),
|
||||
self::answer('domain_admin', ['details', 'domainadmin1'], self::DETAILS),
|
||||
self::answer('domain_admin', ['details', 'gone'], false),
|
||||
]]);
|
||||
|
||||
$this->assertSame([self::DETAILS], $result->json());
|
||||
$this->assertSame([['get'], ['details', 'domainadmin1'], ['details', 'gone']], $result->callsTo('domain_admin'));
|
||||
}
|
||||
|
||||
public function testGetAllWithoutDomainAdmins(): void
|
||||
{
|
||||
$result = $this->get('get/domain-admin/all', ['script' => [self::answer('domain_admin', ['get'], [])]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testGetOne(): void
|
||||
{
|
||||
$found = $this->get('get/domain-admin/domainadmin1', ['script' => [self::answer('domain_admin', ['details', 'domainadmin1'], self::DETAILS)]]);
|
||||
$this->assertSame(self::DETAILS, $found->json());
|
||||
|
||||
$missing = $this->get('get/domain-admin/nobody', ['script' => [self::answer('domain_admin', ['details'], false)]]);
|
||||
$this->assertSame('{}', $missing->body);
|
||||
$this->assertSame([['details', 'nobody']], $missing->callsTo('domain_admin'));
|
||||
}
|
||||
|
||||
public function testAdd(): void
|
||||
{
|
||||
$attr = ['username' => 'domainadmin1', 'password' => 'Rand0m-Passw0rd!', 'password2' => 'Rand0m-Passw0rd!',
|
||||
'domains' => ['example.org', 'example.com'], 'active' => 1];
|
||||
|
||||
$result = $this->post('add/domain-admin', $attr);
|
||||
|
||||
$this->assertSame([['add', $attr]], $result->callsTo('domain_admin'));
|
||||
}
|
||||
|
||||
public function testEdit(): void
|
||||
{
|
||||
$result = $this->post('edit/domain-admin', ['items' => ['domainadmin1'], 'attr' => ['domains' => ['example.org'], 'disable_tfa' => 1]]);
|
||||
|
||||
$this->assertSame([['edit', ['username' => ['domainadmin1'], 'domains' => ['example.org'], 'disable_tfa' => 1]]], $result->callsTo('domain_admin'));
|
||||
}
|
||||
|
||||
public function testDelete(): void
|
||||
{
|
||||
$result = $this->post('delete/domain-admin', ['domainadmin1', 'domainadmin2']);
|
||||
|
||||
$this->assertSame([['delete', ['username' => ['domainadmin1', 'domainadmin2']]]], $result->callsTo('domain_admin'));
|
||||
}
|
||||
|
||||
public function testEditAcl(): void
|
||||
{
|
||||
$messages = [self::message('success', ['acl_saved', 'domainadmin1'])];
|
||||
|
||||
$result = $this->post('edit/da-acl', ['items' => 'domainadmin1', 'attr' => ['da_acl' => ['syncjobs', 'quarantine']]],
|
||||
['script' => [self::answer('acl', ['edit', 'domainadmin'], null, $messages)]]);
|
||||
|
||||
$this->assertSame([['edit', 'domainadmin', ['username' => ['domainadmin1'], 'da_acl' => ['syncjobs', 'quarantine']]]], $result->callsTo('acl'));
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testSsoTokenIsTheAnswer(): void
|
||||
{
|
||||
$token = ['token' => '591F6D-5C3DD2-7455CD-DAF1C1-AA4FCC'];
|
||||
|
||||
$result = $this->post('add/sso/domain-admin', ['username' => 'domainadmin1'],
|
||||
['script' => [self::answer('domain_admin_sso', ['issue'], $token)]]);
|
||||
|
||||
$this->assertSame([['issue', ['username' => 'domainadmin1']]], $result->callsTo('domain_admin_sso'));
|
||||
$this->assertSame($token, $result->json());
|
||||
}
|
||||
|
||||
public function testSsoTokenFailureAnswersTheMessages(): void
|
||||
{
|
||||
$messages = [self::message('danger', ['object_doesnt_exist', 'nobody'])];
|
||||
|
||||
$failed = $this->post('add/sso/domain-admin', ['username' => 'nobody'],
|
||||
['script' => [self::answer('domain_admin_sso', ['issue'], false, $messages)]]);
|
||||
$this->assertSame($messages, $failed->json());
|
||||
|
||||
$silent = $this->post('add/sso/domain-admin', ['username' => 'nobody'],
|
||||
['script' => [self::answer('domain_admin_sso', ['issue'], false)]]);
|
||||
$this->assertSame(['type' => 'error', 'msg' => 'Cannot add item'], $silent->json());
|
||||
}
|
||||
|
||||
public function testSsoForOtherObjectsAnswersNothing(): void
|
||||
{
|
||||
$result = $this->post('add/sso/mailbox', ['username' => 'user@example.org']);
|
||||
|
||||
$this->assertSame([200, ''], [$result->status, $result->body]);
|
||||
$this->assertNotCalled($result, 'domain_admin_sso');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Admin;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
|
||||
/** Routes logs/<type>[/<count>] */
|
||||
class LogRoutesTest extends ApiTestCase
|
||||
{
|
||||
/** @return array<string, array{0: string, 1: string}> route type => log name of get_logs() */
|
||||
public static function logs(): array
|
||||
{
|
||||
return [
|
||||
'dovecot' => ['dovecot', 'dovecot-mailcow'],
|
||||
'ratelimited' => ['ratelimited', 'ratelimited'],
|
||||
'netfilter' => ['netfilter', 'netfilter-mailcow'],
|
||||
'cron' => ['cron', 'cron-mailcow'],
|
||||
'postfix' => ['postfix', 'postfix-mailcow'],
|
||||
'autodiscover' => ['autodiscover', 'autodiscover-mailcow'],
|
||||
'sogo' => ['sogo', 'sogo-mailcow'],
|
||||
'ui' => ['ui', 'mailcow-ui'],
|
||||
'sasl' => ['sasl', 'sasl'],
|
||||
'watchdog' => ['watchdog', 'watchdog-mailcow'],
|
||||
'acme' => ['acme', 'acme-mailcow'],
|
||||
'api' => ['api', 'api-mailcow'],
|
||||
'rspamd-history' => ['rspamd-history', 'rspamd-history'],
|
||||
];
|
||||
}
|
||||
|
||||
#[DataProvider('logs')]
|
||||
public function testWithoutCount(string $type, string $log): void
|
||||
{
|
||||
$entries = [['time' => '1794308452', 'message' => 'first'], ['time' => '1794308451', 'message' => 'second']];
|
||||
|
||||
$result = $this->get("get/logs/$type", ['script' => [self::answer('get_logs', [$log], $entries)]]);
|
||||
|
||||
$this->assertSame([[$log]], $result->callsTo('get_logs'));
|
||||
$this->assertSame($entries, $result->json());
|
||||
}
|
||||
|
||||
#[DataProvider('logs')]
|
||||
public function testCountOrRange(string $type, string $log): void
|
||||
{
|
||||
$this->assertSame([[$log, '50']], $this->get("get/logs/$type/50")->callsTo('get_logs'));
|
||||
$this->assertSame([[$log, '2-3']], $this->get("get/logs/$type/2-3")->callsTo('get_logs'));
|
||||
}
|
||||
|
||||
#[DataProvider('logs')]
|
||||
public function testEmptyLogs(string $type, string $log): void
|
||||
{
|
||||
$this->assertSame('{}', $this->get("get/logs/$type/5", ['script' => [self::answer('get_logs', [$log], false)]])->body);
|
||||
$this->assertSame('{}', $this->get("get/logs/$type", ['script' => [self::answer('get_logs', [$log], [])]])->body);
|
||||
}
|
||||
|
||||
public function testCountKeepsOnlyDigitsAndDashes(): void
|
||||
{
|
||||
$this->assertSame([['postfix-mailcow', '12-30']], $this->get('get/logs/postfix/a12-3x0')->callsTo('get_logs'));
|
||||
}
|
||||
|
||||
public function testTrailingSlashPassesAnEmptyCount(): void
|
||||
{
|
||||
$this->assertSame([['postfix-mailcow', '']], $this->get('get/logs/postfix/')->callsTo('get_logs'));
|
||||
}
|
||||
|
||||
public function testRspamdStatsIgnoresTheCount(): void
|
||||
{
|
||||
$stats = ['version' => '3.12.1', 'scanned' => 300, 'actions' => ['reject' => 38]];
|
||||
|
||||
$result = $this->get('get/logs/rspamd-stats/10', ['script' => [self::answer('get_logs', ['rspamd-stats'], $stats)]]);
|
||||
|
||||
$this->assertSame([['rspamd-stats']], $result->callsTo('get_logs'));
|
||||
$this->assertSame($stats, $result->json());
|
||||
}
|
||||
|
||||
public function testUnknownLog(): void
|
||||
{
|
||||
$this->assertApiError($this->get('get/logs/clamd'), 404, 'route not found');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Admin;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Routes oauth2-client */
|
||||
class OAuth2ClientRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const CLIENT = ['id' => 1, 'client_id' => '17c76aaa88c0', 'client_secret' => '73fc668a88147e32a31ff80c',
|
||||
'redirect_uri' => 'https://app.example.org/oauth/callback', 'grant_types' => null, 'scope' => 'profile', 'user_id' => null];
|
||||
|
||||
public function testGetAllCollectsTheDetailsOfEveryClient(): void
|
||||
{
|
||||
$result = $this->get('get/oauth2-client/all', ['script' => [
|
||||
self::answer('oauth2', ['get', 'clients'], [1, 2]),
|
||||
self::answer('oauth2', ['details', 'client', 1], self::CLIENT),
|
||||
self::answer('oauth2', ['details', 'client', 2], false),
|
||||
]]);
|
||||
|
||||
$this->assertSame([self::CLIENT], $result->json());
|
||||
$this->assertSame([['get', 'clients'], ['details', 'client', 1], ['details', 'client', 2]], $result->callsTo('oauth2'));
|
||||
}
|
||||
|
||||
public function testGetAllWithoutClients(): void
|
||||
{
|
||||
$this->assertSame('{}', $this->get('get/oauth2-client/all', ['script' => [self::answer('oauth2', ['get', 'clients'], null)]])->body);
|
||||
}
|
||||
|
||||
public function testGetOne(): void
|
||||
{
|
||||
$found = $this->get('get/oauth2-client/1', ['script' => [self::answer('oauth2', ['details', 'client', '1'], self::CLIENT)]]);
|
||||
$this->assertSame(self::CLIENT, $found->json());
|
||||
|
||||
$missing = $this->get('get/oauth2-client/9', ['script' => [self::answer('oauth2', ['details'], false)]]);
|
||||
$this->assertSame('{}', $missing->body);
|
||||
$this->assertSame([['details', 'client', '9']], $missing->callsTo('oauth2'));
|
||||
}
|
||||
|
||||
public function testAdd(): void
|
||||
{
|
||||
$result = $this->post('add/oauth2-client', ['redirect_uri' => 'https://app.example.org/oauth/callback']);
|
||||
|
||||
$this->assertSame([['add', 'client', ['redirect_uri' => 'https://app.example.org/oauth/callback']]], $result->callsTo('oauth2'));
|
||||
}
|
||||
|
||||
public function testEdit(): void
|
||||
{
|
||||
$result = $this->post('edit/oauth2-client', ['items' => [1, 2], 'attr' => ['renew_secret' => 1]]);
|
||||
|
||||
$this->assertSame([['edit', 'client', ['id' => [1, 2], 'renew_secret' => 1]]], $result->callsTo('oauth2'));
|
||||
}
|
||||
|
||||
public function testDelete(): void
|
||||
{
|
||||
$result = $this->post('delete/oauth2-client', [1, 2]);
|
||||
|
||||
$this->assertSame([['delete', 'client', ['id' => [1, 2]]]], $result->callsTo('oauth2'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Admin;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Routes self and fido2-fn act on the account of the session; the pending password update of a login */
|
||||
class OwnAccountRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const PASSWORDS = ['user_old_pass' => 'old', 'user_new_pass' => 'N3w-Passw0rd!', 'user_new_pass2' => 'N3w-Passw0rd!'];
|
||||
|
||||
public function testSelfDoesNothingForAnApiKey(): void
|
||||
{
|
||||
$result = $this->post('edit/self', ['attr' => self::PASSWORDS]);
|
||||
|
||||
$this->assertSame([200, ''], [$result->status, $result->body]);
|
||||
$this->assertNotCalled($result, 'domain_admin');
|
||||
$this->assertNotCalled($result, 'edit_user_account');
|
||||
}
|
||||
|
||||
public function testSelfOfADomainAdmin(): void
|
||||
{
|
||||
$result = $this->post('edit/self', ['attr' => self::PASSWORDS], ['session' => self::DOMAIN_ADMIN]);
|
||||
|
||||
$this->assertSame([['edit', self::PASSWORDS]], $result->callsTo('domain_admin'));
|
||||
}
|
||||
|
||||
public function testSelfOfAMailboxUser(): void
|
||||
{
|
||||
$result = $this->post('edit/self', ['attr' => self::PASSWORDS], ['session' => self::USER]);
|
||||
|
||||
$this->assertSame([[self::PASSWORDS]], $result->callsTo('edit_user_account'));
|
||||
}
|
||||
|
||||
public function testFido2FriendlyName(): void
|
||||
{
|
||||
$attr = ['fido2_cid' => hash('sha256', 'credential'), 'fido2_fn' => 'YubiKey'];
|
||||
|
||||
$result = $this->post('edit/fido2-fn', ['attr' => $attr]);
|
||||
|
||||
$this->assertSame([[['action' => 'edit_fn', 'fido2_attrs' => $attr]]], $result->callsTo('fido2'));
|
||||
}
|
||||
|
||||
public function testPendingPasswordUpdateAllowsOnlyThePasswordRoutes(): void
|
||||
{
|
||||
$session = self::ADMIN + ['pending_pw_update' => true];
|
||||
|
||||
$this->assertCalled($this->post('edit/admin', ['items' => 'admin', 'attr' => ['password' => 'x', 'password2' => 'x']], ['session' => $session]),
|
||||
'admin', ['edit', ['username' => ['admin'], 'password' => 'x', 'password2' => 'x']]);
|
||||
$this->assertCalled($this->get('get/passwordpolicy', ['session' => $session]), 'password_complexity', ['get']);
|
||||
|
||||
$denied = $this->post('edit/domain-admin', ['items' => 'domainadmin1', 'attr' => ['active' => 0]], ['session' => $session]);
|
||||
$this->assertApiError($denied, 403, 'API access denied until the pending account setup is finished');
|
||||
$this->assertNotCalled($denied, 'domain_admin');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Admin;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
|
||||
/** Routes passwordpolicy, reset-password-notification, the UI customization routes and cors */
|
||||
class SettingsRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const POLICY = ['length' => '8', 'chars' => '1', 'special_chars' => '0', 'lowerupper' => '1', 'numbers' => '1'];
|
||||
|
||||
public function testGetPasswordPolicy(): void
|
||||
{
|
||||
foreach (['get/passwordpolicy', 'get/passwordpolicy/all'] as $route) {
|
||||
$result = $this->get($route, ['script' => [self::answer('password_complexity', ['get'], self::POLICY)]]);
|
||||
$this->assertSame([['get']], $result->callsTo('password_complexity'), $route);
|
||||
$this->assertSame(self::POLICY, $result->json(), $route);
|
||||
}
|
||||
}
|
||||
|
||||
public function testGetPasswordPolicyAsHtml(): void
|
||||
{
|
||||
$html = '<p class="help-block small">- Minimum password length is 8</p>';
|
||||
|
||||
$result = $this->get('get/passwordpolicy/html', ['script' => [self::answer('password_complexity', ['html'], $html)]]);
|
||||
|
||||
$this->assertSame([['html']], $result->callsTo('password_complexity'));
|
||||
$this->assertSame($html, $result->json());
|
||||
}
|
||||
|
||||
public function testGetPasswordPolicyFailure(): void
|
||||
{
|
||||
$this->assertSame('{}', $this->get('get/passwordpolicy', ['script' => [self::answer('password_complexity', ['get'], false)]])->body);
|
||||
$this->assertSame('{}', $this->get('get/passwordpolicy/html', ['script' => [self::answer('password_complexity', ['html'], false)]])->body);
|
||||
}
|
||||
|
||||
public function testEditPasswordPolicyIgnoresItems(): void
|
||||
{
|
||||
$result = $this->post('edit/passwordpolicy', ['items' => ['x'], 'attr' => ['length' => 12, 'numbers' => 1]]);
|
||||
|
||||
$this->assertSame([['edit', ['length' => 12, 'numbers' => 1]]], $result->callsTo('password_complexity'));
|
||||
}
|
||||
|
||||
public function testEditPasswordResetNotification(): void
|
||||
{
|
||||
$attr = ['from' => 'noreply@example.org', 'subject' => 'Reset your password', 'text_tmpl' => '{{link}}', 'html_tmpl' => ''];
|
||||
|
||||
$result = $this->post('edit/reset-password-notification', ['attr' => $attr]);
|
||||
|
||||
$this->assertSame([['edit_notification', $attr]], $result->callsTo('reset_password'));
|
||||
}
|
||||
|
||||
/** @return array<string, array{0: string, 1: array}> */
|
||||
public static function customizations(): array
|
||||
{
|
||||
return [
|
||||
'ui_texts' => ['ui_texts', ['title_name' => 'Example Mail', 'ui_announcement_type' => 'warning', 'ui_announcement_active' => 1]],
|
||||
'ip_check' => ['ip_check', ['ip_check_opt_in' => '1']],
|
||||
'custom_login' => ['custom_login', ['hide_admin_quicklink' => 1, 'force_sso' => 0]],
|
||||
'ui_theme' => ['ui_theme', ['ui_theme' => 'servercow']],
|
||||
'app_links' => ['app_links', ['app' => ['Wiki'], 'href' => ['https://wiki.example.org'], 'user_href' => [''], 'hide' => ['0']]],
|
||||
];
|
||||
}
|
||||
|
||||
#[DataProvider('customizations')]
|
||||
public function testCustomizationsPassAttrOnly(string $item, array $attr): void
|
||||
{
|
||||
$messages = [self::message('success', $item === 'ip_check' ? 'ip_check_opt_in_modified' : $item)];
|
||||
|
||||
$result = $this->post("edit/$item", ['items' => ['ignored'], 'attr' => $attr], ['script' => [self::answer('customize', ['edit', $item], null, $messages)]]);
|
||||
|
||||
$this->assertSame([['edit', $item, $attr]], $result->callsTo('customize'));
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testCustomizationWithoutAttrPassesNothing(): void
|
||||
{
|
||||
$result = $this->post('edit/app_links', ['items' => []]);
|
||||
|
||||
$this->assertSame([['edit', 'app_links', []]], $result->callsTo('customize'));
|
||||
}
|
||||
|
||||
public function testEditCors(): void
|
||||
{
|
||||
$attr = ['allowed_origins' => ['https://app.example.org'], 'allowed_methods' => ['GET', 'POST']];
|
||||
|
||||
$result = $this->post('edit/cors', ['attr' => $attr]);
|
||||
|
||||
$this->assertSame([['set_headers'], ['edit', $attr]], $result->callsTo('cors'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Admin;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Routes status/<object> */
|
||||
class StatusRoutesTest extends ApiTestCase
|
||||
{
|
||||
public function testContainersAreReducedToStateStartAndImage(): void
|
||||
{
|
||||
$info = [
|
||||
'dovecot-mailcow' => ['State' => ['Status' => 'running', 'StartedAt' => '2026-11-10T11:00:51.541059812Z', 'Pid' => 42],
|
||||
'Config' => ['Image' => 'ghcr.io/mailcow/dovecot:2.3.21.1-4', 'Hostname' => 'dovecot'], 'Id' => '5d0f3cbb2a6e'],
|
||||
'ofelia-mailcow' => ['State' => ['Status' => 'exited', 'StartedAt' => '2026-11-09T08:00:00Z'],
|
||||
'Config' => ['Image' => 'mcuadros/ofelia:latest'], 'Id' => '77aa01'],
|
||||
];
|
||||
|
||||
$result = $this->get('get/status/containers', ['script' => [self::answer('docker', ['info'], $info)]]);
|
||||
|
||||
$this->assertSame([['info']], $result->callsTo('docker'));
|
||||
$this->assertSame([
|
||||
'dovecot-mailcow' => ['type' => 'info', 'container' => 'dovecot-mailcow', 'state' => 'running',
|
||||
'started_at' => '2026-11-10T11:00:51.541059812Z', 'image' => 'ghcr.io/mailcow/dovecot:2.3.21.1-4'],
|
||||
'ofelia-mailcow' => ['type' => 'info', 'container' => 'ofelia-mailcow', 'state' => 'exited',
|
||||
'started_at' => '2026-11-09T08:00:00Z', 'image' => 'mcuadros/ofelia:latest'],
|
||||
], $result->json());
|
||||
$this->assertStringContainsString('"ghcr.io/mailcow/dovecot', $result->body);
|
||||
}
|
||||
|
||||
public function testContainersWithoutDockerapi(): void
|
||||
{
|
||||
$result = $this->get('get/status/containers', ['script' => [self::answer('docker', ['info'], 'Could not resolve host: dockerapi')]]);
|
||||
|
||||
$this->assertSame('null', $result->body);
|
||||
}
|
||||
|
||||
public function testContainerStatsByContainerId(): void
|
||||
{
|
||||
$stats = [['read' => '2026-11-10T19:20:01Z', 'pids_stats' => ['current' => 38]], ['read' => '2026-11-10T19:20:06Z', 'pids_stats' => ['current' => 39]]];
|
||||
|
||||
$result = $this->get('get/status/container/5d0f3cbb2a6e', ['script' => [self::answer('docker', ['container_stats'], $stats)]]);
|
||||
|
||||
$this->assertSame([['container_stats', '5d0f3cbb2a6e']], $result->callsTo('docker'));
|
||||
$this->assertSame($stats, $result->json());
|
||||
}
|
||||
|
||||
public function testContainerStatsWithoutId(): void
|
||||
{
|
||||
$result = $this->get('get/status/container', ['script' => [self::answer('docker', ['container_stats'], false)]]);
|
||||
|
||||
$this->assertSame([['container_stats', null]], $result->callsTo('docker'));
|
||||
$this->assertSame('false', $result->body);
|
||||
}
|
||||
|
||||
public function testVmailSplitsTheDfLine(): void
|
||||
{
|
||||
$df = json_encode('/dev/sda1,105G,65G,40G,66%,/var/vmail');
|
||||
|
||||
$result = $this->get('get/status/vmail', ['script' => [self::answer('docker', ['post', 'dovecot-mailcow', 'exec'], $df)]]);
|
||||
|
||||
$this->assertSame([['post', 'dovecot-mailcow', 'exec', ['cmd' => 'system', 'task' => 'df', 'dir' => '/var/vmail']]], $result->callsTo('docker'));
|
||||
$this->assertSame(['type' => 'info', 'disk' => '/dev/sda1', 'used' => '65G', 'total' => '105G', 'used_percent' => '66%'], $result->json());
|
||||
}
|
||||
|
||||
public function testHost(): void
|
||||
{
|
||||
$stats = ['cpu' => ['cores' => 4, 'usage' => 6], 'memory' => ['total' => 12541669376, 'usage' => 62.5], 'uptime' => 703800.5,
|
||||
'system_time' => '10.11.2026 19:13:07', 'architecture' => 'x86_64'];
|
||||
|
||||
$result = $this->get('get/status/host', ['script' => [self::answer('docker', ['host_stats'], $stats)]]);
|
||||
|
||||
$this->assertSame([['host_stats']], $result->callsTo('docker'));
|
||||
$this->assertSame($stats, $result->json());
|
||||
}
|
||||
|
||||
public function testPublicAddressesAskMailcowEmail(): void
|
||||
{
|
||||
$result = $this->get('get/status/host/ip', ['script' => [
|
||||
self::answer('curl_exec', [], '198.51.100.7', once: true),
|
||||
self::answer('curl_exec', [], '2001:db8::7', once: true),
|
||||
]]);
|
||||
|
||||
$this->assertSame([[null, CURLOPT_URL, 'http://ipv4.mailcow.email'], [null, CURLOPT_URL, 'http://ipv6.mailcow.email']],
|
||||
array_values(array_filter($result->callsTo('curl_setopt'), fn(array $args): bool => $args[1] === CURLOPT_URL)));
|
||||
$this->assertSame(['ipv4' => '198.51.100.7', 'ipv6' => '2001:db8::7'], $result->json());
|
||||
}
|
||||
|
||||
public function testHostWithAnotherSegmentAnswersNothing(): void
|
||||
{
|
||||
$result = $this->get('get/status/host/cpu');
|
||||
|
||||
$this->assertSame([200, ''], [$result->status, $result->body]);
|
||||
$this->assertNotCalled($result, 'docker');
|
||||
}
|
||||
|
||||
public function testVersion(): void
|
||||
{
|
||||
// $MAILCOW_GIT_VERSION comes from app_info.inc.php, which the harness does not load
|
||||
$this->assertSame(['version' => null], $this->get('get/status/version')->json());
|
||||
}
|
||||
|
||||
public function testUnknownStatusAnswersNothing(): void
|
||||
{
|
||||
$result = $this->get('get/status/disks');
|
||||
|
||||
$this->assertSame([200, ''], [$result->status, $result->body]);
|
||||
}
|
||||
|
||||
public function testOnlyForAdmins(): void
|
||||
{
|
||||
foreach (['containers', 'vmail', 'host', 'version'] as $object) {
|
||||
$result = $this->get("get/status/$object", ['session' => self::DOMAIN_ADMIN]);
|
||||
$this->assertSame([200, ''], [$result->status, $result->body], $object);
|
||||
$this->assertNotCalled($result, 'docker');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api;
|
||||
|
||||
/** What json_api.php did for one request of ApiTestCase: status, output and the calls it made */
|
||||
final class ApiResult
|
||||
{
|
||||
/**
|
||||
* @param list<array{0: string, 1: array}> $calls function or method name and arguments, in call order
|
||||
*/
|
||||
public function __construct(
|
||||
public readonly int $status,
|
||||
public readonly string $body,
|
||||
public readonly array $calls,
|
||||
public readonly ?array $sessionReturn,
|
||||
public readonly ?string $error
|
||||
) {
|
||||
}
|
||||
|
||||
/** The decoded output, null if it is no JSON */
|
||||
public function json(): mixed
|
||||
{
|
||||
return json_decode($this->body, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* The arguments of every call of $name, e.g. 'mailbox' or 'Mailcow\ApiKey\ApiKeyModule->api->addKey'
|
||||
*
|
||||
* @return list<array>
|
||||
*/
|
||||
public function callsTo(string $name): array
|
||||
{
|
||||
return array_values(array_map(fn(array $call): array => $call[1], array_filter($this->calls, fn(array $call): bool => $call[0] === $name)));
|
||||
}
|
||||
|
||||
/** Names of the calls, without the API log of every request (redis->lPush) */
|
||||
public function callNames(): array
|
||||
{
|
||||
return array_values(array_filter(array_column($this->calls, 0), fn(string $name): bool => $name !== 'redis->lPush'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Runs requests through the real data/web/json_api.php in a process of its own (Harness/runner.php). The legacy
|
||||
* functions (mailbox(), bcc(), ...) and the module classes it calls are recorders: a test checks the HTTP behaviour of
|
||||
* a route and which backend call it makes with which arguments, not the backend itself.
|
||||
*
|
||||
* $result = $this->post('add/alias', ['address' => 'a@example.org', 'goto' => 'b@example.org']);
|
||||
* $this->assertCalled($result, 'mailbox', ['add', 'alias', ['address' => 'a@example.org', 'goto' => 'b@example.org']]);
|
||||
*
|
||||
* Backend answers are scripted with self::answer(); a call without one returns null (module chains like
|
||||
* Module::fromGlobals()->api->x() resolve to recorders).
|
||||
*/
|
||||
abstract class ApiTestCase extends TestCase
|
||||
{
|
||||
/** Session of a read/write API key (sessions.inc.php logs it in as the admin "API") */
|
||||
protected const API_RW = ['mailcow_cc_username' => 'API', 'mailcow_cc_role' => 'admin', 'mailcow_cc_api' => true, 'mailcow_cc_api_access' => 'rw'];
|
||||
/** Session of a read-only API key */
|
||||
protected const API_RO = ['mailcow_cc_username' => 'API', 'mailcow_cc_role' => 'admin', 'mailcow_cc_api' => true, 'mailcow_cc_api_access' => 'ro'];
|
||||
/** UI sessions */
|
||||
protected const ADMIN = ['mailcow_cc_username' => 'admin', 'mailcow_cc_role' => 'admin'];
|
||||
protected const DOMAIN_ADMIN = ['mailcow_cc_username' => 'domainadmin', 'mailcow_cc_role' => 'domainadmin'];
|
||||
protected const USER = ['mailcow_cc_username' => 'user@example.org', 'mailcow_cc_role' => 'user'];
|
||||
protected const NO_SESSION = [];
|
||||
|
||||
private const JSON_API = __DIR__ . '/../../../data/web/json_api.php';
|
||||
/** PHP functions with outside effects that json_api.php calls directly: disabled, so the harness records them */
|
||||
private const DISABLED = ['curl_init', 'curl_setopt', 'curl_setopt_array', 'curl_exec', 'curl_close', 'curl_error', 'curl_errno', 'curl_getinfo'];
|
||||
|
||||
/**
|
||||
* One scripted backend answer: the first call of $call whose arguments start with $args returns $return and
|
||||
* appends $messages to $_SESSION['return'] (what the legacy functions do), $once makes it answer one call only.
|
||||
*/
|
||||
protected static function answer(string $call, array $args = [], mixed $return = null, array $messages = [], bool $once = false): array
|
||||
{
|
||||
return ['call' => $call, 'args' => $args, 'return' => $return, 'messages' => $messages, 'once' => $once];
|
||||
}
|
||||
|
||||
/** A mailcow message as the legacy functions put it into $_SESSION['return'] */
|
||||
protected static function message(string $type, string|array $msg, array $log = []): array
|
||||
{
|
||||
return ['type' => $type, 'log' => $log, 'msg' => $msg];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array{session?: array, script?: list<array>, server?: array, query?: array} $options
|
||||
*/
|
||||
protected function get(string $route, array $options = []): ApiResult
|
||||
{
|
||||
return $this->request('GET', $route, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST with a JSON body (any value; a string is sent as it is), as API clients send it
|
||||
*
|
||||
* @param array{session?: array, script?: list<array>, server?: array, query?: array, content_type?: string} $options
|
||||
*/
|
||||
protected function post(string $route, mixed $json = null, array $options = []): ApiResult
|
||||
{
|
||||
if ($json !== null) {
|
||||
$options['body'] = is_string($json) ? $json : json_encode($json);
|
||||
$options['content_type'] ??= 'application/json';
|
||||
}
|
||||
return $this->request('POST', $route, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* POST with form fields (attr, items as JSON strings), as the mailcow UI sends it
|
||||
*
|
||||
* @param array<string, string> $fields
|
||||
*/
|
||||
protected function postForm(string $route, array $fields, array $options = []): ApiResult
|
||||
{
|
||||
$options['post'] = $fields;
|
||||
$options['content_type'] ??= 'application/x-www-form-urlencoded';
|
||||
return $this->request('POST', $route, $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $route the part after /api/v1/, e.g. "get/domain/all"
|
||||
* @param array{session?: array, script?: list<array>, server?: array, query?: array, post?: array, body?: string,
|
||||
* content_type?: string, globals?: array, allow_error?: bool} $options globals: variables prerequisites.inc.php
|
||||
* would set (e.g. iam_settings)
|
||||
*/
|
||||
protected function request(string $method, string $route, array $options = []): ApiResult
|
||||
{
|
||||
$dir = sys_get_temp_dir();
|
||||
$requestFile = tempnam($dir, 'api-req-');
|
||||
$resultFile = tempnam($dir, 'api-res-');
|
||||
try {
|
||||
file_put_contents($requestFile, json_encode([
|
||||
'json_api' => realpath(self::JSON_API),
|
||||
'method' => $method,
|
||||
'query' => ltrim(preg_replace('#^/?api/v1/#', '', $route), '/'),
|
||||
'get' => $options['query'] ?? [],
|
||||
'post' => $options['post'] ?? [],
|
||||
'body' => $options['body'] ?? null,
|
||||
'content_type' => $options['content_type'] ?? null,
|
||||
'server' => $options['server'] ?? [],
|
||||
'session' => $options['session'] ?? self::API_RW,
|
||||
'script' => $options['script'] ?? [],
|
||||
'globals' => $options['globals'] ?? [],
|
||||
'result' => $resultFile,
|
||||
], JSON_THROW_ON_ERROR));
|
||||
$process = proc_open([PHP_BINARY, '-d', 'display_errors=stderr', '-d', 'disable_functions=' . implode(',', self::DISABLED),
|
||||
__DIR__ . '/Harness/runner.php', $requestFile],
|
||||
[0 => ['file', '/dev/null', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w']], $pipes);
|
||||
$stdout = stream_get_contents($pipes[1]);
|
||||
$stderr = stream_get_contents($pipes[2]);
|
||||
fclose($pipes[1]);
|
||||
fclose($pipes[2]);
|
||||
proc_close($process);
|
||||
$data = json_decode((string)file_get_contents($resultFile), true);
|
||||
$this->assertIsArray($data, "the harness wrote no result for $method $route:\n$stdout$stderr");
|
||||
} finally {
|
||||
@unlink($requestFile);
|
||||
@unlink($resultFile);
|
||||
}
|
||||
$result = new ApiResult((int)$data['status'], (string)$data['body'], $data['calls'], $data['session_return'], $data['error']);
|
||||
if (empty($options['allow_error'])) {
|
||||
$this->assertNull($result->error, "json_api.php failed for $method $route");
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/** At least one call of $name had exactly $args */
|
||||
protected function assertCalled(ApiResult $result, string $name, array $args): void
|
||||
{
|
||||
$this->assertContains($args, $result->callsTo($name),
|
||||
"no call $name(" . json_encode($args) . "), calls were:\n" . json_encode($result->calls, JSON_PRETTY_PRINT));
|
||||
}
|
||||
|
||||
/** $name was not called at all */
|
||||
protected function assertNotCalled(ApiResult $result, string $name): void
|
||||
{
|
||||
$this->assertSame([], $result->callsTo($name), "unexpected call of $name");
|
||||
}
|
||||
|
||||
/** The JSON answer json_api.php gives without calling a backend, e.g. 404 route not found */
|
||||
protected function assertApiError(ApiResult $result, int $status, string $msg): void
|
||||
{
|
||||
$this->assertSame([$status, ['type' => 'error', 'msg' => $msg]], [$result->status, $result->json()], $result->body);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Domains;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** get/add/edit/delete alias-domain */
|
||||
class AliasDomainTest extends ApiTestCase
|
||||
{
|
||||
public function testAllAliasDomainsAreReadOneByOne(): void
|
||||
{
|
||||
$result = $this->get('get/alias-domain/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'alias_domains'], ['example.net', 'example.com']),
|
||||
self::answer('mailbox', ['get', 'alias_domain_details', 'example.net'], ['alias_domain' => 'example.net', 'target_domain' => 'example.org']),
|
||||
self::answer('mailbox', ['get', 'alias_domain_details', 'example.com'], false),
|
||||
]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'alias_domains']);
|
||||
$this->assertSame([['alias_domain' => 'example.net', 'target_domain' => 'example.org']], $result->json());
|
||||
}
|
||||
|
||||
public function testAllAliasDomainsWithoutAliasDomains(): void
|
||||
{
|
||||
$result = $this->get('get/alias-domain/all', ['script' => [self::answer('mailbox', ['get', 'alias_domains'], [])]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
$this->assertSame([['get', 'alias_domains']], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testOneAliasDomain(): void
|
||||
{
|
||||
$result = $this->get('get/alias-domain/example.net', ['script' => [
|
||||
self::answer('mailbox', ['get', 'alias_domain_details', 'example.net'], ['alias_domain' => 'example.net', 'rl' => false]),
|
||||
]]);
|
||||
|
||||
$this->assertSame(['alias_domain' => 'example.net', 'rl' => false], $result->json());
|
||||
}
|
||||
|
||||
public function testUnknownAliasDomain(): void
|
||||
{
|
||||
$result = $this->get('get/alias-domain/example.com', ['script' => [self::answer('mailbox', ['get', 'alias_domain_details'], false)]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'alias_domain_details', 'example.com']);
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testAddAliasDomains(): void
|
||||
{
|
||||
$attr = ['alias_domain' => "example.net\nexample.com", 'target_domain' => 'example.org', 'active' => '1', 'key_size' => '2048', 'dkim_selector' => 'dkim'];
|
||||
|
||||
$result = $this->post('add/alias-domain', $attr);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['add', 'alias_domain', $attr]);
|
||||
}
|
||||
|
||||
public function testEditAliasDomains(): void
|
||||
{
|
||||
$result = $this->post('edit/alias-domain', ['items' => ['example.net', 'example.com'], 'attr' => ['active' => '0']]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'alias_domain', ['alias_domain' => ['example.net', 'example.com'], 'active' => '0']]);
|
||||
}
|
||||
|
||||
public function testDeleteAliasDomains(): void
|
||||
{
|
||||
$result = $this->post('delete/alias-domain', ['example.net']);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['delete', 'alias_domain', ['alias_domain' => ['example.net']]]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Domains;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** get/dkim, add/dkim, add/dkim_duplicate, add/dkim_import, delete/dkim */
|
||||
class DkimTest extends ApiTestCase
|
||||
{
|
||||
public function testDkimKeyOfADomain(): void
|
||||
{
|
||||
$key = ['pubkey' => 'MIIBIjAN', 'length' => '2048', 'dkim_txt' => 'v=DKIM1;k=rsa;t=s;s=email;p=MIIBIjAN', 'dkim_selector' => 'dkim', 'privkey' => ''];
|
||||
|
||||
$result = $this->get('get/dkim/example.org', ['script' => [self::answer('dkim', ['details', 'example.org'], $key)]]);
|
||||
|
||||
$this->assertSame([['details', 'example.org']], $result->callsTo('dkim'));
|
||||
$this->assertSame($key, $result->json());
|
||||
}
|
||||
|
||||
public function testDomainWithoutKey(): void
|
||||
{
|
||||
$result = $this->get('get/dkim/example.com', ['script' => [self::answer('dkim', ['details'], [])]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testGenerateKeys(): void
|
||||
{
|
||||
$attr = ['domains' => 'example.org, example.net', 'dkim_selector' => 'dkim', 'key_size' => 2048];
|
||||
|
||||
$result = $this->post('add/dkim', $attr);
|
||||
|
||||
$this->assertSame([['add', $attr]], $result->callsTo('dkim'));
|
||||
}
|
||||
|
||||
public function testDuplicateKey(): void
|
||||
{
|
||||
$attr = ['from_domain' => 'example.org', 'to_domain' => ['example.net', 'example.com']];
|
||||
|
||||
$result = $this->post('add/dkim_duplicate', $attr);
|
||||
|
||||
$this->assertSame([['duplicate', $attr]], $result->callsTo('dkim'));
|
||||
}
|
||||
|
||||
public function testImportKey(): void
|
||||
{
|
||||
$attr = ['domain' => 'example.org', 'dkim_selector' => 'dkim2026', 'private_key_file' => "-----BEGIN PRIVATE KEY-----\nMIIE\n-----END PRIVATE KEY-----", 'overwrite_existing' => '1'];
|
||||
|
||||
$result = $this->post('add/dkim_import', $attr);
|
||||
|
||||
$this->assertSame([['import', $attr]], $result->callsTo('dkim'));
|
||||
}
|
||||
|
||||
public function testDeleteKeys(): void
|
||||
{
|
||||
$result = $this->post('delete/dkim', ['example.org', 'example.net']);
|
||||
|
||||
$this->assertSame([['delete', ['domains' => ['example.org', 'example.net']]]], $result->callsTo('dkim'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Domains;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** get/policy_wl_domain, get/policy_bl_domain, add/domain-policy, delete/domain-policy */
|
||||
class DomainPolicyTest extends ApiTestCase
|
||||
{
|
||||
private const LISTS = [
|
||||
'whitelist' => [['object' => 'example.org', 'value' => '*@partner.example.com', 'prefid' => 12]],
|
||||
'blacklist' => [['object' => 'anna@example.org', 'value' => '*@spam.example.com', 'prefid' => 13]],
|
||||
];
|
||||
|
||||
public function testAllowListOfADomain(): void
|
||||
{
|
||||
$result = $this->get('get/policy_wl_domain/example.org', ['script' => [self::answer('policy', ['get', 'domain', 'example.org'], self::LISTS)]]);
|
||||
|
||||
$this->assertSame([['get', 'domain', 'example.org']], $result->callsTo('policy'));
|
||||
$this->assertSame(self::LISTS['whitelist'], $result->json());
|
||||
}
|
||||
|
||||
public function testDenyListOfADomain(): void
|
||||
{
|
||||
$result = $this->get('get/policy_bl_domain/example.org', ['script' => [self::answer('policy', ['get', 'domain', 'example.org'], self::LISTS)]]);
|
||||
|
||||
$this->assertSame([['get', 'domain', 'example.org']], $result->callsTo('policy'));
|
||||
$this->assertSame(self::LISTS['blacklist'], $result->json());
|
||||
}
|
||||
|
||||
public function testEmptyListsAndUnknownDomains(): void
|
||||
{
|
||||
$empty = $this->get('get/policy_wl_domain/example.org', ['script' => [self::answer('policy', ['get', 'domain'], ['whitelist' => [], 'blacklist' => []])]]);
|
||||
$this->assertSame('{}', $empty->body);
|
||||
|
||||
$unknown = $this->get('get/policy_bl_domain/example.com', ['script' => [self::answer('policy', ['get', 'domain'], false)]]);
|
||||
$this->assertSame('{}', $unknown->body);
|
||||
}
|
||||
|
||||
public function testAddEntry(): void
|
||||
{
|
||||
$attr = ['domain' => 'example.org', 'object_list' => 'wl', 'object_from' => '*@partner.example.com'];
|
||||
|
||||
$result = $this->post('add/domain-policy', $attr);
|
||||
|
||||
$this->assertSame([['add', 'domain', $attr]], $result->callsTo('policy'));
|
||||
}
|
||||
|
||||
public function testDeleteEntries(): void
|
||||
{
|
||||
$result = $this->post('delete/domain-policy', [12, 13]);
|
||||
|
||||
$this->assertSame([['delete', 'domain', ['prefid' => [12, 13]]]], $result->callsTo('policy'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Domains;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** get/rl-domain, edit/rl-domain */
|
||||
class DomainRatelimitTest extends ApiTestCase
|
||||
{
|
||||
public function testRatelimitOfADomain(): void
|
||||
{
|
||||
$result = $this->get('get/rl-domain/example.org', ['script' => [self::answer('ratelimit', ['get', 'domain', 'example.org'], ['value' => '100', 'frame' => 'h'])]]);
|
||||
|
||||
$this->assertSame([['get', 'domain', 'example.org']], $result->callsTo('ratelimit'));
|
||||
$this->assertSame(['value' => '100', 'frame' => 'h'], $result->json());
|
||||
}
|
||||
|
||||
public function testDomainWithoutRatelimit(): void
|
||||
{
|
||||
$result = $this->get('get/rl-domain/example.org', ['script' => [self::answer('ratelimit', ['get', 'domain'], false)]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testAllRatelimitsOfDomainsAndAliasDomains(): void
|
||||
{
|
||||
$result = $this->get('get/rl-domain/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org', 'example.com']),
|
||||
self::answer('mailbox', ['get', 'alias_domains'], ['example.net']),
|
||||
self::answer('ratelimit', ['get', 'domain', 'example.org'], ['value' => '100', 'frame' => 'h']),
|
||||
self::answer('ratelimit', ['get', 'domain', 'example.com'], false),
|
||||
self::answer('ratelimit', ['get', 'domain', 'example.net'], ['value' => '10', 'frame' => 's']),
|
||||
]]);
|
||||
|
||||
$this->assertSame([['get', 'domains'], ['get', 'alias_domains']], $result->callsTo('mailbox'));
|
||||
$this->assertSame([['get', 'domain', 'example.org'], ['get', 'domain', 'example.com'], ['get', 'domain', 'example.net']], $result->callsTo('ratelimit'));
|
||||
$this->assertSame([
|
||||
['value' => '100', 'frame' => 'h', 'domain' => 'example.org'],
|
||||
['value' => '10', 'frame' => 's', 'domain' => 'example.net'],
|
||||
], $result->json());
|
||||
}
|
||||
|
||||
public function testAllWithoutRatelimits(): void
|
||||
{
|
||||
$none = $this->get('get/rl-domain/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org']),
|
||||
self::answer('mailbox', ['get', 'alias_domains'], []),
|
||||
self::answer('ratelimit', ['get', 'domain'], false),
|
||||
]]);
|
||||
$this->assertSame('{}', $none->body);
|
||||
|
||||
$noDomains = $this->get('get/rl-domain/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], []),
|
||||
self::answer('mailbox', ['get', 'alias_domains'], []),
|
||||
]]);
|
||||
$this->assertSame('{}', $noDomains->body);
|
||||
$this->assertNotCalled($noDomains, 'ratelimit');
|
||||
}
|
||||
|
||||
public function testSetRatelimits(): void
|
||||
{
|
||||
$result = $this->post('edit/rl-domain', ['items' => ['example.org', 'example.net'], 'attr' => ['rl_value' => 100, 'rl_frame' => 'h']]);
|
||||
|
||||
$this->assertSame([['edit', 'domain', ['object' => ['example.org', 'example.net'], 'rl_value' => 100, 'rl_frame' => 'h']]], $result->callsTo('ratelimit'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Domains;
|
||||
|
||||
use Mailcow\Tests\Api\ApiResult;
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** search/domain: DataTables server-side processing (SSP) of the domain table */
|
||||
class DomainSearchTest extends ApiTestCase
|
||||
{
|
||||
private const REQUEST = [
|
||||
'draw' => 3,
|
||||
'start' => 0,
|
||||
'length' => 10,
|
||||
'search' => ['value' => 'example'],
|
||||
'order' => [['column' => 2, 'dir' => 'asc']],
|
||||
'columns' => [
|
||||
['data' => '', 'searchable' => false, 'orderable' => false],
|
||||
['data' => 'chkbox', 'searchable' => false, 'orderable' => false],
|
||||
['data' => 'domain_h_name', 'searchable' => true, 'orderable' => true, 'search' => ['value' => '']],
|
||||
],
|
||||
];
|
||||
|
||||
private const PAGE = ['draw' => 3, 'recordsTotal' => 12, 'recordsFiltered' => 2, 'data' => [[2 => 'example.org'], [2 => 'example.com']]];
|
||||
|
||||
public function testAdminsSearchAllDomains(): void
|
||||
{
|
||||
$result = $this->post('search/domain', self::REQUEST, ['script' => [self::answer('SSP::simple', [], self::PAGE)]]);
|
||||
|
||||
$call = $this->sspCall($result, 'SSP::simple');
|
||||
$this->assertSame([self::REQUEST, '@pdo', ['domain', 'd'], 'domain'], array_slice($call, 0, 4));
|
||||
$this->assertSame([
|
||||
2 => 'domain', 3 => 'aliases', 4 => 'mailboxes', 5 => 'quota', 6 => 'stats', 7 => 'defquota', 8 => 'maxquota',
|
||||
10 => 'backupmx', 14 => 'tags', 15 => 'active',
|
||||
], array_column($call[4], 'db', 'dt'));
|
||||
$this->assertNotCalled($result, 'SSP::complex');
|
||||
}
|
||||
|
||||
public function testRowsAreReplacedByTheDomainDetails(): void
|
||||
{
|
||||
$result = $this->post('search/domain', self::REQUEST, ['script' => [
|
||||
self::answer('SSP::simple', [], self::PAGE),
|
||||
self::answer('mailbox', ['get', 'domain_details', 'example.org'], ['domain_name' => 'example.org']),
|
||||
self::answer('mailbox', ['get', 'domain_details', 'example.com'], false),
|
||||
]]);
|
||||
|
||||
$this->assertSame([['get', 'domain_details', 'example.org'], ['get', 'domain_details', 'example.com']], $result->callsTo('mailbox'));
|
||||
$this->assertSame(['draw' => 3, 'recordsTotal' => 12, 'recordsFiltered' => 2, 'data' => [['domain_name' => 'example.org']]], $result->json());
|
||||
}
|
||||
|
||||
public function testAnEmptyPageIsAnsweredAsItIs(): void
|
||||
{
|
||||
$page = ['draw' => 1, 'recordsTotal' => 12, 'recordsFiltered' => 0, 'data' => []];
|
||||
|
||||
$result = $this->post('search/domain', ['draw' => 1], ['script' => [self::answer('SSP::simple', [], $page)]]);
|
||||
|
||||
$this->assertSame($page, $result->json());
|
||||
$this->assertNotCalled($result, 'mailbox');
|
||||
}
|
||||
|
||||
public function testErrorsOfTheSearchArePassedOn(): void
|
||||
{
|
||||
$result = $this->post('search/domain', self::REQUEST, ['script' => [self::answer('SSP::simple', [], ['error' => 'An SQL error occurred: unknown column'])]]);
|
||||
|
||||
$this->assertSame(['error' => 'An SQL error occurred: unknown column'], $result->json());
|
||||
}
|
||||
|
||||
public function testReadOnlyKeysCanSearch(): void
|
||||
{
|
||||
$result = $this->post('search/domain', self::REQUEST, ['session' => self::API_RO, 'script' => [self::answer('SSP::simple', [], self::PAGE)]]);
|
||||
|
||||
$this->assertSame(200, $result->status);
|
||||
$this->assertSame(self::REQUEST, $this->sspCall($result, 'SSP::simple')[0]);
|
||||
}
|
||||
|
||||
public function testDomainAdminsSearchTheirDomains(): void
|
||||
{
|
||||
$result = $this->post('search/domain', self::REQUEST, ['session' => self::DOMAIN_ADMIN, 'script' => [self::answer('SSP::complex', [], self::PAGE)]]);
|
||||
|
||||
$call = $this->sspCall($result, 'SSP::complex');
|
||||
$this->assertSame([self::REQUEST, '@pdo', ['domain', 'd'], 'domain'], array_slice($call, 0, 4));
|
||||
$this->assertSame(['INNER JOIN domain_admins as da ON da.domain = d.domain', [
|
||||
'condition' => 'da.active = 1 and da.username = :username',
|
||||
'bindings' => ['username' => 'domainadmin'],
|
||||
]], array_slice($call, 5));
|
||||
$this->assertNotCalled($result, 'SSP::simple');
|
||||
}
|
||||
|
||||
public function testOtherLoginsAreRefused(): void
|
||||
{
|
||||
foreach ([self::USER, self::NO_SESSION] as $session) {
|
||||
$result = $this->post('search/domain', self::REQUEST, ['session' => $session]);
|
||||
|
||||
$this->assertApiError($result, 403, 'Insufficient permissions');
|
||||
$this->assertNotCalled($result, 'SSP::simple');
|
||||
$this->assertNotCalled($result, 'SSP::complex');
|
||||
}
|
||||
}
|
||||
|
||||
public function testWithoutJsonBodyTheSearchGetsNoParameters(): void
|
||||
{
|
||||
$result = $this->request('POST', 'search/domain', ['script' => [self::answer('SSP::simple', [], self::PAGE)]]);
|
||||
|
||||
$this->assertNull($this->sspCall($result, 'SSP::simple')[0]);
|
||||
}
|
||||
|
||||
private function sspCall(ApiResult $result, string $name): array
|
||||
{
|
||||
$calls = $result->callsTo($name);
|
||||
$this->assertCount(1, $calls, "one call of $name");
|
||||
return $calls[0];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Domains;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** get/add/edit/delete domain/template */
|
||||
class DomainTemplateTest extends ApiTestCase
|
||||
{
|
||||
private const TEMPLATE = ['id' => 1, 'template' => 'Default', 'type' => 'domain', 'attributes' => ['max_num_aliases_for_domain' => 400]];
|
||||
|
||||
public function testAllTemplates(): void
|
||||
{
|
||||
$result = $this->get('get/domain/template/all', ['script' => [self::answer('mailbox', ['get', 'domain_templates'], [self::TEMPLATE])]]);
|
||||
|
||||
$this->assertSame([['get', 'domain_templates']], $result->callsTo('mailbox'));
|
||||
$this->assertSame([self::TEMPLATE], $result->json());
|
||||
}
|
||||
|
||||
public function testOneTemplate(): void
|
||||
{
|
||||
$result = $this->get('get/domain/template/1', ['script' => [self::answer('mailbox', ['get', 'domain_templates', '1'], self::TEMPLATE)]]);
|
||||
|
||||
$this->assertSame(self::TEMPLATE, $result->json());
|
||||
}
|
||||
|
||||
public function testUnknownTemplate(): void
|
||||
{
|
||||
$result = $this->get('get/domain/template/9', ['script' => [self::answer('mailbox', ['get', 'domain_templates'], false)]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'domain_templates', '9']);
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testTemplateWithoutIdAsksForAll(): void
|
||||
{
|
||||
$result = $this->get('get/domain/template');
|
||||
|
||||
$this->assertSame([['get', 'domain_templates', null]], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testAddTemplate(): void
|
||||
{
|
||||
$attr = ['template' => 'Small business', 'max_num_mboxes_for_domain' => 25, 'def_quota_for_mbox' => 2048, 'tags' => ['small']];
|
||||
|
||||
$result = $this->post('add/domain/template', $attr);
|
||||
|
||||
$this->assertSame([['add', 'domain_templates', $attr]], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testEditTemplates(): void
|
||||
{
|
||||
$result = $this->post('edit/domain/template', ['items' => [2, 3], 'attr' => ['template' => 'Small business', 'active' => 1]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'domain_templates', ['ids' => [2, 3], 'template' => 'Small business', 'active' => 1]]);
|
||||
}
|
||||
|
||||
public function testDeleteTemplates(): void
|
||||
{
|
||||
$result = $this->post('delete/domain/template', [2, 3]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['delete', 'domain_templates', ['ids' => [2, 3]]]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Domains;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** get/domain, add/domain, edit/domain, delete/domain, delete/domain/tag, edit/domain/footer */
|
||||
class DomainTest extends ApiTestCase
|
||||
{
|
||||
public function testAllDomainsAreReadOneByOne(): void
|
||||
{
|
||||
$result = $this->get('get/domain/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org', 'example.com', 'example.net']),
|
||||
self::answer('mailbox', ['get', 'domain_details', 'example.org'], ['domain_name' => 'example.org']),
|
||||
self::answer('mailbox', ['get', 'domain_details', 'example.com'], false),
|
||||
self::answer('mailbox', ['get', 'domain_details', 'example.net'], ['domain_name' => 'example.net']),
|
||||
]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'domains', null, null]);
|
||||
$this->assertSame([['domain_name' => 'example.org'], ['domain_name' => 'example.net']], $result->json());
|
||||
}
|
||||
|
||||
public function testAllDomainsFilteredByTags(): void
|
||||
{
|
||||
$result = $this->get('get/domain/all', ['query' => ['tags' => 'customer,premium'], 'script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org']),
|
||||
self::answer('mailbox', ['get', 'domain_details', 'example.org'], ['domain_name' => 'example.org', 'tags' => ['customer']]),
|
||||
]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'domains', null, ['customer', 'premium']]);
|
||||
$this->assertSame([['domain_name' => 'example.org', 'tags' => ['customer']]], $result->json());
|
||||
}
|
||||
|
||||
public function testAnEmptyTagsParameterDoesNotFilter(): void
|
||||
{
|
||||
$result = $this->get('get/domain/all', ['query' => ['tags' => ''], 'script' => [self::answer('mailbox', ['get', 'domains'], [])]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'domains', null, null]);
|
||||
}
|
||||
|
||||
public function testAllDomainsWithoutDomains(): void
|
||||
{
|
||||
$result = $this->get('get/domain/all', ['script' => [self::answer('mailbox', ['get', 'domains'], [])]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
$this->assertSame([['get', 'domains', null, null]], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testAllDomainsWithoutReadableDetails(): void
|
||||
{
|
||||
$result = $this->get('get/domain/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org']),
|
||||
self::answer('mailbox', ['get', 'domain_details'], false),
|
||||
]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testOneDomain(): void
|
||||
{
|
||||
$result = $this->get('get/domain/example.org', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domain_details', 'example.org'], ['domain_name' => 'example.org', 'rl' => false]),
|
||||
]]);
|
||||
|
||||
$this->assertSame(['domain_name' => 'example.org', 'rl' => false], $result->json());
|
||||
$this->assertSame([['get', 'domain_details', 'example.org']], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testUnknownDomain(): void
|
||||
{
|
||||
$result = $this->get('get/domain/example.com', ['script' => [self::answer('mailbox', ['get', 'domain_details'], false)]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testAddDomain(): void
|
||||
{
|
||||
$attr = ['domain' => 'example.org', 'description' => 'Example Org', 'defquota' => 3072, 'tags' => ['customer'], 'restart_sogo' => '1'];
|
||||
|
||||
$result = $this->post('add/domain', $attr);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['add', 'domain', $attr]);
|
||||
}
|
||||
|
||||
public function testAddDomainIgnoresFurtherSegments(): void
|
||||
{
|
||||
$result = $this->post('add/domain/example.org', ['domain' => 'example.org']);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['add', 'domain', ['domain' => 'example.org']]);
|
||||
}
|
||||
|
||||
public function testEditDomains(): void
|
||||
{
|
||||
$result = $this->post('edit/domain', ['items' => ['example.org', 'example.com'], 'attr' => ['quota' => 51200, 'tags' => ['premium']]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'domain', ['domain' => ['example.org', 'example.com'], 'quota' => 51200, 'tags' => ['premium']]]);
|
||||
}
|
||||
|
||||
public function testEditDomainWithASingleItem(): void
|
||||
{
|
||||
$result = $this->post('edit/domain', ['items' => 'example.org', 'attr' => ['active' => '0']]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'domain', ['domain' => ['example.org'], 'active' => '0']]);
|
||||
}
|
||||
|
||||
public function testAnAttributeNamedLikeTheItemsWins(): void
|
||||
{
|
||||
$result = $this->post('edit/domain', ['items' => ['example.org'], 'attr' => ['domain' => 'example.com']]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'domain', ['domain' => 'example.com']]);
|
||||
}
|
||||
|
||||
public function testDeleteDomains(): void
|
||||
{
|
||||
$result = $this->post('delete/domain', ['example.org', 'example.com']);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['delete', 'domain', ['domain' => ['example.org', 'example.com']]]);
|
||||
}
|
||||
|
||||
public function testDeleteDomainTags(): void
|
||||
{
|
||||
$result = $this->post('delete/domain/tag/example.org', ['customer', 'premium']);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['delete', 'tags_domain', ['tags' => ['customer', 'premium'], 'domain' => 'example.org']]);
|
||||
}
|
||||
|
||||
public function testDeleteDomainTagsWithoutTags(): void
|
||||
{
|
||||
$result = $this->post('delete/domain/tag/example.org', [], ['script' => [self::answer('mailbox', ['delete', 'tags_domain'], false)]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['delete', 'tags_domain', ['tags' => [], 'domain' => 'example.org']]);
|
||||
$this->assertSame(['type' => 'error', 'msg' => 'Cannot delete item'], $result->json());
|
||||
}
|
||||
|
||||
public function testDeleteDomainTagsWithoutDomain(): void
|
||||
{
|
||||
$result = $this->post('delete/domain/tag', ['customer']);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['delete', 'tags_domain', ['tags' => ['customer'], 'domain' => null]]);
|
||||
}
|
||||
|
||||
public function testEditDomainFooter(): void
|
||||
{
|
||||
$attr = ['html' => '<p>{= from_name =}</p>', 'plain' => '{= from_name =}', 'skip_replies' => 1, 'exclude' => ['noreply@example.org', 'example.net']];
|
||||
|
||||
$result = $this->post('edit/domain/footer', ['items' => ['example.org'], 'attr' => $attr]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'domain_wide_footer', ['domains' => ['example.org']] + $attr]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Domains;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** add/mta-sts, edit/mta-sts (there is no read route) */
|
||||
class MtaStsTest extends ApiTestCase
|
||||
{
|
||||
public function testAddPolicy(): void
|
||||
{
|
||||
$attr = ['domain' => 'example.org', 'version' => 'stsv1', 'mode' => 'enforce', 'mx' => 'mail.example.org,mx2.example.org', 'max_age' => 86400, 'active' => 1];
|
||||
|
||||
$result = $this->post('add/mta-sts', $attr);
|
||||
|
||||
$this->assertSame([['add', 'mta_sts', $attr]], $result->callsTo('mailbox'));
|
||||
// the backend reports no success message of its own
|
||||
$this->assertSame(['type' => 'success', 'msg' => 'Task completed'], $result->json());
|
||||
}
|
||||
|
||||
public function testEditPolicies(): void
|
||||
{
|
||||
$result = $this->post('edit/mta-sts', ['items' => ['example.org'], 'attr' => ['version' => 'stsv1', 'mode' => 'testing']]);
|
||||
|
||||
$this->assertSame([['edit', 'mta_sts', ['domains' => ['example.org'], 'version' => 'stsv1', 'mode' => 'testing']]], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testThereIsNoReadRoute(): void
|
||||
{
|
||||
$this->assertApiError($this->get('get/mta-sts/example.org'), 404, 'route not found');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Filtering;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Fail2Ban settings, bans and the banlist URL */
|
||||
class Fail2BanTest extends ApiTestCase
|
||||
{
|
||||
private const BANLIST_ID = 'a2c11baf-5770-47de-9c5e-575bd7bc9218';
|
||||
|
||||
public function testGetFail2BanWithAnyObject(): void
|
||||
{
|
||||
$settings = ['ban_time' => 1800, 'ban_time_increment' => true, 'banlist_id' => self::BANLIST_ID, 'whitelist' => '192.0.2.0/24'];
|
||||
|
||||
foreach (['get/fail2ban', 'get/fail2ban/all'] as $route) {
|
||||
$result = $this->get($route, ['script' => [self::answer('fail2ban', ['get'], $settings)]]);
|
||||
$this->assertSame([['get']], $result->callsTo('fail2ban'), $route);
|
||||
$this->assertSame($settings, $result->json(), $route);
|
||||
}
|
||||
|
||||
$this->assertSame('{}', $this->get('get/fail2ban', ['script' => [self::answer('fail2ban', ['get'], false)]])->body);
|
||||
}
|
||||
|
||||
public function testEditFail2BanSettings(): void
|
||||
{
|
||||
$attr = ['ban_time' => '1800', 'max_attempts' => '10', 'whitelist' => "192.0.2.0/24\nmail.example.org"];
|
||||
|
||||
$result = $this->post('edit/fail2ban', ['items' => [], 'attr' => $attr]);
|
||||
|
||||
$this->assertSame([['edit', ['network' => []] + $attr]], $result->callsTo('fail2ban'));
|
||||
}
|
||||
|
||||
public function testItemsAreTheNetworks(): void
|
||||
{
|
||||
$list = $this->post('edit/fail2ban', ['items' => ['203.0.113.7/32', '2001:db8::/64'], 'attr' => ['action' => 'unban']]);
|
||||
$this->assertCalled($list, 'fail2ban', ['edit', ['network' => ['203.0.113.7/32', '2001:db8::/64'], 'action' => 'unban']]);
|
||||
|
||||
$single = $this->post('edit/fail2ban', ['items' => '198.51.100.66/32', 'attr' => ['action' => 'blacklist']]);
|
||||
$this->assertCalled($single, 'fail2ban', ['edit', ['network' => ['198.51.100.66/32'], 'action' => 'blacklist']]);
|
||||
}
|
||||
|
||||
public function testFurtherSegmentsAreIgnored(): void
|
||||
{
|
||||
$result = $this->post('edit/fail2ban/self', ['items' => ['self'], 'attr' => ['action' => 'unban-all']]);
|
||||
|
||||
$this->assertSame([['edit', ['network' => ['self'], 'action' => 'unban-all']]], $result->callsTo('fail2ban'));
|
||||
}
|
||||
|
||||
public function testRefreshBanlist(): void
|
||||
{
|
||||
$messages = [self::message('success', 'f2b_banlist_refreshed')];
|
||||
|
||||
$result = $this->post('edit/fail2ban/banlist', ['items' => [self::BANLIST_ID]], ['script' => [self::answer('fail2ban', ['banlist', 'refresh'], true, $messages)]]);
|
||||
$this->assertSame([['banlist', 'refresh', [self::BANLIST_ID]]], $result->callsTo('fail2ban'));
|
||||
$this->assertSame($messages, $result->json());
|
||||
|
||||
$single = $this->post('edit/fail2ban/banlist', ['items' => self::BANLIST_ID, 'attr' => []]);
|
||||
$this->assertSame([['banlist', 'refresh', [self::BANLIST_ID]]], $single->callsTo('fail2ban'));
|
||||
}
|
||||
|
||||
public function testRefreshBanlistWithAWrongId(): void
|
||||
{
|
||||
$result = $this->post('edit/fail2ban/banlist', ['items' => ['wrong']], ['script' => [self::answer('fail2ban', ['banlist'], false)]]);
|
||||
|
||||
$this->assertSame(['type' => 'error', 'msg' => 'Cannot edit item'], $result->json());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Filtering;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Global Sieve prefilter and postfilter */
|
||||
class GlobalFilterTest extends ApiTestCase
|
||||
{
|
||||
private const FILTERS = ['prefilter' => "# before\n", 'postfilter' => "require \"fileinto\";\n"];
|
||||
|
||||
public function testAddGlobalFilter(): void
|
||||
{
|
||||
$attr = ['filter_type' => 'postfilter', 'script_data' => "require \"fileinto\";\nfileinto \"Junk\";"];
|
||||
$messages = [
|
||||
self::message('success', 'dovecot_restart_success'),
|
||||
self::message('success', 'global_filter_written'),
|
||||
];
|
||||
|
||||
$result = $this->post('add/global-filter', $attr, ['script' => [self::answer('mailbox', ['add', 'global_filter'], true, $messages)]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['add', 'global_filter', $attr]);
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testGetAllGlobalFilters(): void
|
||||
{
|
||||
$result = $this->get('get/global_filters/all', ['script' => [self::answer('mailbox', ['get', 'global_filter_details'], self::FILTERS)]]);
|
||||
|
||||
$this->assertSame([['get', 'global_filter_details']], $result->callsTo('mailbox'));
|
||||
$this->assertSame(self::FILTERS, $result->json());
|
||||
|
||||
$this->assertSame('{}', $this->get('get/global_filters/all', ['script' => [self::answer('mailbox', ['get', 'global_filter_details'], false)]])->body);
|
||||
}
|
||||
|
||||
public function testOneGlobalFilterIsAJsonString(): void
|
||||
{
|
||||
$script = [self::answer('mailbox', ['get', 'global_filter_details'], self::FILTERS)];
|
||||
|
||||
$this->assertSame("# before\n", $this->get('get/global_filters/prefilter', ['script' => $script])->json());
|
||||
$this->assertSame("require \"fileinto\";\n", $this->get('get/global_filters/postfilter', ['script' => $script])->json());
|
||||
|
||||
$empty = [self::answer('mailbox', ['get', 'global_filter_details'], ['prefilter' => '', 'postfilter' => ''])];
|
||||
$this->assertSame('{}', $this->get('get/global_filters/prefilter', ['script' => $empty])->body);
|
||||
$this->assertSame('{}', $this->get('get/global_filters/postfilter', ['script' => $empty])->body);
|
||||
}
|
||||
|
||||
public function testOtherObjectsAnswerNothing(): void
|
||||
{
|
||||
$result = $this->get('get/global_filters/before', ['script' => [self::answer('mailbox', ['get', 'global_filter_details'], self::FILTERS)]]);
|
||||
|
||||
$this->assertSame([200, ''], [$result->status, $result->body]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Filtering;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Quarantine items and settings */
|
||||
class QuarantineTest extends ApiTestCase
|
||||
{
|
||||
public function testGetQuarantine(): void
|
||||
{
|
||||
$items = [['id' => 33, 'qid' => '8224615004C1', 'subject' => 'You have won', 'virus_flag' => 0, 'score' => 15.48, 'rcpt' => 'john.doe@example.org']];
|
||||
|
||||
$result = $this->get('get/quarantine/all', ['script' => [self::answer('quarantine', ['get'], $items)]]);
|
||||
$this->assertSame([['get']], $result->callsTo('quarantine'));
|
||||
$this->assertSame($items, $result->json());
|
||||
|
||||
$this->assertSame('[]', $this->get('get/quarantine/all')->body);
|
||||
}
|
||||
|
||||
public function testGetQuarantineItem(): void
|
||||
{
|
||||
$item = ['id' => 33, 'qid' => '8224615004C1', 'msg' => "Subject: You have won\r\n\r\nClick here\r\n", 'qhash' => str_repeat('a', 64)];
|
||||
|
||||
$result = $this->get('get/quarantine/33', ['script' => [self::answer('quarantine', ['details', '33'], $item)]]);
|
||||
$this->assertSame([['details', '33']], $result->callsTo('quarantine'));
|
||||
$this->assertSame($item, $result->json());
|
||||
|
||||
$this->assertSame('[]', $this->get('get/quarantine/34', ['script' => [self::answer('quarantine', ['details'], false)]])->body);
|
||||
}
|
||||
|
||||
public function testEditQuarantineItems(): void
|
||||
{
|
||||
$release = $this->post('edit/qitem', ['items' => ['33', '34'], 'attr' => ['action' => 'release']]);
|
||||
$this->assertCalled($release, 'quarantine', ['edit', ['id' => ['33', '34'], 'action' => 'release']]);
|
||||
|
||||
$spam = $this->post('edit/qitem', ['items' => 35, 'attr' => ['action' => 'learnspam']]);
|
||||
$this->assertCalled($spam, 'quarantine', ['edit', ['id' => [35], 'action' => 'learnspam']]);
|
||||
}
|
||||
|
||||
public function testDeleteQuarantineItems(): void
|
||||
{
|
||||
$this->assertCalled($this->post('delete/qitem', ['33', '34']), 'quarantine', ['delete', ['id' => ['33', '34']]]);
|
||||
$this->assertCalled($this->post('delete/qitem', '"33"'), 'quarantine', ['delete', ['id' => ['33']]]);
|
||||
}
|
||||
|
||||
public function testEditQuarantineSettingsIgnoresItems(): void
|
||||
{
|
||||
$attr = ['action' => 'settings', 'retention_size' => '20', 'max_size' => '15', 'exclude_domains' => ['example.com']];
|
||||
$messages = [self::message('success', 'saved_settings')];
|
||||
|
||||
$result = $this->post('edit/quarantine', ['items' => ['self'], 'attr' => $attr], ['script' => [self::answer('quarantine', ['edit'], true, $messages)]]);
|
||||
|
||||
$this->assertSame([['edit', $attr]], $result->callsTo('quarantine'));
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Filtering;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Postfix mail queue */
|
||||
class QueueTest extends ApiTestCase
|
||||
{
|
||||
public function testGetMailQueuePassesTheJsonOfTheBackendThrough(): void
|
||||
{
|
||||
$queue = '[{"queue_name":"deferred","queue_id":"B98C6260CA1","sender":"sender@example.org","recipients":["rcpt@example.com"]}]';
|
||||
|
||||
$result = $this->get('get/mailq/all', ['script' => [self::answer('mailq', ['get'], $queue)]]);
|
||||
|
||||
$this->assertSame([['get']], $result->callsTo('mailq'));
|
||||
$this->assertSame($queue, $result->body);
|
||||
}
|
||||
|
||||
public function testEmptyMailQueue(): void
|
||||
{
|
||||
$this->assertSame('[]', $this->get('get/mailq/all', ['script' => [self::answer('mailq', ['get'], '[]')]])->body);
|
||||
$this->assertSame('[]', $this->get('get/mailq/all', ['script' => [self::answer('mailq', ['get'], false)]])->body);
|
||||
}
|
||||
|
||||
public function testPostcatAnswersThePlainText(): void
|
||||
{
|
||||
$text = "*** ENVELOPE RECORDS deferred/B/B98C6260CA1 ***\nsender: sender@example.org\n*** MESSAGE CONTENTS deferred/B/B98C6260CA1 ***\nSubject: Test\n";
|
||||
|
||||
$result = $this->get('get/postcat/B98C6260CA1', ['script' => [self::answer('mailq', ['cat'], $text)]]);
|
||||
|
||||
$this->assertSame([['cat', ['qid' => 'B98C6260CA1']]], $result->callsTo('mailq'));
|
||||
$this->assertSame($text, $result->body);
|
||||
$this->assertNull($result->json());
|
||||
}
|
||||
|
||||
public function testPostcatWithoutAccessAnswersNothing(): void
|
||||
{
|
||||
$result = $this->get('get/postcat/B98C6260CA1', ['script' => [self::answer('mailq', ['cat'], false)]]);
|
||||
|
||||
$this->assertSame([200, ''], [$result->status, $result->body]);
|
||||
}
|
||||
|
||||
public function testEditMailQueue(): void
|
||||
{
|
||||
$hold = $this->post('edit/mailq', ['items' => ['B98C6260CA1', '4C1E8260D02'], 'attr' => ['action' => 'hold']]);
|
||||
$this->assertCalled($hold, 'mailq', ['edit', ['qid' => ['B98C6260CA1', '4C1E8260D02'], 'action' => 'hold']]);
|
||||
|
||||
$deliver = $this->post('edit/mailq', ['items' => 'B98C6260CA1', 'attr' => ['action' => 'deliver']]);
|
||||
$this->assertCalled($deliver, 'mailq', ['edit', ['qid' => ['B98C6260CA1'], 'action' => 'deliver']]);
|
||||
|
||||
$flush = $this->post('edit/mailq', ['items' => [], 'attr' => ['action' => 'flush']]);
|
||||
$this->assertCalled($flush, 'mailq', ['edit', ['qid' => [], 'action' => 'flush']]);
|
||||
}
|
||||
|
||||
public function testAnActionOutsideOfAttrIsNotSeen(): void
|
||||
{
|
||||
$result = $this->post('edit/mailq', ['action' => 'flush']);
|
||||
|
||||
$this->assertCalled($result, 'mailq', ['edit', ['qid' => []]]);
|
||||
$this->assertSame(['type' => 'success', 'msg' => 'Task completed'], $result->json());
|
||||
}
|
||||
|
||||
public function testDeleteQueuedMessages(): void
|
||||
{
|
||||
$this->assertCalled($this->post('delete/mailq', ['B98C6260CA1', '4C1E8260D02']), 'mailq', ['delete', ['qid' => ['B98C6260CA1', '4C1E8260D02']]]);
|
||||
$this->assertCalled($this->post('delete/mailq', '"B98C6260CA1"'), 'mailq', ['delete', ['qid' => ['B98C6260CA1']]]);
|
||||
}
|
||||
|
||||
public function testDeleteTakesNoAction(): void
|
||||
{
|
||||
$result = $this->post('delete/mailq', ['action' => 'super_delete']);
|
||||
|
||||
$this->assertSame([['delete', ['qid' => ['action' => 'super_delete']]]], $result->callsTo('mailq'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Filtering;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Quota warning mails and their per-domain BCC */
|
||||
class QuotaNotificationTest extends ApiTestCase
|
||||
{
|
||||
public function testEditQuotaNotificationIgnoresItems(): void
|
||||
{
|
||||
$attr = ['sender' => 'quota-warning@example.org', 'subject' => 'Quota warning', 'html_tmpl' => ''];
|
||||
|
||||
$result = $this->post('edit/quota_notification', ['items' => ['quota_notification'], 'attr' => $attr]);
|
||||
|
||||
$this->assertSame([['edit', $attr]], $result->callsTo('quota_notification'));
|
||||
}
|
||||
|
||||
public function testEditQuotaNotificationBccIgnoresItems(): void
|
||||
{
|
||||
$attr = ['domain' => 'example.org', 'bcc_rcpt' => "postmaster@example.org\nhelpdesk@example.org", 'active' => '1'];
|
||||
$messages = [self::message('success', 'saved_settings')];
|
||||
|
||||
$result = $this->post('edit/quota_notification_bcc', ['items' => ['quota_bcc'], 'attr' => $attr], ['script' => [self::answer('quota_notification_bcc', ['edit'], null, $messages)]]);
|
||||
|
||||
$this->assertSame([['edit', $attr]], $result->callsTo('quota_notification_bcc'));
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Filtering;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Rspamd settings rules, global regex maps, action statistics and presets */
|
||||
class RspamdTest extends ApiTestCase
|
||||
{
|
||||
private const RULE = ['desc' => 'Disable Rspamd for example.org', 'content' => 'priority = 10;', 'active' => '1'];
|
||||
|
||||
public function testAddRsetting(): void
|
||||
{
|
||||
$messages = [self::message('success', 'settings_map_added', ['rsettings', 'add', self::RULE])];
|
||||
|
||||
$result = $this->post('add/rsetting', self::RULE, ['script' => [self::answer('rsettings', ['add'], null, $messages)]]);
|
||||
|
||||
$this->assertCalled($result, 'rsettings', ['add', self::RULE]);
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testGetAllRsettingsReadsTheDetailsOfEveryRule(): void
|
||||
{
|
||||
$first = ['id' => 1, 'desc' => 'first', 'content' => 'priority = 10;', 'active' => 1];
|
||||
$third = ['id' => 3, 'desc' => 'third', 'content' => 'priority = 5;', 'active' => 0];
|
||||
|
||||
$result = $this->get('get/rsetting/all', ['script' => [
|
||||
self::answer('rsettings', ['get'], [['id' => 1, 'desc' => 'first', 'active' => 1], ['id' => 2, 'desc' => 'gone', 'active' => 1], ['id' => 3, 'desc' => 'third', 'active' => 0]]),
|
||||
self::answer('rsettings', ['details', 1], $first),
|
||||
self::answer('rsettings', ['details', 2], false),
|
||||
self::answer('rsettings', ['details', 3], $third),
|
||||
]]);
|
||||
|
||||
$this->assertSame([['get'], ['details', 1], ['details', 2], ['details', 3]], $result->callsTo('rsettings'));
|
||||
$this->assertSame([$first, $third], $result->json());
|
||||
}
|
||||
|
||||
public function testGetAllRsettingsWithoutRules(): void
|
||||
{
|
||||
$result = $this->get('get/rsetting/all', ['script' => [self::answer('rsettings', ['get'], false)]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
$this->assertSame([['get']], $result->callsTo('rsettings'));
|
||||
}
|
||||
|
||||
public function testGetOneRsetting(): void
|
||||
{
|
||||
$rule = ['id' => 7, 'desc' => 'seven', 'content' => 'priority = 10;', 'active' => 1];
|
||||
|
||||
$found = $this->get('get/rsetting/7', ['script' => [self::answer('rsettings', ['details', '7'], $rule)]]);
|
||||
$this->assertSame([['details', '7']], $found->callsTo('rsettings'));
|
||||
$this->assertSame($rule, $found->json());
|
||||
|
||||
$this->assertSame('{}', $this->get('get/rsetting/8', ['script' => [self::answer('rsettings', ['details'], false)]])->body);
|
||||
}
|
||||
|
||||
public function testEditRsetting(): void
|
||||
{
|
||||
$result = $this->post('edit/rsetting', ['items' => [1, 2], 'attr' => ['desc' => 'renamed', 'active' => '0']]);
|
||||
$this->assertCalled($result, 'rsettings', ['edit', ['id' => [1, 2], 'desc' => 'renamed', 'active' => '0']]);
|
||||
|
||||
$single = $this->post('edit/rsetting', ['items' => '3', 'attr' => ['content' => 'priority = 1;']]);
|
||||
$this->assertCalled($single, 'rsettings', ['edit', ['id' => ['3'], 'content' => 'priority = 1;']]);
|
||||
}
|
||||
|
||||
public function testDeleteRsetting(): void
|
||||
{
|
||||
$this->assertCalled($this->post('delete/rsetting', [1, 2]), 'rsettings', ['delete', ['id' => [1, 2]]]);
|
||||
$this->assertCalled($this->post('delete/rsetting', 3), 'rsettings', ['delete', ['id' => [3]]]);
|
||||
}
|
||||
|
||||
public function testEditRspamdMap(): void
|
||||
{
|
||||
$data = "/^spammer@example\\.com$/i\n/@spam\\.example\\.net$/i";
|
||||
|
||||
$result = $this->post('edit/rspamd-map', ['items' => ['global_smtp_from_blacklist.map', 'global_rcpt_blacklist.map'], 'attr' => ['rspamd_map_data' => $data]]);
|
||||
|
||||
$this->assertCalled($result, 'rspamd_maps', ['edit', ['map' => ['global_smtp_from_blacklist.map', 'global_rcpt_blacklist.map'], 'rspamd_map_data' => $data]]);
|
||||
}
|
||||
|
||||
public function testRspamdActions(): void
|
||||
{
|
||||
$actions = [['reject', 38], ['soft reject', 1], ['add header', 6], ['no action', 255]];
|
||||
|
||||
$result = $this->get('get/rspamd/actions', ['script' => [self::answer('rspamd_actions', [], $actions)]]);
|
||||
$this->assertSame([[]], $result->callsTo('rspamd_actions'));
|
||||
$this->assertSame($actions, $result->json());
|
||||
|
||||
$this->assertSame('{}', $this->get('get/rspamd/actions', ['script' => [self::answer('rspamd_actions', [], false)]])->body);
|
||||
}
|
||||
|
||||
public function testOtherRspamdObjectsAnswerNothing(): void
|
||||
{
|
||||
$result = $this->get('get/rspamd/stat');
|
||||
|
||||
$this->assertSame([200, ''], [$result->status, $result->body]);
|
||||
$this->assertNotCalled($result, 'rspamd_actions');
|
||||
}
|
||||
|
||||
public function testPresets(): void
|
||||
{
|
||||
$preset = [['name' => 'preset_1', 'headline' => 'Disable all but DKIM', 'content' => 'priority = 10;']];
|
||||
|
||||
$rspamd = $this->get('get/presets/rspamd', ['script' => [self::answer('presets', ['get', 'rspamd'], $preset)]]);
|
||||
$this->assertSame([['get', 'rspamd']], $rspamd->callsTo('presets'));
|
||||
$this->assertSame($preset, $rspamd->json());
|
||||
|
||||
$sieve = $this->get('get/presets/sieve', ['session' => self::DOMAIN_ADMIN]);
|
||||
$this->assertSame([['get', 'sieve']], $sieve->callsTo('presets'));
|
||||
$this->assertSame('{}', $sieve->body);
|
||||
|
||||
$other = $this->get('get/presets/other');
|
||||
$this->assertSame([200, ''], [$other->status, $other->body]);
|
||||
$this->assertNotCalled($other, 'presets');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,266 @@
|
||||
<?php
|
||||
|
||||
// Runs data/web/json_api.php for one request of ApiTestCase in a process of its own. The request comes from the JSON
|
||||
// file in argv[1]; every legacy function and class json_api.php calls is a recorder; the status code, the output and
|
||||
// the recorded calls go to the result file named in the request.
|
||||
|
||||
namespace ApiHarness {
|
||||
|
||||
/** The recorded calls and the scripted answers of one request */
|
||||
final class Calls
|
||||
{
|
||||
/** @var list<array{0: string, 1: array}> */
|
||||
public static array $calls = [];
|
||||
/** @var list<array{call: string, args?: array, return?: mixed, messages?: list<array>, once?: bool}> */
|
||||
public static array $script = [];
|
||||
/** Methods that return a recorder unless scripted, so that chains like Module::fromGlobals()->api->x() work */
|
||||
private const CHAINED = ['fromGlobals', 'create', 'prepare', 'query'];
|
||||
|
||||
public static function record(string $name, array $args, ?string $method = null): mixed
|
||||
{
|
||||
$args = self::plain($args);
|
||||
self::$calls[] = [$name, $args];
|
||||
foreach (self::$script as $i => $entry) {
|
||||
if ($entry['call'] !== $name || !self::startsWith($args, $entry['args'] ?? [])) {
|
||||
continue;
|
||||
}
|
||||
foreach ($entry['messages'] ?? [] as $message) {
|
||||
$_SESSION['return'][] = $message;
|
||||
}
|
||||
if (!empty($entry['once'])) {
|
||||
unset(self::$script[$i]);
|
||||
}
|
||||
return $entry['return'] ?? null;
|
||||
}
|
||||
return ($method !== null && in_array($method, self::CHAINED, true))
|
||||
? new Recorder(preg_replace('/::(fromGlobals|create)$/', '', $name)) : null;
|
||||
}
|
||||
|
||||
/** Arguments as JSON data: recorders and other objects become "@<name>" */
|
||||
private static function plain(mixed $value): mixed
|
||||
{
|
||||
if ($value instanceof Recorder) {
|
||||
return '@' . $value->label();
|
||||
}
|
||||
if (is_object($value)) {
|
||||
return '@' . get_class($value);
|
||||
}
|
||||
return is_array($value) ? array_map([self::class, 'plain'], $value) : $value;
|
||||
}
|
||||
|
||||
private static function startsWith(array $args, array $prefix): bool
|
||||
{
|
||||
foreach (array_values($prefix) as $i => $expected) {
|
||||
if (!array_key_exists($i, $args) || $args[$i] !== $expected) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/** Stand-in for objects and classes: records method calls, reads give further recorders */
|
||||
class Recorder implements \Countable, \IteratorAggregate, \ArrayAccess, \JsonSerializable
|
||||
{
|
||||
private string $recorderLabel;
|
||||
|
||||
public function __construct(mixed ...$args)
|
||||
{
|
||||
$this->recorderLabel = (isset($args[0]) && is_string($args[0]) && static::class === self::class) ? $args[0] : static::class;
|
||||
if (static::class !== self::class) {
|
||||
Calls::record('new ' . static::class, $args);
|
||||
}
|
||||
}
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return $this->recorderLabel;
|
||||
}
|
||||
|
||||
public function __get(string $name): self
|
||||
{
|
||||
return new self($this->recorderLabel . '->' . $name);
|
||||
}
|
||||
|
||||
public function __call(string $name, array $args): mixed
|
||||
{
|
||||
return Calls::record($this->recorderLabel . '->' . $name, $args, $name);
|
||||
}
|
||||
|
||||
public static function __callStatic(string $name, array $args): mixed
|
||||
{
|
||||
return Calls::record(static::class . '::' . $name, $args, $name);
|
||||
}
|
||||
|
||||
public function count(): int
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function getIterator(): \Iterator
|
||||
{
|
||||
return new \EmptyIterator();
|
||||
}
|
||||
|
||||
public function offsetExists(mixed $offset): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function offsetGet(mixed $offset): mixed
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function offsetSet(mixed $offset, mixed $value): void
|
||||
{
|
||||
}
|
||||
|
||||
public function offsetUnset(mixed $offset): void
|
||||
{
|
||||
}
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return ['@' => $this->recorderLabel];
|
||||
}
|
||||
}
|
||||
|
||||
/** php://input with the request body (the CLI has none); every other php:// stream is the real one */
|
||||
final class InputStream
|
||||
{
|
||||
public static string $body = '';
|
||||
/** @var resource|null */
|
||||
public $context;
|
||||
private int $position = 0;
|
||||
/** @var resource|null */
|
||||
private $inner = null;
|
||||
|
||||
public function stream_open(string $path, string $mode, int $options, ?string &$openedPath): bool
|
||||
{
|
||||
if (strtolower($path) === 'php://input') {
|
||||
return true;
|
||||
}
|
||||
stream_wrapper_restore('php');
|
||||
$this->inner = fopen($path, $mode) ?: null;
|
||||
stream_wrapper_unregister('php');
|
||||
stream_wrapper_register('php', self::class);
|
||||
return $this->inner !== null;
|
||||
}
|
||||
|
||||
public function stream_read(int $count): string|false
|
||||
{
|
||||
if ($this->inner !== null) {
|
||||
return fread($this->inner, $count);
|
||||
}
|
||||
$chunk = substr(self::$body, $this->position, $count);
|
||||
$this->position += strlen($chunk);
|
||||
return $chunk;
|
||||
}
|
||||
|
||||
public function stream_write(string $data): int
|
||||
{
|
||||
return ($this->inner !== null) ? (int)fwrite($this->inner, $data) : 0;
|
||||
}
|
||||
|
||||
public function stream_eof(): bool
|
||||
{
|
||||
return ($this->inner !== null) ? feof($this->inner) : $this->position >= strlen(self::$body);
|
||||
}
|
||||
|
||||
public function stream_stat(): array|false
|
||||
{
|
||||
return ($this->inner !== null) ? fstat($this->inner) : ['size' => strlen(self::$body)];
|
||||
}
|
||||
|
||||
public function stream_close(): void
|
||||
{
|
||||
if ($this->inner !== null) {
|
||||
fclose($this->inner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Names of the functions $file calls that are neither PHP functions nor declared in $file */
|
||||
function calledFunctions(string $file): array
|
||||
{
|
||||
$tokens = array_values(array_filter(token_get_all(file_get_contents($file)),
|
||||
fn($t) => !is_array($t) || !in_array($t[0], [T_WHITESPACE, T_COMMENT, T_DOC_COMMENT], true)));
|
||||
$declared = [];
|
||||
$called = [];
|
||||
foreach ($tokens as $i => $token) {
|
||||
if (!is_array($token) || $token[0] !== T_STRING) {
|
||||
continue;
|
||||
}
|
||||
$previous = $tokens[$i - 1] ?? null;
|
||||
$next = $tokens[$i + 1] ?? null;
|
||||
if (is_array($previous) && $previous[0] === T_FUNCTION) {
|
||||
$declared[strtolower($token[1])] = true;
|
||||
continue;
|
||||
}
|
||||
if ($next !== '(' || (is_array($previous) && in_array($previous[0], [T_OBJECT_OPERATOR, T_NULLSAFE_OBJECT_OPERATOR, T_DOUBLE_COLON, T_NEW], true))) {
|
||||
continue;
|
||||
}
|
||||
$called[strtolower($token[1])] = $token[1];
|
||||
}
|
||||
return array_values(array_filter($called, fn(string $name): bool => !isset($declared[strtolower($name)]) && !function_exists($name)));
|
||||
}
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
use ApiHarness\Calls;
|
||||
use ApiHarness\InputStream;
|
||||
|
||||
$request = json_decode(file_get_contents($argv[1]), true, 512, JSON_THROW_ON_ERROR);
|
||||
$jsonApi = $request['json_api'];
|
||||
|
||||
foreach (ApiHarness\calledFunctions($jsonApi) as $name) {
|
||||
eval('function ' . $name . '(...$args) { return \ApiHarness\Calls::record(' . var_export($name, true) . ', $args); }');
|
||||
}
|
||||
spl_autoload_register(function (string $class): void {
|
||||
$parts = explode('\\', ltrim($class, '\\'));
|
||||
$short = array_pop($parts);
|
||||
$namespace = implode('\\', $parts);
|
||||
eval(($namespace !== '' ? "namespace $namespace; " : '') . "class $short extends \\ApiHarness\\Recorder {}");
|
||||
});
|
||||
|
||||
$_SERVER['DOCUMENT_ROOT'] = __DIR__ . '/webroot';
|
||||
$_SERVER['REQUEST_METHOD'] = $request['method'];
|
||||
$_SERVER['REQUEST_URI'] = '/api/v1/' . $request['query'];
|
||||
$_SERVER['REMOTE_ADDR'] = '192.0.2.10';
|
||||
if (isset($request['content_type'])) {
|
||||
$_SERVER['HTTP_CONTENT_TYPE'] = $request['content_type'];
|
||||
}
|
||||
foreach ($request['server'] ?? [] as $key => $value) {
|
||||
$_SERVER[$key] = $value;
|
||||
}
|
||||
$_GET = ['query' => $request['query']] + ($request['get'] ?? []);
|
||||
$_POST = $request['post'] ?? [];
|
||||
$GLOBALS['__harness_session'] = $request['session'] ?? [];
|
||||
$GLOBALS['__harness_globals'] = $request['globals'] ?? [];
|
||||
Calls::$script = $request['script'] ?? [];
|
||||
InputStream::$body = (string)($request['body'] ?? '');
|
||||
stream_wrapper_unregister('php');
|
||||
stream_wrapper_register('php', InputStream::class);
|
||||
|
||||
register_shutdown_function(function () use ($request): void {
|
||||
$output = '';
|
||||
while (ob_get_level() > 0) {
|
||||
$output = ob_get_clean() . $output;
|
||||
}
|
||||
$error = error_get_last();
|
||||
$fatal = ($error !== null && in_array($error['type'], [E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR], true));
|
||||
stream_wrapper_restore('php');
|
||||
file_put_contents($request['result'], json_encode([
|
||||
'status' => http_response_code() ?: 200,
|
||||
'body' => $output,
|
||||
'calls' => Calls::$calls,
|
||||
'session_return' => $_SESSION['return'] ?? null,
|
||||
'error' => $fatal ? $error['message'] . ' in ' . $error['file'] . ':' . $error['line'] : null,
|
||||
], JSON_PARTIAL_OUTPUT_ON_ERROR | JSON_INVALID_UTF8_SUBSTITUTE));
|
||||
});
|
||||
|
||||
ob_start();
|
||||
require $jsonApi;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
// Stand-in for data/web/inc/lib/ssp.class.php in the API harness: the class SSP is a recorder (runner.php autoloader).
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
// Stand-in for data/web/inc/prerequisites.inc.php in the API harness (runner.php): the session of the request
|
||||
// instead of the API key login, recorders for the database and Redis, the globals the test sets.
|
||||
|
||||
$pdo = new \ApiHarness\Recorder('pdo');
|
||||
$redis = new \ApiHarness\Recorder('redis');
|
||||
$_SESSION = $GLOBALS['__harness_session'] ?? [];
|
||||
foreach ($GLOBALS['__harness_globals'] ?? [] as $name => $value) {
|
||||
$GLOBALS[$name] = $value;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Mailboxes;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** App passwords of mailboxes */
|
||||
class AppPasswordRoutesTest extends ApiTestCase
|
||||
{
|
||||
public function testAddAppPassword(): void
|
||||
{
|
||||
$body = ['username' => 'john@example.org', 'app_name' => 'Thunderbird', 'app_passwd' => 'eiQu4ahz8iePh', 'app_passwd2' => 'eiQu4ahz8iePh', 'protocols' => ['imap_access']];
|
||||
|
||||
$this->assertCalled($this->post('add/app-passwd', $body), 'app_passwd', ['add', $body]);
|
||||
}
|
||||
|
||||
public function testListsOfAMailboxAndOfTheSessionUser(): void
|
||||
{
|
||||
$script = [
|
||||
self::answer('app_passwd', ['get'], [['id' => 23, 'name' => 'Thunderbird'], ['id' => 24, 'name' => 'Gone']]),
|
||||
self::answer('app_passwd', ['details', 23], ['id' => 23, 'mailbox' => 'john@example.org']),
|
||||
self::answer('app_passwd', ['details', 24], false),
|
||||
];
|
||||
|
||||
$mailbox = $this->get('get/app-passwd/all/john@example.org', ['script' => $script]);
|
||||
$this->assertSame([['get', ['username' => 'john@example.org']], ['details', 23], ['details', 24]], $mailbox->callsTo('app_passwd'));
|
||||
$this->assertSame([['id' => 23, 'mailbox' => 'john@example.org']], $mailbox->json());
|
||||
|
||||
$own = $this->get('get/app-passwd/all', ['session' => self::USER, 'script' => $script]);
|
||||
$this->assertSame(['get'], $own->callsTo('app_passwd')[0]);
|
||||
|
||||
$this->assertSame('{}', $this->get('get/app-passwd/all')->body);
|
||||
}
|
||||
|
||||
public function testSingleAppPasswordFails(): void
|
||||
{
|
||||
$result = $this->get('get/app-passwd/23', ['allow_error' => true]);
|
||||
|
||||
$this->assertStringContainsString('Cannot access offset of type string on string', (string)$result->error);
|
||||
$this->assertNotCalled($result, 'app_passwd');
|
||||
}
|
||||
|
||||
public function testEditAndDeleteAppPasswords(): void
|
||||
{
|
||||
$edit = $this->post('edit/app-passwd', ['items' => [23], 'attr' => ['username' => 'john@example.org', 'active' => '0']]);
|
||||
$this->assertCalled($edit, 'app_passwd', ['edit', ['id' => [23], 'username' => 'john@example.org', 'active' => '0']]);
|
||||
|
||||
$this->assertCalled($this->post('delete/app-passwd', [23, 24]), 'app_passwd', ['delete', ['id' => [23, 24]]]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Mailboxes;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Sieve filters and the spam allow/deny lists of mailboxes */
|
||||
class FilterAndPolicyRoutesTest extends ApiTestCase
|
||||
{
|
||||
public function testAddEditDeleteFilters(): void
|
||||
{
|
||||
$body = ['username' => 'john@example.org', 'script_desc' => 'Move newsletters', 'script_data' => 'keep;', 'filter_type' => 'prefilter', 'active' => 1];
|
||||
$this->assertCalled($this->post('add/filter', $body), 'mailbox', ['add', 'filter', $body]);
|
||||
|
||||
$this->assertCalled($this->post('edit/filter', ['items' => [7], 'attr' => ['active' => 0]]), 'mailbox', ['edit', 'filter', ['id' => [7], 'active' => 0]]);
|
||||
$this->assertCalled($this->post('delete/filter', [7]), 'mailbox', ['delete', 'filter', ['id' => [7]]]);
|
||||
}
|
||||
|
||||
public function testAllFiltersOfAllMailboxes(): void
|
||||
{
|
||||
$result = $this->get('get/filters/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org']),
|
||||
self::answer('mailbox', ['get', 'mailboxes', 'example.org'], ['john@example.org', 'jane@example.org']),
|
||||
self::answer('mailbox', ['get', 'filters', 'john@example.org'], [7, 8]),
|
||||
self::answer('mailbox', ['get', 'filter_details', 7], ['id' => 7]),
|
||||
self::answer('mailbox', ['get', 'filter_details', 8], false),
|
||||
]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'filters', 'jane@example.org']);
|
||||
$this->assertSame([['id' => 7]], $result->json());
|
||||
$this->assertSame('{}', $this->get('get/filters/all')->body);
|
||||
}
|
||||
|
||||
public function testFiltersOfAMailbox(): void
|
||||
{
|
||||
$result = $this->get('get/filters/john@example.org', ['script' => [
|
||||
self::answer('mailbox', ['get', 'filters'], [7]),
|
||||
self::answer('mailbox', ['get', 'filter_details', 7], ['id' => 7, 'username' => 'john@example.org']),
|
||||
]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'filters', 'john@example.org']);
|
||||
$this->assertSame([['id' => 7, 'username' => 'john@example.org']], $result->json());
|
||||
$this->assertSame('{}', $this->get('get/filters/jane@example.org')->body);
|
||||
}
|
||||
|
||||
public function testActiveUserSieveIsAListWithOneScript(): void
|
||||
{
|
||||
$result = $this->get('get/active-user-sieve/john@example.org', ['script' => [self::answer('mailbox', ['get', 'active_user_sieve'], "require \"fileinto\";\nkeep;")]]);
|
||||
|
||||
$this->assertSame([['get', 'active_user_sieve', 'john@example.org']], $result->callsTo('mailbox'));
|
||||
$this->assertSame(["require \"fileinto\";\nkeep;"], $result->json());
|
||||
$this->assertSame('{}', $this->get('get/active-user-sieve/john@example.org', ['script' => [self::answer('mailbox', [], false)]])->body);
|
||||
|
||||
$none = $this->get('get/active-user-sieve');
|
||||
$this->assertNotCalled($none, 'mailbox');
|
||||
$this->assertSame('{}', $none->body);
|
||||
}
|
||||
|
||||
public function testAddAndDeleteMailboxPolicies(): void
|
||||
{
|
||||
$body = ['username' => 'john@example.org', 'object_list' => 'bl', 'object_from' => '*@spam.example.com'];
|
||||
$this->assertCalled($this->post('add/mailbox-policy', $body), 'policy', ['add', 'mailbox', $body]);
|
||||
|
||||
$this->assertCalled($this->post('delete/mailbox-policy', [13]), 'policy', ['delete', 'mailbox', ['prefid' => [13]]]);
|
||||
}
|
||||
|
||||
public function testAllowAndDenyListsArePartsOfThePolicy(): void
|
||||
{
|
||||
$policy = [
|
||||
'whitelist' => [['object' => 'john@example.org', 'value' => '*@partner.example.com', 'prefid' => 12]],
|
||||
'blacklist' => [['object' => 'example.org', 'value' => '*@spam.example.com', 'prefid' => 13]],
|
||||
];
|
||||
$script = [self::answer('policy', ['get', 'mailbox'], $policy)];
|
||||
|
||||
$allow = $this->get('get/policy_wl_mailbox/john@example.org', ['script' => $script]);
|
||||
$this->assertSame([['get', 'mailbox', 'john@example.org']], $allow->callsTo('policy'));
|
||||
$this->assertSame($policy['whitelist'], $allow->json());
|
||||
|
||||
$this->assertSame($policy['blacklist'], $this->get('get/policy_bl_mailbox/john@example.org', ['script' => $script])->json());
|
||||
$this->assertSame('{}', $this->get('get/policy_bl_mailbox/nobody@example.org')->body);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Mailboxes;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Mailboxes, their templates, tags, custom attributes, renaming, ACLs, logins and resets */
|
||||
class MailboxRoutesTest extends ApiTestCase
|
||||
{
|
||||
public function testAddMailbox(): void
|
||||
{
|
||||
$body = ['local_part' => 'john.doe', 'domain' => 'example.org', 'password' => 'Moo2Shoh5aiXu', 'password2' => 'Moo2Shoh5aiXu', 'tags' => ['sales']];
|
||||
|
||||
$this->assertCalled($this->post('add/mailbox', $body), 'mailbox', ['add', 'mailbox', $body]);
|
||||
// any other object is a mailbox as well
|
||||
$this->assertCalled($this->post('add/mailbox/something', $body), 'mailbox', ['add', 'mailbox', $body]);
|
||||
}
|
||||
|
||||
public function testAddMailboxTemplate(): void
|
||||
{
|
||||
$body = ['template' => 'Sales', 'quota' => 2048, 'acl' => ['spam_alias']];
|
||||
|
||||
$this->assertCalled($this->post('add/mailbox/template', $body), 'mailbox', ['add', 'mailbox_templates', $body]);
|
||||
}
|
||||
|
||||
public function testGetAllMailboxesWalksAllDomains(): void
|
||||
{
|
||||
$result = $this->get('get/mailbox/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org', 'example.com']),
|
||||
self::answer('mailbox', ['get', 'mailboxes', 'example.org'], ['john@example.org', 'gone@example.org']),
|
||||
self::answer('mailbox', ['get', 'mailboxes', 'example.com'], ['jane@example.com']),
|
||||
self::answer('mailbox', ['get', 'mailbox_details', 'john@example.org'], ['username' => 'john@example.org']),
|
||||
self::answer('mailbox', ['get', 'mailbox_details', 'gone@example.org'], false),
|
||||
self::answer('mailbox', ['get', 'mailbox_details', 'jane@example.com'], ['username' => 'jane@example.com']),
|
||||
]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'mailboxes', 'example.org', null]);
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'mailbox_details', 'john@example.org', 'all']);
|
||||
$this->assertSame([['username' => 'john@example.org'], ['username' => 'jane@example.com']], $result->json());
|
||||
}
|
||||
|
||||
public function testReducedDetailsOfGivenDomainsWithTags(): void
|
||||
{
|
||||
$result = $this->get('get/mailbox/reduced/example.org,example.com', [
|
||||
'query' => ['tags' => 'sales,support'],
|
||||
'script' => [
|
||||
self::answer('mailbox', ['get', 'mailboxes', 'example.org'], ['john@example.org']),
|
||||
self::answer('mailbox', ['get', 'mailbox_details'], ['username' => 'john@example.org']),
|
||||
],
|
||||
]);
|
||||
|
||||
$this->assertNotContains(['get', 'domains'], $result->callsTo('mailbox'));
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'mailboxes', 'example.org', ['sales', 'support']]);
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'mailboxes', 'example.com', ['sales', 'support']]);
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'mailbox_details', 'john@example.org', 'reduced']);
|
||||
$this->assertSame([['username' => 'john@example.org']], $result->json());
|
||||
}
|
||||
|
||||
public function testMailboxListsWithoutResults(): void
|
||||
{
|
||||
$this->assertSame('{}', $this->get('get/mailbox/all')->body);
|
||||
$this->assertSame('{}', $this->get('get/mailbox/all/example.org')->body);
|
||||
}
|
||||
|
||||
public function testGetOneMailbox(): void
|
||||
{
|
||||
$found = $this->get('get/mailbox/john@example.org', ['script' => [
|
||||
self::answer('mailbox', ['get', 'mailbox_details', 'john@example.org'], ['username' => 'john@example.org', 'quota' => 0]),
|
||||
]]);
|
||||
|
||||
$this->assertCalled($found, 'mailbox', ['get', 'mailbox_details', 'john@example.org']);
|
||||
$this->assertSame(['username' => 'john@example.org', 'quota' => 0], $found->json());
|
||||
$this->assertSame('{}', $this->get('get/mailbox/nobody@example.org')->body);
|
||||
}
|
||||
|
||||
public function testGetMailboxWithTagsSearchesByAddressPart(): void
|
||||
{
|
||||
$result = $this->get('get/mailbox/example.org', [
|
||||
'query' => ['tags' => 'sales'],
|
||||
'script' => [
|
||||
self::answer('mailbox', ['get', 'mailboxes', 'example.org', ['sales']], ['john@example.org']),
|
||||
self::answer('mailbox', ['get', 'mailbox_details', 'john@example.org'], ['username' => 'john@example.org']),
|
||||
],
|
||||
]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'mailbox_details', 'john@example.org']);
|
||||
$this->assertSame([['username' => 'john@example.org']], $result->json());
|
||||
$this->assertSame('[]', $this->get('get/mailbox/example.org', ['query' => ['tags' => 'sales']])->body);
|
||||
}
|
||||
|
||||
public function testGetMailboxTemplates(): void
|
||||
{
|
||||
$templates = [['id' => 2, 'template' => 'Default', 'type' => 'mailbox', 'attributes' => ['quota' => 0]]];
|
||||
$all = $this->get('get/mailbox/template/all', ['script' => [self::answer('mailbox', ['get', 'mailbox_templates'], $templates)]]);
|
||||
|
||||
$this->assertSame([['get', 'mailbox_templates']], $all->callsTo('mailbox'));
|
||||
$this->assertSame($templates, $all->json());
|
||||
$this->assertCalled($this->get('get/mailbox/template/2'), 'mailbox', ['get', 'mailbox_templates', '2']);
|
||||
}
|
||||
|
||||
public function testEditMailbox(): void
|
||||
{
|
||||
$result = $this->post('edit/mailbox', ['items' => 'john@example.org', 'attr' => ['quota' => 5120, 'sender_acl' => ['@example.com']]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'mailbox', ['username' => ['john@example.org'], 'quota' => 5120, 'sender_acl' => ['@example.com']]]);
|
||||
}
|
||||
|
||||
public function testEditMailboxTemplatesAndCustomAttributes(): void
|
||||
{
|
||||
$template = $this->post('edit/mailbox/template', ['items' => [3], 'attr' => ['template' => 'Sales', 'quarantine_category' => 'reject']]);
|
||||
$this->assertCalled($template, 'mailbox', ['edit', 'mailbox_templates', ['ids' => [3], 'template' => 'Sales', 'quarantine_category' => 'reject']]);
|
||||
|
||||
$custom = $this->post('edit/mailbox/custom-attribute', ['items' => ['john@example.org'], 'attr' => ['attribute' => ['department'], 'value' => ['Sales']]]);
|
||||
$this->assertCalled($custom, 'mailbox', ['edit', 'mailbox_custom_attribute', ['mailboxes' => ['john@example.org'], 'attribute' => ['department'], 'value' => ['Sales']]]);
|
||||
}
|
||||
|
||||
public function testRenameMailboxTakesTheNamesFromAttr(): void
|
||||
{
|
||||
$attr = ['domain' => 'example.org', 'old_local_part' => 'john.doe', 'new_local_part' => 'john', 'create_alias' => 1];
|
||||
|
||||
$result = $this->post('edit/rename-mbox', ['items' => [], 'attr' => $attr]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'mailbox_rename', ['mailbox' => []] + $attr]);
|
||||
}
|
||||
|
||||
public function testEditUserAcl(): void
|
||||
{
|
||||
$result = $this->post('edit/user-acl', ['items' => ['john@example.org'], 'attr' => ['user_acl' => ['spam_alias', 'app_passwds']]]);
|
||||
|
||||
$this->assertCalled($result, 'acl', ['edit', 'user', ['username' => ['john@example.org'], 'user_acl' => ['spam_alias', 'app_passwds']]]);
|
||||
}
|
||||
|
||||
public function testDeleteMailboxesTagsAndTemplates(): void
|
||||
{
|
||||
$this->assertCalled($this->post('delete/mailbox', ['john@example.org']), 'mailbox', ['delete', 'mailbox', ['username' => ['john@example.org']]]);
|
||||
|
||||
$tags = $this->post('delete/mailbox/tag/john@example.org', ['sales', 'trainee']);
|
||||
$this->assertCalled($tags, 'mailbox', ['delete', 'tags_mailbox', ['tags' => ['sales', 'trainee'], 'username' => 'john@example.org']]);
|
||||
|
||||
$this->assertCalled($this->post('delete/mailbox/template', [3]), 'mailbox', ['delete', 'mailbox_templates', ['ids' => [3]]]);
|
||||
}
|
||||
|
||||
public function testResetEasCacheAndSogoProfile(): void
|
||||
{
|
||||
$this->assertCalled($this->post('delete/eas_cache', ['john@example.org']), 'mailbox', ['delete', 'eas_cache', ['username' => ['john@example.org']]]);
|
||||
$this->assertCalled($this->post('delete/sogo_profile', ['john@example.org']), 'mailbox', ['delete', 'sogo_profile', ['username' => ['john@example.org']]]);
|
||||
}
|
||||
|
||||
public function testLastLogin(): void
|
||||
{
|
||||
$logins = ['ui' => false, 'sasl' => [['real_rip' => '198.51.100.23', 'service' => 'imap']]];
|
||||
$default = $this->get('get/last-login/john@example.org', ['script' => [self::answer('last_login', [], $logins)]]);
|
||||
$this->assertSame([['get', 'john@example.org']], $default->callsTo('last_login'));
|
||||
$this->assertSame($logins, $default->json());
|
||||
|
||||
$this->assertSame([['get', 'john@example.org', 30]], $this->get('get/last-login/john@example.org/30')->callsTo('last_login'));
|
||||
$this->assertSame([['get', 'john@example.org']], $this->get('get/last-login/john@example.org/0')->callsTo('last_login'));
|
||||
|
||||
$none = $this->get('get/last-login');
|
||||
$this->assertSame('', $none->body);
|
||||
$this->assertNotCalled($none, 'last_login');
|
||||
}
|
||||
|
||||
public function testResetLastLoginIsAReadRoute(): void
|
||||
{
|
||||
$result = $this->get('get/reset-last-login/john@example.org', ['session' => self::API_RO, 'script' => [self::answer('last_login', ['reset'], true)]]);
|
||||
|
||||
$this->assertSame([['reset', 'john@example.org']], $result->callsTo('last_login'));
|
||||
$this->assertSame('true', $result->body);
|
||||
}
|
||||
|
||||
public function testBccDestinationOptions(): void
|
||||
{
|
||||
$result = $this->get('get/bcc-destination-options', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org']),
|
||||
self::answer('mailbox', ['get', 'alias_domains'], ['example.net']),
|
||||
self::answer('mailbox', ['get', 'mailboxes', 'example.org'], ['john@example.org']),
|
||||
self::answer('user_get_alias_details', ['john@example.org'], [
|
||||
'direct_aliases' => ['sales@example.org' => ['public_comment' => ''], 'john@other.example' => ['public_comment' => '']],
|
||||
'shared_aliases' => ['team@example.org' => ['public_comment' => '']],
|
||||
]),
|
||||
self::answer('hasDomainAccess', ['API', 'admin', 'example.org'], true),
|
||||
]]);
|
||||
|
||||
$this->assertSame([
|
||||
'domains' => ['example.org'],
|
||||
'mailboxes' => ['john@example.org' => ['john@example.org', 'sales@example.org', 'team@example.org']],
|
||||
'alias_domains' => ['example.net'],
|
||||
], $result->json());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Mailboxes;
|
||||
|
||||
use Mailcow\Tests\Api\ApiResult;
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** search/mailbox: the DataTables server-side search of the mailbox table */
|
||||
class MailboxSearchTest extends ApiTestCase
|
||||
{
|
||||
private const REQUEST = [
|
||||
'draw' => 1,
|
||||
'start' => 0,
|
||||
'length' => 25,
|
||||
'search' => ['value' => 'john'],
|
||||
'order' => [['column' => 2, 'dir' => 'asc']],
|
||||
'columns' => [['data' => 'username', 'searchable' => true, 'orderable' => true]],
|
||||
];
|
||||
|
||||
private const KIND_FILTER = "(`m`.`kind` = '' OR `m`.`kind` = NULL)";
|
||||
|
||||
public function testAdminsSearchAllMailboxes(): void
|
||||
{
|
||||
$call = $this->searchCall($this->post('search/mailbox', self::REQUEST));
|
||||
|
||||
$this->assertSame([self::REQUEST, '@pdo', ['mailbox', 'm'], 'username'], array_slice($call, 0, 4));
|
||||
$this->assertSame([null, self::KIND_FILTER], array_slice($call, 5));
|
||||
$this->assertSame([2 => 'username', 3 => 'quota', 4 => 'last_mail_login', 5 => 'last_pw_change', 6 => 'in_use', 7 => 'name',
|
||||
20 => 'messages', 23 => 'tags', 24 => 'active'], array_column($call[4], 'db', 'dt'));
|
||||
}
|
||||
|
||||
public function testReadOnlyKeysMaySearch(): void
|
||||
{
|
||||
$this->searchCall($this->post('search/mailbox', self::REQUEST, ['session' => self::API_RO]));
|
||||
}
|
||||
|
||||
public function testDomainAdminsSearchTheirDomains(): void
|
||||
{
|
||||
$call = $this->searchCall($this->post('search/mailbox', self::REQUEST, ['session' => self::DOMAIN_ADMIN]));
|
||||
|
||||
$this->assertSame('INNER JOIN domain_admins as da ON da.domain = m.domain', $call[5]);
|
||||
$this->assertSame([
|
||||
'condition' => self::KIND_FILTER . ' AND `da`.`active` = 1 AND `da`.`username` = :username',
|
||||
'bindings' => ['username' => 'domainadmin'],
|
||||
], $call[6]);
|
||||
}
|
||||
|
||||
public function testOthersAreRefused(): void
|
||||
{
|
||||
foreach ([self::USER, self::NO_SESSION] as $session) {
|
||||
$result = $this->post('search/mailbox', self::REQUEST, ['session' => $session]);
|
||||
$this->assertApiError($result, 403, 'Insufficient permissions');
|
||||
$this->assertNotCalled($result, 'SSP::complex');
|
||||
}
|
||||
}
|
||||
|
||||
public function testRowsBecomeMailboxDetails(): void
|
||||
{
|
||||
$page = ['draw' => 1, 'recordsTotal' => 2, 'recordsFiltered' => 2, 'data' => [
|
||||
[2 => 'john@example.org', 3 => 0, 4 => '', 7 => 'John'],
|
||||
[2 => 'gone@example.org', 3 => 0, 4 => '', 7 => 'Gone'],
|
||||
]];
|
||||
$result = $this->post('search/mailbox', self::REQUEST, ['script' => [
|
||||
self::answer('SSP::complex', [], $page),
|
||||
self::answer('mailbox', ['get', 'mailbox_details', 'john@example.org'], ['username' => 'john@example.org']),
|
||||
]]);
|
||||
|
||||
$this->assertSame([['get', 'mailbox_details', 'john@example.org'], ['get', 'mailbox_details', 'gone@example.org']], $result->callsTo('mailbox'));
|
||||
$this->assertSame(['draw' => 1, 'recordsTotal' => 2, 'recordsFiltered' => 2, 'data' => [['username' => 'john@example.org']]], $result->json());
|
||||
}
|
||||
|
||||
public function testEmptyPageIsPassedOn(): void
|
||||
{
|
||||
$page = ['draw' => 4, 'recordsTotal' => 0, 'recordsFiltered' => 0, 'data' => []];
|
||||
|
||||
$result = $this->post('search/mailbox', self::REQUEST, ['script' => [self::answer('SSP::complex', [], $page)]]);
|
||||
|
||||
$this->assertNotCalled($result, 'mailbox');
|
||||
$this->assertSame($page, $result->json());
|
||||
}
|
||||
|
||||
private function searchCall(ApiResult $result): array
|
||||
{
|
||||
$calls = $result->callsTo('SSP::complex');
|
||||
$this->assertCount(1, $calls, $result->body);
|
||||
$this->assertNotCalled($result, 'SSP::simple');
|
||||
return $calls[0];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Mailboxes;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Settings a mailbox user changes on its page: time-limited aliases, Pushover, tagged mail, TLS, quarantine, spam score */
|
||||
class MailboxSettingsRoutesTest extends ApiTestCase
|
||||
{
|
||||
public function testTimeLimitedAliases(): void
|
||||
{
|
||||
$body = ['username' => 'john@example.org', 'domain' => 'example.org', 'validity' => 720];
|
||||
$this->assertCalled($this->post('add/time_limited_alias', $body), 'mailbox', ['add', 'time_limited_alias', $body]);
|
||||
|
||||
$edit = $this->post('edit/time_limited_alias', ['items' => ['kahd.osuwe@example.org'], 'attr' => ['validity' => 24]]);
|
||||
$this->assertCalled($edit, 'mailbox', ['edit', 'time_limited_alias', ['address' => ['kahd.osuwe@example.org'], 'validity' => 24]]);
|
||||
|
||||
$delete = $this->post('delete/time_limited_alias', ['kahd.osuwe@example.org']);
|
||||
$this->assertCalled($delete, 'mailbox', ['delete', 'time_limited_alias', ['address' => ['kahd.osuwe@example.org']]]);
|
||||
}
|
||||
|
||||
public function testListTimeLimitedAliases(): void
|
||||
{
|
||||
$aliases = [['address' => 'kahd.osuwe@example.org', 'goto' => 'john@example.org', 'permanent' => 0]];
|
||||
|
||||
$result = $this->get('get/time_limited_aliases/john@example.org', ['script' => [self::answer('mailbox', ['get', 'time_limited_aliases'], $aliases)]]);
|
||||
|
||||
$this->assertSame([['get', 'time_limited_aliases', 'john@example.org']], $result->callsTo('mailbox'));
|
||||
$this->assertSame($aliases, $result->json());
|
||||
$this->assertSame('{}', $this->get('get/time_limited_aliases/jane@example.org')->body);
|
||||
}
|
||||
|
||||
public function testPushover(): void
|
||||
{
|
||||
$attr = ['key' => str_repeat('a', 30), 'token' => str_repeat('b', 30), 'active' => 1];
|
||||
$this->assertCalled($this->post('edit/pushover', ['items' => ['john@example.org'], 'attr' => $attr]), 'pushover', ['edit', ['username' => ['john@example.org']] + $attr]);
|
||||
|
||||
$this->assertCalled($this->post('edit/pushover-test', ['items' => ['john@example.org'], 'attr' => []]), 'pushover', ['test', ['username' => ['john@example.org']]]);
|
||||
}
|
||||
|
||||
public function testMailboxUserSettingsGetTheMailboxesAsUsername(): void
|
||||
{
|
||||
$routes = [
|
||||
'delimiter_action' => ['tagged_mail_handler' => 'subfolder'],
|
||||
'tls_policy' => ['tls_enforce_in' => 1],
|
||||
'quarantine_notification' => ['quarantine_notification' => 'daily'],
|
||||
'quarantine_category' => ['quarantine_category' => 'all'],
|
||||
'spam_score' => ['spam_score' => '6,12'],
|
||||
];
|
||||
foreach ($routes as $type => $attr) {
|
||||
$route = 'edit/' . ($type === 'spam_score' ? 'spam-score' : $type);
|
||||
$result = $this->post($route, ['items' => 'john@example.org', 'attr' => $attr]);
|
||||
$this->assertCalled($result, 'mailbox', ['edit', $type, ['username' => ['john@example.org']] + $attr]);
|
||||
}
|
||||
}
|
||||
|
||||
public function testTheUiSendsItsOwnAddressAsItem(): void
|
||||
{
|
||||
$result = $this->postForm('edit/delimiter_action', ['items' => '["user@example.org"]', 'attr' => '{"tagged_mail_handler":"subject","csrf_token":"t"}'], ['session' => self::USER]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'delimiter_action', ['username' => ['user@example.org'], 'tagged_mail_handler' => 'subject']]);
|
||||
}
|
||||
|
||||
public function testSpamScoreWithoutSpaces(): void
|
||||
{
|
||||
$mailbox = $this->get('get/spam-score/john@example.org', ['script' => [self::answer('mailbox', ['get', 'spam_score'], '6, 12')]]);
|
||||
$this->assertSame([['get', 'spam_score', 'john@example.org']], $mailbox->callsTo('mailbox'));
|
||||
$this->assertSame(['score' => '6,12'], $mailbox->json());
|
||||
|
||||
$default = $this->get('get/spam-score', ['script' => [self::answer('mailbox', ['get', 'spam_score'], '8, 15')]]);
|
||||
$this->assertSame([['get', 'spam_score', null]], $default->callsTo('mailbox'));
|
||||
$this->assertSame(['score' => '8,15'], $default->json());
|
||||
|
||||
$this->assertSame('{}', $this->get('get/spam-score/jane@example.org', ['script' => [self::answer('mailbox', [], false)]])->body);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Mailboxes;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Rate limits of mailboxes and the reset of rate limit counters */
|
||||
class RatelimitRoutesTest extends ApiTestCase
|
||||
{
|
||||
public function testRatelimitsOfAllMailboxesAddTheMailbox(): void
|
||||
{
|
||||
$result = $this->get('get/rl-mbox/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org']),
|
||||
self::answer('mailbox', ['get', 'mailboxes', 'example.org'], ['john@example.org', 'jane@example.org']),
|
||||
self::answer('ratelimit', ['get', 'mailbox', 'john@example.org'], ['value' => '100', 'frame' => 'h']),
|
||||
self::answer('ratelimit', ['get', 'mailbox', 'jane@example.org'], false),
|
||||
]]);
|
||||
|
||||
$this->assertSame([['value' => '100', 'frame' => 'h', 'mailbox' => 'john@example.org']], $result->json());
|
||||
$this->assertSame('{}', $this->get('get/rl-mbox/all')->body);
|
||||
}
|
||||
|
||||
public function testRatelimitOfAMailbox(): void
|
||||
{
|
||||
$result = $this->get('get/rl-mbox/john@example.org', ['script' => [self::answer('ratelimit', [], ['value' => '100', 'frame' => 'h'])]]);
|
||||
|
||||
$this->assertSame([['get', 'mailbox', 'john@example.org']], $result->callsTo('ratelimit'));
|
||||
$this->assertSame(['value' => '100', 'frame' => 'h'], $result->json());
|
||||
$this->assertSame('{}', $this->get('get/rl-mbox/jane@example.org')->body);
|
||||
}
|
||||
|
||||
public function testEditRatelimit(): void
|
||||
{
|
||||
$result = $this->post('edit/rl-mbox', ['items' => ['john@example.org'], 'attr' => ['rl_value' => 100, 'rl_frame' => 'h']]);
|
||||
|
||||
$this->assertCalled($result, 'ratelimit', ['edit', 'mailbox', ['object' => ['john@example.org'], 'rl_value' => 100, 'rl_frame' => 'h']]);
|
||||
}
|
||||
|
||||
public function testDeleteRatelimitHashAnswersTheRawResult(): void
|
||||
{
|
||||
$deleted = $this->post('delete/rlhash', ['RLabc123'], ['script' => [self::answer('ratelimit', [], true, [self::message('success', 'hash_deleted')])]]);
|
||||
$this->assertSame([['delete', null, 'RLabc123']], $deleted->callsTo('ratelimit'));
|
||||
$this->assertSame('1', $deleted->body);
|
||||
|
||||
$missing = $this->post('delete/rlhash', ['RLabc123'], ['script' => [self::answer('ratelimit', [], false, [self::message('warning', 'hash_not_found')])]]);
|
||||
$this->assertSame('', $missing->body);
|
||||
|
||||
$this->assertSame([['delete', null, 'RLabcRLdef']], $this->post('delete/rlhash', ['RLabc', 'RLdef'])->callsTo('ratelimit'));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Mailboxes;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Resources (rooms, equipment, groups) */
|
||||
class ResourceRoutesTest extends ApiTestCase
|
||||
{
|
||||
public function testAddResource(): void
|
||||
{
|
||||
$body = ['domain' => 'example.org', 'description' => 'Meeting Room 1', 'kind' => 'location', 'multiple_bookings' => 0, 'active' => 1];
|
||||
|
||||
$this->assertCalled($this->post('add/resource', $body), 'mailbox', ['add', 'resource', $body]);
|
||||
}
|
||||
|
||||
public function testGetAllResourcesWalksAllDomains(): void
|
||||
{
|
||||
$result = $this->get('get/resource/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org', 'example.com']),
|
||||
self::answer('mailbox', ['get', 'resources', 'example.org'], ['room1@example.org', 'gone@example.org']),
|
||||
self::answer('mailbox', ['get', 'resource_details', 'room1@example.org'], ['name' => 'room1@example.org']),
|
||||
self::answer('mailbox', ['get', 'resource_details', 'gone@example.org'], false),
|
||||
]]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'resources', 'example.com']);
|
||||
$this->assertSame([['name' => 'room1@example.org']], $result->json());
|
||||
$this->assertSame('{}', $this->get('get/resource/all')->body);
|
||||
}
|
||||
|
||||
public function testGetOneResource(): void
|
||||
{
|
||||
$result = $this->get('get/resource/room1@example.org', ['script' => [self::answer('mailbox', ['get', 'resource_details'], ['name' => 'room1@example.org'])]]);
|
||||
|
||||
$this->assertSame([['get', 'resource_details', 'room1@example.org']], $result->callsTo('mailbox'));
|
||||
$this->assertSame(['name' => 'room1@example.org'], $result->json());
|
||||
}
|
||||
|
||||
public function testEditAndDeleteResources(): void
|
||||
{
|
||||
$edit = $this->post('edit/resource', ['items' => ['room1@example.org'], 'attr' => ['multiple_bookings' => -1]]);
|
||||
$this->assertCalled($edit, 'mailbox', ['edit', 'resource', ['name' => ['room1@example.org'], 'multiple_bookings' => -1]]);
|
||||
|
||||
$delete = $this->post('delete/resource', ['room1@example.org']);
|
||||
$this->assertCalled($delete, 'mailbox', ['delete', 'resource', ['name' => ['room1@example.org']]]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Modules;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Routes identity-provider, identity-provider-test, identity-provider-sync and identity-link */
|
||||
class IdentityRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const API = 'Mailcow\Identity\IdentityModule->api->';
|
||||
/** The Identity Provider settings that prerequisites.inc.php loads into $iam_settings */
|
||||
private const IAM_SETTINGS = ['iam_settings' => [
|
||||
'authsource' => 'keycloak',
|
||||
'server_url' => 'https://auth.example.org',
|
||||
'realm' => 'mailcow',
|
||||
'client_id' => 'mailcow',
|
||||
'client_secret' => 'client-secret-value',
|
||||
'bindpass' => 'bind-password',
|
||||
'access_token' => 'cached-token',
|
||||
'redirect_url_extra' => ['https://webmail.example.org'],
|
||||
'login_provisioning' => true,
|
||||
]];
|
||||
private const SETTINGS = [
|
||||
'authsource' => 'keycloak',
|
||||
'server_url' => 'https://auth.example.org',
|
||||
'realm' => 'mailcow',
|
||||
'client_id' => 'mailcow',
|
||||
'client_secret' => 'client-secret-value',
|
||||
'bindpass' => 'bind-password',
|
||||
'access_token' => 'cached-token',
|
||||
'redirect_url_extra' => ['https://webmail.example.org'],
|
||||
'login_provisioning' => true,
|
||||
];
|
||||
|
||||
public function testSettingsForReadWriteKeys(): void
|
||||
{
|
||||
$result = $this->get('get/identity-provider', ['globals' => self::IAM_SETTINGS]);
|
||||
|
||||
$this->assertSame(self::SETTINGS, $result->json());
|
||||
$this->assertNotCalled($result, self::API . 'getStatus');
|
||||
}
|
||||
|
||||
public function testReadOnlyKeysGetNoSecrets(): void
|
||||
{
|
||||
$result = $this->get('get/identity-provider', ['globals' => self::IAM_SETTINGS, 'session' => self::API_RO]);
|
||||
|
||||
$this->assertSame(array_replace(self::SETTINGS, ['client_secret' => '*', 'bindpass' => '*', 'access_token' => '*']), $result->json());
|
||||
}
|
||||
|
||||
public function testSettingsOnlyForAdmins(): void
|
||||
{
|
||||
foreach ([self::DOMAIN_ADMIN, self::USER] as $session) {
|
||||
$this->assertSame('{}', $this->get('get/identity-provider', ['globals' => self::IAM_SETTINGS, 'session' => $session])->body);
|
||||
}
|
||||
}
|
||||
|
||||
public function testOtherObjectsAnswerTheSettingsToo(): void
|
||||
{
|
||||
$result = $this->get('get/identity-provider/anything', ['globals' => self::IAM_SETTINGS]);
|
||||
|
||||
$this->assertSame(self::SETTINGS, $result->json());
|
||||
}
|
||||
|
||||
public function testSyncStatus(): void
|
||||
{
|
||||
$status = ['provider' => 'keycloak', 'can_sync' => true, 'sync_enabled' => false, 'counts' => ['accounts' => 2], 'runs' => []];
|
||||
|
||||
$result = $this->get('get/identity-provider/sync-status', ['session' => self::API_RO, 'script' => [self::answer(self::API . 'getStatus', [], $status)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'getStatus', []);
|
||||
$this->assertSame($status, $result->json());
|
||||
}
|
||||
|
||||
public function testLink(): void
|
||||
{
|
||||
$link = ['provider' => 'keycloak', 'external_id' => '8d5da28d-7541-428b-8356-a9704f73e7f4', 'idp_disabled' => 0, 'missing_since' => null];
|
||||
|
||||
$result = $this->get('get/identity-link/alice@example.org', ['script' => [self::answer(self::API . 'getLink', ['alice@example.org'], $link)]]);
|
||||
$this->assertCalled($result, self::API . 'getLink', ['alice@example.org']);
|
||||
$this->assertSame($link, $result->json());
|
||||
|
||||
$none = $this->get('get/identity-link');
|
||||
$this->assertCalled($none, self::API . 'getLink', ['']);
|
||||
$this->assertSame('{}', $none->body);
|
||||
}
|
||||
|
||||
public function testEditSettings(): void
|
||||
{
|
||||
$attr = ['authsource' => 'ldap', 'host' => 'ldap.example.org', 'basedn' => 'dc=example,dc=org', 'binddn' => 'cn=mailcow', 'bindpass' => 'secret'];
|
||||
$messages = [self::message('success', ['object_modified', ''], ['identity_provider', 'edit', ['bindpass' => '*']])];
|
||||
|
||||
$result = $this->post('edit/identity-provider', ['items' => ['identity-provider'], 'attr' => $attr],
|
||||
['script' => [self::answer('identity_provider', ['edit'], true, $messages)]]);
|
||||
|
||||
$this->assertCalled($result, 'identity_provider', ['edit', $attr]);
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testConnectionTestAnswersWithoutDetails(): void
|
||||
{
|
||||
$attr = ['authsource' => 'keycloak', 'server_url' => 'https://auth.example.org', 'realm' => 'mailcow', 'client_id' => 'mailcow', 'client_secret' => 'secret'];
|
||||
|
||||
$ok = $this->post('edit/identity-provider-test', ['attr' => $attr], ['script' => [self::answer('identity_provider', ['test'], true)]]);
|
||||
$this->assertCalled($ok, 'identity_provider', ['test', $attr]);
|
||||
$this->assertSame(['type' => 'success', 'msg' => 'Task completed'], $ok->json());
|
||||
|
||||
$failed = $this->post('edit/identity-provider-test', ['attr' => $attr], ['script' => [self::answer('identity_provider', ['test'], false)]]);
|
||||
$this->assertSame(['type' => 'error', 'msg' => 'Cannot edit item'], $failed->json());
|
||||
}
|
||||
|
||||
public function testRequestSync(): void
|
||||
{
|
||||
$result = $this->post('edit/identity-provider-sync', ['items' => ['sync'], 'attr' => ['mode' => 'preview']]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'requestRun', [['mode' => 'preview']]);
|
||||
}
|
||||
|
||||
public function testDeleteSettingsIgnoresTheBody(): void
|
||||
{
|
||||
$result = $this->post('delete/identity-provider', ['anything']);
|
||||
|
||||
$this->assertSame([['delete']], $result->callsTo('identity_provider'));
|
||||
}
|
||||
|
||||
public function testDeleteLinks(): void
|
||||
{
|
||||
$messages = [self::message('success', ['iam_link_removed', 'alice@example.org'], ['identity_provider', 'delete', 'link', ['alice@example.org']])];
|
||||
|
||||
$result = $this->post('delete/identity-link', ['alice@example.org'], ['script' => [self::answer(self::API . 'unlink', [], true, $messages)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'unlink', [['alice@example.org']]);
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Modules;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Routes mailbox-group: json_api.php hands them to the MailboxGroup module and passes its answers through */
|
||||
class MailboxGroupRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const API = 'Mailcow\MailboxGroup\MailboxGroupModule->api->';
|
||||
|
||||
public function testAdd(): void
|
||||
{
|
||||
$attr = ['domain' => 'example.org', 'name' => 'Sales', 'members' => ['alice@example.org'], 'sender_allowed' => 1];
|
||||
$messages = [
|
||||
self::message('success', ['group_added', 'Sales'], ['mailbox_group', 'add', 'group', $attr]),
|
||||
self::message('warning', ['group_imap_grant_failed', 'shared@example.org'], ['mailbox_group', 'add', 'group', $attr]),
|
||||
];
|
||||
|
||||
$result = $this->post('add/mailbox-group', $attr, ['script' => [self::answer(self::API . 'addGroup', [], true, $messages)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'addGroup', [$attr]);
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testGetAll(): void
|
||||
{
|
||||
$groups = [['id' => 7, 'domain' => 'example.org', 'name' => 'Sales', 'can_edit' => true]];
|
||||
|
||||
$result = $this->get('get/mailbox-group/all', ['script' => [self::answer(self::API . 'getGroups', [], $groups)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'getGroups', [null]);
|
||||
$this->assertSame($groups, $result->json());
|
||||
}
|
||||
|
||||
public function testGetAllOfDomains(): void
|
||||
{
|
||||
$result = $this->get('get/mailbox-group/all/example.org,example.com');
|
||||
|
||||
$this->assertCalled($result, self::API . 'getGroups', ['example.org,example.com']);
|
||||
}
|
||||
|
||||
public function testNoGroupsAnswerAnEmptyObject(): void
|
||||
{
|
||||
$result = $this->get('get/mailbox-group/all', ['script' => [self::answer(self::API . 'getGroups', [], [])]]);
|
||||
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testGetMemberships(): void
|
||||
{
|
||||
$memberships = ['groups' => [['id' => 7, 'name' => 'Sales', 'source' => 'manual']], 'template' => 'Staff', 'send_as' => ['sales@example.org']];
|
||||
|
||||
$result = $this->get('get/mailbox-group/member/alice@example.org', ['script' => [self::answer(self::API . 'getMemberships', [], $memberships)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'getMemberships', ['alice@example.org']);
|
||||
$this->assertSame($memberships, $result->json());
|
||||
$this->assertNotCalled($result, self::API . 'getGroup');
|
||||
}
|
||||
|
||||
public function testGetMembershipsWithoutMailbox(): void
|
||||
{
|
||||
$result = $this->get('get/mailbox-group/member');
|
||||
|
||||
$this->assertCalled($result, self::API . 'getMemberships', ['']);
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testGetOne(): void
|
||||
{
|
||||
$group = ['id' => 7, 'domain' => 'example.org', 'name' => 'Sales'];
|
||||
|
||||
$result = $this->get('get/mailbox-group/7', ['script' => [self::answer(self::API . 'getGroup', ['7'], $group)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'getGroup', ['7']);
|
||||
$this->assertSame($group, $result->json());
|
||||
}
|
||||
|
||||
public function testEdit(): void
|
||||
{
|
||||
$attr = ['add_members' => ['carol@example.org'], 'remove_members' => 'bob@example.org'];
|
||||
|
||||
$result = $this->post('edit/mailbox-group', ['items' => [7, '8'], 'attr' => $attr]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'editGroups', [[7, '8'], $attr]);
|
||||
}
|
||||
|
||||
public function testEditWithASingleIdOrWithoutItems(): void
|
||||
{
|
||||
$single = $this->post('edit/mailbox-group', ['items' => 7, 'attr' => ['active' => 0]]);
|
||||
$this->assertCalled($single, self::API . 'editGroups', [[7], ['active' => 0]]);
|
||||
|
||||
$none = $this->post('edit/mailbox-group', ['attr' => ['id' => [9], 'active' => 0]]);
|
||||
$this->assertCalled($none, self::API . 'editGroups', [[], ['id' => [9], 'active' => 0]]);
|
||||
}
|
||||
|
||||
public function testDelete(): void
|
||||
{
|
||||
$messages = [
|
||||
self::message('success', ['group_removed', 'Sales'], ['mailbox_group', 'delete', 'group', ['id' => [7, 'x']]]),
|
||||
self::message('danger', 'access_denied', ['mailbox_group', 'delete', 'group', ['id' => [7, 'x']]]),
|
||||
];
|
||||
|
||||
$result = $this->post('delete/mailbox-group', [7, 'x'], ['script' => [self::answer(self::API . 'deleteGroups', [], true, $messages)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'deleteGroups', [[7, 'x']]);
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Modules;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** Routes syncjob, syncjobs, syncjob_source, syncjob_options and imapsync_settings: handed to the Imapsync module */
|
||||
class SyncJobRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const API = 'Mailcow\Imapsync\ImapsyncModule->api->';
|
||||
|
||||
public function testAddJob(): void
|
||||
{
|
||||
$attr = ['username' => 'alice@example.org', 'source_id' => 3, 'user1' => 'alice@example.com', 'password1' => 'secret', 'mins_interval' => 20];
|
||||
$messages = [self::message('success', ['mailbox_modified', 'alice@example.org'], ['syncjob', 'add', 'job', ['password1' => '*']])];
|
||||
|
||||
$result = $this->post('add/syncjob', $attr, ['script' => [self::answer(self::API . 'addJob', [], true, $messages)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'addJob', [$attr]);
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testAddSource(): void
|
||||
{
|
||||
$attr = ['name' => 'Old provider', 'host' => 'imap.example.com', 'port' => 993, 'enc' => 'SSL', 'scope' => 'domain', 'domains' => ['example.org']];
|
||||
|
||||
$result = $this->post('add/syncjob_source', $attr);
|
||||
|
||||
$this->assertCalled($result, self::API . 'addSource', [$attr]);
|
||||
}
|
||||
|
||||
public function testAllJobsOfAnApiKey(): void
|
||||
{
|
||||
$jobs = [['id' => 12, 'user2' => 'alice@example.org', 'log' => 'done']];
|
||||
|
||||
$result = $this->get('get/syncjobs/all', ['script' => [self::answer(self::API . 'getAllJobs', [], $jobs)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'getAllJobs', [null, []]);
|
||||
$this->assertNotCalled($result, 'mailbox');
|
||||
$this->assertSame($jobs, $result->json());
|
||||
}
|
||||
|
||||
public function testAllJobsWithoutLog(): void
|
||||
{
|
||||
$result = $this->get('get/syncjobs/all/no_log');
|
||||
|
||||
$this->assertCalled($result, self::API . 'getAllJobs', ['no_log', []]);
|
||||
$this->assertSame('{}', $result->body);
|
||||
}
|
||||
|
||||
public function testAllJobsOfADomainAdminAreTheJobsOfHisMailboxes(): void
|
||||
{
|
||||
$result = $this->get('get/syncjobs/all/no_log', ['session' => self::DOMAIN_ADMIN, 'script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org', 'example.com']),
|
||||
self::answer('mailbox', ['get', 'mailboxes', 'example.org'], ['alice@example.org', 'bob@example.org']),
|
||||
self::answer('mailbox', ['get', 'mailboxes', 'example.com'], false),
|
||||
]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'getAllJobs', ['no_log', ['alice@example.org', 'bob@example.org']]);
|
||||
}
|
||||
|
||||
public function testAllJobsOfAUser(): void
|
||||
{
|
||||
$result = $this->get('get/syncjobs/all', ['session' => self::USER, 'script' => [self::answer('mailbox', ['get', 'domains'], false)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'getAllJobs', [null, []]);
|
||||
}
|
||||
|
||||
public function testJobsOfAMailbox(): void
|
||||
{
|
||||
$withLog = $this->get('get/syncjobs/alice@example.org');
|
||||
$this->assertCalled($withLog, self::API . 'getJobs', ['alice@example.org', null]);
|
||||
$this->assertNotCalled($withLog, self::API . 'getAllJobs');
|
||||
|
||||
$withoutLog = $this->get('get/syncjobs/alice@example.org/no_log');
|
||||
$this->assertCalled($withoutLog, self::API . 'getJobs', ['alice@example.org', 'no_log']);
|
||||
|
||||
$own = $this->get('get/syncjobs');
|
||||
$this->assertCalled($own, self::API . 'getJobs', [null, null]);
|
||||
}
|
||||
|
||||
public function testSources(): void
|
||||
{
|
||||
$sources = [['id' => 3, 'name' => 'Old provider', 'has_client_secret' => false]];
|
||||
|
||||
$all = $this->get('get/syncjob_source/all', ['script' => [self::answer(self::API . 'getSources', [], $sources)]]);
|
||||
$this->assertCalled($all, self::API . 'getSources', []);
|
||||
$this->assertSame($sources, $all->json());
|
||||
|
||||
$one = $this->get('get/syncjob_source/3', ['script' => [self::answer(self::API . 'getSource', ['3'], $sources[0])]]);
|
||||
$this->assertCalled($one, self::API . 'getSource', ['3']);
|
||||
$this->assertSame($sources[0], $one->json());
|
||||
|
||||
$this->assertSame('{}', $this->get('get/syncjob_source/99')->body);
|
||||
}
|
||||
|
||||
public function testOptions(): void
|
||||
{
|
||||
$options = ['folder' => true, 'syncinternaldates' => false, 'sslargs1' => '^SSL_verify_mode=[01]$'];
|
||||
|
||||
$result = $this->get('get/syncjob_options', ['session' => self::USER, 'script' => [self::answer(self::API . 'getOptions', [], $options)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'getOptions', []);
|
||||
$this->assertSame($options, $result->json());
|
||||
}
|
||||
|
||||
public function testSettings(): void
|
||||
{
|
||||
$settings = ['max_parallel' => 3, 'max_bytes_per_second' => 2048000, 'max_kb_per_second' => 2000];
|
||||
|
||||
$result = $this->get('get/imapsync_settings', ['script' => [self::answer(self::API . 'getSettings', [], $settings)]]);
|
||||
$this->assertCalled($result, self::API . 'getSettings', []);
|
||||
$this->assertSame($settings, $result->json());
|
||||
|
||||
$this->assertSame('{}', $this->get('get/imapsync_settings', ['session' => self::DOMAIN_ADMIN, 'script' => [self::answer(self::API . 'getSettings', [], [])]])->body);
|
||||
}
|
||||
|
||||
public function testEditJobs(): void
|
||||
{
|
||||
$result = $this->post('edit/syncjob', ['items' => [12, '13'], 'attr' => ['active' => 0, 'mins_interval' => 60]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'editJobs', [[12, '13'], ['active' => 0, 'mins_interval' => 60]]);
|
||||
$this->assertNotCalled($result, self::API . 'runNext');
|
||||
|
||||
$other = $this->post('edit/syncjob/anything', ['items' => [12], 'attr' => ['active' => 1]]);
|
||||
$this->assertCalled($other, self::API . 'editJobs', [[12], ['active' => 1]]);
|
||||
}
|
||||
|
||||
public function testRunNext(): void
|
||||
{
|
||||
$messages = [
|
||||
self::message('danger', ['imapsync_job_running', 13], ['syncjob', 'edit', 'run_next', ['id' => [12, 13]]]),
|
||||
self::message('success', ['imapsync_run_next_done', 1], ['syncjob', 'edit', 'run_next', ['id' => [12, 13]]]),
|
||||
];
|
||||
|
||||
$result = $this->post('edit/syncjob/run_next', ['items' => [12, 13], 'attr' => ['ignored' => 1]],
|
||||
['script' => [self::answer(self::API . 'runNext', [], true, $messages)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'runNext', [[12, 13]]);
|
||||
$this->assertNotCalled($result, self::API . 'editJobs');
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
|
||||
public function testRunNextWithoutMovedJobs(): void
|
||||
{
|
||||
$result = $this->post('edit/syncjob/run_next', ['items' => [99]], ['script' => [self::answer(self::API . 'runNext', [], false)]]);
|
||||
|
||||
$this->assertSame(['type' => 'error', 'msg' => 'Cannot edit item'], $result->json());
|
||||
}
|
||||
|
||||
public function testEditSettings(): void
|
||||
{
|
||||
$result = $this->post('edit/imapsync_settings', ['items' => ['ignored'], 'attr' => ['max_parallel' => 4, 'max_kb_per_second' => 2000]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'editSettings', [['max_parallel' => 4, 'max_kb_per_second' => 2000]]);
|
||||
}
|
||||
|
||||
public function testEditSources(): void
|
||||
{
|
||||
$attr = ['description' => 'Migration finished', 'scope' => 'user', 'users' => ['alice@example.org']];
|
||||
|
||||
$result = $this->post('edit/syncjob_source', ['items' => [3], 'attr' => $attr]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'editSources', [[3], $attr]);
|
||||
$this->assertNotCalled($result, self::API . 'refreshSourceToken');
|
||||
}
|
||||
|
||||
public function testRefreshToken(): void
|
||||
{
|
||||
$result = $this->post('edit/syncjob_source/refresh_token', ['items' => [5, 6], 'attr' => []]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'refreshSourceToken', [[5, 6]]);
|
||||
$this->assertNotCalled($result, self::API . 'editSources');
|
||||
}
|
||||
|
||||
public function testDeleteJobs(): void
|
||||
{
|
||||
$result = $this->post('delete/syncjob', [12, '13']);
|
||||
|
||||
$this->assertCalled($result, self::API . 'deleteJobs', [[12, '13']]);
|
||||
}
|
||||
|
||||
public function testDeleteSources(): void
|
||||
{
|
||||
$messages = [self::message('danger', ['imapsync_source_in_use', 'Old provider'], ['syncjob', 'delete', 'source', ['id' => [3]]])];
|
||||
|
||||
$result = $this->post('delete/syncjob_source', [3], ['script' => [self::answer(self::API . 'deleteSources', [], true, $messages)]]);
|
||||
|
||||
$this->assertCalled($result, self::API . 'deleteSources', [[3]]);
|
||||
$this->assertSame($messages, $result->json());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api;
|
||||
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
|
||||
/** data/web/api/openapi.yaml against json_api.php: every route documented, every documented route real, the spec consistent */
|
||||
class OpenApiSpecTest extends ApiTestCase
|
||||
{
|
||||
private const SPEC = __DIR__ . '/../../../data/web/api/openapi.yaml';
|
||||
private const JSON_API = __DIR__ . '/../../../data/web/json_api.php';
|
||||
|
||||
/** Routes of the mailcow UI that an API client cannot use, with the reason */
|
||||
private const UNDOCUMENTED = [
|
||||
// WebAuthn ceremonies of the browser: the challenge lives in the UI session
|
||||
'add/fido2-registration' => 'WebAuthn',
|
||||
'add/webauthn-tfa-registration' => 'WebAuthn',
|
||||
'get/fido2-registration' => 'WebAuthn',
|
||||
'get/fido2-get-args' => 'WebAuthn',
|
||||
'get/webauthn-tfa-registration' => 'WebAuthn',
|
||||
'get/webauthn-tfa-get-args' => 'WebAuthn',
|
||||
// the own account of a UI session (domain admin, mailbox user): an API key gets an empty answer
|
||||
'edit/self' => 'own account',
|
||||
// renames a FIDO2 key of the logged-in account, the API account has none
|
||||
'edit/fido2-fn' => 'own account',
|
||||
];
|
||||
|
||||
private static ?array $spec = null;
|
||||
|
||||
private static function spec(): array
|
||||
{
|
||||
return self::$spec ??= Yaml::parseFile(self::SPEC);
|
||||
}
|
||||
|
||||
/** @return list<array{0: string, 1: string, 2: array}> path, method, operation */
|
||||
private static function operations(): array
|
||||
{
|
||||
$operations = [];
|
||||
foreach (self::spec()['paths'] as $path => $item) {
|
||||
foreach ($item as $method => $operation) {
|
||||
if (in_array($method, ['get', 'post', 'put', 'patch', 'delete'], true)) {
|
||||
$operations[] = [$path, $method, $operation];
|
||||
}
|
||||
}
|
||||
}
|
||||
return $operations;
|
||||
}
|
||||
|
||||
public function testEveryRouteIsDocumented(): void
|
||||
{
|
||||
$paths = array_keys(self::spec()['paths']);
|
||||
$missing = [];
|
||||
foreach (RouteMap::fromFile(self::JSON_API) as $route) {
|
||||
$covered = isset(self::UNDOCUMENTED[$route]) || !empty(array_filter($paths, fn(string $path): bool => RouteMap::covers($path, $route)));
|
||||
if (!$covered) {
|
||||
$missing[] = $route;
|
||||
}
|
||||
}
|
||||
$this->assertSame([], $missing, 'routes of json_api.php missing in openapi.yaml');
|
||||
}
|
||||
|
||||
public function testTheUndocumentedRoutesExist(): void
|
||||
{
|
||||
$this->assertSame([], array_values(array_diff(array_keys(self::UNDOCUMENTED), RouteMap::fromFile(self::JSON_API))));
|
||||
}
|
||||
|
||||
public function testEveryDocumentedRouteExists(): void
|
||||
{
|
||||
$unknown = [];
|
||||
foreach (self::operations() as [$path, $method, $operation]) {
|
||||
$route = preg_replace_callback('/\{([^}]+)\}/', fn(array $m): string => self::exampleOf($operation, $m[1]), $path);
|
||||
$action = explode('/', trim(preg_replace('#^/api/v1/#', '', $path), '/'))[0];
|
||||
$body = match ($action) {
|
||||
'edit' => ['items' => [], 'attr' => (object)[]],
|
||||
'delete' => [],
|
||||
default => (object)[],
|
||||
};
|
||||
$result = ($method === 'get') ? $this->get($route, ['allow_error' => true]) : $this->post($route, $body, ['allow_error' => true]);
|
||||
$answer = $result->json();
|
||||
if ($result->status === 404 && is_array($answer) && ($answer['type'] ?? '') === 'error') {
|
||||
$unknown[] = strtoupper($method) . ' ' . $path . ': ' . ($answer['msg'] ?? '');
|
||||
}
|
||||
}
|
||||
$this->assertSame([], $unknown, 'documented routes that json_api.php does not know');
|
||||
}
|
||||
|
||||
public function testMethodsFollowTheAction(): void
|
||||
{
|
||||
foreach (self::operations() as [$path, $method]) {
|
||||
$action = explode('/', trim(preg_replace('#^/api/v1/#', '', $path), '/'))[0];
|
||||
$this->assertSame(($action === 'get') ? 'get' : 'post', $method, $path);
|
||||
}
|
||||
}
|
||||
|
||||
public function testOperationsAreComplete(): void
|
||||
{
|
||||
$tags = array_column(self::spec()['tags'], 'name');
|
||||
$ids = [];
|
||||
foreach (self::operations() as [$path, $method, $operation]) {
|
||||
$where = strtoupper($method) . ' ' . $path;
|
||||
$this->assertNotEmpty($operation['summary'] ?? null, "$where: summary");
|
||||
$this->assertNotEmpty($operation['operationId'] ?? null, "$where: operationId");
|
||||
$ids[] = $operation['operationId'];
|
||||
$this->assertNotEmpty($operation['tags'] ?? [], "$where: tags");
|
||||
$this->assertSame([], array_values(array_diff($operation['tags'] ?? [], $tags)), "$where: tags not in the tag list");
|
||||
$this->assertArrayHasKey('200', $operation['responses'] ?? [], "$where: 200 response");
|
||||
$this->assertArrayHasKey('401', $operation['responses'] ?? [], "$where: 401 response");
|
||||
preg_match_all('/\{([^}]+)\}/', $path, $placeholders);
|
||||
$declared = array_column(array_filter($operation['parameters'] ?? [], fn(array $p): bool => ($p['in'] ?? '') === 'path'), 'name');
|
||||
sort($declared);
|
||||
$expected = $placeholders[1];
|
||||
sort($expected);
|
||||
$this->assertSame($expected, $declared, "$where: path parameters");
|
||||
}
|
||||
$this->assertSame(array_values(array_unique($ids)), $ids, 'operationIds must be unique');
|
||||
}
|
||||
|
||||
public function testEveryTagIsUsed(): void
|
||||
{
|
||||
$used = array_merge(...array_map(fn(array $op): array => $op[2]['tags'] ?? [], self::operations()));
|
||||
$this->assertSame([], array_values(array_diff(array_column(self::spec()['tags'], 'name'), $used)));
|
||||
}
|
||||
|
||||
public function testReferencesResolve(): void
|
||||
{
|
||||
$refs = [];
|
||||
$spec = self::spec();
|
||||
array_walk_recursive($spec, function (mixed $value, mixed $key) use (&$refs): void {
|
||||
if ($key === '$ref') {
|
||||
$refs[] = $value;
|
||||
}
|
||||
});
|
||||
foreach (array_unique($refs) as $ref) {
|
||||
$node = self::spec();
|
||||
foreach (explode('/', substr($ref, 2)) as $part) {
|
||||
$this->assertIsArray($node, $ref);
|
||||
$this->assertArrayHasKey(str_replace(['~1', '~0'], ['/', '~'], $part), $node, "unresolved $ref");
|
||||
$node = $node[str_replace(['~1', '~0'], ['/', '~'], $part)];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static function exampleOf(array $operation, string $name): string
|
||||
{
|
||||
foreach ($operation['parameters'] ?? [] as $parameter) {
|
||||
if (($parameter['name'] ?? null) === $name) {
|
||||
$example = $parameter['example'] ?? $parameter['schema']['example'] ?? $parameter['schema']['enum'][0] ?? 'test';
|
||||
return rawurlencode((string)$example);
|
||||
}
|
||||
}
|
||||
return 'test';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api;
|
||||
|
||||
/** What json_api.php does for every route: methods, read-only keys, request bodies, answers, unknown routes */
|
||||
class RequestHandlingTest extends ApiTestCase
|
||||
{
|
||||
public function testWritesNeedPost(): void
|
||||
{
|
||||
foreach (['add/alias', 'edit/alias', 'delete/alias'] as $route) {
|
||||
$result = $this->request('GET', $route, ['post' => ['attr' => '{}', 'items' => '[]']]);
|
||||
$this->assertApiError($result, 405, 'only POST method is allowed');
|
||||
$this->assertNotCalled($result, 'mailbox');
|
||||
}
|
||||
}
|
||||
|
||||
public function testReadsNeedGet(): void
|
||||
{
|
||||
$this->assertApiError($this->post('get/domain/all'), 405, 'only GET method is allowed');
|
||||
}
|
||||
|
||||
public function testSearchNeedsPost(): void
|
||||
{
|
||||
$this->assertApiError($this->get('search/domain'), 405, 'only POST method is allowed');
|
||||
}
|
||||
|
||||
public function testReadOnlyKeysCannotWrite(): void
|
||||
{
|
||||
foreach (['add/alias' => ['address' => 'a@example.org'], 'edit/alias' => ['items' => [1], 'attr' => []], 'delete/alias' => [1]] as $route => $body) {
|
||||
$result = $this->post($route, $body, ['session' => self::API_RO]);
|
||||
$this->assertApiError($result, 403, 'API read/write access denied');
|
||||
$this->assertNotCalled($result, 'mailbox');
|
||||
}
|
||||
}
|
||||
|
||||
public function testReadOnlyKeysCanRead(): void
|
||||
{
|
||||
$result = $this->get('get/alias/1', ['session' => self::API_RO]);
|
||||
|
||||
$this->assertSame(200, $result->status);
|
||||
$this->assertCalled($result, 'mailbox', ['get', 'alias_details', '1']);
|
||||
}
|
||||
|
||||
public function testWritesNeedALogin(): void
|
||||
{
|
||||
$this->assertApiError($this->post('add/alias', ['address' => 'a@example.org'], ['session' => self::NO_SESSION]), 403, 'API read/write access denied');
|
||||
}
|
||||
|
||||
public function testReadsWithoutLoginAnswerNothing(): void
|
||||
{
|
||||
// a wrong API key ends in sessions.inc.php with 401; without key and session the read routes are skipped
|
||||
$result = $this->get('get/domain/all', ['session' => self::NO_SESSION]);
|
||||
|
||||
$this->assertSame([200, ''], [$result->status, $result->body]);
|
||||
$this->assertNotCalled($result, 'mailbox');
|
||||
}
|
||||
|
||||
public function testUnknownRoutes(): void
|
||||
{
|
||||
$this->assertApiError($this->get('get/no-such-thing'), 404, 'route not found');
|
||||
$this->assertApiError($this->post('add/no-such-thing', ['x' => 1]), 404, 'route not found');
|
||||
$this->assertApiError($this->post('edit/no-such-thing', ['items' => [], 'attr' => []]), 404, 'route not found');
|
||||
$this->assertApiError($this->post('delete/no-such-thing', [1]), 404, 'route not found');
|
||||
$this->assertApiError($this->get('nothing/at/all'), 404, 'route not found');
|
||||
}
|
||||
|
||||
public function testInvalidJsonBody(): void
|
||||
{
|
||||
$this->assertApiError($this->post('add/alias', '{"address": '), 400, 'Request body doesn\'t contain valid json!');
|
||||
}
|
||||
|
||||
public function testJsonBodies(): void
|
||||
{
|
||||
// add: the body is attr
|
||||
$add = $this->post('add/alias', ['address' => 'a@example.org', 'goto' => 'b@example.org']);
|
||||
$this->assertCalled($add, 'mailbox', ['add', 'alias', ['address' => 'a@example.org', 'goto' => 'b@example.org']]);
|
||||
|
||||
// edit: {"items": ..., "attr": ...}
|
||||
$edit = $this->post('edit/alias', ['items' => [3, 4], 'attr' => ['active' => '0']]);
|
||||
$this->assertCalled($edit, 'mailbox', ['edit', 'alias', ['id' => [3, 4], 'active' => '0']]);
|
||||
|
||||
// delete: the body is the list of items
|
||||
$delete = $this->post('delete/alias', [3, 4]);
|
||||
$this->assertCalled($delete, 'mailbox', ['delete', 'alias', ['id' => [3, 4]]]);
|
||||
}
|
||||
|
||||
public function testFormBodiesOfTheUi(): void
|
||||
{
|
||||
$result = $this->postForm('edit/alias', ['items' => '[3]', 'attr' => '{"active":"1","csrf_token":"t"}'], ['session' => self::ADMIN]);
|
||||
|
||||
$this->assertCalled($result, 'mailbox', ['edit', 'alias', ['id' => [3], 'active' => '1']]);
|
||||
}
|
||||
|
||||
public function testMissingAttributes(): void
|
||||
{
|
||||
$this->assertSame(['type' => 'error', 'msg' => 'Cannot find attributes in post data'], $this->request('POST', 'add/alias')->json());
|
||||
$this->assertSame(['type' => 'error', 'msg' => 'Cannot find attributes in post data'], $this->request('POST', 'delete/alias')->json());
|
||||
}
|
||||
|
||||
public function testWriteAnswers(): void
|
||||
{
|
||||
$messages = [self::message('success', ['alias_added', 'a@example.org'], ['mailbox', 'add', 'alias'])];
|
||||
|
||||
$done = $this->post('add/alias', ['address' => 'a@example.org'], ['script' => [self::answer('mailbox', ['add', 'alias'], true, $messages)]]);
|
||||
$this->assertSame($messages, $done->json());
|
||||
|
||||
$silent = $this->post('add/alias', ['address' => 'a@example.org'], ['script' => [self::answer('mailbox', ['add', 'alias'], true)]]);
|
||||
$this->assertSame(['type' => 'success', 'msg' => 'Task completed'], $silent->json());
|
||||
|
||||
$failed = $this->post('add/alias', ['address' => 'a@example.org'], ['script' => [self::answer('mailbox', ['add', 'alias'], false)]]);
|
||||
$this->assertSame(['type' => 'error', 'msg' => 'Cannot add item'], $failed->json());
|
||||
}
|
||||
|
||||
public function testReadAnswers(): void
|
||||
{
|
||||
$found = $this->get('get/alias/1', ['script' => [self::answer('mailbox', ['get', 'alias_details'], ['id' => 1, 'address' => 'a@example.org'])]]);
|
||||
$this->assertSame(['id' => 1, 'address' => 'a@example.org'], $found->json());
|
||||
|
||||
$this->assertSame('{}', $this->get('get/alias/1')->body);
|
||||
}
|
||||
|
||||
public function testRequestsFromABrowserPageAreRefused(): void
|
||||
{
|
||||
$result = $this->get('get/domain/all', ['server' => ['HTTP_SEC_FETCH_DEST' => 'document']]);
|
||||
|
||||
$this->assertSame('', $result->body);
|
||||
$this->assertSame(['cors'], $result->callNames());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api;
|
||||
|
||||
/**
|
||||
* The routes json_api.php answers, read from its nested switch statements over $action, $category, $object and
|
||||
* $extra: "get/mailbox/all", "add/alias", "*" for a default case ("get/mailbox/*" = get/mailbox/<anything else>).
|
||||
* Default cases that answer 404 are no routes. Only the most specific routes are listed (get/mailbox/all, not get/mailbox).
|
||||
*/
|
||||
final class RouteMap
|
||||
{
|
||||
private const ROUTE_VARS = ['$action', '$category', '$object', '$extra'];
|
||||
|
||||
/** @return list<string> */
|
||||
public static function fromFile(string $file): array
|
||||
{
|
||||
$tokens = array_values(array_filter(token_get_all((string)file_get_contents($file)),
|
||||
fn($t): bool => !is_array($t) || !in_array($t[0], [T_WHITESPACE, T_COMMENT, T_DOC_COMMENT], true)));
|
||||
$stack = [];
|
||||
$depth = 0;
|
||||
$pending = null;
|
||||
$routes = [];
|
||||
foreach ($tokens as $i => $token) {
|
||||
$id = is_array($token) ? $token[0] : $token;
|
||||
if ($id === T_SWITCH) {
|
||||
$isVar = ($tokens[$i + 1] ?? null) === '(' && is_array($tokens[$i + 2] ?? null) && $tokens[$i + 2][0] === T_VARIABLE && ($tokens[$i + 3] ?? null) === ')';
|
||||
$pending = ($isVar && in_array($tokens[$i + 2][1], self::ROUTE_VARS, true)) ? $tokens[$i + 2][1] : '';
|
||||
} elseif ($id === '{' || $id === T_CURLY_OPEN || $id === T_DOLLAR_OPEN_CURLY_BRACES) {
|
||||
$depth++;
|
||||
if ($pending !== null) {
|
||||
$stack[] = ['var' => $pending, 'depth' => $depth, 'label' => null];
|
||||
$pending = null;
|
||||
}
|
||||
} elseif ($id === '}') {
|
||||
if (!empty($stack) && end($stack)['depth'] === $depth) {
|
||||
array_pop($stack);
|
||||
}
|
||||
$depth--;
|
||||
} elseif (($id === T_CASE || $id === T_DEFAULT) && !empty($stack) && end($stack)['depth'] === $depth) {
|
||||
$label = ($id === T_DEFAULT) ? '*' : self::literal($tokens[$i + 1] ?? null);
|
||||
$stack[count($stack) - 1]['label'] = $label;
|
||||
if (end($stack)['var'] === '' || $label === null || ($id === T_DEFAULT && self::answers404($tokens, $i))) {
|
||||
continue;
|
||||
}
|
||||
$route = [];
|
||||
foreach ($stack as $switch) {
|
||||
if ($switch['var'] !== '') {
|
||||
$route[] = $switch['label'];
|
||||
}
|
||||
}
|
||||
$routes[implode('/', $route)] = true;
|
||||
}
|
||||
}
|
||||
$routes = array_keys($routes);
|
||||
return array_values(array_filter($routes, function (string $route) use ($routes): bool {
|
||||
foreach ($routes as $other) {
|
||||
if (str_starts_with($other, $route . '/')) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether $documented (an OpenAPI path like /api/v1/get/mailbox/{id}) covers $route: same leading segments, a
|
||||
* {parameter} matches anything, trailing "*" of the route are optional (add/mailbox/* = add/mailbox)
|
||||
*/
|
||||
public static function covers(string $documented, string $route): bool
|
||||
{
|
||||
$doc = explode('/', trim(preg_replace('#^/?api/v1/#', '', $documented), '/'));
|
||||
$segments = explode('/', $route);
|
||||
while (count($segments) > count($doc) && end($segments) === '*') {
|
||||
array_pop($segments);
|
||||
}
|
||||
if (count($segments) > count($doc)) {
|
||||
return false;
|
||||
}
|
||||
foreach ($segments as $i => $segment) {
|
||||
$isParam = (bool)preg_match('/^\{.+\}$/', $doc[$i]);
|
||||
if ($segment === '*' ? !$isParam : ($segment !== $doc[$i] && !$isParam)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private static function literal(mixed $token): ?string
|
||||
{
|
||||
return (is_array($token) && $token[0] === T_CONSTANT_ENCAPSED_STRING) ? substr($token[1], 1, -1) : null;
|
||||
}
|
||||
|
||||
/** A default case whose code (up to the next case of its switch) sets the status 404 */
|
||||
private static function answers404(array $tokens, int $start): bool
|
||||
{
|
||||
$level = 0;
|
||||
for ($i = $start + 1; $i < count($tokens); $i++) {
|
||||
$id = is_array($tokens[$i]) ? $tokens[$i][0] : $tokens[$i];
|
||||
if ($id === '{' || $id === T_CURLY_OPEN || $id === T_DOLLAR_OPEN_CURLY_BRACES) {
|
||||
$level++;
|
||||
} elseif ($id === '}') {
|
||||
if ($level-- === 0) {
|
||||
return false;
|
||||
}
|
||||
} elseif ($level === 0 && ($id === T_CASE || $id === T_DEFAULT)) {
|
||||
return false;
|
||||
} elseif ($id === T_STRING && $tokens[$i][1] === 'http_response_code' && is_array($tokens[$i + 2] ?? null) && $tokens[$i + 2][1] === '404') {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Routing;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** add/edit/delete/get alias */
|
||||
class AliasRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const SALES = ['id' => 12, 'address' => 'sales@example.org', 'goto' => 'anna@example.org,ben@example.org', 'active' => 1];
|
||||
private const INFO = ['id' => 13, 'address' => 'info@example.org', 'goto' => 'anna@example.org', 'active' => 1];
|
||||
private const SHOP = ['id' => 20, 'address' => 'shop@example.net', 'goto' => 'ben@example.org', 'active' => 0];
|
||||
|
||||
public function testAddPassesTheBody(): void
|
||||
{
|
||||
$attr = [
|
||||
'address' => "sales@example.org, info@example.org",
|
||||
'goto' => 'anna@example.org,ben@example.org',
|
||||
'active' => '1',
|
||||
'sogo_visible' => 1,
|
||||
'internal' => '0',
|
||||
'sender_allowed' => true,
|
||||
'public_comment' => 'Sales team',
|
||||
];
|
||||
|
||||
$result = $this->post('add/alias', $attr + ['csrf_token' => 'x']);
|
||||
|
||||
$this->assertSame([['add', 'alias', $attr]], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testEditMergesItemsAndAttributes(): void
|
||||
{
|
||||
$list = $this->post('edit/alias', ['items' => [12, 'info@example.org'], 'attr' => ['goto_null' => '1', 'active' => '0']]);
|
||||
$this->assertCalled($list, 'mailbox', ['edit', 'alias', ['id' => [12, 'info@example.org'], 'goto_null' => '1', 'active' => '0']]);
|
||||
|
||||
$single = $this->post('edit/alias', ['items' => 12, 'attr' => ['expand_alias' => true]]);
|
||||
$this->assertCalled($single, 'mailbox', ['edit', 'alias', ['id' => [12], 'expand_alias' => true]]);
|
||||
}
|
||||
|
||||
public function testDeleteTakesIdsOrAddresses(): void
|
||||
{
|
||||
$result = $this->post('delete/alias', [12, 'info@example.org']);
|
||||
|
||||
$this->assertSame([['delete', 'alias', ['id' => [12, 'info@example.org']]]], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testGetOneAliasByIdOrAddress(): void
|
||||
{
|
||||
$byId = $this->get('get/alias/12', ['script' => [self::answer('mailbox', ['get', 'alias_details', '12'], self::SALES)]]);
|
||||
$this->assertSame(self::SALES, $byId->json());
|
||||
|
||||
$byAddress = $this->get('get/alias/sales@example.org');
|
||||
$this->assertSame([['get', 'alias_details', 'sales@example.org']], $byAddress->callsTo('mailbox'));
|
||||
$this->assertSame('{}', $byAddress->body);
|
||||
}
|
||||
|
||||
public function testGetAllWalksTheDomainsAndAliasDomains(): void
|
||||
{
|
||||
$result = $this->get('get/alias/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], ['example.org', 'example.com']),
|
||||
self::answer('mailbox', ['get', 'alias_domains'], ['example.net']),
|
||||
self::answer('mailbox', ['get', 'aliases', 'example.org'], [12, 13, 14]),
|
||||
self::answer('mailbox', ['get', 'aliases', 'example.com'], []),
|
||||
self::answer('mailbox', ['get', 'aliases', 'example.net'], [20]),
|
||||
self::answer('mailbox', ['get', 'alias_details', 12], self::SALES),
|
||||
self::answer('mailbox', ['get', 'alias_details', 13], self::INFO),
|
||||
self::answer('mailbox', ['get', 'alias_details', 14], false),
|
||||
self::answer('mailbox', ['get', 'alias_details', 20], self::SHOP),
|
||||
]]);
|
||||
|
||||
$this->assertSame([self::SALES, self::INFO, self::SHOP], $result->json());
|
||||
$this->assertSame([
|
||||
['get', 'domains'],
|
||||
['get', 'alias_domains'],
|
||||
['get', 'aliases', 'example.org'],
|
||||
['get', 'alias_details', 12],
|
||||
['get', 'alias_details', 13],
|
||||
['get', 'alias_details', 14],
|
||||
['get', 'aliases', 'example.com'],
|
||||
['get', 'aliases', 'example.net'],
|
||||
['get', 'alias_details', 20],
|
||||
], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testGetAllOfTheNamedDomains(): void
|
||||
{
|
||||
$result = $this->get('get/alias/all/example.org,example.net', ['script' => [
|
||||
self::answer('mailbox', ['get', 'aliases', 'example.org'], [12]),
|
||||
self::answer('mailbox', ['get', 'aliases', 'example.net'], [20]),
|
||||
self::answer('mailbox', ['get', 'alias_details', 12], self::SALES),
|
||||
self::answer('mailbox', ['get', 'alias_details', 20], self::SHOP),
|
||||
]]);
|
||||
|
||||
$this->assertSame([self::SALES, self::SHOP], $result->json());
|
||||
$this->assertSame([
|
||||
['get', 'aliases', 'example.org'],
|
||||
['get', 'alias_details', 12],
|
||||
['get', 'aliases', 'example.net'],
|
||||
['get', 'alias_details', 20],
|
||||
], $result->callsTo('mailbox'));
|
||||
}
|
||||
|
||||
public function testGetAllWithoutAliases(): void
|
||||
{
|
||||
$noDomains = $this->get('get/alias/all', ['script' => [
|
||||
self::answer('mailbox', ['get', 'domains'], []),
|
||||
self::answer('mailbox', ['get', 'alias_domains'], []),
|
||||
]]);
|
||||
$this->assertSame('{}', $noDomains->body);
|
||||
|
||||
$noAliases = $this->get('get/alias/all/example.org', ['script' => [self::answer('mailbox', ['get', 'aliases'], false)]]);
|
||||
$this->assertSame('{}', $noAliases->body);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Mailcow\Tests\Api\Routing;
|
||||
|
||||
use Mailcow\Tests\Api\ApiTestCase;
|
||||
|
||||
/** add/edit/delete/get fwdhost */
|
||||
class ForwardingHostRoutesTest extends ApiTestCase
|
||||
{
|
||||
private const HOSTS = [
|
||||
['host' => '192.0.2.25', 'source' => 'relay.example.com', 'keep_spam' => 'yes'],
|
||||
['host' => '2001:db8::25', 'source' => 'relay.example.com', 'keep_spam' => 'yes'],
|
||||
];
|
||||
|
||||
public function testAddPassesTheBody(): void
|
||||
{
|
||||
$result = $this->post('add/fwdhost', ['hostname' => 'relay.example.com', 'filter_spam' => '1']);
|
||||
|
||||
$this->assertSame([['add', ['hostname' => 'relay.example.com', 'filter_spam' => '1']]], $result->callsTo('fwdhost'));
|
||||
}
|
||||
|
||||
public function testEditNamesTheHostsFwdhost(): void
|
||||
{
|
||||
$result = $this->post('edit/fwdhost', ['items' => ['192.0.2.25', '198.51.100.0/24'], 'attr' => ['keep_spam' => '0']]);
|
||||
|
||||
$this->assertSame([['edit', ['fwdhost' => ['192.0.2.25', '198.51.100.0/24'], 'keep_spam' => '0']]], $result->callsTo('fwdhost'));
|
||||
}
|
||||
|
||||
public function testDeleteNamesTheHostsForwardinghost(): void
|
||||
{
|
||||
$result = $this->post('delete/fwdhost', ['192.0.2.25', '2001:db8::25']);
|
||||
|
||||
$this->assertSame([['delete', ['forwardinghost' => ['192.0.2.25', '2001:db8::25']]]], $result->callsTo('fwdhost'));
|
||||
}
|
||||
|
||||
public function testGetAllPassesTheList(): void
|
||||
{
|
||||
$result = $this->get('get/fwdhost/all', ['script' => [self::answer('fwdhost', ['get'], self::HOSTS)]]);
|
||||
|
||||
$this->assertSame(self::HOSTS, $result->json());
|
||||
$this->assertSame([['get']], $result->callsTo('fwdhost'));
|
||||
|
||||
$this->assertSame('{}', $this->get('get/fwdhost/all', ['script' => [self::answer('fwdhost', ['get'], [])]])->body);
|
||||
}
|
||||
|
||||
public function testGetOneHost(): void
|
||||
{
|
||||
$found = $this->get('get/fwdhost/192.0.2.25', ['script' => [self::answer('fwdhost', ['details', '192.0.2.25'], self::HOSTS[0])]]);
|
||||
$this->assertSame(self::HOSTS[0], $found->json());
|
||||
|
||||
$this->assertSame('{}', $this->get('get/fwdhost/192.0.2.99', ['script' => [self::answer('fwdhost', ['details'], [])]])->body);
|
||||
}
|
||||
|
||||
public function testGetOneNetworkIsCutAtTheSlash(): void
|
||||
{
|
||||
$result = $this->get('get/fwdhost/198.51.100.0/24');
|
||||
|
||||
$this->assertSame([['details', '198.51.100.0']], $result->callsTo('fwdhost'));
|
||||
}
|
||||
}
|
||||
Loaded 100 of 105 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user