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
invalid: PropTypes.bool.isRequired,
<mask> Settings.propTypes = { <mask> handleSubmit: PropTypes.func.isRequired, <mask> interfaceIp: PropTypes.string.isRequired, <mask> dnsIp: PropTypes.string.isRequired, <mask> pristine: PropTypes.bool.isRequired, <mask> submitting: PropTypes.bool.isRequired, <mask> initialValues: PropTyp...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a7416f9c34c3fc1df3b3ececb2e9c77923059685
client/src/install/Setup/Settings.js
import Toasts from '../../components/Toasts';
<mask> import Submit from './Submit'; <mask> import Progress from './Progress'; <mask> <mask> import Footer from '../../components/ui/Footer'; <mask> import logo from '../../components/ui/svg/logo.svg'; <mask> <mask> import './Setup.css'; <mask> import '../../components/ui/Tabler.css'; </s> Fixed validation ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a7416f9c34c3fc1df3b3ececb2e9c77923059685
client/src/install/Setup/index.js
<Toasts />
<mask> </div> <mask> </div> <mask> <Footer /> <mask> </Fragment> <mask> } <mask> </Fragment> <mask> ); <mask> } <mask> } </s> Fixed validation and added toasts </s> remove ...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a7416f9c34c3fc1df3b3ececb2e9c77923059685
client/src/install/Setup/index.js
const { install, toasts } = state; const props = { install, toasts };
<mask> dns: PropTypes.object, <mask> }; <mask> <mask> const mapStateToProps = (state) => { <mask> const { install } = state; <mask> const props = { install }; <mask> return props; <mask> }; <mask> <mask> export default connect( <mask> mapStateToProps, </s> Fixed validation and added to...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a7416f9c34c3fc1df3b3ececb2e9c77923059685
client/src/install/Setup/index.js
import nanoid from 'nanoid';
<mask> import { handleActions } from 'redux-actions'; <mask> import { reducer as formReducer } from 'redux-form'; <mask> <mask> import * as actions from '../actions/install'; <mask> import { INSTALL_FIRST_STEP } from '../helpers/constants'; <mask> <mask> const install = handleActions({ <mask> [actions.get...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a7416f9c34c3fc1df3b3ececb2e9c77923059685
client/src/reducers/install.js
import { INSTALL_FIRST_STEP } from '../helpers/constants';
<mask> import { reducer as formReducer } from 'redux-form'; <mask> import nanoid from 'nanoid'; <mask> <mask> import * as actions from '../actions/install'; <mask> <mask> const install = handleActions({ <mask> [actions.getDefaultAddressesRequest]: state => ({ ...state, processingDefault: true }), <mask> ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a7416f9c34c3fc1df3b3ececb2e9c77923059685
client/src/reducers/install.js
step: INSTALL_FIRST_STEP,
<mask> [actions.setAllSettingsRequest]: state => ({ ...state, processingSubmit: true }), <mask> [actions.setAllSettingsFailure]: state => ({ ...state, processingSubmit: false }), <mask> [actions.setAllSettingsSuccess]: state => ({ ...state, processingSubmit: false }), <mask> }, { <mask> step: 1, <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a7416f9c34c3fc1df3b3ececb2e9c77923059685
client/src/reducers/install.js
toasts,
<mask> }, { notices: [] }); <mask> <mask> export default combineReducers({ <mask> install, <mask> form: formReducer, <mask> }); </s> Fixed validation and added toasts </s> remove step: 1, </s> add step: INSTALL_FIRST_STEP, </s> remove const { install } = state; const props = { install }...
[ "keep", "keep", "keep", "add", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a7416f9c34c3fc1df3b3ececb2e9c77923059685
client/src/reducers/install.js
"load_balancing": "Load-balancing", "load_balancing_desc": "Query one server at a time. AdGuard Home will use the weighted random algorithm to pick the server so that the fastest server will be used more often.",
<mask> "client_settings": "Client settings", <mask> "example_upstream_reserved": "You can specify DNS upstream <0>for the specific domain(s)</0>", <mask> "upstream_parallel": "Use parallel requests to speed up resolving by simultaneously querying all upstream servers", <mask> "parallel_requests": "P...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/__locales/en.json
import { FORM_NAME } from '../../../helpers/constants';
<mask> import Card from '../../ui/Card'; <mask> <mask> import { renderInputField } from '../../../helpers/form'; <mask> import Info from './Info'; <mask> <mask> const Check = (props) => { <mask> const { <mask> t, </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Check/index.js
<hr />
<mask> </span> <mask> </div> <mask> {check.hostname && ( <mask> <Fragment> <mask> <hr/> <mask> <Info <mask> f...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Check/index.js
reduxForm({ form: FORM_NAME.DOMAIN_CHECK }),
<mask> }; <mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ form: 'domainCheckForm' }), <mask> ])(Check); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squashed commit of the following:...
[ "keep", "keep", "keep", "keep", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Check/index.js
import { FORM_NAME } from '../../helpers/constants';
<mask> import { Trans, withTranslation } from 'react-i18next'; <mask> import flow from 'lodash/flow'; <mask> <mask> import { renderInputField, required, isValidPath } from '../../helpers/form'; <mask> <mask> const Form = (props) => { <mask> const { <mask> t, </s> - client: Add default mode in the...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Form.js
<div className="form__group"> <Field id="name" name="name" type="text" component={renderInputField} className="form-control" placeholder={t(...
<mask> <mask> return ( <mask> <form onSubmit={handleSubmit}> <mask> <div className="modal-body"> <mask> <div className="form__group"> <mask> <Field <mask> id="name" <mask> name="name" <mask> type="t...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Form.js
reduxForm({ form: FORM_NAME.FILTER }),
<mask> }; <mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'filterForm', <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squashed c...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Form.js
import { FORM_NAME } from '../../../helpers/constants';
<mask> import { <mask> renderInputField, required, domain, answer, <mask> } from '../../../helpers/form'; <mask> <mask> const Form = (props) => { <mask> const { <mask> t, <mask> handleSubmit, </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-ho...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Rewrites/Form.js
form: FORM_NAME.REWRITES,
<mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'rewritesForm', <mask> enableReinitialize: true, <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Rewrites/Form.js
import { FORM_NAME, SERVICES } from '../../../helpers/constants';
<mask> import flow from 'lodash/flow'; <mask> <mask> import { toggleAllServices } from '../../../helpers/helpers'; <mask> import { renderServiceField } from '../../../helpers/form'; <mask> import { SERVICES } from '../../../helpers/constants'; <mask> <mask> const Form = (props) => { <mask> const { <mask>...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Services/Form.js
form: FORM_NAME.SERVICES,
<mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'servicesForm', <mask> enableReinitialize: true, <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Filters/Services/Form.js
import { FORM_NAME, RESPONSE_FILTER } from '../../../helpers/constants';
<mask> import { withTranslation } from 'react-i18next'; <mask> import flow from 'lodash/flow'; <mask> <mask> import { renderInputField } from '../../../helpers/form'; <mask> import { RESPONSE_FILTER } from '../../../helpers/constants'; <mask> import Tooltip from '../../ui/Tooltip'; <mask> <mask> const renderF...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Logs/Filters/Form.js
form: FORM_NAME.LOGS_FILTER,
<mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'logsFilterForm', <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squashed commit o...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Logs/Filters/Form.js
import { FORM_NAME, SERVICES } from '../../../helpers/constants';
<mask> renderGroupField, <mask> renderSelectField, <mask> renderServiceField, <mask> } from '../../../helpers/form'; <mask> import { SERVICES } from '../../../helpers/constants'; <mask> import './Service.css'; <mask> <mask> const settingsCheckboxes = [ <mask> { <mask> name: 'use_globa...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Clients/Form.js
const selector = formValueSelector(FORM_NAME.CLIENT);
<mask> invalid: PropTypes.bool.isRequired, <mask> tagsOptions: PropTypes.array.isRequired, <mask> }; <mask> <mask> const selector = formValueSelector('clientForm'); <mask> <mask> Form = connect((state) => { <mask> const useGlobalSettings = selector(state, 'use_global_settings'); <mask> const ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Clients/Form.js
form: FORM_NAME.CLIENT,
<mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'clientForm', <mask> enableReinitialize: true, <mask> validate, <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adg...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Clients/Form.js
import { FORM_NAME } from '../../../helpers/constants';
<mask> <mask> import { <mask> renderInputField, required, ipv4, isPositive, toNumber, <mask> } from '../../../helpers/form'; <mask> <mask> const renderInterfaces = ((interfaces) => ( <mask> Object.keys(interfaces).map((item) => { <mask> const option = interfaces[item]; <mask> const { ...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dhcp/Form.js
const selector = formValueSelector(FORM_NAME.DHCP);
<mask> resetDhcp: PropTypes.func.isRequired, <mask> change: PropTypes.func.isRequired, <mask> }; <mask> <mask> const selector = formValueSelector('dhcpForm'); <mask> <mask> Form = connect((state) => { <mask> const interfaceValue = selector(state, 'interface_name'); <mask> return { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dhcp/Form.js
reduxForm({ form: FORM_NAME.DHCP }),
<mask> })(Form); <mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ form: 'dhcpForm' }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squashed commit of the following: ...
[ "keep", "keep", "keep", "keep", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dhcp/Form.js
import { FORM_NAME } from '../../../../helpers/constants';
<mask> <mask> import { <mask> renderInputField, ipv4, mac, required, <mask> } from '../../../../helpers/form'; <mask> <mask> const Form = (props) => { <mask> const { <mask> t, <mask> handleSubmit, </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adg...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dhcp/StaticLeases/Form.js
reduxForm({ form: FORM_NAME.LEASE }),
<mask> }; <mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ form: 'leaseForm' }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squashed commit of the following: commi...
[ "keep", "keep", "keep", "keep", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dhcp/StaticLeases/Form.js
import { FORM_NAME } from '../../../../helpers/constants';
<mask> import { Trans, withTranslation } from 'react-i18next'; <mask> import flow from 'lodash/flow'; <mask> import { renderTextareaField } from '../../../../helpers/form'; <mask> import { normalizeMultiline } from '../../../../helpers/helpers'; <mask> <mask> const fields = [ <mask> { <mask> id: 'a...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Access/Form.js
export default flow([withTranslation(), reduxForm({ form: FORM_NAME.ACCESS })])(Form);
<mask> t: PropTypes.func.isRequired, <mask> textarea: PropTypes.bool, <mask> }; <mask> <mask> export default flow([withTranslation(), reduxForm({ form: 'accessForm' })])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #...
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Access/Form.js
import { BLOCKING_MODES, FORM_NAME } from '../../../../helpers/constants';
<mask> ipv6, <mask> biggerOrEqualZero, <mask> toNumber, <mask> } from '../../../../helpers/form'; <mask> import { BLOCKING_MODES } from '../../../../helpers/constants'; <mask> <mask> const checkboxes = [{ <mask> name: 'edns_cs_enabled', <mask> placeholder: 'edns_enable', <mask> subtit...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Config/Form.js
<div className="row"> <div className="col-12 col-sm-6"> <div className="form__group form__group--settings"> <label htmlFor="ratelimit" className="form__label form__label--with-desc"> <Trans>rate_limit</Trans> </label> ...
<mask> <mask> let Form = ({ <mask> handleSubmit, submitting, invalid, processing, blockingMode, t, <mask> }) => <form onSubmit={handleSubmit}> <mask> <div className="row"> <mask> <div className="col-12 col-sm-6"> <mask> <div className="form__group form__group--settings"> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", ...
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Config/Form.js
</div>)} <div className="col-12"> <div className="form__group form__group--settings mb-4"> <label className="form__label form__label--with-desc"> <Trans>blocking_mode</Trans> </label> <div className="form__desc form__desc--t...
<mask> validate={[required, biggerOrEqualZero]} <mask> /> <mask> </div> <mask> </div> <mask> {checkboxes.map(({ name, placeholder, subtitle }) => <div className="col-12" key={name}> <mask> <div className="form_...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Config/Form.js
<label className="form__label form__label--with-desc" htmlFor={name}><Trans>{name}</Trans> </label> <div className="form__desc form__desc--top"> <Trans>{description}</Trans> ...
<mask> }) => <div className="col-12 col-sm-6" key={name}> <mask> <div className="form__group form__group--settings"> <mask> <Field <mask> name={name} <mask> component={renderInputField} <mask> ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Config/Form.js
component={renderInputField} className="form-control" placeholder={t('form_enter_ip')} validate={[validateIp, required]}
<mask> {checkboxes.map(({ name, placeholder, subtitle }) => <div className="col-12" key={name}> <mask> <div className="form__group form__group--settings"> <mask> <Field <mask> name={name} <mask> type="ch...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Config/Form.js
</Fragment> )} </div> <button type="submit" className="btn btn-success btn-standard btn-large" disabled={submitting || invalid || processing} > <Trans>save_btn</Trans> </button> </form>;
<mask> subtitle={t(subtitle)} <mask> /> <mask> </div> <mask> </div>)} <mask> <div className="col-12"> <mask> <div className="form__group form__group--settings mb-4"> <mask> <lab...
[ "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/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Config/Form.js
const selector = formValueSelector(FORM_NAME.BLOCKING_MODE);
<mask> processing: PropTypes.bool.isRequired, <mask> t: PropTypes.func.isRequired, <mask> }; <mask> <mask> const selector = formValueSelector('blockingModeForm'); <mask> <mask> Form = connect((state) => { <mask> const blockingMode = selector(state, 'blocking_mode'); <mask> return { <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Config/Form.js
reduxForm({ form: FORM_NAME.BLOCKING_MODE }),
<mask> })(Form); <mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'blockingModeForm', <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #177...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Config/Form.js
import { useDispatch, useSelector } from 'react-redux';
<mask> import React from 'react'; <mask> import { connect } from 'react-redux'; <mask> import PropTypes from 'prop-types'; <mask> import { Field, reduxForm, formValueSelector } from 'redux-form'; <mask> import { Trans, withTranslation } from 'react-i18next'; <mask> import flow from 'lodash/flow'; <mask> import c...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
import { Field, reduxForm } from 'redux-form'; import { Trans, useTranslation } from 'react-i18next';
<mask> import React from 'react'; <mask> import { connect } from 'react-redux'; <mask> import PropTypes from 'prop-types'; <mask> import { Field, reduxForm, formValueSelector } from 'redux-form'; <mask> import { Trans, withTranslation } from 'react-i18next'; <mask> import flow from 'lodash/flow'; <mask> import c...
[ "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
import { DNS_REQUEST_OPTIONS, FORM_NAME } from '../../../../helpers/constants'; import { testUpstream } from '../../../../actions';
<mask> import classnames from 'classnames'; <mask> <mask> import Examples from './Examples'; <mask> import { renderRadioField } from '../../../../helpers/form'; <mask> import { DNS_REQUEST_OPTIONS } from '../../../../helpers/constants'; <mask> <mask> const getInputFields = () => [{ <mask> // eslint-disabl...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
name: 'upstream_mode',
<mask> className: 'form-control form-control--textarea font-monospace', <mask> placeholder: 'upstream_dns', <mask> }, <mask> { <mask> name: 'dnsRequestOption', <mask> type: 'radio', <mask> value: DNS_REQUEST_OPTIONS.PARALLEL_REQUESTS, <mask> component: renderRadioField, <mask> subti...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
value: DNS_REQUEST_OPTIONS.LOAD_BALANCING, component: renderRadioField, subtitle: 'load_balancing_desc', placeholder: 'load_balancing', }, { name: 'upstream_mode', type: 'radio', value: DNS_REQUEST_OPTIONS.PARALLEL,
<mask> }, <mask> { <mask> name: 'dnsRequestOption', <mask> type: 'radio', <mask> value: DNS_REQUEST_OPTIONS.PARALLEL_REQUESTS, <mask> component: renderRadioField, <mask> subtitle: 'upstream_parallel', <mask> placeholder: 'parallel_requests', <mask> }, <mask> { </s> - client: Add defau...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
name: 'upstream_mode',
<mask> subtitle: 'upstream_parallel', <mask> placeholder: 'parallel_requests', <mask> }, <mask> { <mask> name: 'dnsRequestOption', <mask> type: 'radio', <mask> value: DNS_REQUEST_OPTIONS.FASTEST_ADDR, <mask> component: renderRadioField, <mask> subtitle: 'fastest_addr_desc', <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
const Form = ({ submitting, invalid, processingSetConfig, processingTestUpstream, handleSubmit, }) => { const dispatch = useDispatch(); const [t] = useTranslation(); const upstream_dns = useSelector((store) => store.form[FORM_NAME.UPSTREAM].values.upstream_dns); const bootstrap_dns = useSelector((st...
<mask> subtitle: 'fastest_addr_desc', <mask> placeholder: 'fastest_addr', <mask> }]; <mask> <mask> let Form = (props) => { <mask> const { <mask> t, <mask> handleSubmit, <mask> testUpstream, <mask> submitting, <mask> invalid, <mask> processingSetCo...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
}));
<mask> processingSetConfig, <mask> processingTestUpstream, <mask> upstream_dns, <mask> bootstrap_dns, <mask> } = props; <mask> <mask> const testButtonClass = classnames({ <mask> 'btn btn-primary btn-standard mr-2': true, <mask> 'btn btn-primary btn-stand...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
const testButtonClass = classnames('btn btn-primary btn-standard mr-2', { 'btn-loading': processingTestUpstream,
<mask> upstream_dns, <mask> bootstrap_dns, <mask> } = props; <mask> <mask> const testButtonClass = classnames({ <mask> 'btn btn-primary btn-standard mr-2': true, <mask> 'btn btn-primary btn-standard mr-2 btn-loading': processingTestUpstream, <mask> }); <mask> <mas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
onClick={handleUpstreamTest}
<mask> <div className="btn-list"> <mask> <button <mask> type="button" <mask> className={testButtonClass} <mask> onClick={() => testUpstream({ <mask> upstream_dns, <mask> bootstr...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
<mask> }; <mask> <mask> Form.propTypes = { <mask> handleSubmit: PropTypes.func, <mask> testUpstream: PropTypes.func, <mask> submitting: PropTypes.bool, <mask> invalid: PropTypes.bool, <mask> initialValues: PropTypes.object, <mask> upstream_dns: PropTypes.string, <mask> bootstrap_d...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
<mask> upstream_dns: PropTypes.string, <mask> bootstrap_dns: PropTypes.string, <mask> processingTestUpstream: PropTypes.bool, <mask> processingSetConfig: PropTypes.bool, <mask> t: PropTypes.func, <mask> }; <mask> <mask> const selector = formValueSelector('upstreamForm'); <mask> <mask> Fo...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
export default reduxForm({ form: FORM_NAME.UPSTREAM })(Form);
<mask> processingSetConfig: PropTypes.bool, <mask> t: PropTypes.func, <mask> }; <mask> <mask> const selector = formValueSelector('upstreamForm'); <mask> <mask> Form = connect((state) => { <mask> const upstream_dns = selector(state, 'upstream_dns'); <mask> const bootstrap_dns = selector(state,...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/Form.js
import React from 'react';
<mask> import React, { Component } from 'react'; <mask> import PropTypes from 'prop-types'; <mask> import { withTranslation } from 'react-i18next'; <mask> import cn from 'classnames'; <mask> <mask> import Form from './Form'; </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adg...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
import { useTranslation } from 'react-i18next'; import { useDispatch } from 'react-redux';
<mask> import React, { Component } from 'react'; <mask> import PropTypes from 'prop-types'; <mask> import { withTranslation } from 'react-i18next'; <mask> import cn from 'classnames'; <mask> <mask> import Form from './Form'; <mask> import Card from '../../../ui/Card'; <mask> import { DNS_REQUEST_OPTIONS } from...
[ "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
import { setDnsConfig } from '../../../../actions/dnsConfig';
<mask> import cn from 'classnames'; <mask> <mask> import Form from './Form'; <mask> import Card from '../../../ui/Card'; <mask> import { DNS_REQUEST_OPTIONS } from '../../../../helpers/constants'; <mask> <mask> <mask> class Upstream extends Component { <mask> handleSubmit = ({ bootstrap_dns, upstream_dn...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
const Upstream = (props) => { const [t] = useTranslation(); const dispatch = useDispatch();
<mask> [dnsRequestOption]: true, <mask> [disabledOption]: false, <mask> }; <mask> <mask> this.props.setDnsConfig(formattedValues); <mask> }; <mask> <mask> handleTest = (values) => { <mask> this.props.testUpstream(values); <mask> }; <mask> </s> -...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
const handleSubmit = (values) => { dispatch(setDnsConfig(values));
<mask> <mask> this.props.setDnsConfig(formattedValues); <mask> }; <mask> <mask> handleTest = (values) => { <mask> this.props.testUpstream(values); <mask> }; <mask> <mask> render() { <mask> const { <mask> t, </s> - client: Add default mode in the DNS set...
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
const { processingTestUpstream, dnsConfig: { upstream_dns, bootstrap_dns, processingSetConfig, upstream_mode, }, } = props; return ( <Card title={t('upstream_dns')} subtitle={t('upstream_dns_hint')} ...
<mask> handleTest = (values) => { <mask> this.props.testUpstream(values); <mask> }; <mask> <mask> render() { <mask> const { <mask> t, <mask> processingTestUpstream, <mask> dnsConfig: { <mask> upstream_dns, <mask> ...
[ "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/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
</div> </Card> ); };
<mask> processingSetConfig={processingSetConfig} <mask> /> <mask> </div> <mask> </div> <mask> </Card> <mask> ); <mask> } <mask> } <mask> <mask> Upstream.propTypes = { <mask> testUpstream: Prop...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
<mask> } <mask> } <mask> <mask> Upstream.propTypes = { <mask> testUpstream: PropTypes.func.isRequired, <mask> processingTestUpstream: PropTypes.bool.isRequired, <mask> t: PropTypes.func.isRequired, <mask> dnsConfig: PropTypes.object.isRequired, <mask> setDnsConfig: PropTypes.func.isReq...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
<mask> <mask> Upstream.propTypes = { <mask> testUpstream: PropTypes.func.isRequired, <mask> processingTestUpstream: PropTypes.bool.isRequired, <mask> t: PropTypes.func.isRequired, <mask> dnsConfig: PropTypes.object.isRequired, <mask> setDnsConfig: PropTypes.func.isRequired, <mask> }; <mask...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
<mask> testUpstream: PropTypes.func.isRequired, <mask> processingTestUpstream: PropTypes.bool.isRequired, <mask> t: PropTypes.func.isRequired, <mask> dnsConfig: PropTypes.object.isRequired, <mask> setDnsConfig: PropTypes.func.isRequired, <mask> }; <mask> <mask> export default withTranslatio...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
export default Upstream;
<mask> dnsConfig: PropTypes.object.isRequired, <mask> setDnsConfig: PropTypes.func.isRequired, <mask> }; <mask> <mask> export default withTranslation()(Upstream); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squashed...
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/Upstream/index.js
import React, { useEffect } from 'react';
<mask> import React, { Component, Fragment } from 'react'; <mask> import PropTypes from 'prop-types'; <mask> import { withTranslation } from 'react-i18next'; <mask> <mask> import Upstream from './Upstream'; <mask> import Access from './Access'; </s> - client: Add default mode in the DNS settings: Merge pull req...
[ "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/index.js
import { useTranslation } from 'react-i18next';
<mask> import React, { Component, Fragment } from 'react'; <mask> import PropTypes from 'prop-types'; <mask> import { withTranslation } from 'react-i18next'; <mask> <mask> import Upstream from './Upstream'; <mask> import Access from './Access'; <mask> import Config from './Config'; <mask> import PageTitle from...
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/index.js
const Dns = (props) => { const [t] = useTranslation();
<mask> import Config from './Config'; <mask> import PageTitle from '../../ui/PageTitle'; <mask> import Loading from '../../ui/Loading'; <mask> <mask> class Dns extends Component { <mask> componentDidMount() { <mask> this.props.getAccessList(); <mask> this.props.getDnsConfig(); <mask> }...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/index.js
useEffect(() => { props.getAccessList(); props.getDnsConfig(); }, []);
<mask> this.props.getAccessList(); <mask> this.props.getDnsConfig(); <mask> } <mask> <mask> render() { <mask> const { <mask> t, <mask> settings, <mask> access, <mask> setAccessList, <mask> testUpstream, <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/index.js
const { settings, access, setAccessList, dnsConfig, setDnsConfig, } = props;
<mask> dnsConfig, <mask> setDnsConfig, <mask> } = this.props; <mask> <mask> const isDataLoading = access.processing || dnsConfig.processingGetConfig; <mask> <mask> return ( <mask> <Fragment> <mask> <PageTitle title={t('dns_settings')...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/index.js
const isDataLoading = access.processing || dnsConfig.processingGetConfig; return ( <> <PageTitle title={t('dns_settings')} /> {isDataLoading ? <Loading /> : <> <Upstream processingTestUpstream={settings....
<mask> } = this.props; <mask> <mask> const isDataLoading = access.processing || dnsConfig.processingGetConfig; <mask> <mask> return ( <mask> <Fragment> <mask> <PageTitle title={t('dns_settings')} /> <mask> {isDataLoading <mask> ...
[ "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/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/index.js
<mask> } <mask> <mask> Dns.propTypes = { <mask> settings: PropTypes.object.isRequired, <mask> testUpstream: PropTypes.func.isRequired, <mask> getAccessList: PropTypes.func.isRequired, <mask> setAccessList: PropTypes.func.isRequired, <mask> access: PropTypes.object.isRequired, <mask> dn...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/index.js
<mask> access: PropTypes.object.isRequired, <mask> dnsConfig: PropTypes.object.isRequired, <mask> setDnsConfig: PropTypes.func.isRequired, <mask> getDnsConfig: PropTypes.func.isRequired, <mask> t: PropTypes.func.isRequired, <mask> }; <mask> <mask> export default withTranslation()(Dns); </s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/index.js
export default Dns;
<mask> getDnsConfig: PropTypes.func.isRequired, <mask> t: PropTypes.func.isRequired, <mask> }; <mask> <mask> export default withTranslation()(Dns); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squashed commit of the ...
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Dns/index.js
import { FORM_NAME } from '../../../helpers/constants';
<mask> import i18n from '../../../i18n'; <mask> import KeyStatus from './KeyStatus'; <mask> import CertificateStatus from './CertificateStatus'; <mask> <mask> const validate = (values) => { <mask> const errors = {}; <mask> </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Encryption/Form.js
const selector = formValueSelector(FORM_NAME.ENCRYPTION);
<mask> certificateSource: PropTypes.string, <mask> privateKeySource: PropTypes.string, <mask> }; <mask> <mask> const selector = formValueSelector('encryptionForm'); <mask> <mask> Form = connect((state) => { <mask> const isEnabled = selector(state, 'enabled'); <mask> const certificateChain = s...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Encryption/Form.js
form: FORM_NAME.ENCRYPTION,
<mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'encryptionForm', <mask> validate, <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Clos...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/Encryption/Form.js
import { FILTERS_INTERVALS_HOURS, FORM_NAME } from '../../../helpers/constants';
<mask> import { Trans, withTranslation } from 'react-i18next'; <mask> import flow from 'lodash/flow'; <mask> <mask> import { renderSelectField, toNumber } from '../../../helpers/form'; <mask> import { FILTERS_INTERVALS_HOURS } from '../../../helpers/constants'; <mask> <mask> const getTitleForInterval = (interv...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/FiltersConfig/Form.js
} if (interval === 72 || interval === 168) {
<mask> <mask> const getTitleForInterval = (interval, t) => { <mask> if (interval === 0) { <mask> return t('disabled'); <mask> } if (interval === 72 || interval === 168) { <mask> return t('interval_days', { count: interval / 24 }); <mask> } <mask> <mask> return t('interval_hour...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/FiltersConfig/Form.js
reduxForm({ form: FORM_NAME.FILTER_CONFIG }),
<mask> }; <mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'filterConfigForm', <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squa...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/FiltersConfig/Form.js
import { FORM_NAME, QUERY_LOG_INTERVALS_DAYS } from '../../../helpers/constants';
<mask> import { Trans, withTranslation } from 'react-i18next'; <mask> import flow from 'lodash/flow'; <mask> <mask> import { renderSelectField, renderRadioField, toNumber } from '../../../helpers/form'; <mask> import { QUERY_LOG_INTERVALS_DAYS } from '../../../helpers/constants'; <mask> <mask> const getInterva...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/LogsConfig/Form.js
<Field key={interval} name="interval" type="radio" component={renderRadioField} value={interval} placeholder={title} normalize={toNumber} disabled={processing} />
<mask> const getIntervalFields = (processing, t, toNumber) => QUERY_LOG_INTERVALS_DAYS.map((interval) => { <mask> const title = interval === 1 ? t('interval_24_hour') : t('interval_days', { count: interval }); <mask> <mask> return ( <mask> <Field <mask> key={interval} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/LogsConfig/Form.js
reduxForm({ form: FORM_NAME.LOG_CONFIG }),
<mask> }; <mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'logConfigForm', <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squashe...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/LogsConfig/Form.js
import { FORM_NAME, STATS_INTERVALS_DAYS } from '../../../helpers/constants';
<mask> import { Trans, withTranslation } from 'react-i18next'; <mask> import flow from 'lodash/flow'; <mask> <mask> import { renderRadioField, toNumber } from '../../../helpers/form'; <mask> import { STATS_INTERVALS_DAYS } from '../../../helpers/constants'; <mask> <mask> const getIntervalFields = (processing, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/StatsConfig/Form.js
<Field key={interval} name="interval" type="radio" component={renderRadioField} value={interval} placeholder={title} normalize={toNumber} disabled={processing} />
<mask> const getIntervalFields = (processing, t, toNumber) => STATS_INTERVALS_DAYS.map((interval) => { <mask> const title = interval === 1 ? t('interval_24_hour') : t('interval_days', { count: interval }); <mask> <mask> return ( <mask> <Field <mask> key={interval} <mask> ...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/StatsConfig/Form.js
reduxForm({ form: FORM_NAME.STATS_CONFIG }),
<mask> }; <mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'statsConfigForm', <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squas...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/components/Settings/StatsConfig/Form.js
<mask> import { connect } from 'react-redux'; <mask> import { testUpstream } from '../actions'; <mask> import { getAccessList, setAccessList } from '../actions/access'; <mask> import { <mask> getRewritesList, <mask> addRewrite, <mask> deleteRewrite, </s> - client: Add default mode in the DNS setting...
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/containers/Dns.js
<mask> return props; <mask> }; <mask> <mask> const mapDispatchToProps = { <mask> testUpstream, <mask> getAccessList, <mask> setAccessList, <mask> getRewritesList, <mask> addRewrite, <mask> deleteRewrite, </s> - client: Add default mode in the DNS settings: Merge pull request #650...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/containers/Dns.js
PARALLEL: 'parallel',
<mask> unblock: 'unblock', <mask> }; <mask> <mask> export const DNS_REQUEST_OPTIONS = { <mask> PARALLEL_REQUESTS: 'parallel_requests', <mask> FASTEST_ADDR: 'fastest_addr', <mask> }; <mask> <mask> export const IP_MATCH_LIST_STATUS = { <mask> NOT_FOUND: 'NOT_FOUND', // not found in the list <...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/helpers/constants.js
LOAD_BALANCING: '',
<mask> <mask> export const DNS_REQUEST_OPTIONS = { <mask> PARALLEL: 'parallel', <mask> FASTEST_ADDR: 'fastest_addr', <mask> }; <mask> <mask> export const IP_MATCH_LIST_STATUS = { <mask> NOT_FOUND: 'NOT_FOUND', // not found in the list <mask> EXACT: 'EXACT', // found exact match (including the...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/helpers/constants.js
EXACT: 'EXACT', // found exact match (including the match of short and long forms)
<mask> }; <mask> <mask> export const IP_MATCH_LIST_STATUS = { <mask> NOT_FOUND: 'NOT_FOUND', // not found in the list <mask> EXACT: 'EXACT', // found exact match (ip === ip) <mask> CIDR: 'CIDR', // the ip is in the specified CIDR range <mask> }; </s> - client: Add default mode in the DNS settings: ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/helpers/constants.js
import { FORM_NAME } from '../../helpers/constants';
<mask> import Controls from './Controls'; <mask> import { renderInputField } from '../../helpers/form'; <mask> <mask> const required = (value) => { <mask> if (value || value === 0) { <mask> return false; <mask> } </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DN...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/install/Setup/Auth.js
form: FORM_NAME.INSTALL,
<mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'install', <mask> destroyOnUnmount: false, <mask> forceUnregisterOnUnmount: true, <mask> validate, <mask> }), <mask> ])(Auth); </s> - client: Add default mode in the DNS ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/install/Setup/Auth.js
import { FORM_NAME } from '../../helpers/constants';
<mask> <mask> import Guide from '../../components/ui/Guide'; <mask> import Controls from './Controls'; <mask> import AddressList from './AddressList'; <mask> <mask> let Devices = (props) => ( <mask> <div className="setup__step"> <mask> <div className="setup__group"> <mask> <div classN...
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/install/Setup/Devices.js
form: FORM_NAME.INSTALL,
<mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'install', <mask> destroyOnUnmount: false, <mask> forceUnregisterOnUnmount: true, <mask> }), <mask> ])(Devices); </s> - client: Add default mode in the DNS settings: Merge pull re...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/install/Setup/Devices.js
import { ALL_INTERFACES_IP, FORM_NAME } from '../../helpers/constants';
<mask> import Controls from './Controls'; <mask> import AddressList from './AddressList'; <mask> <mask> import { getInterfaceIp } from '../../helpers/helpers'; <mask> import { ALL_INTERFACES_IP } from '../../helpers/constants'; <mask> import { <mask> renderInputField, required, validInstallPort, toNumber, ...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/install/Setup/Settings.js
const selector = formValueSelector(FORM_NAME.INSTALL);
<mask> initialValues: PropTypes.object, <mask> t: PropTypes.func.isRequired, <mask> }; <mask> <mask> const selector = formValueSelector('install'); <mask> <mask> const SettingsForm = connect((state) => { <mask> const webIp = selector(state, 'web.ip'); <mask> const webPort = selector(state, 'w...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/install/Setup/Settings.js
form: FORM_NAME.INSTALL,
<mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'install', <mask> destroyOnUnmount: false, <mask> forceUnregisterOnUnmount: true, <mask> }), <mask> ])(SettingsForm); </s> - client: Add default mode in the DNS settings: Merge pu...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/install/Setup/Settings.js
import { FORM_NAME } from '../../helpers/constants';
<mask> import flow from 'lodash/flow'; <mask> <mask> import Controls from './Controls'; <mask> <mask> let Submit = (props) => ( <mask> <div className="setup__step"> <mask> <div className="setup__group"> <mask> <h1 className="setup__title"> <mask> <Trans>install_submit_...
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/install/Setup/Submit.js
form: FORM_NAME.INSTALL,
<mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'install', <mask> destroyOnUnmount: false, <mask> forceUnregisterOnUnmount: true, <mask> }), <mask> ])(Submit); </s> - client: Add default mode in the DNS settings: Merge pull req...
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/install/Setup/Submit.js
import { FORM_NAME } from '../../helpers/constants';
<mask> <mask> import { renderInputField, required } from '../../helpers/form'; <mask> <mask> const Form = (props) => { <mask> const { <mask> handleSubmit, processing, invalid, t, <mask> } = props; </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home ...
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/login/Login/Form.js
reduxForm({ form: FORM_NAME.LOGIN }),
<mask> }; <mask> <mask> export default flow([ <mask> withTranslation(), <mask> reduxForm({ <mask> form: 'loginForm', <mask> }), <mask> ])(Form); </s> - client: Add default mode in the DNS settings: Merge pull request #650 in DNS/adguard-home from fix/1770 to master Close #1770 Squashed co...
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep" ]
https://github.com/AdguardTeam/AdGuardHome/commit/a79dda55661c3a50cfc89a620aabd402dd490ecb
client/src/login/Login/Form.js