diff --git a/.gitignore b/.gitignore index 195b333..2287037 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ dist out .DS_Store *.log* +/logs # Playwright /test-results/ diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index f42765e..dcd4e7b 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -7,14 +7,13 @@ import { Provider } from "react-redux"; import { HashRouter, Route, Routes } from "react-router"; import ipcTypes from "../../util/ipcTypes.json"; import ErrorBoundaryFallback from "./components/ErrorBoundaryFallback/ErrorBoundaryFallback"; -import Home from "./components/Home/Home"; import NavigationHeader from "./components/NavigationHeader/Navigationheader"; import Settings from "./components/Settings/Settings"; import SignInForm from "./components/SignInForm/SignInForm"; +import UpdateAvailable from "./components/UpdateAvailable/UpdateAvailable"; import reduxStore from "./redux/redux-store"; import { auth } from "./util/firebase"; import { NotificationProvider } from "./util/notificationContext"; -import UpdateAvailable from "./components/UpdateAvailable/UpdateAvailable"; const App: React.FC = () => { const [user, setUser] = useState(null); @@ -50,8 +49,7 @@ const App: React.FC = () => { - } /> - } /> + } /> )} diff --git a/src/renderer/src/components/Settings/Settings.WatchedPaths.tsx b/src/renderer/src/components/Settings/Settings.WatchedPaths.tsx index a661306..45e126c 100644 --- a/src/renderer/src/components/Settings/Settings.WatchedPaths.tsx +++ b/src/renderer/src/components/Settings/Settings.WatchedPaths.tsx @@ -1,8 +1,8 @@ +import { DeleteFilled, FileAddFilled } from "@ant-design/icons"; +import { Button, Card, Space, Timeline } from "antd"; import { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import ipcTypes from "../../../../util/ipcTypes.json"; -import { Button, Space } from "antd"; -import { DeleteFilled } from "@ant-design/icons"; const SettingsWatchedPaths: React.FC = () => { const [watchedPaths, setWatchedPaths] = useState([]); @@ -33,23 +33,31 @@ const SettingsWatchedPaths: React.FC = () => { }; return ( -
-
Currently Watched paths
-
    + }> + {t("settings.actions.addpath")} + + } + > + {watchedPaths?.map((path, index) => ( -
  • - + + {path}
  • + ))} -
- -
+ + ); }; export default SettingsWatchedPaths; diff --git a/src/renderer/src/components/Settings/Settings.Watcher.tsx b/src/renderer/src/components/Settings/Settings.Watcher.tsx index 54bb566..ea73691 100644 --- a/src/renderer/src/components/Settings/Settings.Watcher.tsx +++ b/src/renderer/src/components/Settings/Settings.Watcher.tsx @@ -7,7 +7,7 @@ import { selectWatcherStatus, } from "@renderer/redux/app.slice"; import { useAppSelector } from "@renderer/redux/reduxHooks"; -import { Alert, Button, Space } from "antd"; +import { Alert, Button, Card, Space, Typography } from "antd"; import { useTranslation } from "react-i18next"; import ipcTypes from "../../../../util/ipcTypes.json"; @@ -25,29 +25,31 @@ const SettingsWatcher: React.FC = () => { }; return ( - - {isWatcherStarted ? ( - - ) : ( - - )} - {isWatcherStarted ? ( - - - {t("settings.labels.started")} - - ) : ( - - - {t("settings.labels.stopped")} - - )} - {watcherError && } - + + + {isWatcherStarted ? ( + + ) : ( + + )} + {isWatcherStarted ? ( + + + {t("settings.labels.started")} + + ) : ( + + + {t("settings.labels.stopped")} + + )} + {watcherError && } + + ); }; export default SettingsWatcher; diff --git a/src/renderer/src/components/Settings/Settings.tsx b/src/renderer/src/components/Settings/Settings.tsx index 834f28e..290c36b 100644 --- a/src/renderer/src/components/Settings/Settings.tsx +++ b/src/renderer/src/components/Settings/Settings.tsx @@ -1,9 +1,13 @@ +import { Divider } from "antd"; import SettingsWatchedPaths from "./Settings.WatchedPaths"; import SettingsWatcher from "./Settings.Watcher"; +import Home from "../Home/Home"; const Settings: React.FC = () => { return (
+ +
diff --git a/src/util/translations/en-US/renderer.json b/src/util/translations/en-US/renderer.json index 60e9f11..79d71b5 100644 --- a/src/util/translations/en-US/renderer.json +++ b/src/util/translations/en-US/renderer.json @@ -13,6 +13,7 @@ "labels": { "started": "Started", "stopped": "Stopped", + "watchedpaths": "Watched Paths", "watcherstatus": "Watcher Status" } }, diff --git a/translations.babel b/translations.babel index 836ba5b..8a6b353 100644 --- a/translations.babel +++ b/translations.babel @@ -152,6 +152,19 @@ + + watchedpaths + false + + + + + + en-US + false + + + watcherstatus false