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 |
|---|---|---|---|---|
<mask> import { showLoading, hideLoading } from 'react-redux-loading-bar';
<mask> import { t } from 'i18next';
<mask>
<mask> import { normalizeFilteringStatus, normalizeRulesTextarea } from '../helpers/helpers';
<mask> import { addErrorToast, addSuccessToast } from './index';
<mask> import apiClient from '../api... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/filtering.js | |
import { addErrorToast, addSuccessToast } from './toasts'; | <mask> import { normalizeFilteringStatus, normalizeRulesTextarea } from '../helpers/helpers';
<mask> import apiClient from '../api/Api';
<mask>
<mask> export const toggleFilteringModal = createAction('FILTERING_MODAL_TOGGLE');
<mask> export const handleRulesChange = createAction('HANDLE_RULES_CHANGE');
<mask>
... | [
"keep",
"add",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/filtering.js |
export const setRules = (rules) => async (dispatch) => { | <mask> export const setRulesRequest = createAction('SET_RULES_REQUEST');
<mask> export const setRulesFailure = createAction('SET_RULES_FAILURE');
<mask> export const setRulesSuccess = createAction('SET_RULES_SUCCESS');
<mask>
<mask> export const setRules = rules => async (dispatch) => {
<mask> dispatch(setRu... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/filtering.js |
export const refreshFilters = (config) => async (dispatch) => { | <mask> export const refreshFiltersRequest = createAction('FILTERING_REFRESH_REQUEST');
<mask> export const refreshFiltersFailure = createAction('FILTERING_REFRESH_FAILURE');
<mask> export const refreshFiltersSuccess = createAction('FILTERING_REFRESH_SUCCESS');
<mask>
<mask> export const refreshFilters = config =>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/filtering.js |
dispatch(addSuccessToast(i18next.t('list_updated', { count: updated }))); | <mask> const { updated } = data;
<mask> dispatch(refreshFiltersSuccess());
<mask>
<mask> if (updated > 0) {
<mask> dispatch(addSuccessToast(t('list_updated', { count: updated })));
<mask> } else {
<mask> dispatch(addSuccessToast('all_lists_up_to_date_toast... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/filtering.js |
export const setFiltersConfig = (config) => async (dispatch, getState) => { | <mask> export const setFiltersConfigRequest = createAction('SET_FILTERS_CONFIG_REQUEST');
<mask> export const setFiltersConfigFailure = createAction('SET_FILTERS_CONFIG_FAILURE');
<mask> export const setFiltersConfigSuccess = createAction('SET_FILTERS_CONFIG_SUCCESS');
<mask>
<mask> export const setFiltersConfig ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/filtering.js |
export const checkHost = (host) => async (dispatch) => { | <mask> * @param {object} host
<mask> * @param {string} host.name
<mask> * @returns {undefined}
<mask> */
<mask> export const checkHost = host => async (dispatch) => {
<mask> dispatch(checkHostRequest());
<mask> try {
<mask> const data = await apiClient.checkHost(host);
<mask> const ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/filtering.js |
import i18next from 'i18next'; | <mask> import { createAction } from 'redux-actions';
<mask> import { t } from 'i18next';
<mask> import axios from 'axios';
<mask>
<mask> import { normalizeTextarea, sortClients, isVersionGreater } from '../helpers/helpers';
<mask> import { SETTINGS_NAMES, CHECK_TIMEOUT } from '../helpers/constants';
<mask> impo... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
import { isVersionGreater, normalizeTextarea, sortClients } from '../helpers/helpers';
import { CHECK_TIMEOUT, SETTINGS_NAMES } from '../helpers/constants'; | <mask> import { createAction } from 'redux-actions';
<mask> import { t } from 'i18next';
<mask> import axios from 'axios';
<mask>
<mask> import { normalizeTextarea, sortClients, isVersionGreater } from '../helpers/helpers';
<mask> import { SETTINGS_NAMES, CHECK_TIMEOUT } from '../helpers/constants';
<mask> impo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
import { addErrorToast, addNoticeToast, addSuccessToast } from './toasts'; | <mask> import { normalizeTextarea, sortClients, isVersionGreater } from '../helpers/helpers';
<mask> import { SETTINGS_NAMES, CHECK_TIMEOUT } from '../helpers/constants';
<mask> import { getTlsStatus } from './encryption';
<mask> import apiClient from '../api/Api';
<mask>
<mask> export const addErrorToast = crea... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
export const initSettings = (settingsList) => async (dispatch) => { | <mask> export const initSettingsRequest = createAction('SETTINGS_INIT_REQUEST');
<mask> export const initSettingsFailure = createAction('SETTINGS_INIT_FAILURE');
<mask> export const initSettingsSuccess = createAction('SETTINGS_INIT_SUCCESS');
<mask>
<mask> export const initSettings = settingsList => async (dispat... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
export const toggleProtection = (status) => async (dispatch) => { | <mask> export const toggleProtectionRequest = createAction('TOGGLE_PROTECTION_REQUEST');
<mask> export const toggleProtectionFailure = createAction('TOGGLE_PROTECTION_FAILURE');
<mask> export const toggleProtectionSuccess = createAction('TOGGLE_PROTECTION_SUCCESS');
<mask>
<mask> export const toggleProtection = s... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
const rmTimeout = (t) => t && clearTimeout(t); | <mask> if (attempts === 0) {
<mask> handleRequestError();
<mask> }
<mask>
<mask> const rmTimeout = t => t && clearTimeout(t);
<mask>
<mask> try {
<mask> const response = await axios.get('control/status');
<mask> rmTimeout(timeout);
<mask> if (response && respo... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
export const testUpstream = (config) => async (dispatch) => { | <mask> export const testUpstreamRequest = createAction('TEST_UPSTREAM_REQUEST');
<mask> export const testUpstreamFailure = createAction('TEST_UPSTREAM_FAILURE');
<mask> export const testUpstreamSuccess = createAction('TEST_UPSTREAM_SUCCESS');
<mask>
<mask> export const testUpstream = config => async (dispatch) =>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
dispatch(addErrorToast({ error: i18next.t('dns_test_not_ok_toast', { key }) })); | <mask> const upstreamResponse = await apiClient.testUpstream(values);
<mask> const testMessages = Object.keys(upstreamResponse).map((key) => {
<mask> const message = upstreamResponse[key];
<mask> if (message !== 'OK') {
<mask> dispatch(addErrorToast({ error: ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
if (testMessages.every((message) => message === 'OK')) { | <mask> }
<mask> return message;
<mask> });
<mask>
<mask> if (testMessages.every(message => message === 'OK')) {
<mask> dispatch(addSuccessToast('dns_test_ok_toast'));
<mask> }
<mask>
<mask> dispatch(testUpstreamSuccess());
<mask> } catc... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
export const changeLanguage = (lang) => async (dispatch) => { | <mask> export const changeLanguageRequest = createAction('CHANGE_LANGUAGE_REQUEST');
<mask> export const changeLanguageFailure = createAction('CHANGE_LANGUAGE_FAILURE');
<mask> export const changeLanguageSuccess = createAction('CHANGE_LANGUAGE_SUCCESS');
<mask>
<mask> export const changeLanguage = lang => async (... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
export const findActiveDhcp = (name) => async (dispatch) => { | <mask> export const findActiveDhcpRequest = createAction('FIND_ACTIVE_DHCP_REQUEST');
<mask> export const findActiveDhcpSuccess = createAction('FIND_ACTIVE_DHCP_SUCCESS');
<mask> export const findActiveDhcpFailure = createAction('FIND_ACTIVE_DHCP_FAILURE');
<mask>
<mask> export const findActiveDhcp = name => asyn... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
export const setDhcpConfig = (values) => async (dispatch, getState) => { | <mask> export const setDhcpConfigRequest = createAction('SET_DHCP_CONFIG_REQUEST');
<mask> export const setDhcpConfigSuccess = createAction('SET_DHCP_CONFIG_SUCCESS');
<mask> export const setDhcpConfigFailure = createAction('SET_DHCP_CONFIG_FAILURE');
<mask>
<mask> export const setDhcpConfig = values => async (di... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
export const toggleDhcp = (values) => async (dispatch) => { | <mask> export const toggleDhcpRequest = createAction('TOGGLE_DHCP_REQUEST');
<mask> export const toggleDhcpFailure = createAction('TOGGLE_DHCP_FAILURE');
<mask> export const toggleDhcpSuccess = createAction('TOGGLE_DHCP_SUCCESS');
<mask>
<mask> export const toggleDhcp = values => async (dispatch) => {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
export const addStaticLease = (config) => async (dispatch) => { | <mask> export const addStaticLeaseRequest = createAction('ADD_STATIC_LEASE_REQUEST');
<mask> export const addStaticLeaseFailure = createAction('ADD_STATIC_LEASE_FAILURE');
<mask> export const addStaticLeaseSuccess = createAction('ADD_STATIC_LEASE_SUCCESS');
<mask>
<mask> export const addStaticLease = config => as... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
dispatch(addSuccessToast(i18next.t('dhcp_lease_added', { key: name }))); | <mask> try {
<mask> const name = config.hostname || config.ip;
<mask> await apiClient.addStaticLease(config);
<mask> dispatch(addStaticLeaseSuccess(config));
<mask> dispatch(addSuccessToast(t('dhcp_lease_added', { key: name })));
<mask> dispatch(toggleLeaseModal());
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
export const removeStaticLease = (config) => async (dispatch) => { | <mask> export const removeStaticLeaseRequest = createAction('REMOVE_STATIC_LEASE_REQUEST');
<mask> export const removeStaticLeaseFailure = createAction('REMOVE_STATIC_LEASE_FAILURE');
<mask> export const removeStaticLeaseSuccess = createAction('REMOVE_STATIC_LEASE_SUCCESS');
<mask>
<mask> export const removeStati... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
dispatch(addSuccessToast(i18next.t('dhcp_lease_deleted', { key: name }))); | <mask> try {
<mask> const name = config.hostname || config.ip;
<mask> await apiClient.removeStaticLease(config);
<mask> dispatch(removeStaticLeaseSuccess(config));
<mask> dispatch(addSuccessToast(t('dhcp_lease_deleted', { key: name })));
<mask> } catch (error) {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/index.js |
import { addErrorToast, addSuccessToast } from './toasts'; | <mask> import { createAction } from 'redux-actions';
<mask> import apiClient from '../api/Api';
<mask> import { addErrorToast, addSuccessToast } from './index';
<mask>
<mask> export const nextStep = createAction('NEXT_STEP');
<mask> export const prevStep = createAction('PREV_STEP');
<mask>
<mask> export const... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/install.js |
export const setAllSettings = (values) => async (dispatch) => { | <mask> export const setAllSettingsRequest = createAction('SET_ALL_SETTINGS_REQUEST');
<mask> export const setAllSettingsFailure = createAction('SET_ALL_SETTINGS_FAILURE');
<mask> export const setAllSettingsSuccess = createAction('SET_ALL_SETTINGS_SUCCESS');
<mask>
<mask> export const setAllSettings = values => as... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/install.js |
export const checkConfig = (values) => async (dispatch) => { | <mask> export const checkConfigRequest = createAction('CHECK_CONFIG_REQUEST');
<mask> export const checkConfigFailure = createAction('CHECK_CONFIG_FAILURE');
<mask> export const checkConfigSuccess = createAction('CHECK_CONFIG_SUCCESS');
<mask>
<mask> export const checkConfig = values => async (dispatch) => {
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/install.js |
<mask> import { createAction } from 'redux-actions';
<mask>
<mask> import { addErrorToast } from './index';
<mask> import apiClient from '../api/Api';
<mask>
<mask> export const processLoginRequest = createAction('PROCESS_LOGIN_REQUEST');
<mask> export const processLoginFailure = createAction('PROCESS_LOGIN_FA... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/login.js | |
import { addErrorToast } from './toasts'; | <mask> import { createAction } from 'redux-actions';
<mask>
<mask> import apiClient from '../api/Api';
<mask>
<mask> export const processLoginRequest = createAction('PROCESS_LOGIN_REQUEST');
<mask> export const processLoginFailure = createAction('PROCESS_LOGIN_FAILURE');
<mask> export const processLoginSuccess... | [
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/login.js |
export const processLogin = (values) => async (dispatch) => { | <mask> export const processLoginRequest = createAction('PROCESS_LOGIN_REQUEST');
<mask> export const processLoginFailure = createAction('PROCESS_LOGIN_FAILURE');
<mask> export const processLoginSuccess = createAction('PROCESS_LOGIN_SUCCESS');
<mask>
<mask> export const processLogin = values => async (dispatch) =>... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/login.js |
<mask> import { createAction } from 'redux-actions';
<mask>
<mask> import apiClient from '../api/Api';
<mask> import { addErrorToast, addSuccessToast } from './index';
<mask> import { normalizeLogs, getParamsForClientsSearch, addClientInfo } from '../helpers/helpers';
<mask> import { TABLE_DEFAULT_PAGE_SIZE } fr... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/queryLogs.js | |
import { addErrorToast, addSuccessToast } from './toasts'; | <mask>
<mask> import apiClient from '../api/Api';
<mask> import { normalizeLogs, getParamsForClientsSearch, addClientInfo } from '../helpers/helpers';
<mask> import { TABLE_DEFAULT_PAGE_SIZE } from '../helpers/constants';
<mask>
<mask> const getLogsWithParams = async (config) => {
<mask> const { older_than... | [
"keep",
"keep",
"keep",
"add",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/queryLogs.js |
const needToGetAdditionalLogs = (logs.length < TABLE_DEFAULT_PAGE_SIZE
|| totalData.logs.length < TABLE_DEFAULT_PAGE_SIZE)
&& oldest !== ''; | <mask> const checkFilteredLogs = async (data, filter, dispatch, total) => {
<mask> const { logs, oldest } = data;
<mask> const totalData = total || { logs };
<mask>
<mask> const needToGetAdditionalLogs = (logs.length < TABLE_DEFAULT_PAGE_SIZE ||
<mask> totalData.logs.length < TABLE_DEFAULT_PA... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/queryLogs.js |
export const getLogs = (config) => async (dispatch, getState) => { | <mask> export const getLogsRequest = createAction('GET_LOGS_REQUEST');
<mask> export const getLogsFailure = createAction('GET_LOGS_FAILURE');
<mask> export const getLogsSuccess = createAction('GET_LOGS_SUCCESS');
<mask>
<mask> export const getLogs = config => async (dispatch, getState) => {
<mask> dispatch(g... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/queryLogs.js |
export const setLogsFilter = (filter) => async (dispatch) => { | <mask> export const setLogsFilterRequest = createAction('SET_LOGS_FILTER_REQUEST');
<mask> export const setLogsFilterFailure = createAction('SET_LOGS_FILTER_FAILURE');
<mask> export const setLogsFilterSuccess = createAction('SET_LOGS_FILTER_SUCCESS');
<mask>
<mask> export const setLogsFilter = filter => async (di... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/queryLogs.js |
export const setLogsConfig = (config) => async (dispatch) => { | <mask> export const setLogsConfigRequest = createAction('SET_LOGS_CONFIG_REQUEST');
<mask> export const setLogsConfigFailure = createAction('SET_LOGS_CONFIG_FAILURE');
<mask> export const setLogsConfigSuccess = createAction('SET_LOGS_CONFIG_SUCCESS');
<mask>
<mask> export const setLogsConfig = config => async (di... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/queryLogs.js |
import i18next from 'i18next'; | <mask> import { createAction } from 'redux-actions';
<mask> import { t } from 'i18next';
<mask> import apiClient from '../api/Api';
<mask> import { addErrorToast, addSuccessToast } from './index';
<mask>
<mask> export const toggleRewritesModal = createAction('TOGGLE_REWRITES_MODAL');
<mask>
</s> + client: Upd... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/rewrites.js |
import { addErrorToast, addSuccessToast } from './toasts'; | <mask> import { createAction } from 'redux-actions';
<mask> import { t } from 'i18next';
<mask> import apiClient from '../api/Api';
<mask> import { addErrorToast, addSuccessToast } from './index';
<mask>
<mask> export const toggleRewritesModal = createAction('TOGGLE_REWRITES_MODAL');
<mask>
<mask> export cons... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/rewrites.js |
export const addRewrite = (config) => async (dispatch) => { | <mask> export const addRewriteRequest = createAction('ADD_REWRITE_REQUEST');
<mask> export const addRewriteFailure = createAction('ADD_REWRITE_FAILURE');
<mask> export const addRewriteSuccess = createAction('ADD_REWRITE_SUCCESS');
<mask>
<mask> export const addRewrite = config => async (dispatch) => {
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/rewrites.js |
dispatch(addSuccessToast(i18next.t('rewrite_added', { key: config.domain }))); | <mask> await apiClient.addRewrite(config);
<mask> dispatch(addRewriteSuccess(config));
<mask> dispatch(toggleRewritesModal());
<mask> dispatch(getRewritesList());
<mask> dispatch(addSuccessToast(t('rewrite_added', { key: config.domain })));
<mask> } catch (error) {
<ma... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/rewrites.js |
export const deleteRewrite = (config) => async (dispatch) => { | <mask> export const deleteRewriteRequest = createAction('DELETE_REWRITE_REQUEST');
<mask> export const deleteRewriteFailure = createAction('DELETE_REWRITE_FAILURE');
<mask> export const deleteRewriteSuccess = createAction('DELETE_REWRITE_SUCCESS');
<mask>
<mask> export const deleteRewrite = config => async (dispa... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/rewrites.js |
dispatch(addSuccessToast(i18next.t('rewrite_deleted', { key: config.domain }))); | <mask> try {
<mask> await apiClient.deleteRewrite(config);
<mask> dispatch(deleteRewriteSuccess());
<mask> dispatch(getRewritesList());
<mask> dispatch(addSuccessToast(t('rewrite_deleted', { key: config.domain })));
<mask> } catch (error) {
<mask> dispatch(addError... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/rewrites.js |
import { addErrorToast, addSuccessToast } from './toasts'; | <mask> import { createAction } from 'redux-actions';
<mask> import apiClient from '../api/Api';
<mask> import { addErrorToast, addSuccessToast } from './index';
<mask>
<mask> export const getBlockedServicesRequest = createAction('GET_BLOCKED_SERVICES_REQUEST');
<mask> export const getBlockedServicesFailure = cre... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/services.js |
export const setBlockedServices = (values) => async (dispatch) => { | <mask> export const setBlockedServicesRequest = createAction('SET_BLOCKED_SERVICES_REQUEST');
<mask> export const setBlockedServicesFailure = createAction('SET_BLOCKED_SERVICES_FAILURE');
<mask> export const setBlockedServicesSuccess = createAction('SET_BLOCKED_SERVICES_SUCCESS');
<mask>
<mask> export const setBl... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/services.js |
import {
normalizeTopStats, secondsToMilliseconds, getParamsForClientsSearch, addClientInfo,
} from '../helpers/helpers';
import { addErrorToast, addSuccessToast } from './toasts'; | <mask> import { createAction } from 'redux-actions';
<mask>
<mask> import apiClient from '../api/Api';
<mask> import { addErrorToast, addSuccessToast } from './index';
<mask> import { normalizeTopStats, secondsToMilliseconds, getParamsForClientsSearch, addClientInfo } from '../helpers/helpers';
<mask>
<mask> e... | [
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/stats.js |
export const setStatsConfig = (config) => async (dispatch) => { | <mask> export const setStatsConfigRequest = createAction('SET_STATS_CONFIG_REQUEST');
<mask> export const setStatsConfigFailure = createAction('SET_STATS_CONFIG_FAILURE');
<mask> export const setStatsConfigSuccess = createAction('SET_STATS_CONFIG_SUCCESS');
<mask>
<mask> export const setStatsConfig = config => as... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/actions/stats.js |
--font-family-monospace: Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace; | <mask> :root {
<mask> font-family-monospace: Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace;
<mask> }
<mask>
<mask> body {
<mask> margin: 0;
<mask> padding: 0;
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squas... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/App/index.css |
<mask> }
<mask>
<mask> .font-monospace {
<mask> font-family: var(--font-family-monospace);
<mask> } </s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the following:
commit 1eb89586dd71260e561420fe669abc8b56a506a1
Author: Artem... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/App/index.css | |
import { withTranslation } from 'react-i18next'; | <mask> import React, { Component, Fragment } from 'react';
<mask> import { HashRouter, Route } from 'react-router-dom';
<mask> import PropTypes from 'prop-types';
<mask> import { withNamespaces } from 'react-i18next';
<mask> import LoadingBar from 'react-redux-loading-bar';
<mask>
<mask> import 'react-table/rea... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/App/index.js |
export default withTranslation()(App); | <mask> encryption: PropTypes.object,
<mask> getVersion: PropTypes.func,
<mask> };
<mask>
<mask> export default withNamespaces()(App);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the following:
commit 1eb89586dd71260... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/App/index.js |
import { withTranslation, Trans } from 'react-i18next'; | <mask> import React from 'react';
<mask> import ReactTable from 'react-table';
<mask> import PropTypes from 'prop-types';
<mask> import { withNamespaces, Trans } from 'react-i18next';
<mask>
<mask> import Card from '../ui/Card';
<mask> import Cell from '../ui/Cell';
<mask> import DomainCell from './DomainCell'... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/BlockedDomains.js |
const CountCell = (totalBlocked) => function cell(row) {
const { value } = row;
const percent = getPercent(totalBlocked, value); | <mask>
<mask> import { getPercent } from '../../helpers/helpers';
<mask> import { STATUS_COLORS } from '../../helpers/constants';
<mask>
<mask> const CountCell = totalBlocked =>
<mask> function cell(row) {
<mask> const { value } = row;
<mask> const percent = getPercent(totalBlocked, value)... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/BlockedDomains.js |
return <Cell value={value} percent={percent} color={STATUS_COLORS.red} />;
}; | <mask> function cell(row) {
<mask> const { value } = row;
<mask> const percent = getPercent(totalBlocked, value);
<mask>
<mask> return <Cell value={value} percent={percent} color={STATUS_COLORS.red} />;
<mask> };
<mask>
<mask> const BlockedDomains = ({
<mask> t,
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/BlockedDomains.js |
export default withTranslation()(BlockedDomains); | <mask> subtitle: PropTypes.string.isRequired,
<mask> t: PropTypes.func.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(BlockedDomains);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the following:
... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/BlockedDomains.js |
import { Trans, withTranslation } from 'react-i18next'; | <mask> import React, { Fragment } from 'react';
<mask> import ReactTable from 'react-table';
<mask> import PropTypes from 'prop-types';
<mask> import { Trans, withNamespaces } from 'react-i18next';
<mask>
<mask> import Card from '../ui/Card';
<mask> import Cell from '../ui/Cell';
<mask>
<mask> import { getPe... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Clients.js |
} if (percent > 10) { | <mask>
<mask> const getClientsPercentColor = (percent) => {
<mask> if (percent > 50) {
<mask> return STATUS_COLORS.green;
<mask> } else if (percent > 10) {
<mask> return STATUS_COLORS.yellow;
<mask> }
<mask> return STATUS_COLORS.red;
<mask> };
<mask>
</s> + client: Update pa... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Clients.js |
const countCell = (dnsQueries) => function cell(row) {
const { value } = row;
const percent = getPercent(dnsQueries, value);
const percentColor = getClientsPercentColor(percent); | <mask> }
<mask> return STATUS_COLORS.red;
<mask> };
<mask>
<mask> const countCell = dnsQueries =>
<mask> function cell(row) {
<mask> const { value } = row;
<mask> const percent = getPercent(dnsQueries, value);
<mask> const percentColor = getClientsPercentColor(percent);
<m... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Clients.js |
return <Cell value={value} percent={percent} color={percentColor} />;
}; | <mask> const { value } = row;
<mask> const percent = getPercent(dnsQueries, value);
<mask> const percentColor = getClientsPercentColor(percent);
<mask>
<mask> return <Cell value={value} percent={percent} color={percentColor} />;
<mask> };
<mask>
<mask> const renderBlockingB... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Clients.js |
const clientCell = (t, toggleClientStatus, processing, disallowedClients) => function cell(row) {
const { value } = row;
const blocked = isBlockedClient(disallowedClients, value); | <mask> };
<mask>
<mask> const isBlockedClient = (clients, ip) => !!(clients && clients.includes(ip));
<mask>
<mask> const clientCell = (t, toggleClientStatus, processing, disallowedClients) =>
<mask> function cell(row) {
<mask> const { value } = row;
<mask> const blocked = isBlockedClient(... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Clients.js |
return ( | <mask> function cell(row) {
<mask> const { value } = row;
<mask> const blocked = isBlockedClient(disallowedClients, value);
<mask>
<mask> return (
<mask> <Fragment>
<mask> <div className="logs__row logs__row--overflow logs__row--column">
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Clients.js |
);
}; | <mask> {formatClientCell(row, t)}
<mask> </div>
<mask> {renderBlockingButton(blocked, value, toggleClientStatus, processing)}
<mask> </Fragment>
<mask> );
<mask> };
<mask>
<mask> const Clients = ({
<mask> t,
<mask> refreshBut... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Clients.js |
sortMethod: (a, b) => parseInt(a.replace(/\./g, ''), 10) - parseInt(b.replace(/\./g, ''), 10), | <mask> columns={[
<mask> {
<mask> Header: 'IP',
<mask> accessor: 'ip',
<mask> sortMethod: (a, b) =>
<mask> parseInt(a.replace(/\./g, ''), 10) - parseInt(b.replace(/\./g, ''), 10),
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Clients.js |
export default withTranslation()(Clients); | <mask> processingAccessSet: PropTypes.bool.isRequired,
<mask> disallowedClients: PropTypes.string.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(Clients);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Clients.js |
import { Trans, withTranslation } from 'react-i18next'; | <mask> import React from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { Trans, withNamespaces } from 'react-i18next';
<mask> import round from 'lodash/round';
<mask>
<mask> import Card from '../ui/Card';
<mask> import Tooltip from '../ui/Tooltip';
<mask> import { formatNumber } from '../..... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Counters.js |
const tooltipTitle = interval === 1
? t('number_of_dns_query_24_hours')
: t('number_of_dns_query_days', { count: interval }); | <mask> replacedSafesearch,
<mask> avgProcessingTime,
<mask> } = props;
<mask>
<mask> const tooltipTitle =
<mask> interval === 1
<mask> ? t('number_of_dns_query_24_hours')
<mask> : t('number_of_dns_query_days', { count: interval });
<mask>
<mask> re... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Counters.js |
export default withTranslation()(Counters); | <mask> interval: PropTypes.number.isRequired,
<mask> t: PropTypes.func.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(Counters);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the following:
commit... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Counters.js |
import { withTranslation, Trans } from 'react-i18next'; | <mask> import React from 'react';
<mask> import ReactTable from 'react-table';
<mask> import PropTypes from 'prop-types';
<mask> import { withNamespaces, Trans } from 'react-i18next';
<mask>
<mask> import Card from '../ui/Card';
<mask> import Cell from '../ui/Cell';
<mask> import DomainCell from './DomainCell'... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/QueriedDomains.js |
} if (percent > 5) { | <mask>
<mask> const getQueriedPercentColor = (percent) => {
<mask> if (percent > 10) {
<mask> return STATUS_COLORS.red;
<mask> } else if (percent > 5) {
<mask> return STATUS_COLORS.yellow;
<mask> }
<mask> return STATUS_COLORS.green;
<mask> };
<mask>
</s> + client: Update pac... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/QueriedDomains.js |
const countCell = (dnsQueries) => function cell(row) {
const { value } = row;
const percent = getPercent(dnsQueries, value);
const percentColor = getQueriedPercentColor(percent); | <mask> }
<mask> return STATUS_COLORS.green;
<mask> };
<mask>
<mask> const countCell = dnsQueries =>
<mask> function cell(row) {
<mask> const { value } = row;
<mask> const percent = getPercent(dnsQueries, value);
<mask> const percentColor = getQueriedPercentColor(percent);
... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/QueriedDomains.js |
return <Cell value={value} percent={percent} color={percentColor} />;
}; | <mask> const { value } = row;
<mask> const percent = getPercent(dnsQueries, value);
<mask> const percentColor = getQueriedPercentColor(percent);
<mask>
<mask> return <Cell value={value} percent={percent} color={percentColor} />;
<mask> };
<mask>
<mask> const QueriedDomains ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/QueriedDomains.js |
export default withTranslation()(QueriedDomains); | <mask> subtitle: PropTypes.string.isRequired,
<mask> t: PropTypes.func.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(QueriedDomains);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the following:
... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/QueriedDomains.js |
import { withTranslation, Trans } from 'react-i18next'; | <mask> import React from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { withNamespaces, Trans } from 'react-i18next';
<mask>
<mask> import StatsCard from './StatsCard';
<mask> import { getPercent, normalizeHistory } from '../../helpers/helpers';
<mask>
<mask> const getNormalizedHistory = ... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Statistics.js |
export default withTranslation()(Statistics); | <mask> numReplacedParental: PropTypes.number.isRequired,
<mask> refreshButton: PropTypes.node.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(Statistics);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit ... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/Statistics.js |
import { Trans, withTranslation } from 'react-i18next'; | <mask> import React, { Component, Fragment } from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { Trans, withNamespaces } from 'react-i18next';
<mask>
<mask> import Statistics from './Statistics';
<mask> import Counters from './Counters';
<mask> import Clients from './Clients';
<mask> impor... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/index.js |
const subtitle = stats.interval === 1
? t('for_last_24_hours')
: t('for_last_days', { count: stats.interval }); | <mask> const statsProcessing = stats.processingStats
<mask> || stats.processingGetConfig
<mask> || access.processing;
<mask>
<mask> const subtitle =
<mask> stats.interval === 1
<mask> ? t('for_last_24_hours')
<mask> : t('for_la... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/index.js |
export default withTranslation()(Dashboard); | <mask> toggleClientBlock: PropTypes.func.isRequired,
<mask> getAccessList: PropTypes.func.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(Dashboard);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of th... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Dashboard/index.js |
import { withTranslation, Trans } from 'react-i18next'; | <mask> import React from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { withNamespaces, Trans } from 'react-i18next';
<mask>
<mask> const Actions = ({
<mask> handleAdd, handleRefresh, processingRefreshFilters, whitelist,
<mask> }) => (
<mask> <div className="card-actions">
</s> + ... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Actions.js |
export default withTranslation()(Actions); | <mask> processingRefreshFilters: PropTypes.bool.isRequired,
<mask> whitelist: PropTypes.bool,
<mask> };
<mask>
<mask> export default withNamespaces()(Actions);
<mask>
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Actions.js |
import { withTranslation } from 'react-i18next'; | <mask> import React, { Fragment } from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { withNamespaces } from 'react-i18next';
<mask>
<mask> import {
<mask> checkFiltered,
<mask> checkRewrite,
<mask> checkRewriteHosts,
</s> + client: Update packages - Merge pull request #613 in ... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Check/Info.js |
const filter = filters.find((filter) => filter.id === id)
|| whitelistFilters.find((filter) => filter.id === id); | <mask> if (id === 0) {
<mask> return t('filtered_custom_rules');
<mask> }
<mask>
<mask> const filter = filters.find(filter => filter.id === id)
<mask> || whitelistFilters.find(filter => filter.id === id);
<mask>
<mask> if (filter && filter.name) {
<mask> return t('quer... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Check/Info.js |
} if (checkRewrite(reason) || checkRewriteHosts(reason)) { | <mask>
<mask> const getColor = (reason) => {
<mask> if (checkFiltered(reason)) {
<mask> return 'red';
<mask> } else if (checkRewrite(reason) || checkRewriteHosts(reason)) {
<mask> return 'blue';
<mask> } else if (checkWhiteList(reason)) {
<mask> return 'green';
<mask> }... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Check/Info.js |
} if (checkWhiteList(reason)) { | <mask> if (checkFiltered(reason)) {
<mask> return 'red';
<mask> } else if (checkRewrite(reason) || checkRewriteHosts(reason)) {
<mask> return 'blue';
<mask> } else if (checkWhiteList(reason)) {
<mask> return 'green';
<mask> }
<mask>
<mask> return '';
<mask> };
</s... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Check/Info.js |
export default withTranslation()(Info); | <mask> ip_addrs: PropTypes.array,
<mask> t: PropTypes.func.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(Info);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the following:
commit 1eb89586dd71260... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Check/Info.js |
import { Trans, withTranslation } from 'react-i18next'; | <mask> import React, { Fragment } from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { Trans, withNamespaces } from 'react-i18next';
<mask> import { Field, reduxForm } from 'redux-form';
<mask> import flow from 'lodash/flow';
<mask> import Card from '../../ui/Card';
<mask>
<mask> import { r... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Check/index.js |
onClick={handleSubmit} | <mask> <span className="input-group-append">
<mask> <button
<mask> className="btn btn-success btn-standard btn-large"
<mask> type="submit"
<mask> o... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Check/index.js |
withTranslation(), | <mask> whitelistFilters: PropTypes.array.isRequired,
<mask> };
<mask>
<mask> export default flow([
<mask> withNamespaces(),
<mask> reduxForm({ form: 'domainCheckForm' }),
<mask> ])(Check);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #15... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Check/index.js |
import { Trans, withTranslation } from 'react-i18next'; | <mask> import React, { Component, Fragment } from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { Trans, withNamespaces } from 'react-i18next';
<mask>
<mask> import Card from '../ui/Card';
<mask> import PageTitle from '../ui/PageTitle';
<mask> import Examples from './Examples';
<mask> impor... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/CustomRules.js |
export default withTranslation()(CustomRules); | <mask> handleRulesChange: PropTypes.func.isRequired,
<mask> t: PropTypes.func.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(CustomRules);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the followin... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/CustomRules.js |
import { withTranslation } from 'react-i18next'; | <mask> import React, { Component, Fragment } from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { withNamespaces } from 'react-i18next';
<mask>
<mask> import PageTitle from '../ui/PageTitle';
<mask> import Card from '../ui/Card';
<mask> import Modal from './Modal';
<mask> import Actions fro... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/DnsAllowlist.js |
export default withTranslation()(DnsAllowlist); | <mask> editFilter: PropTypes.func.isRequired,
<mask> t: PropTypes.func.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(DnsAllowlist);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the following:
co... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/DnsAllowlist.js |
import { withTranslation } from 'react-i18next'; | <mask> import React, { Component, Fragment } from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { withNamespaces } from 'react-i18next';
<mask>
<mask> import PageTitle from '../ui/PageTitle';
<mask> import Card from '../ui/Card';
<mask> import Modal from './Modal';
<mask> import Actions fro... | [
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/DnsBlocklist.js |
export default withTranslation()(DnsBlocklist); | <mask> editFilter: PropTypes.func.isRequired,
<mask> t: PropTypes.func.isRequired,
<mask> };
<mask>
<mask> export default withNamespaces()(DnsBlocklist);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the following:
co... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/DnsBlocklist.js |
import { withTranslation, Trans } from 'react-i18next'; | <mask> import React, { Fragment } from 'react';
<mask> import { withNamespaces, Trans } from 'react-i18next';
<mask>
<mask> const Examples = () => (
<mask> <Fragment>
<mask> <div className="list leading-loose">
<mask> <Trans>examples_title</Trans>:
</s> + client: Update packages - Merge... | [
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Examples.js |
export default withTranslation()(Examples); | <mask> </p>
<mask> </Fragment>
<mask> );
<mask>
<mask> export default withNamespaces()(Examples);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close #1597
Squashed commit of the following:
commit 1eb89586dd71260e561420fe669abc8b56a506a1
Author... | [
"keep",
"keep",
"keep",
"keep",
"replace"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Examples.js |
import { Trans, withTranslation } from 'react-i18next'; | <mask> import React from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import { Field, reduxForm } from 'redux-form';
<mask> import { Trans, withNamespaces } from 'react-i18next';
<mask> import flow from 'lodash/flow';
<mask>
<mask> import { renderInputField, required, isValidPath } from '../../hel... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Form.js |
normalizeOnBlur={(data) => data.trim()} | <mask> component={renderInputField}
<mask> className="form-control"
<mask> placeholder={t('enter_name_hint')}
<mask> validate={[required]}
<mask> normalizeOnBlur={data => data.trim()}
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Form.js |
normalizeOnBlur={(data) => data.trim()} | <mask> component={renderInputField}
<mask> className="form-control"
<mask> placeholder={t('enter_url_or_path_hint')}
<mask> validate={[required, isValidPath]}
<mask> normalizeOnBlur={data => data... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Form.js |
{whitelist ? <Trans>enter_valid_allowlist</Trans>
: <Trans>enter_valid_blocklist</Trans>} | <mask> normalizeOnBlur={data => data.trim()}
<mask> />
<mask> </div>
<mask> <div className="form__description">
<mask> {whitelist ? (
<mask> <Trans>enter_valid_allowlist</Trans>
<mask> ... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"replace",
"replace",
"replace",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Form.js |
withTranslation(), | <mask> whitelist: PropTypes.bool,
<mask> };
<mask>
<mask> export default flow([
<mask> withNamespaces(),
<mask> reduxForm({
<mask> form: 'filterForm',
<mask> }),
<mask> ])(Form);
</s> + client: Update packages - Merge pull request #613 in DNS/adguard-home from fix/1597 to master
Close... | [
"keep",
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Form.js |
import { Trans, withTranslation } from 'react-i18next'; | <mask> import React, { Component } from 'react';
<mask> import PropTypes from 'prop-types';
<mask> import ReactModal from 'react-modal';
<mask> import { Trans, withNamespaces } from 'react-i18next';
<mask>
<mask> import { MODAL_TYPE } from '../../helpers/constants';
<mask> import Form from './Form';
<mask> imp... | [
"keep",
"keep",
"keep",
"replace",
"keep",
"keep",
"keep",
"keep",
"keep"
] | https://github.com/AdguardTeam/AdGuardHome/commit/6f3cd4e7eb1f9c790208d8f42ead6af04f2138e4 | client/src/components/Filters/Modal.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.