diff --git a/fe-app-podkop/src/validators/validatePath.ts b/fe-app-podkop/src/validators/validatePath.ts index 045601e..d08773f 100644 --- a/fe-app-podkop/src/validators/validatePath.ts +++ b/fe-app-podkop/src/validators/validatePath.ts @@ -13,7 +13,7 @@ export function validatePath(value: string): ValidationResult { if (pathRegex.test(value)) { return { valid: true, - message: 'Valid', + message: _('Valid'), }; } diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/configSection.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/configSection.js index b4f3b17..cde7914 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/configSection.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/configSection.js @@ -46,7 +46,9 @@ function createConfigSection(section) { ); o.depends('proxy_config_type', 'url'); o.rows = 5; + // Enable soft wrapping for multi-line proxy URLs (e.g., for URLTest proxy links) o.wrap = 'soft'; + // Render as a textarea to allow multiple proxy URLs/configs o.textarea = true; o.rmempty = false; o.ucisection = s.section; diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js index 34cde9e..dae6acf 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/main.js @@ -75,7 +75,7 @@ function validatePath(value) { if (pathRegex.test(value)) { return { valid: true, - message: "Valid" + message: _("Valid") }; } return {