From 14952d2fecb23ab5491e060d9be1e7bfb01f9f8b Mon Sep 17 00:00:00 2001 From: Netanel Henya Date: Sun, 12 May 2024 18:09:27 +0300 Subject: [PATCH] cleanup: removed the DLNA dashboard page --- .../drawer/sections/DevicesDrawerSection.tsx | 10 +----- src/apps/dashboard/routes/_asyncRoutes.ts | 1 - src/apps/dashboard/routes/_redirects.ts | 3 -- src/apps/dashboard/routes/dlna.tsx | 33 ------------------- 4 files changed, 1 insertion(+), 46 deletions(-) delete mode 100644 src/apps/dashboard/routes/dlna.tsx diff --git a/src/apps/dashboard/components/drawer/sections/DevicesDrawerSection.tsx b/src/apps/dashboard/components/drawer/sections/DevicesDrawerSection.tsx index 6d788f6b402..d79a320733d 100644 --- a/src/apps/dashboard/components/drawer/sections/DevicesDrawerSection.tsx +++ b/src/apps/dashboard/components/drawer/sections/DevicesDrawerSection.tsx @@ -1,4 +1,4 @@ -import { Devices, Analytics, Input } from '@mui/icons-material'; +import { Devices, Analytics } from '@mui/icons-material'; import List from '@mui/material/List'; import ListItem from '@mui/material/ListItem'; import ListItemIcon from '@mui/material/ListItemIcon'; @@ -35,14 +35,6 @@ const DevicesDrawerSection = () => { - - - - - - - - ); }; diff --git a/src/apps/dashboard/routes/_asyncRoutes.ts b/src/apps/dashboard/routes/_asyncRoutes.ts index 5744b548441..caf155b9e0e 100644 --- a/src/apps/dashboard/routes/_asyncRoutes.ts +++ b/src/apps/dashboard/routes/_asyncRoutes.ts @@ -2,7 +2,6 @@ import { AsyncRouteType, type AsyncRoute } from 'components/router/AsyncRoute'; export const ASYNC_ADMIN_ROUTES: AsyncRoute[] = [ { path: 'activity', type: AsyncRouteType.Dashboard }, - { path: 'dlna', type: AsyncRouteType.Dashboard }, { path: 'notifications', type: AsyncRouteType.Dashboard }, { path: 'users', type: AsyncRouteType.Dashboard }, { path: 'users/access', type: AsyncRouteType.Dashboard }, diff --git a/src/apps/dashboard/routes/_redirects.ts b/src/apps/dashboard/routes/_redirects.ts index b7fdf072183..009aa659143 100644 --- a/src/apps/dashboard/routes/_redirects.ts +++ b/src/apps/dashboard/routes/_redirects.ts @@ -8,9 +8,6 @@ export const REDIRECTS: Redirect[] = [ { from: 'dashboardgeneral.html', to: '/dashboard/settings' }, { from: 'device.html', to: '/dashboard/devices/edit' }, { from: 'devices.html', to: '/dashboard/devices' }, - { from: 'dlnaprofile.html', to: '/dashboard/dlna' }, - { from: 'dlnaprofiles.html', to: '/dashboard/dlna' }, - { from: 'dlnasettings.html', to: '/dashboard/dlna' }, { from: 'edititemmetadata.html', to: '/metadata' }, { from: 'encodingsettings.html', to: '/dashboard/playback/transcoding' }, { from: 'installedplugins.html', to: '/dashboard/plugins' }, diff --git a/src/apps/dashboard/routes/dlna.tsx b/src/apps/dashboard/routes/dlna.tsx deleted file mode 100644 index fec7d2fdb0d..00000000000 --- a/src/apps/dashboard/routes/dlna.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import Alert from '@mui/material/Alert/Alert'; -import Box from '@mui/material/Box/Box'; -import Button from '@mui/material/Button/Button'; -import React from 'react'; -import { Link } from 'react-router-dom'; - -import Page from 'components/Page'; -import globalize from 'scripts/globalize'; - -const DlnaPage = () => ( - -
-

DLNA

- - - {globalize.translate('DlnaMovedMessage')} - - - -
-
-); - -export default DlnaPage;