docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
listlengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
<Card title={ t('top_clients') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}>
<mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('Top clients') } subtitle={ t('for the last 24 hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTable <mask> data={...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Clients.js
noDataText={ t('no_clients_found') }
<mask> { ip: prop, count: value } <mask> ))} <mask> columns={this.columns} <mask> showPagination={false} <mask> noDataText={ t('No clients found') } <mask> minRows={6} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Clients.js
<Card title={ props.t('general_statistics') } subtitle={ props.t('for_last_24_hours') } bodyType="card-table" refresh={props.refreshButton}>
<mask> <mask> const tooltipType = 'tooltip-custom--narrow'; <mask> <mask> const Counters = props => ( <mask> <Card title={ props.t('General statistics') } subtitle={ props.t('for the last 24 hours') } bodyType="card-table" refresh={props.refreshButton}> <mask> <table className="table card-table"> <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Counters.js
<Trans>dns_query</Trans> <Tooltip text={ props.t('number_of_dns_query_24_hours') } type={tooltipType} />
<mask> <table className="table card-table"> <mask> <tbody> <mask> <tr> <mask> <td> <mask> <Trans>DNS Queries</Trans> <mask> <Tooltip text={ props.t('A number of DNS quieries processed for the last 24 hours') } ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Counters.js
<Trans>blocked_by</Trans> <a href="#filters"><Trans>Filters</Trans></a> <Tooltip text={ props.t('number_of_dns_query_blocked_24_hours') } type={tooltipType} />
<mask> </td> <mask> </tr> <mask> <tr> <mask> <td> <mask> <Trans>Blocked by</Trans> <a href="#filters"><Trans>Filters</Trans></a> <mask> <Tooltip text={ props.t('A number of DNS requests blocked ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Counters.js
<Trans>stats_malware_phishing</Trans> <Tooltip text={ props.t('number_of_dns_query_blocked_24_hours_by_sec') } type={tooltipType} />
<mask> </td> <mask> </tr> <mask> <tr> <mask> <td> <mask> <Trans>Blocked malware/phishing</Trans> <mask> <Tooltip text={ props.t('A number of DNS requests blocked by the AdGuard browsing security...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Counters.js
<Trans>stats_adult</Trans> <Tooltip text={ props.t('number_of_dns_query_blocked_24_hours_adult') } type={tooltipType} />
<mask> </td> <mask> </tr> <mask> <tr> <mask> <td> <mask> <Trans>Blocked adult websites</Trans> <mask> <Tooltip text={ props.t('A number of adult websites blocked') } type={tooltipType} /> <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Counters.js
<Trans>enforced_save_search</Trans> <Tooltip text={ props.t('number_of_dns_query_to_safe_search') } type={tooltipType} />
<mask> </td> <mask> </tr> <mask> <tr> <mask> <td> <mask> <Trans>Enforced safe search</Trans> <mask> <Tooltip text={ props.t('A number of DNS requests to search engines for which Safe Search was ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Counters.js
<Trans>average_processing_time</Trans> <Tooltip text={ props.t('average_processing_time_hint') } type={tooltipType} />
<mask> </td> <mask> </tr> <mask> <tr> <mask> <td> <mask> <Trans>Average processing time</Trans> <mask> <Tooltip text={ props.t('Average time in milliseconds on processing a DNS request') } type=...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Counters.js
Header: <Trans>requests_count</Trans>,
<mask> </div> <mask> ); <mask> }, <mask> }, { <mask> Header: <Trans>Requests count</Trans>, <mask> accessor: 'count', <mask> maxWidth: 190, <mask> Cell: ({ value }) => { <mask> const percent = getPercent(this.props.dnsQueries, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/QueriedDomains.js
<Card title={ t('stats_query_domain') } subtitle={ t('for_last_24_hours') } bodyType="card-table" refresh={this.props.refreshButton}>
<mask> <mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card title={ t('Top queried domains') } subtitle={ t('for the last 24 hours') } bodyType="card-table" refresh={this.props.refreshButton}> <mask> <ReactTable <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/QueriedDomains.js
noDataText={ t('no_domains_found') }
<mask> { ip: prop, count: value } <mask> ))} <mask> columns={this.columns} <mask> showPagination={false} <mask> noDataText={ t('No domains found') } <mask> minRows={6} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/QueriedDomains.js
<Trans>dns_query</Trans>
<mask> <div className="card-value card-value-stats text-blue"> <mask> {dnsQueries} <mask> </div> <mask> <div className="card-title-stats"> <mask> <Trans>DNS Queries</T...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Statistics.js
<Trans>blocked_by</Trans> <a href="#filters"><Trans>Filters</Trans></a>
<mask> <div className="card-value card-value-percent text-red"> <mask> {getPercent(dnsQueries, blockedFiltering)} <mask> </div> <mask> <div className="card-title-stats"> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Statistics.js
<Trans>stats_malware_phishing</Trans>
<mask> <div className="card-value card-value-percent text-green"> <mask> {getPercent(dnsQueries, replacedSafebrowsing)} <mask> </div> <mask> <div className="card-title-stats"> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Statistics.js
<Trans>stats_adult</Trans>
<mask> <div className="card-value card-value-percent text-yellow"> <mask> {getPercent(dnsQueries, replacedParental)} <mask> </div> <mask> <div className="card-title-stats"> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/Statistics.js
const buttonText = protectionEnabled ? 'disable_protection' : 'enable_protection';
<mask> } <mask> <mask> getToggleFilteringButton = () => { <mask> const { protectionEnabled } = this.props.dashboard; <mask> const buttonText = protectionEnabled ? 'Disable' : 'Enable'; <mask> const buttonClass = protectionEnabled ? 'btn-gray' : 'btn-success'; <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/index.js
<Trans>{buttonText}</Trans>
<mask> const buttonClass = protectionEnabled ? 'btn-gray' : 'btn-success'; <mask> <mask> return ( <mask> <button type="button" className={`btn btn-sm mr-2 ${buttonClass}`} onClick={() => this.props.toggleProtection(protectionEnabled)}> <mask> <Trans>{buttonText} protect...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/index.js
const refreshFullButton = <button type="button" className="btn btn-outline-primary btn-sm" onClick={() => this.getAllStats()}><Trans>refresh_statics</Trans></button>;
<mask> dashboard.processingStats || <mask> dashboard.processingStatsHistory || <mask> dashboard.processingTopStats; <mask> <mask> const refreshFullButton = <button type="button" className="btn btn-outline-primary btn-sm" onClick={() => this.getAllStats()}><Trans>Refresh...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/index.js
<PageTitle title={ t('dashboard') }>
<mask> const refreshButton = <button type="button" className="btn btn-outline-primary btn-sm card-refresh" onClick={() => this.getAllStats()} />; <mask> <mask> return ( <mask> <Fragment> <mask> <PageTitle title={ t('Dashboard') }> <mask> <div classN...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Dashboard/index.js
title={ t('custom_filter_rules') } subtitle={ t('custom_filter_rules_hint') }
<mask> render() { <mask> const { t } = this.props; <mask> return ( <mask> <Card <mask> title={ t('Custom filtering rules') } <mask> subtitle={ t('Enter one rule on a line. You can use either adblock rules or hosts files syntax.') } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/UserRules.js
<Trans>apply_btn</Trans>
<mask> className="btn btn-success btn-standart" <mask> type="submit" <mask> onClick={this.handleSubmit} <mask> > <mask> <Trans>Apply</Trans> <mask> </butt...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/UserRules.js
<Trans>examples_title</Trans>:
<mask> </div> <mask> </form> <mask> <hr/> <mask> <div className="list leading-loose"> <mask> <Trans>Examples</Trans>: <mask> <ol className="leading-loose"> <mask> <li> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/UserRules.js
<code>||example.org^</code> - { t('example_meaning_filter_block') }
<mask> <div className="list leading-loose"> <mask> <Trans>Examples</Trans>: <mask> <ol className="leading-loose"> <mask> <li> <mask> <code>||example.org^</code> - { t('block access to the example.org domain ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/UserRules.js
<code> @@||example.org^</code> - { t('example_meaning_filter_whitelist') }
<mask> <li> <mask> <code>||example.org^</code> - { t('block access to the example.org domain and all its subdomains') } <mask> </li> <mask> <li> <mask> <code> @@||example.org^</code> - { ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/UserRules.js
<code>127.0.0.1 example.org</code> - { t('example_comment') }
<mask> <li> <mask> <code> @@||example.org^</code> - { t('unblock access to the example.org domain and all its subdomains') } <mask> </li> <mask> <li> <mask> <code>127.0.0.1 example.org</c...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/UserRules.js
<code>{ t('example_comment') }</code> - { t('example_comment_meaning') }
<mask> <li> <mask> <code>127.0.0.1 example.org</code> - { t('AdGuard Home will now return 127.0.0.1 address for the example.org domain (but not its subdomains).') } <mask> </li> <mask> <li> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/UserRules.js
<code>{ t('example_comment_hash') }</code> - { t('example_comment_meaning') }
<mask> <li> <mask> <code>{ t('! Here goes a comment') }</code> - { t('just a comment') } <mask> </li> <mask> <li> <mask> <code>{ t('# Also a comment') }</code> - { t('just a comment') } ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/UserRules.js
Header: this.props.t('enabled_table_header'),
<mask> ); <mask> }; <mask> <mask> columns = [{ <mask> Header: this.props.t('Enabled'), <mask> accessor: 'enabled', <mask> Cell: this.renderCheckbox, <mask> width: 90, <mask> className: 'text-center', <mask> }, { </s> Convert i18n resource to key ty...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
Header: this.props.t('name_table_header'),
<mask> Cell: this.renderCheckbox, <mask> width: 90, <mask> className: 'text-center', <mask> }, { <mask> Header: this.props.t('Name'), <mask> accessor: 'name', <mask> Cell: ({ value }) => (<div className="logs__row logs__row--overflow"><span className="logs__tex...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
Header: this.props.t('filter_url_table_header'),
<mask> Header: this.props.t('Name'), <mask> accessor: 'name', <mask> Cell: ({ value }) => (<div className="logs__row logs__row--overflow"><span className="logs__text" title={value}>{value}</span></div>), <mask> }, { <mask> Header: this.props.t('Filter URL'), <mask> acce...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
Header: this.props.t('rules_count_table_header'),
<mask> Header: this.props.t('Filter URL'), <mask> accessor: 'url', <mask> Cell: ({ value }) => (<div className="logs__row logs__row--overflow"><a href={value} target='_blank' rel='noopener noreferrer' className="link logs__text">{value}</a></div>), <mask> }, { <mask> Header: thi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
Header: this.props.t('last_time_updated_table_header'),
<mask> accessor: 'rulesCount', <mask> className: 'text-center', <mask> Cell: props => props.value.toLocaleString(), <mask> }, { <mask> Header: this.props.t('Last time updated'), <mask> accessor: 'lastUpdated', <mask> className: 'text-center', <mask> }, { ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
Header: this.props.t('actions_table_header'),
<mask> Header: this.props.t('Last time updated'), <mask> accessor: 'lastUpdated', <mask> className: 'text-center', <mask> }, { <mask> Header: this.props.t('Actions'), <mask> accessor: 'url', <mask> Cell: ({ value }) => (<span title={ this.props.t('Delete') } cl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
Cell: ({ value }) => (<span title={ this.props.t('delete_table_action') } className='remove-icon fe fe-trash-2' onClick={() => this.props.removeFilter(value)}/>),
<mask> className: 'text-center', <mask> }, { <mask> Header: this.props.t('Actions'), <mask> accessor: 'url', <mask> Cell: ({ value }) => (<span title={ this.props.t('Delete') } className='remove-icon fe fe-trash-2' onClick={() => this.props.removeFilter(value)}/>), <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
<PageTitle title={ t('filters') } />
<mask> const { t } = this.props; <mask> const { filters, userRules } = this.props.filtering; <mask> return ( <mask> <div> <mask> <PageTitle title={ t('Filters') } /> <mask> <div className="content"> <mask> <div className="row...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
title={ t('filters_and_hosts') } subtitle={ t('filters_and_hosts_hint') }
<mask> <div className="content"> <mask> <div className="row"> <mask> <div className="col-md-12"> <mask> <Card <mask> title={ t('Filters and hosts blocklists') } <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
noDataText={ t('no_filters_added') }
<mask> <ReactTable <mask> data={filters} <mask> columns={this.columns} <mask> showPagination={false} <mask> noDataText={ t('No filters adde...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
<button className="btn btn-success btn-standart mr-2" type="submit" onClick={this.props.toggleFilteringModal}><Trans>add_filter_btn</Trans></button> <button className="btn btn-primary btn-standart" type="submit" onClick={this.props.refreshFilters}>...
<mask> noDataText={ t('No filters added') } <mask> minRows={4} // TODO find out what to show if rules.length is 0 <mask> /> <mask> <div className="card-actions"> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
title={ t('new_filter_btn') } inputDescription={ t('enter_valid_filter_url') }
<mask> isOpen={this.props.filtering.isFilteringModalOpen} <mask> toggleModal={this.props.toggleFilteringModal} <mask> addFilter={this.props.addFilter} <mask> isFilterAdded={this.props.filtering.isFilterAdded} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Filters/index.js
<Trans>back</Trans>
<mask> <ul className="nav nav-tabs border-0 flex-column flex-lg-row"> <mask> <li className="nav-item border-bottom d-lg-none" onClick={this.toggleMenu}> <mask> <div className="nav-link nav-link--back"> <mask> <sv...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Header/Menu.js
<Trans>dashboard</Trans>
<mask> </li> <mask> <li className="nav-item"> <mask> <NavLink to="/" exact={true} className="nav-link"> <mask> <svg className="nav-icon" fill="none" height="24" stroke="#9aa0ac" strokeLinecap="round" strokeLi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Header/Menu.js
<Trans>settings</Trans>
<mask> </li> <mask> <li className="nav-item"> <mask> <NavLink to="/settings" className="nav-link"> <mask> <svg className="nav-icon" fill="none" height="24" strokeLinecap="round" strokeLinejoin="round" strokeW...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Header/Menu.js
<Trans>filters</Trans>
<mask> </li> <mask> <li className="nav-item"> <mask> <NavLink to="/filters" className="nav-link"> <mask> <svg className="nav-icon" fill="none" height="24" strokeLinecap="round" strokeLinejoin="round" strokeWi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Header/Menu.js
<Trans>query_log</Trans>
<mask> </li> <mask> <li className="nav-item"> <mask> <NavLink to="/logs" className="nav-link"> <mask> <svg className="nav-icon" fill="none" height="24" strokeLinecap="round" strokeLinejoin="round" strokeWidth...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Header/Menu.js
<Trans>faq</Trans>
<mask> </li> <mask> <li className="nav-item"> <mask> <a href={`${REPOSITORY.URL}/wiki`} className="nav-link" target="_blank" rel="noopener noreferrer"> <mask> <svg className="nav-icon" xmlns="http://www.w3.or...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Header/Menu.js
<Trans>{dashboard.protectionEnabled ? 'on' : 'off'}</Trans>
<mask> <img src={logo} alt="" className="header-brand-img" /> <mask> </Link> <mask> {!dashboard.proccessing && dashboard.isCoreRunning && <mask> <span className={badgeClass}> <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Header/index.js
this.props.addSuccessToast(`${t('rule_removed_from_custom_filtering_toast')}: ${blockingRule}`);
<mask> const preparedUnblockingRule = new RegExp(`(^|\n)${escapeRegExp(unblockingRule)}($|\n)`); <mask> <mask> if (userRules.match(preparedBlockingRule)) { <mask> this.props.setRules(userRules.replace(`${blockingRule}`, '')); <mask> this.props.addSuccessToast(`${t('Rule rem...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
this.props.addSuccessToast(`${t('rule_added_to_custom_filtering_toast')}: ${unblockingRule}`);
<mask> this.props.setRules(userRules.replace(`${blockingRule}`, '')); <mask> this.props.addSuccessToast(`${t('Rule removed from the custom filtering rules')}: ${blockingRule}`); <mask> } else if (!userRules.match(preparedUnblockingRule)) { <mask> this.props.setRules(`${us...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
const buttonText = isFiltered ? 'ublock_btn' : 'block_btn';
<mask> } <mask> <mask> renderBlockingButton(isFiltered, domain) { <mask> const buttonClass = isFiltered ? 'btn-outline-secondary' : 'btn-outline-danger'; <mask> const buttonText = isFiltered ? 'Unblock' : 'Block'; <mask> <mask> return ( <mask> <div className="logs__...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
Header: t('time_table_header'),
<mask> <mask> renderLogs(logs) { <mask> const { t } = this.props; <mask> const columns = [{ <mask> Header: t('Time'), <mask> accessor: 'time', <mask> maxWidth: 110, <mask> filterable: false, <mask> Cell: ({ value }) => (<div class...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
Header: t('domain_name_table_header'),
<mask> maxWidth: 110, <mask> filterable: false, <mask> Cell: ({ value }) => (<div className="logs__row"><span className="logs__text" title={value}>{formatTime(value)}</span></div>), <mask> }, { <mask> Header: t('Domain name'), <mask> accessor: 'd...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
Header: t('type_table_header'),
<mask> </div> <mask> ); <mask> }, <mask> }, { <mask> Header: t('Type'), <mask> accessor: 'type', <mask> maxWidth: 60, <mask> }, { <mask> Header: t('Response'), <mask> accessor: 'response...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
Header: t('response_table_header'),
<mask> Header: t('Type'), <mask> accessor: 'type', <mask> maxWidth: 60, <mask> }, { <mask> Header: t('Response'), <mask> accessor: 'response', <mask> Cell: (row) => { <mask> const responses = row.value; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
filterName = 'custom_filter_rules';
<mask> let filterName = ''; <mask> <mask> if (reason === 'FilteredBlackList' || reason === 'NotFilteredWhiteList') { <mask> if (filterId === 0) { <mask> filterName = 'Custom filtering rules'; <mask> } else { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
<span><Trans>empty_response_status</Trans></span>
<mask> ); <mask> } <mask> return ( <mask> <div className="logs__row"> <mask> <span><Trans>Empty</Trans></span> <mask> {this.renderTooltip(isFiltered, rule, filterName)} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
<option value="all">{ t('show_all_filter_type') }</option> <option value="filtered">{ t('show_filtered_type') }</option>
<mask> onChange={event => onChange(event.target.value)} <mask> className="form-control" <mask> value={filter ? filter.value : 'all'} <mask> > <mask> <option value="all">{ t('Show all') }</option> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
previousText={ t('previous_btn') } nextText={ t('next_btn') } loadingText={ t('loading_table_status') } pageText={ t('page_table_footer_text') } ofText={ t('of_table_footer_text') } rowsText={ t('rows_table_footer_text') } ...
<mask> showPagination={true} <mask> defaultPageSize={50} <mask> minRows={7} <mask> // Text <mask> previousText={ t('Previous') } <mask> nextText={ t('Next') } <mask> loadingText={ t('Loading...') } <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
><Trans>disabled_log_btn</Trans></button>
<mask> <button <mask> className="btn btn-gray btn-sm mr-2" <mask> type="submit" <mask> onClick={() => this.props.toggleLogStatus(queryLogEnabled)} <mask> ><Trans>Disable log</Trans></button> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
><Trans>download_log_file_btn</Trans></button>
<mask> <button <mask> className="btn btn-primary btn-sm mr-2" <mask> type="submit" <mask> onClick={this.handleDownloadButton} <mask> ><Trans>Download log file</Trans></button> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
><Trans>refresh_btn</Trans></button>
<mask> <button <mask> className="btn btn-outline-primary btn-sm" <mask> type="submit" <mask> onClick={this.getLogs} <mask> ><Trans>Refresh</Trans></button> <mask> </Fragment> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
><Trans>enabled_log_btn</Trans></button>
<mask> <button <mask> className="btn btn-success btn-sm mr-2" <mask> type="submit" <mask> onClick={() => this.props.toggleLogStatus(queryLogEnabled)} <mask> ><Trans>Enable log</Trans></button> <mask> ); <mask> } <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
<PageTitle title={ t('query_log') } subtitle={ t('last_5000_dns_queries') }>
<mask> const { queryLogs, dashboard, t } = this.props; <mask> const { queryLogEnabled } = dashboard; <mask> return ( <mask> <Fragment> <mask> <PageTitle title={ t('Query Log') } subtitle={ t('Last 5000 DNS queries') }> <mask> <div className="...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Logs/index.js
title={ t('upstream_dns') } subtitle={ t('upstream_dns_hint') }
<mask> const { t } = this.props; <mask> <mask> return ( <mask> <Card <mask> title={ t('Upstream DNS servers') } <mask> subtitle={ t('If you keep this field empty, AdGuard Home will use <a href="https://1.1.1.1/" target="_blank">Cloudflare DNS</a> as an ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/Upstream.js
<Trans>test_upstream_btn</Trans>
<mask> className={testButtonClass} <mask> type="button" <mask> onClick={this.handleTest} <mask> > <mask> <Trans>Test upstreams</Trans> <ma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/Upstream.js
<Trans>apply_btn</Trans>
<mask> className="btn btn-success btn-standart" <mask> type="submit" <mask> onClick={this.handleSubmit} <mask> > <mask> <Trans>Apply</Trans...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/Upstream.js
title: 'block_domain_use_filters_and_hosts', subtitle: 'filters_block_toggle_hint',
<mask> class Settings extends Component { <mask> settings = { <mask> filtering: { <mask> enabled: false, <mask> title: 'Block domains using filters and hosts files', <mask> subtitle: 'You can setup blocking rules in the <a href="#filters">Filters</a> settings.', <m...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/index.js
title: 'use_adguard_browsing_sec', subtitle: 'use_adguard_browsing_sec_hint',
<mask> subtitle: 'You can setup blocking rules in the <a href="#filters">Filters</a> settings.', <mask> }, <mask> safebrowsing: { <mask> enabled: false, <mask> title: 'Use AdGuard browsing security web service', <mask> subtitle: 'AdGuard Home will ch...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/index.js
title: 'use_adguard_parental', subtitle: 'use_adguard_parental_hint',
<mask> subtitle: 'AdGuard Home will check if domain is blacklisted by the browsing security web service. It will use privacy-friendly lookup API to perform the check: only a short prefix of the domain name SHA256 hash is sent to the server.', <mask> }, <mask> parental: { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/index.js
title: 'enforce_safe_search', subtitle: 'enforce_save_search_hint',
<mask> subtitle: 'AdGuard Home will check if domain contains adult materials. It uses the same privacy-friendly API as the browsing security web service.', <mask> }, <mask> safesearch: { <mask> enabled: false, <mask> title: 'Enforce safe search', <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/index.js
this.props.addErrorToast({ error: this.props.t('no_servers_specified') });
<mask> handleUpstreamTest = () => { <mask> if (this.props.dashboard.upstreamDns.length > 0) { <mask> this.props.testUpstream(this.props.dashboard.upstreamDns); <mask> } else { <mask> this.props.addErrorToast({ error: this.props.t('No servers specified') }); <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/index.js
<div><Trans>no_settings</Trans></div>
<mask> />); <mask> }); <mask> } <mask> return ( <mask> <div><Trans>No settings</Trans></div> <mask> ); <mask> } <mask> <mask> render() { <mask> const { settings, t } = this.props; </s> Convert i18n resource to key type </s> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/index.js
<PageTitle title={ t('settings') } />
<mask> const { settings, t } = this.props; <mask> const { upstreamDns } = this.props.dashboard; <mask> return ( <mask> <Fragment> <mask> <PageTitle title={ t('Settings') } /> <mask> {settings.processing && <Loading />} <mask> {!s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/index.js
<Card title={ t('general_settings') } bodyType="card-body box-body--settings">
<mask> {!settings.processing && <mask> <div className="content"> <mask> <div className="row"> <mask> <div className="col-md-12"> <mask> <Card title={ t('General settings') } bodyType="card-body b...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/Settings/index.js
import i18n, { languages } from '../../i18n';
<mask> import React, { Component } from 'react'; <mask> import { Trans, withNamespaces } from 'react-i18next'; <mask> import { REPOSITORY } from '../../helpers/constants'; <mask> import i18n from '../../i18n'; <mask> <mask> class Footer extends Component { <mask> getYear = () => { <mask> const toda...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Footer.js
changeLanguage = (event) => { i18n.changeLanguage(event.target.value);
<mask> const today = new Date(); <mask> return today.getFullYear(); <mask> }; <mask> <mask> changeLanguage = () => { <mask> i18n.changeLanguage(i18n.language === 'en' ? 'vi' : 'en'); <mask> } <mask> <mask> render() { <mask> return ( <mask> <footer...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Footer.js
<a href={REPOSITORY.URL} target="_blank" rel="noopener noreferrer"><Trans>homepage</Trans></a>
<mask> </div> <mask> <div className="col-auto"> <mask> <ul className="list-inline text-center mb-0"> <mask> <li className="list-inline-item"> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Footer.js
<Trans>report_an_issue</Trans>
<mask> </button> <mask> </div> <mask> <div className="col-auto"> <mask> <a href={`${REPOSITORY.URL}/issues/new`} className="btn btn-outline-primary btn-sm" target="_blank" rel="noo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Footer.js
<input type="text" className={inputNameClass} placeholder={ this.props.t('enter_name_hint') } onChange={this.handleNameChange} /> <input type="text" className={inputUrlClass} placeholder={ this.props.t('enter_url_hint') } onChange={this.handleUrlChange} />
<mask> const renderBody = () => { <mask> if (!this.props.isFilterAdded) { <mask> return ( <mask> <React.Fragment> <mask> <input type="text" className={inputNameClass} placeholder={ this.props.t('Enter name') } onChange={this.handleName...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Modal.js
<button type="button" className="btn btn-secondary" onClick={this.closeModal}><Trans>cancel_btn</Trans></button> <button type="button" className="btn btn-success" onClick={this.handleNext} disabled={isValidForSubmit}><Trans>add_filter_btn</Trans></button>
<mask> </div> <mask> { <mask> !this.props.isFilterAdded && <mask> <div className="modal-footer"> <mask> <button type="button" className="btn btn-secondary" onClick={this.closeModal}><Trans>Ca...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Modal.js
<Trans>source_label</Trans>: <a className="popover__link" target="_blank" rel="noopener noreferrer" href={sourceData.url}><strong>{sourceData.name}</strong></a>
<mask> const sourceData = getSourceData(data); <mask> <mask> const source = ( <mask> <div className="popover__list-item"> <mask> <Trans>Source</Trans>: <a className="popover__link" target="_blank" rel="noopener noreferrer" href={sourceData.url}><strong>{sourceData.name}...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Popover.js
<Trans>name_table_header</Trans>: <a className="popover__link" target="_blank" rel="noopener noreferrer" href={data.url}><strong>{data.name}</strong></a>
<mask> ); <mask> <mask> const tracker = ( <mask> <div className="popover__list-item"> <mask> <Trans>Name</Trans>: <a className="popover__link" target="_blank" rel="noopener noreferrer" href={data.url}><strong>{data.name}</strong></a> <mask> </div> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Popover.js
<Trans>found_in_known_domain_db</Trans>
<mask> </div> <mask> <div className="popover__body"> <mask> <div className="popover__list"> <mask> <div className="popover__list-title"> <mask> <Trans>Found in the known domains database.</Trans> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Popover.js
<Trans>category_label</Trans>: <strong> <Trans>{categoryName}</Trans></strong>
<mask> <Trans>Found in the known domains database.</Trans> <mask> </div> <mask> {tracker} <mask> <div className="popover__list-item"> <mask> <Trans>Category</Trans>: <strong><Trans>{categ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/Popover.js
<Trans>rule_label</Trans>: <strong>{this.props.rule}</strong>
<mask> </div> <mask> <div className="popover__body popover__body--filter"> <mask> <div className="popover__list"> <mask> <div className="popover__list-item popover__list-item--nowrap"> <mask> <Trans>Rule</Trans>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/PopoverFilter.js
<Trans>filter_label</Trans>: <strong>{this.props.filter}</strong>
<mask> <div className="popover__list-item popover__list-item--nowrap"> <mask> <Trans>Rule</Trans>: <strong>{this.props.rule}</strong> <mask> </div> <mask> {this.props.filter && <div className="popover__list-item popo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/components/ui/PopoverFilter.js
avg_processing_time: 'average_processing_time',
<mask> export const R_URL_REQUIRES_PROTOCOL = /^https?:\/\/\w[\w_\-.]*\.[a-z]{2,8}[^\s]*$/; <mask> <mask> export const STATS_NAMES = { <mask> avg_processing_time: 'Average processing time', <mask> blocked_filtering: 'Blocked by filters', <mask> dns_queries: 'DNS queries', <mask> replaced_parenta...
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/helpers/constants.js
replaced_parental: 'stats_adult', replaced_safebrowsing: 'stats_malware_phishing', replaced_safesearch: 'enforced_save_search',
<mask> export const STATS_NAMES = { <mask> avg_processing_time: 'Average processing time', <mask> blocked_filtering: 'Blocked by filters', <mask> dns_queries: 'DNS queries', <mask> replaced_parental: 'Blocked adult websites', <mask> replaced_safebrowsing: 'Blocked malware/phishing', <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/helpers/constants.js
vi, en,
<mask> .use(initReactI18n) <mask> .use(reactI18nextModule) // passes i18n down to react-i18next <mask> .init({ <mask> resources: { <mask> vi: viResource, <mask> }, <mask> fallbackLng: 'en', <mask> keySeparator: false, // we use content as keys <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d47a23269da9731f941609997ae9ae063524a18e
client/src/i18n.js
const defaultParentalServer = "pctrl.adguard.com" const defaultParentalURL = "http://%s/check-parental-control-hash?prefixes=%s&sensitivity=%d"
<mask> const defaultHTTPMaxIdleConnections = 100 <mask> <mask> const defaultSafebrowsingServer = "sb.adtidy.org" <mask> const defaultSafebrowsingURL = "http://%s/safebrowsing-lookup-hash.html?prefixes=%s" <mask> const defaultParentalURL = "http://pctrl.adguard.com/check-parental-control-hash?prefixes=%s&sensitivi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d49e3769a105f4dee639b9dec1112b123b7a23aa
dnsfilter/dnsfilter.go
parentalServer string
<mask> safeSearchEnabled bool <mask> safeBrowsingEnabled bool <mask> safeBrowsingServer string <mask> parentalEnabled bool <mask> parentalSensitivity int // must be either 3, 10, 13 or 17 <mask> } <mask> <mask> type Rule struct { <mask> text string // text without @@ decorators or $ optio...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d49e3769a105f4dee639b9dec1112b123b7a23aa
dnsfilter/dnsfilter.go
host = strings.ToLower(host)
<mask> if host == "" { <mask> return Result{Reason: FilteredInvalid}, nil <mask> } <mask> <mask> // try filter lists first <mask> result, err := d.matchHost(host) <mask> if err != nil { </s> dnsfilter -- do not check lookup hosts against themselves to avoid recursion </s> remove url := fmt.Sprintf(def...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d49e3769a105f4dee639b9dec1112b123b7a23aa
dnsfilter/dnsfilter.go
// prevent recursion -- checking the host of safebrowsing server makes no sense if host == d.config.safeBrowsingServer { return Result{}, nil }
<mask> return hashparam.String(), hashes <mask> } <mask> <mask> func (d *Dnsfilter) checkSafeBrowsing(host string) (Result, error) { <mask> format := func(hashparam string) string { <mask> url := fmt.Sprintf(defaultSafebrowsingURL, d.config.safeBrowsingServer, hashparam) <mask> return url <mask> } <mas...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d49e3769a105f4dee639b9dec1112b123b7a23aa
dnsfilter/dnsfilter.go
// prevent recursion -- checking the host of parental safety server makes no sense if host == d.config.parentalServer { return Result{}, nil }
<mask> return result, err <mask> } <mask> <mask> func (d *Dnsfilter) checkParental(host string) (Result, error) { <mask> format := func(hashparam string) string { <mask> url := fmt.Sprintf(defaultParentalURL, d.config.parentalServer, hashparam, d.config.parentalSensitivity) <mask> return url <mask> } <...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d49e3769a105f4dee639b9dec1112b123b7a23aa
dnsfilter/dnsfilter.go
url := fmt.Sprintf(defaultParentalURL, d.config.parentalServer, hashparam, d.config.parentalSensitivity)
<mask> } <mask> <mask> func (d *Dnsfilter) checkParental(host string) (Result, error) { <mask> format := func(hashparam string) string { <mask> url := fmt.Sprintf(defaultParentalURL, hashparam, d.config.parentalSensitivity) <mask> return url <mask> } <mask> handleBody := func(body []byte, hashes map[str...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d49e3769a105f4dee639b9dec1112b123b7a23aa
dnsfilter/dnsfilter.go
d.config.parentalServer = defaultParentalServer
<mask> Timeout: defaultHTTPTimeout, <mask> } <mask> d.config.safeBrowsingServer = defaultSafebrowsingServer <mask> return d <mask> } <mask> <mask> func (d *Dnsfilter) Destroy() { </s> dnsfilter -- do not check lookup hosts against themselves to avoid recursion </s> remove url := fmt.Sprintf(defaultPar...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d49e3769a105f4dee639b9dec1112b123b7a23aa
dnsfilter/dnsfilter.go
// Coalesce returns the first non-zero value. It is named after the function // COALESCE in SQL. If values or all its elements are empty, it returns a zero // value. func Coalesce[T comparable](values ...T) (res T) { var zero T for _, v := range values { if v != zero { return v } } return zero }
<mask> "golang.org/x/exp/constraints" <mask> "golang.org/x/exp/slices" <mask> ) <mask> <mask> // UniqChecker allows validating uniqueness of comparable items. <mask> // <mask> // TODO(a.garipov): The Ordered constraint is only really necessary in Validate. <mask> // Consider ways of making this constraint co...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d4c3a43bcb1ac006fe92a5b5478f61dc60d0bd3f
internal/aghalg/aghalg.go
Hostname: "nonexistent.example",
<mask> Value: "simplehost.", <mask> }}, <mask> }, { <mask> req: &urlfilter.DNSRequest{ <mask> Hostname: "nonexisting", <mask> DNSType: dns.TypeA, <mask> }, <mask> name: "non-existing", <mask> want: []*rules.DNSRewrite{}, <mask> }, { </s> Pull request #1558: add-dnssvc Merge in DNS/adg...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d4c3a43bcb1ac006fe92a5b5478f61dc60d0bd3f
internal/aghnet/hostscontainer_test.go
package aghos_test
<mask> package aghos <mask> <mask> import ( <mask> "testing" <mask> <mask> "github.com/AdguardTeam/AdGuardHome/internal/aghtest" </s> Pull request #1558: add-dnssvc Merge in DNS/adguard-home from add-dnssvc to master Squashed commit of the following: commit 55f4f114bab65a03c0d65383e89020a7356cff32 Merge: ...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d4c3a43bcb1ac006fe92a5b5478f61dc60d0bd3f
internal/aghos/aghos_test.go
package aghos_test
<mask> package aghos <mask> <mask> import ( <mask> "bufio" <mask> "io" <mask> "io/fs" </s> Pull request #1558: add-dnssvc Merge in DNS/adguard-home from add-dnssvc to master Squashed commit of the following: commit 55f4f114bab65a03c0d65383e89020a7356cff32 Merge: 95dc28d9 6e63757f Author: Ainar Garipov <A....
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/d4c3a43bcb1ac006fe92a5b5478f61dc60d0bd3f
internal/aghos/filewalker_test.go