+ client: add link to the new article about hosts blocklists syntax

This commit is contained in:
Ildar Kamalov
2019-10-14 17:11:04 +03:00
parent dbe57969f1
commit 9ea7bb0ae6
19 changed files with 243 additions and 70 deletions

View File

@@ -39,40 +39,47 @@ class UserRules extends Component {
<Trans>examples_title</Trans>:
<ol className="leading-loose">
<li>
<code>||example.org^</code> {t('example_meaning_filter_block')}
<code>||example.org^</code> &nbsp;
<Trans>example_meaning_filter_block</Trans>
</li>
<li>
<code> @@||example.org^</code> {t('example_meaning_filter_whitelist')}
<code> @@||example.org^</code> &nbsp;
<Trans>example_meaning_filter_whitelist</Trans>
</li>
<li>
<code>127.0.0.1 example.org</code> {t('example_meaning_host_block')}
<code>127.0.0.1 example.org</code> &nbsp;
<Trans>example_meaning_host_block</Trans>
</li>
<li>
<code>{t('example_comment')}</code> {t('example_comment_meaning')}
<code><Trans>example_comment</Trans></code> &nbsp;
<Trans>example_comment_meaning</Trans>
</li>
<li>
<code>{t('example_comment_hash')}</code> &nbsp;
{t('example_comment_meaning')}
<code><Trans>example_comment_hash</Trans></code> &nbsp;
<Trans>example_comment_meaning</Trans>
</li>
<li>
<code>/REGEX/</code> &nbsp;
<Trans
components={[
<a
href="https://kb.adguard.com/general/dns-filtering-syntax"
target="_blank"
rel="noopener noreferrer"
key="0"
>
link
</a>,
]}
>
example_regex_meaning
</Trans>
<Trans>example_regex_meaning</Trans>
</li>
</ol>
</div>
<p className="mt-1">
<Trans
components={[
<a
href="https://github.com/AdguardTeam/AdGuardHome/wiki/Hosts-Blocklists"
target="_blank"
rel="noopener noreferrer"
key="0"
>
link
</a>,
]}
>
filtering_rules_learn_more
</Trans>
</p>
</Card>
);
}