From 5f61940c92a923b0d9cf89c798fd4a656fdb5553 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Tue, 15 Nov 2022 00:14:17 +0900 Subject: [PATCH 01/28] #506 Add warning on wrong password attemps --- src/pages/api/configs/tryPassword.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/api/configs/tryPassword.tsx b/src/pages/api/configs/tryPassword.tsx index 8f3848b9d..fee00cb00 100644 --- a/src/pages/api/configs/tryPassword.tsx +++ b/src/pages/api/configs/tryPassword.tsx @@ -1,3 +1,4 @@ +import Consola from 'consola'; import { NextApiRequest, NextApiResponse } from 'next'; function Post(req: NextApiRequest, res: NextApiResponse) { @@ -8,6 +9,12 @@ function Post(req: NextApiRequest, res: NextApiResponse) { success: true, }); } + // Warn that there was a wrong password attempt (date : wrong password, password tried, person's IP) + Consola.warn( + `${new Date().toLocaleString()} : Wrong password attempt, tried ${tried}, from ${ + req.headers['x-forwarded-for'] + }` + ); return res.status(200).json({ success: false, }); From 79d52b3a4d532566c49ff04da47a84f38e65902e Mon Sep 17 00:00:00 2001 From: Manuel Ruwe Date: Wed, 16 Nov 2022 13:07:29 +0100 Subject: [PATCH 02/28] =?UTF-8?q?=F0=9F=90=9B=20Iframe=20color=20scheme=20?= =?UTF-8?q?for=20Dash.=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/dashdot/DashdotModule.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/dashdot/DashdotModule.tsx b/src/modules/dashdot/DashdotModule.tsx index aae0901e7..b2b0a4401 100644 --- a/src/modules/dashdot/DashdotModule.tsx +++ b/src/modules/dashdot/DashdotModule.tsx @@ -70,6 +70,8 @@ const useStyles = createStyles((theme, _params) => ({ maxWidth: '100%', height: '140px', borderRadius: theme.radius.lg, + border: 'none', + colorScheme: 'none', }, })); @@ -248,7 +250,6 @@ export function DashdotComponent() { .join('&')}` : '' }`} - frameBorder="0" /> ))} From 3860e7948c89987700c975304086e95ea11d18f8 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sat, 12 Nov 2022 22:32:43 +0900 Subject: [PATCH 03/28] Bumb package version --- data/constants.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/constants.ts b/data/constants.ts index 6d9a0a462..e876d613c 100644 --- a/data/constants.ts +++ b/data/constants.ts @@ -1,2 +1,2 @@ export const REPO_URL = 'ajnart/homarr'; -export const CURRENT_VERSION = 'v0.10.4'; +export const CURRENT_VERSION = 'v0.10.5'; diff --git a/package.json b/package.json index 8c7865917..455549865 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homarr", - "version": "0.10.4", + "version": "0.10.5", "description": "Homarr - A homepage for your server.", "license": "MIT", "repository": { From 0a719c0b66da4d4aae9b90eff786830b73e6c0de Mon Sep 17 00:00:00 2001 From: MauriceNino Date: Sun, 13 Nov 2022 18:13:57 +0100 Subject: [PATCH 04/28] Make dashdot labels only appear on hover --- src/modules/dashdot/DashdotModule.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/modules/dashdot/DashdotModule.tsx b/src/modules/dashdot/DashdotModule.tsx index b2b0a4401..51badf882 100644 --- a/src/modules/dashdot/DashdotModule.tsx +++ b/src/modules/dashdot/DashdotModule.tsx @@ -38,7 +38,7 @@ export const DashdotModule = asModule({ id: 'dashdot', }); -const useStyles = createStyles((theme, _params) => ({ +const useStyles = createStyles((theme, _params, getRef) => ({ heading: { marginTop: 0, marginBottom: 10, @@ -73,6 +73,19 @@ const useStyles = createStyles((theme, _params) => ({ border: 'none', colorScheme: 'none', }, + graphTitle: { + ref: getRef('graphTitle'), + position: 'absolute', + right: 0, + opacity: 0, + transition: 'opacity .1s ease-in-out', + pointerEvents: 'none', + }, + graphStack: { + [`&:hover .${getRef('graphTitle')}`]: { + opacity: 0.5, + }, + }, })); const bpsPrettyPrint = (bits?: number) => @@ -223,6 +236,7 @@ export function DashdotComponent() { {graphs.map((graph) => ( - + <Title className={classes.graphTitle} order={4} mt={10} mr={25}> {graph.name}