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
hosts = []netip.Addr{aghnet.IPv4Localhost()}
<mask> func generateServerConfig() (newConf dnsforward.ServerConfig, err error) { <mask> dnsConf := config.DNS <mask> hosts := dnsConf.BindHosts <mask> if len(hosts) == 0 { <mask> hosts = []net.IP{{127, 0, 0, 1}} <mask> } <mask> <mask> newConf = dnsforward.ServerConfig{ <mask> UDPListenAddrs: ipsToU...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/dns.go
func newDNSCrypt(hosts []netip.Addr, tlsConf tlsConfigSettings) (dnscc dnsforward.DNSCryptConfig, err error) {
<mask> <mask> return newConf, nil <mask> } <mask> <mask> func newDNSCrypt(hosts []net.IP, tlsConf tlsConfigSettings) (dnscc dnsforward.DNSCryptConfig, err error) { <mask> if tlsConf.DNSCryptConfigFile == "" { <mask> return dnscc, errors.Error("no dnscrypt_config_file") <mask> } <mask> <mask> f, err :...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/dns.go
"net/netip"
<mask> "net" <mask> "net/http" <mask> "net/http/pprof" <mask> "net/url" <mask> "os" <mask> "os/signal" <mask> "path/filepath" </s> Pull request: Migrate to netip.Addr vol.1 Merge in DNS/adguard-home from 2926-lla-v6 to master Updates #2926. Updates #5035. Squashed commit of the following: commit 2e77...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/home.go
if opts.bindHost.IsValid() {
<mask> config.BindPort = opts.bindPort <mask> } <mask> <mask> // override bind host/port from the console <mask> if opts.bindHost != nil { <mask> config.BindHost = opts.bindHost <mask> } <mask> if len(opts.pidFile) != 0 && writePIDFile(opts.pidFile) { <mask> Context.pidFileName = opts.pidFile <mas...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/home.go
err := aghnet.CheckPort("tcp", netip.AddrPortFrom(aghnet.IPv4Localhost(), defaultPortDNS))
<mask> log.Fatal("This is the first launch of AdGuard Home. You must run it as Administrator.") <mask> } <mask> <mask> // We should check if AdGuard Home is able to bind to port 53 <mask> err := aghnet.CheckPort("tcp", net.IP{127, 0, 0, 1}, defaultPortDNS) <mask> if err != nil { <mask> if errors.Is(err,...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/home.go
<mask> <mask> import ( <mask> "bytes" <mask> "encoding/json" <mask> "net" <mask> "net/http" <mask> "net/http/httptest" <mask> "testing" <mask> <mask> "github.com/AdguardTeam/golibs/netutil" </s> Pull request: Migrate to netip.Addr vol.1 Merge in DNS/adguard-home from 2926-lla-v6 to master Updates ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/mobileconfig_test.go
"net/netip"
<mask> "net/http" <mask> "net/http/httptest" <mask> "testing" <mask> <mask> "github.com/stretchr/testify/assert" <mask> "github.com/stretchr/testify/require" </s> Pull request: Migrate to netip.Addr vol.1 Merge in DNS/adguard-home from 2926-lla-v6 to master Updates #2926. Updates #5035. Squashed commit ...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/mobileconfig_test.go
<mask> "net/http" <mask> "net/http/httptest" <mask> "testing" <mask> <mask> "github.com/AdguardTeam/golibs/netutil" <mask> "github.com/stretchr/testify/assert" <mask> "github.com/stretchr/testify/require" <mask> "howett.net/plist" <mask> ) <mask> </s> Pull request: Migrate to netip.Addr vol.1 Merge...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/mobileconfig_test.go
BindHosts: []netip.Addr{netip.IPv4Unspecified()},
<mask> }) <mask> <mask> config = &configuration{ <mask> DNS: dnsConfig{ <mask> BindHosts: []net.IP{netutil.IPv4Zero()}, <mask> Port: defaultPortDNS, <mask> }, <mask> } <mask> <mask> Context.tls = &TLSMod{} </s> Pull request: Migrate to netip.Addr vol.1 Merge in DNS/adguard-home from 292...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/mobileconfig_test.go
"net/netip"
<mask> package home <mask> <mask> import ( <mask> "fmt" <mask> "net" <mask> "os" <mask> "strconv" <mask> "strings" <mask> <mask> "github.com/AdguardTeam/AdGuardHome/internal/version" </s> Pull request: Migrate to netip.Addr vol.1 Merge in DNS/adguard-home from 2926-lla-v6 to master Updates #2926. U...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/options.go
bindHost netip.Addr
<mask> // [service.ControlAction] and [handleServiceControlAction]. <mask> serviceControlAction string <mask> <mask> // bindHost is the address on which to serve the HTTP UI. <mask> bindHost net.IP <mask> <mask> // bindPort is the port on which to serve the HTTP UI. <mask> bindPort int <mask> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/options.go
updateWithValue: func(o options, v string) (oo options, err error) { o.bindHost, err = netip.ParseAddr(v) return o, err
<mask> description: "Path to the working directory.", <mask> longName: "work-dir", <mask> shortName: "w", <mask> }, { <mask> updateWithValue: func(o options, v string) (options, error) { <mask> o.bindHost = net.ParseIP(v) <mask> return o, nil <mask> }, <mask> updateNoValue: nil, <ma...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/options.go
if !o.bindHost.IsValid() {
<mask> }, <mask> updateNoValue: nil, <mask> effect: nil, <mask> serialize: func(o options) (val string, ok bool) { <mask> if o.bindHost == nil { <mask> return "", false <mask> } <mask> <mask> return o.bindHost.String(), true <mask> }, </s> Pull request: Migrate to netip.Addr vol.1 Merg...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/options.go
"net/netip"
<mask> package home <mask> <mask> import ( <mask> "fmt" <mask> "net" <mask> "testing" <mask> <mask> "github.com/stretchr/testify/assert" <mask> "github.com/stretchr/testify/require" <mask> ) </s> Pull request: Migrate to netip.Addr vol.1 Merge in DNS/adguard-home from 2926-lla-v6 to master Updates #...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/options_test.go
wantAddr := netip.MustParseAddr("1.2.3.4") assert.Zero(t, testParseOK(t).bindHost, "empty is not host") assert.Equal(t, wantAddr, testParseOK(t, "-h", "1.2.3.4").bindHost, "-h is host")
<mask> testParseParamMissing(t, "--work-dir") <mask> } <mask> <mask> func TestParseBindHost(t *testing.T) { <mask> assert.Nil(t, testParseOK(t).bindHost, "empty is not host") <mask> assert.Equal(t, net.IPv4(1, 2, 3, 4), testParseOK(t, "-h", "1.2.3.4").bindHost, "-h is host") <mask> testParseParamMissing(t, ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/options_test.go
assert.Equal(t, wantAddr, testParseOK(t, "--host", "1.2.3.4").bindHost, "--host is host")
<mask> assert.Nil(t, testParseOK(t).bindHost, "empty is not host") <mask> assert.Equal(t, net.IPv4(1, 2, 3, 4), testParseOK(t, "-h", "1.2.3.4").bindHost, "-h is host") <mask> testParseParamMissing(t, "-h") <mask> <mask> assert.Equal(t, net.IPv4(1, 2, 3, 4), testParseOK(t, "--host", "1.2.3.4").bindHost, "--hos...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/options_test.go
opts: options{bindHost: netip.MustParseAddr("1.2.3.4")},
<mask> opts: options{workDir: "path"}, <mask> }, { <mask> name: "bind_host", <mask> args: []string{"-h", "1.2.3.4"}, <mask> }, { <mask> name: "bind_port", <mask> args: []string{"-p", "666"}, <mask> opts: options{bindPort: 666}, <mask> }, { </s> Pull request: Migrate to netip.Addr vol.1 Merge i...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/options_test.go
<mask> opts: options{workDir: "path"}, <mask> }, { <mask> name: "bind_host", <mask> args: []string{"-h", "1.2.3.4"}, <mask> opts: options{bindHost: net.IP{1, 2, 3, 4}}, <mask> }, { <mask> name: "bind_port", <mask> args: []string{"-p", "666"}, <mask> opts: options{bindPort: 666}, <mask> }, { ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/options_test.go
<mask> import ( <mask> "context" <mask> "crypto/tls" <mask> "io/fs" <mask> "net" <mask> "net/http" <mask> "sync" <mask> "time" <mask> <mask> "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" </s> Pull request: Migrate to netip.Addr vol.1 Merge in DNS/adguard-home from 2926-lla-v6 to master Upd...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/web.go
"net/netip"
<mask> "io/fs" <mask> "net/http" <mask> "sync" <mask> "time" <mask> <mask> "github.com/AdguardTeam/AdGuardHome/internal/aghhttp" <mask> "github.com/AdguardTeam/AdGuardHome/internal/aghnet" <mask> "github.com/AdguardTeam/AdGuardHome/internal/aghtls" </s> Pull request: Migrate to netip.Addr vol.1 Merge ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/web.go
BindHost netip.Addr
<mask> type webConfig struct { <mask> clientFS fs.FS <mask> clientBetaFS fs.FS <mask> <mask> BindHost net.IP <mask> BindPort int <mask> BetaBindPort int <mask> PortHTTPS int <mask> <mask> // ReadTimeout is an option to pass to http.Server for setting an </s> Pull request: Migrate to n...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/web.go
if Context.web.httpsServer.server != nil { return true } return aghnet.CheckPort("tcp", netip.AddrPortFrom(config.BindHost, uint16(port))) == nil
<mask> // available, unless the HTTPS server isn't active. <mask> // <mask> // TODO(a.garipov): Adapt for HTTP/3. <mask> func webCheckPortAvailable(port int) (ok bool) { <mask> return Context.web.httpsServer.server != nil || <mask> aghnet.CheckPort("tcp", config.BindHost, port) == nil <mask> } <mask> <mask...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4582b1c9198dcbc1927b74080839e81ba347265a
internal/home/web.go
import { Trans, withNamespaces } from 'react-i18next';
<mask> import React, { Component } from 'react'; <mask> import PropTypes from 'prop-types'; <mask> import Card from '../ui/Card'; <mask> <mask> class UserRules extends Component { <mask> handleChange = (e) => { <mask> const { value } = e.currentTarget; </s> Complete translate client to Vietnamese <...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
class UserRules extends Component {
<mask> import React, { Component } from 'react'; <mask> import PropTypes from 'prop-types'; <mask> import Card from '../ui/Card'; <mask> <mask> export default class UserRules extends Component { <mask> handleChange = (e) => { <mask> const { value } = e.currentTarget; <mask> this.props.handl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
const { t } = this.props;
<mask> <mask> render() { <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.') } </s> Complete translate client to Vietnamese </s> ...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
title={ t('Custom filtering rules') } subtitle={ t('Enter one rule on a line. You can use either adblock rules or hosts files syntax.') }
<mask> <mask> render() { <mask> return ( <mask> <Card <mask> title="Custom filtering rules" <mask> subtitle="Enter one rule on a line. You can use either adblock rules or hosts files syntax." <mask> > <mask> <form onSubmit={thi...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
<Trans>Apply</Trans>
<mask> className="btn btn-success btn-standart" <mask> type="submit" <mask> onClick={this.handleSubmit} <mask> > <mask> Apply <mask> </button> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
<Trans>Examples</Trans>:
<mask> </div> <mask> </form> <mask> <hr/> <mask> <div className="list leading-loose"> <mask> Examples: <mask> <ol className="leading-loose"> <mask> <li> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
<code>||example.org^</code> - { t('block access to the example.org domain and all its subdomains') }
<mask> <div className="list leading-loose"> <mask> Examples: <mask> <ol className="leading-loose"> <mask> <li> <mask> <code>||example.org^</code> - block access to the example.org domain <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
<code> @@||example.org^</code> - { t('unblock access to the example.org domain and all its subdomains') }
<mask> <code>||example.org^</code> - block access to the example.org domain <mask> and all its subdomains <mask> </li> <mask> <li> <mask> <code> @@||example.org^</code> - unblock acce...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
<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> <code> @@||example.org^</code> - unblock access to the example.org <mask> domain and all its subdomains <mask> </li> <mask> <li> <mask> <code>127.0.0.1 example.org</code> - AdG...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
<code>{ t('! Here goes a comment') }</code> - { t('just a comment') }
<mask> <code>127.0.0.1 example.org</code> - AdGuard Home will now return <mask> 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/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
<code>{ t('# Also a comment') }</code> - { t('just a comment') }
<mask> <li> <mask> <code>! Here goes a comment</code> - just a comment <mask> </li> <mask> <li> <mask> <code># Also a comment</code> - just a comment <mask> </li>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
t: PropTypes.func,
<mask> userRules: PropTypes.string, <mask> handleRulesChange: PropTypes.func, <mask> handleRulesSubmit: PropTypes.func, <mask> }; <mask> <mask> export default withNamespaces()(UserRules); </s> Complete translate client to Vietnamese </s> remove export default Logs; </s> add export default withNames...
[ "keep", "keep", "add", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/UserRules.js
import { Trans, withNamespaces } from 'react-i18next';
<mask> import React, { Component } from 'react'; <mask> import ReactTable from 'react-table'; <mask> import PropTypes from 'prop-types'; <mask> import Modal from '../ui/Modal'; <mask> import PageTitle from '../ui/PageTitle'; <mask> import Card from '../ui/Card'; <mask> import UserRules from './UserRules'; <mask...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
Header: this.props.t('Enabled'),
<mask> ); <mask> }; <mask> <mask> columns = [{ <mask> Header: 'Enabled', <mask> accessor: 'enabled', <mask> Cell: this.renderCheckbox, <mask> width: 90, <mask> className: 'text-center', <mask> }, { </s> Complete translate client to Vietnamese </s> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
Header: this.props.t('Name'),
<mask> Cell: this.renderCheckbox, <mask> width: 90, <mask> className: 'text-center', <mask> }, { <mask> Header: 'Name', <mask> accessor: 'name', <mask> Cell: ({ value }) => (<div className="logs__row logs__row--overflow"><span className="logs__text" title={valu...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
Header: this.props.t('Filter URL'),
<mask> Header: '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: 'Filter URL', <mask> accessor: 'url', <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
Header: this.props.t('Rules count'),
<mask> Header: '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: 'Rules count', <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
Header: this.props.t('Last time updated'),
<mask> accessor: 'rulesCount', <mask> className: 'text-center', <mask> Cell: props => props.value.toLocaleString(), <mask> }, { <mask> Header: 'Last time updated', <mask> accessor: 'lastUpdated', <mask> className: 'text-center', <mask> }, { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
Header: this.props.t('Actions'),
<mask> Header: 'Last time updated', <mask> accessor: 'lastUpdated', <mask> className: 'text-center', <mask> }, { <mask> Header: 'Actions', <mask> accessor: 'url', <mask> Cell: ({ value }) => (<span className='remove-icon fe fe-trash-2' onClick={() => this.props...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
Cell: ({ value }) => (<span title={ this.props.t('Delete') } className='remove-icon fe fe-trash-2' onClick={() => this.props.removeFilter(value)}/>),
<mask> className: 'text-center', <mask> }, { <mask> Header: 'Actions', <mask> accessor: 'url', <mask> Cell: ({ value }) => (<span className='remove-icon fe fe-trash-2' onClick={() => this.props.removeFilter(value)}/>), <mask> className: 'text-center', <mask> wi...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
const { t } = this.props;
<mask> }, <mask> ]; <mask> <mask> render() { <mask> const { filters, userRules } = this.props.filtering; <mask> return ( <mask> <div> <mask> <PageTitle title={ t('Filters') } /> <mask> <div className="content"> </s> Complete translate cl...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
<PageTitle title={ t('Filters') } />
<mask> render() { <mask> const { filters, userRules } = this.props.filtering; <mask> return ( <mask> <div> <mask> <PageTitle title="Filters" /> <mask> <div className="content"> <mask> <div className="row"> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
title={ t('Filters and hosts blocklists') } subtitle={ t('AdGuard Home understands basic adblock rules and hosts files syntax.') }
<mask> <div className="content"> <mask> <div className="row"> <mask> <div className="col-md-12"> <mask> <Card <mask> title="Filters and hosts blocklists" <mask> s...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
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="No filters added" ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
<button className="btn btn-success btn-standart mr-2" type="submit" onClick={this.props.toggleFilteringModal}><Trans>Add filter</Trans></button> <button className="btn btn-primary btn-standart" type="submit" onClick={this.props.refreshFilters}><Tra...
<mask> noDataText="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/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
title={ t('New filter subscription') } inputDescription={ t('Enter a valid URL to a filter subscription or a hosts file.') }
<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/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
t: PropTypes.func,
<mask> addFilter: PropTypes.func.isRequired, <mask> toggleFilteringModal: PropTypes.func.isRequired, <mask> handleRulesChange: PropTypes.func.isRequired, <mask> refreshFilters: PropTypes.func.isRequired, <mask> }; <mask> <mask> <mask> export default withNamespaces()(Filters); </s> Complete tr...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
export default withNamespaces()(Filters);
<mask> refreshFilters: PropTypes.func.isRequired, <mask> }; <mask> <mask> <mask> export default Filters; </s> Complete translate client to Vietnamese </s> remove export default Logs; </s> add export default withNamespaces()(Logs);
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Filters/index.js
import { Trans, withNamespaces } from 'react-i18next';
<mask> import { saveAs } from 'file-saver/FileSaver'; <mask> import escapeRegExp from 'lodash/escapeRegExp'; <mask> import endsWith from 'lodash/endsWith'; <mask> <mask> import { formatTime } from '../../helpers/helpers'; <mask> import { getTrackerData } from '../../helpers/trackers/trackers'; <mask> import Pag...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
<Trans>{buttonText}</Trans>
<mask> type="button" <mask> className={`btn btn-sm ${buttonClass}`} <mask> onClick={() => this.toggleBlocking(buttonText.toLowerCase(), domain)} <mask> > <mask> {buttonText} <mask> </button> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
const { t } = this.props;
<mask> ); <mask> } <mask> <mask> renderLogs(logs) { <mask> const columns = [{ <mask> Header: t('Time'), <mask> accessor: 'time', <mask> maxWidth: 110, <mask> filterable: false, </s> Complete translate client to Vietnamese </s> remove ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
Header: t('Time'),
<mask> } <mask> <mask> renderLogs(logs) { <mask> const columns = [{ <mask> Header: 'Time', <mask> accessor: 'time', <mask> maxWidth: 110, <mask> filterable: false, <mask> Cell: ({ value }) => (<div className="logs__row"><span classNam...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
Header: t('Domain name'),
<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: 'Domain name', <mask> accessor: 'doma...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
Header: t('Type'),
<mask> </div> <mask> ); <mask> }, <mask> }, { <mask> Header: 'Type', <mask> accessor: 'type', <mask> maxWidth: 60, <mask> }, { <mask> Header: 'Response', <mask> accessor: 'response', </...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
Header: t('Response'),
<mask> Header: 'Type', <mask> accessor: 'type', <mask> maxWidth: 60, <mask> }, { <mask> Header: '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/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
<span><Trans>Empty</Trans></span>
<mask> } <mask> return ( <mask> <div className="logs__row"> <mask> {this.renderTooltip(isFiltered, rule)} <mask> <span>Empty</span> <mask> </div> <mask> ); <mask> }...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
<option value="all">{ t('Show all') }</option> <option value="filtered">{ t('Show filtered') }</option>
<mask> onChange={event => onChange(event.target.value)} <mask> className="form-control" <mask> value={filter ? filter.value : 'all'} <mask> > <mask> <option value="all">Show all</option> <mask> <opt...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
Header: t('Client'),
<mask> <option value="all">Show all</option> <mask> <option value="filtered">Show filtered</option> <mask> </select>, <mask> }, { <mask> Header: 'Client', <mask> accessor: 'client', <mask> maxWidth: 250, <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
// Text previousText={ t('Previous') } nextText={ t('Next') } loadingText={ t('Loading...') } pageText={ t('Page') } ofText={ t('of') } rowsText={ t('rows') } noDataText={ t('No logs found') }
<mask> columns={columns} <mask> showPagination={true} <mask> defaultPageSize={50} <mask> minRows={7} <mask> noDataText="No logs found" <mask> defaultFilterMethod={(filter, row) => { <mask> const id...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
><Trans>Disable log</Trans></button>
<mask> <button <mask> className="btn btn-gray btn-sm mr-2" <mask> type="submit" <mask> onClick={() => this.props.toggleLogStatus(queryLogEnabled)} <mask> >Disable log</button> <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
><Trans>Download log file</Trans></button>
<mask> <button <mask> className="btn btn-primary btn-sm mr-2" <mask> type="submit" <mask> onClick={this.handleDownloadButton} <mask> >Download log file</button> <mask> <button <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
><Trans>Refresh</Trans></button>
<mask> <button <mask> className="btn btn-outline-primary btn-sm" <mask> type="submit" <mask> onClick={this.getLogs} <mask> >Refresh</button> <mask> </Fragment> <mask> ); <m...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
><Trans>Enable log</Trans></button>
<mask> <button <mask> className="btn btn-success btn-sm mr-2" <mask> type="submit" <mask> onClick={() => this.props.toggleLogStatus(queryLogEnabled)} <mask> >Enable log</button> <mask> ); <mask> } <mask> <mask> render() { ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
const { queryLogs, dashboard, t } = this.props;
<mask> ); <mask> } <mask> <mask> render() { <mask> const { queryLogs, dashboard } = this.props; <mask> const { queryLogEnabled } = dashboard; <mask> return ( <mask> <Fragment> <mask> <PageTitle title="Query Log" subtitle="Last 5000 DNS querie...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
<PageTitle title={ t('Query Log') } subtitle={ t('Last 5000 DNS queries') }>
<mask> const { queryLogs, dashboard } = this.props; <mask> const { queryLogEnabled } = dashboard; <mask> return ( <mask> <Fragment> <mask> <PageTitle title="Query Log" subtitle="Last 5000 DNS queries"> <mask> <div className="page-title__actio...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
t: PropTypes.func,
<mask> setRules: PropTypes.func, <mask> addSuccessToast: PropTypes.func, <mask> }; <mask> <mask> export default withNamespaces()(Logs); </s> Complete translate client to Vietnamese </s> remove export default Logs; </s> add export default withNamespaces()(Logs); </s> remove export default Filters; </s> ...
[ "keep", "add", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
export default withNamespaces()(Logs);
<mask> setRules: PropTypes.func, <mask> addSuccessToast: PropTypes.func, <mask> }; <mask> <mask> export default Logs; </s> Complete translate client to Vietnamese </s> remove export default Filters; </s> add export default withNamespaces()(Filters);
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Logs/index.js
import { Trans } from 'react-i18next';
<mask> import React, { Component } from 'react'; <mask> import PropTypes from 'prop-types'; <mask> <mask> class Toast extends Component { <mask> componentDidMount() { <mask> const timeout = this.props.type === 'error' ? 30000 : 5000; </s> Complete translate client to Vietnamese </s> remove export de...
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Toasts/Toast.js
<Trans>{this.props.message}</Trans>
<mask> render() { <mask> return ( <mask> <div className={`toast toast--${this.props.type}`}> <mask> <p className="toast__content"> <mask> {this.props.message} <mask> </p> <mask> <button className="toast__dismiss" onClick=...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/Toasts/Toast.js
import { Trans, withNamespaces } from 'react-i18next';
<mask> import ReactModal from 'react-modal'; <mask> import classnames from 'classnames'; <mask> import { R_URL_REQUIRES_PROTOCOL } from '../../helpers/constants'; <mask> import './Modal.css'; <mask> <mask> ReactModal.setAppElement('#root'); <mask> <mask> const initialState = { </s> Complete translate client ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/ui/Modal.js
class Modal extends Component {
<mask> name: '', <mask> isUrlValid: false, <mask> }; <mask> <mask> export default class Modal extends Component { <mask> state = initialState; <mask> <mask> // eslint-disable-next-line <mask> isUrlValid = url => { <mask> return R_URL_REQUIRES_PROTOCOL.test(url); </s> Complete tr...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/ui/Modal.js
<input type="text" className={inputNameClass} placeholder={ this.props.t('Enter name') } onChange={this.handleNameChange} /> <input type="text" className={inputUrlClass} placeholder={ this.props.t('Enter URL') } onChange={this.handleUrlChange} />
<mask> const renderBody = () => { <mask> if (!this.props.isFilterAdded) { <mask> return ( <mask> <React.Fragment> <mask> <input type="text" className={inputNameClass} placeholder="Enter name" onChange={this.handleNameChange} /> <mask>...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/ui/Modal.js
<Trans>Url added successfully</Trans>
<mask> ); <mask> } <mask> return ( <mask> <div className="description"> <mask> Url added successfully <mask> </div> <mask> ); <mask> }; <mask> <mask> const isValidForSubmit = !(url.length >...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/ui/Modal.js
<button type="button" className="btn btn-secondary" onClick={this.closeModal}><Trans>Cancel</Trans></button> <button type="button" className="btn btn-success" onClick={this.handleNext} disabled={isValidForSubmit}><Trans>Add filter</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}>Cancel</b...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/ui/Modal.js
t: PropTypes.func,
<mask> inputDescription: PropTypes.string, <mask> addFilter: PropTypes.func.isRequired, <mask> isFilterAdded: PropTypes.bool, <mask> }; <mask> <mask> export default withNamespaces()(Modal); </s> Complete translate client to Vietnamese </s> remove export default Filters; </s> add export default with...
[ "keep", "keep", "add", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/4590564fea78b4aa247db0e2bd0ac400c60c8252
client/src/components/ui/Modal.js
err := config.write()
<mask> // Update filters we've just loaded right away, don't wait for periodic update timer <mask> go func() { <mask> refreshFiltersIfNeccessary(false) <mask> // Save the updated config <mask> err := writeConfig() <mask> if err != nil { <mask> log.Fatal(err) <mask> } <mask> }() <mask> </s> F...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/45ae984f3bd7bad1f21c1e8f9910558cc2986cba
app.go
err := config.write()
<mask> os.Args = os.Args[:1] <mask> } <mask> <mask> // Save the updated config <mask> err := writeConfig() <mask> if err != nil { <mask> log.Fatal(err) <mask> } <mask> <mask> address := net.JoinHostPort(config.BindHost, strconv.Itoa(config.BindPort)) </s> Fix incorrect cherry-pick in previous com...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/45ae984f3bd7bad1f21c1e8f9910558cc2986cba
app.go
func (c *configuration) write() error {
<mask> return nil <mask> } <mask> <mask> // Saves configuration to the YAML file and also saves the user filter contents to a file <mask> func writeConfig() error { <mask> c.Lock() <mask> defer c.Unlock() <mask> configFile := filepath.Join(config.ourBinaryDir, config.ourConfigFilename) <mask> log.Printf(...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/45ae984f3bd7bad1f21c1e8f9910558cc2986cba
config.go
err := config.write()
<mask> return nil <mask> } <mask> <mask> func writeAllConfigs() error { <mask> err := writeConfig() <mask> if err != nil { <mask> log.Printf("Couldn't write our config: %s", err) <mask> return err <mask> } <mask> err = writeCoreDNSConfig() </s> Fix incorrect cherry-pick in previous commit. </s> rem...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/45ae984f3bd7bad1f21c1e8f9910558cc2986cba
config.go
// upstreamConfig is the custom upstream config for this client. If // it's nil, it has not been initialized yet. If it's non-nil and // empty, there are no valid upstreams. If it's non-nil and non-empty, // these upstream must be used.
<mask> var webHandlersRegistered = false <mask> <mask> // Client contains information about persistent clients. <mask> type Client struct { <mask> IDs []string <mask> Tags []string <mask> Name string <mask> UseOwnSettings bool // false: use global settings...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "k...
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clients.go
Name string IDs []string Tags []string BlockedServices []string Upstreams []string UseOwnSettings bool FilteringEnabled bool SafeSearchEnabled bool SafeBrowsingEnabled bool ParentalEnabled bool UseOwnBlockedServices bool
<mask> // it's nil, it has not been initialized yet. If it's non-nil and <mask> // empty, there are no valid upstreams. If it's non-nil and non-empty, <mask> // these upstream must be used. <mask> upstreamConfig *proxy.UpstreamConfig <mask> } <mask> <mask> type clientSource uint <mask> <mask> // Client...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clients.go
WhoisInfo *RuntimeClientWhoisInfo
<mask> ) <mask> <mask> // RuntimeClient information <mask> type RuntimeClient struct { <mask> Host string <mask> Source clientSource <mask> } <mask> <mask> // RuntimeClientWhoisInfo is the filtered WHOIS data for a runtime client. </s> Pull request: home: imp client http api, docs Updates #3075. ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clients.go
<mask> // RuntimeClient information <mask> type RuntimeClient struct { <mask> Host string <mask> Source clientSource <mask> WhoisInfo *RuntimeClientWhoisInfo <mask> } <mask> <mask> // RuntimeClientWhoisInfo is the filtered WHOIS data for a runtime client. <mask> type RuntimeClientWhoisInfo struct {...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clients.go
// clientJSON is a common structure used by several handlers to deal with // clients. Some of the fields are only necessary in one or two handlers and // are thus made pointers with an omitempty tag. // // TODO(a.garipov): Consider using nullbool and an optional string here? Or // split into several structs?
<mask> "net" <mask> "net/http" <mask> ) <mask> <mask> type clientJSON struct { <mask> // Disallowed, if non-nil and false, means that the client's IP is <mask> // allowed. Otherwise, the IP is blocked. <mask> Disallowed *bool `json:"disallowed,omitempty"` </s> Pull request: home: imp client http api, do...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clientshttp.go
// Disallowed, if non-nil and false, means that the client's IP is // allowed. Otherwise, the IP is blocked. Disallowed *bool `json:"disallowed,omitempty"` // DisallowedRule is the rule due to which the client is disallowed. // If Disallowed is true and this string is empty, the client IP is // disallowed by th...
<mask> "net/http" <mask> ) <mask> <mask> type clientJSON struct { <mask> IDs []string `json:"ids"` <mask> Tags []string `json:"tags"` <mask> Name string `json:"name"` <mask> UseGlobalSettings bool `json:"use_global_settings"` <mask> FilteringEnabled ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "re...
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clientshttp.go
<mask> UseGlobalBlockedServices: !c.UseOwnBlockedServices, <mask> BlockedServices: c.BlockedServices, <mask> <mask> Upstreams: c.Upstreams, <mask> <mask> WhoisInfo: &RuntimeClientWhoisInfo{}, <mask> } <mask> <mask> return cj <mask> } <mask> </s> Pull request: home: imp client http api...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clientshttp.go
disallowed, rule := clients.dnsServer.IsBlockedIP(ip) cj.Disallowed, cj.DisallowedRule = &disallowed, &rule
<mask> continue <mask> } <mask> } else { <mask> cj = clientToJSON(c) <mask> cj.Disallowed, cj.DisallowedRule = clients.dnsServer.IsBlockedIP(ip) <mask> } <mask> <mask> data = append(data, map[string]clientJSON{ <mask> idStr: cj, <mask> }) </s> Pull request: home: imp client http api,...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clientshttp.go
Disallowed: &disallowed, DisallowedRule: &rule,
<mask> } <mask> <mask> cj = clientJSON{ <mask> IDs: []string{idStr}, <mask> Disallowed: disallowed, <mask> DisallowedRule: rule, <mask> WhoisInfo: &RuntimeClientWhoisInfo{}, <mask> } <mask> <mask> return cj, true <mask> } </s> Pull request: home: imp client http ap...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clientshttp.go
disallowed, rule := clients.dnsServer.IsBlockedIP(ip) cj.Disallowed, cj.DisallowedRule = &disallowed, &rule
<mask> return cj, true <mask> } <mask> <mask> cj = runtimeClientToJSON(idStr, rc) <mask> cj.Disallowed, cj.DisallowedRule = clients.dnsServer.IsBlockedIP(ip) <mask> <mask> return cj, true <mask> } <mask> <mask> // RegisterClientsHandlers registers HTTP handlers </s> Pull request: home: imp client ht...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
internal/home/clientshttp.go
'tags': 'items': 'type': 'string' 'type': 'array'
<mask> 'type': 'array' <mask> 'items': <mask> 'type': 'string' <mask> 'ClientAuto': <mask> 'type': 'object' <mask> 'description': 'Auto-Client information' <mask> 'properties': <mask> 'ip': <mask> 'type': 'string' </s> Pull request: home:...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
openapi/openapi.yaml
'whois_info': '$ref': '#/components/schemas/WhoisInfo'
<mask> 'source': <mask> 'type': 'string' <mask> 'description': 'The source of this information' <mask> 'example': 'etc/hosts' <mask> 'ClientUpdate': <mask> 'type': 'object' <mask> 'description': 'Client update request' <mask> 'properties': <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
openapi/openapi.yaml
'supported_tags': 'items': 'type': 'string' 'type': 'array'
<mask> '$ref': '#/components/schemas/ClientsArray' <mask> 'auto_clients': <mask> '$ref': '#/components/schemas/ClientsAutoArray' <mask> 'ClientsArray': <mask> 'type': 'array' <mask> 'items': <mask> '$ref': '#/components/schemas/Client' <mask> 'descriptio...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/460aa1a5ba4409a2fccb596b2156922532bab5b3
openapi/openapi.yaml
--black: #131313;
<mask> :root { <mask> --bgcolor: #f5f7fb; <mask> --mcolor: #495057; <mask> --scolor: rgba(74, 74, 74, 0.7); <mask> --border-color: rgba(0, 40, 100, 0.12); <mask> --header-bgcolor: #fff; </s> Fix dark theme bugs Updates #5375 Squashed commit of the following: commit 40666b010697381e11b3a36d...
[ "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/46382e88250d9734a6e634fa79376334ee1fbe24
client/src/components/App/index.css
--loading-bg: rgba(255, 255, 255, 0.48);
<mask> --green79: #67b279; <mask> --gray-a5: #a5a5a5; <mask> --gray-d8: #d8d8d8; <mask> --gray-f3: #f3f3f3; <mask> --font-family-monospace: Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace; <mask> --font-size-disable-autozoom: 1rem; <mask> } <mask> <mask> [data-theme=...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/46382e88250d9734a6e634fa79376334ee1fbe24
client/src/components/App/index.css
--black: #ffffff;
<mask> --font-size-disable-autozoom: 1rem; <mask> } <mask> <mask> [data-theme="dark"] { <mask> --bgcolor: #131313; <mask> --mcolor: #e6e6e6; <mask> --scolor: #a5a5a5; <mask> --header-bgcolor: #131313; <mask> --border-color: #222; <mask> --card-bgcolor: #1c1c1c; </s> Fix dark them...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/46382e88250d9734a6e634fa79376334ee1fbe24
client/src/components/App/index.css
--form-disabled-bgcolor: #2d2d2d;
<mask> --ctrl-dropdown-color: #fff; <mask> --ctrl-dropdown-bgcolor-focus: #000; <mask> --ctrl-dropdown-color-focus: #fff; <mask> --btn-success-bgcolor: #67b279; <mask> --form-disabled-bgcolor: #3d3d3d; <mask> --form-disabled-color: #a5a5a5; <mask> --logs__text-color: #f3f3f3; <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/46382e88250d9734a6e634fa79376334ee1fbe24
client/src/components/App/index.css
--modal-overlay-bgcolor: rgba(19, 19, 19, 0.75);
<mask> --form-disabled-color: #a5a5a5; <mask> --logs__text-color: #f3f3f3; <mask> --rt-nodata-bgcolor: #1c1c1c; <mask> --rt-nodata-color: #fff; <mask> --modal-overlay-bgcolor: #1c1c1c; <mask> --logs__table-bgcolor: #3d3d3d; <mask> --logs__row--blue-bgcolor: #467fcf; <mask> --logs...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/46382e88250d9734a6e634fa79376334ee1fbe24
client/src/components/App/index.css
--gray300: #f3f3f3; --loading-bg: #131313;
<mask> --logs__row--blue-bgcolor: #467fcf; <mask> --logs__row--white-bgcolor: #1c1c1c; <mask> --detailed-info-color: #fff; <mask> } <mask> <mask> body { <mask> margin: 0; <mask> padding: 0; <mask> font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/46382e88250d9734a6e634fa79376334ee1fbe24
client/src/components/App/index.css