Merge remote-tracking branch 'origin/master' into upd-dnsproxy

This commit is contained in:
Dimitry Kolyshev 2024-07-08 10:56:14 +03:00
commit 7e8d3b50e7
3 changed files with 28 additions and 26 deletions

View File

@ -18,15 +18,25 @@ TODO(a.garipov): Use the common markdown formatting tools.
<!-- <!--
## [v0.108.0] - TBA ## [v0.108.0] - TBA
## [v0.107.52] - 2024-06-29 (APPROX.) ## [v0.107.53] - 2024-07-24 (APPROX.)
See also the [v0.107.52 GitHub milestone][ms-v0.107.52]. See also the [v0.107.53 GitHub milestone][ms-v0.107.53].
[ms-v0.107.52]: https://github.com/AdguardTeam/AdGuardHome/milestone/87?closed=1 [ms-v0.107.53]: https://github.com/AdguardTeam/AdGuardHome/milestone/88?closed=1
NOTE: Add new changes BELOW THIS COMMENT. NOTE: Add new changes BELOW THIS COMMENT.
--> -->
<!--
NOTE: Add new changes ABOVE THIS COMMENT.
-->
## [v0.107.52] - 2024-07-04
See also the [v0.107.52 GitHub milestone][ms-v0.107.52].
### Security ### Security
- Go version has been updated to prevent the possibility of exploiting the Go - Go version has been updated to prevent the possibility of exploiting the Go
@ -48,8 +58,10 @@ NOTE: Add new changes BELOW THIS COMMENT.
or via the CLI (with root privileges): or via the CLI (with root privileges):
```sh ```sh
./AdGuardHome -s stop
./AdGuardHome -s uninstall ./AdGuardHome -s uninstall
./AdGuardHome -s install ./AdGuardHome -s install
./AdGuardHome -s start
``` ```
Don't forget to backup your configuration file and other important data before Don't forget to backup your configuration file and other important data before
@ -61,8 +73,6 @@ NOTE: Add new changes BELOW THIS COMMENT.
### Fixed ### Fixed
- Unnecessary validation call on the encryption page.
- Missing version in the footer.
- Panic caused by missing user-specific blocked services object in configuration - Panic caused by missing user-specific blocked services object in configuration
file ([#7069]). file ([#7069]).
- Tracking `/etc/hosts` file changes causing panics within particular - Tracking `/etc/hosts` file changes causing panics within particular
@ -76,9 +86,7 @@ NOTE: Add new changes BELOW THIS COMMENT.
[go-1.22.5]: https://groups.google.com/g/golang-announce/c/gyb7aM1C9H4 [go-1.22.5]: https://groups.google.com/g/golang-announce/c/gyb7aM1C9H4
[install-script]: https://github.com/AdguardTeam/AdGuardHome/?tab=readme-ov-file#automated-install-linux-and-mac [install-script]: https://github.com/AdguardTeam/AdGuardHome/?tab=readme-ov-file#automated-install-linux-and-mac
<!-- [ms-v0.107.52]: https://github.com/AdguardTeam/AdGuardHome/milestone/87?closed=1
NOTE: Add new changes ABOVE THIS COMMENT.
-->
@ -3061,11 +3069,12 @@ See also the [v0.104.2 GitHub milestone][ms-v0.104.2].
<!-- <!--
[Unreleased]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.52...HEAD [Unreleased]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.53...HEAD
[v0.107.52]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.51...v0.107.52 [v0.107.53]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.52...v0.107.53
--> -->
[Unreleased]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.51...HEAD [Unreleased]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.52...HEAD
[v0.107.52]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.51...v0.107.52
[v0.107.51]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.50...v0.107.51 [v0.107.51]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.50...v0.107.51
[v0.107.50]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.49...v0.107.50 [v0.107.50]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.49...v0.107.50
[v0.107.49]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.48...v0.107.49 [v0.107.49]: https://github.com/AdguardTeam/AdGuardHome/compare/v0.107.48...v0.107.49

View File

@ -1,6 +1,6 @@
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';
import { Field, reduxForm } from 'redux-form'; import { Field, type InjectedFormProps, reduxForm } from 'redux-form';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { shallowEqual, useDispatch, useSelector } from 'react-redux'; import { shallowEqual, useDispatch, useSelector } from 'react-redux';
@ -104,14 +104,13 @@ const FORM_NAMES = {
response_status: 'response_status', response_status: 'response_status',
}; };
interface FiltersFormProps { type FiltersFormProps = {
className?: string; className?: string;
responseStatusClass?: string; responseStatusClass?: string;
change: (...args: unknown[]) => unknown; setIsLoading: (...args: unknown[]) => unknown;
setIsLoading?: (...args: unknown[]) => unknown; };
}
const Form = (props: FiltersFormProps) => { const Form = (props: FiltersFormProps & InjectedFormProps) => {
const { className = '', responseStatusClass, setIsLoading, change } = props; const { className = '', responseStatusClass, setIsLoading, change } = props;
const { t } = useTranslation(); const { t } = useTranslation();
@ -142,7 +141,6 @@ const Form = (props: FiltersFormProps) => {
const onInputClear = async () => { const onInputClear = async () => {
setIsLoading(true); setIsLoading(true);
change(FORM_NAMES.search, DEFAULT_LOGS_FILTER[FORM_NAMES.search]); change(FORM_NAMES.search, DEFAULT_LOGS_FILTER[FORM_NAMES.search]);
setIsLoading(false); setIsLoading(false);
}; };
@ -195,7 +193,7 @@ const Form = (props: FiltersFormProps) => {
); );
}; };
export default reduxForm({ export const FiltersForm = reduxForm<Record<string, any>, FiltersFormProps>({
form: FORM_NAME.LOGS_FILTER, form: FORM_NAME.LOGS_FILTER,
enableReinitialize: true, enableReinitialize: true,
})(Form); })(Form);

View File

@ -2,7 +2,7 @@ import React from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import { useDispatch } from 'react-redux'; import { useDispatch } from 'react-redux';
import Form from './Form'; import { FiltersForm } from './Form';
import { refreshFilteredLogs } from '../../../actions/queryLogs'; import { refreshFilteredLogs } from '../../../actions/queryLogs';
import { addSuccessToast } from '../../../actions/toasts'; import { addSuccessToast } from '../../../actions/toasts';
@ -38,12 +38,7 @@ const Filters = ({ filter, setIsLoading }: FiltersProps) => {
</svg> </svg>
</button> </button>
</h1> </h1>
<FiltersForm responseStatusClass="d-sm-block" setIsLoading={setIsLoading} initialValues={filter} />
<Form
// responseStatusClass="d-sm-block"
// setIsLoading={setIsLoading}
initialValues={filter}
/>
</div> </div>
); );
}; };