feat: implement self-signed certificate support in API and UI
- Added support for self-signed TLS certificates in the ApiService, allowing configuration based on server settings. - Introduced a toggle in the ServerConnectionPage to enable or disable trusting self-signed certificates. - Updated localization files to include new strings for self-signed certificate settings in multiple languages. - Enhanced the OptimizedStorageService to manage trusted servers based on user preferences for self-signed certificates. - Improved error handling and logging throughout the affected services to ensure clarity and maintainability.
This commit is contained in:
@@ -13,10 +13,7 @@ class ConduitMarkdownPreprocessor {
|
||||
r'^[ \t]+```([^\n`]*)\s*$',
|
||||
multiLine: true,
|
||||
);
|
||||
static final _dedentCloseRegex = RegExp(
|
||||
r'^[ \t]+```\s*$',
|
||||
multiLine: true,
|
||||
);
|
||||
static final _dedentCloseRegex = RegExp(r'^[ \t]+```\s*$', multiLine: true);
|
||||
static final _inlineClosingRegex = RegExp(r'([^\r\n`])```(?=\s*(?:\r?\n|$))');
|
||||
static final _labelThenDashRegex = RegExp(
|
||||
r'^(\*\*[^\n*]+\*\*.*)\n(\s*-{3,}\s*$)',
|
||||
@@ -45,7 +42,10 @@ class ConduitMarkdownPreprocessor {
|
||||
|
||||
// Dedent opening fences to avoid partial code-block detection when the
|
||||
// model indents fences by accident.
|
||||
output = output.replaceAllMapped(_dedentOpenRegex, (match) => '```${match[1]}');
|
||||
output = output.replaceAllMapped(
|
||||
_dedentOpenRegex,
|
||||
(match) => '```${match[1]}',
|
||||
);
|
||||
|
||||
// Dedent closing fences for the same reason as the opening fences.
|
||||
output = output.replaceAllMapped(_dedentCloseRegex, (_) => '```');
|
||||
|
||||
Reference in New Issue
Block a user