Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions web/src/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4774,6 +4774,9 @@ type RootTranslation = {
* B​a​s​e​d​ ​o​n​ ​t​h​i​s​ ​a​d​d​r​e​s​s​ ​V​P​N​ ​n​e​t​w​o​r​k​ ​a​d​d​r​e​s​s​ ​w​i​l​l​ ​b​e​ ​d​e​f​i​n​e​d​,​ ​e​g​.​ ​1​0​.​1​0​.​1​0​.​1​/​2​4​ ​(​a​n​d​ ​V​P​N​ ​n​e​t​w​o​r​k​ ​w​i​l​l​ ​b​e​:​ ​1​0​.​1​0​.​1​0​.​0​/​2​4​)​.​ ​Y​o​u​ ​c​a​n​ ​o​p​t​i​o​n​a​l​l​y​ ​s​p​e​c​i​f​y​ ​m​u​l​t​i​p​l​e​ ​a​d​d​r​e​s​s​e​s​ ​s​e​p​a​r​a​t​e​d​ ​b​y​ ​a​ ​c​o​m​m​a​.​ ​T​h​e​ ​f​i​r​s​t​ ​a​d​d​r​e​s​s​ ​i​s​ ​t​h​e​ ​p​r​i​m​a​r​y​ ​a​d​d​r​e​s​s​,​ ​a​n​d​ ​t​h​i​s​ ​o​n​e​ ​w​i​l​l​ ​b​e​ ​u​s​e​d​ ​f​o​r​ ​I​P​ ​a​d​d​r​e​s​s​ ​a​s​s​i​g​n​m​e​n​t​ ​f​o​r​ ​d​e​v​i​c​e​s​.​ ​T​h​e​ ​o​t​h​e​r​ ​I​P​ ​a​d​d​r​e​s​s​e​s​ ​a​r​e​ ​a​u​x​i​l​i​a​r​y​ ​a​n​d​ ​a​r​e​ ​n​o​t​ ​m​a​n​a​g​e​d​ ​b​y​ ​D​e​f​g​u​a​r​d​.
*/
address: string
/**
* P​u​b​l​i​c​ ​I​P​ ​a​d​d​r​e​s​s​ ​o​r​ ​d​o​m​a​i​n​ ​n​a​m​e​ ​t​o​ ​w​h​i​c​h​ ​t​h​e​ ​r​e​m​o​t​e​ ​p​e​e​r​s​/​u​s​e​r​s​ ​w​i​l​l​ ​c​o​n​n​e​c​t​ ​t​o​.​ ​T​h​i​s​ ​a​d​d​r​e​s​s​ ​w​i​l​l​ ​b​e​ ​u​s​e​d​ ​i​n​ ​t​h​e​ ​c​o​n​f​i​g​u​r​a​t​i​o​n​ ​f​o​r​ ​t​h​e​ ​c​l​i​e​n​t​s​,​ ​b​u​t​ ​D​e​f​g​u​a​r​d​ ​G​a​t​e​w​a​y​s​ ​d​o​ ​n​o​t​ ​b​i​n​d​ ​t​o​ ​t​h​i​s​ ​a​d​d​r​e​s​s​.
*/
endpoint: string
/**
* G​a​t​e​w​a​y​ ​p​u​b​l​i​c​ ​a​d​d​r​e​s​s​,​ ​u​s​e​d​ ​b​y​ ​V​P​N​ ​u​s​e​r​s​ ​t​o​ ​c​o​n​n​e​c​t
Expand Down Expand Up @@ -11370,6 +11373,9 @@ export type TranslationFunctions = {
* Based on this address VPN network address will be defined, eg. 10.10.10.1/24 (and VPN network will be: 10.10.10.0/24). You can optionally specify multiple addresses separated by a comma. The first address is the primary address, and this one will be used for IP address assignment for devices. The other IP addresses are auxiliary and are not managed by Defguard.
*/
address: () => LocalizedString
/**
* Public IP address or domain name to which the remote peers/users will connect to. This address will be used in the configuration for the clients, but Defguard Gateways do not bind to this address.
*/
endpoint: () => LocalizedString
/**
* Gateway public address, used by VPN users to connect
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/overview/OverviewStats/OverviewStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { NetworkSpeed } from '../../../shared/defguard-ui/components/Layout/Netw
import { NetworkDirection } from '../../../shared/defguard-ui/components/Layout/NetworkSpeed/types';
import { isPresent } from '../../../shared/defguard-ui/utils/isPresent';
import type { WireguardNetworkStats } from '../../../shared/types';
import { useOverviewStore } from '../hooks/store/useOverviewStore';
import { useOverviewTimeSelection } from '../../overview-index/components/hooks/useOverviewTimeSelection';
import { NetworkUsageChart } from '../OverviewConnectedUsers/shared/components/NetworkUsageChart/NetworkUsageChart';
import { networkTrafficToChartData } from './utils';

Expand All @@ -24,7 +24,7 @@ interface Props {

export const OverviewStats = forwardRef<HTMLDivElement, Props>(
({ networkStats }, ref) => {
const filterValue = useOverviewStore((state) => state.statsFilter);
const { from: filterValue } = useOverviewTimeSelection();
const peakDownload = useMemo(() => {
const sorted = orderBy(networkStats.transfer_series, (stats) => stats.download, [
'desc',
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion web/src/pages/overview/hooks/store/useOverviewStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const useOverviewStore = createWithEqualityFn<
networks: [],
viewMode: OverviewLayoutType.GRID,
defaultViewMode: OverviewLayoutType.GRID,
statsFilter: 1,
setState: (newValues) => set((state) => ({ ...state, ...newValues })),
}),
{
Expand Down
1 change: 0 additions & 1 deletion web/src/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,6 @@ export enum OverviewLayoutType {
export interface OverviewStore {
viewMode: OverviewLayoutType;
defaultViewMode: OverviewLayoutType;
statsFilter: number;
networks?: Network[];
selectedNetworkId?: number;
setState: (override: Partial<OverviewStore>) => void;
Expand Down