diff --git a/src/RootAppRouter.tsx b/src/RootAppRouter.tsx
index 1049dc17dd..a791be62c9 100644
--- a/src/RootAppRouter.tsx
+++ b/src/RootAppRouter.tsx
@@ -8,8 +8,8 @@ import {
} from 'react-router-dom';
import { DASHBOARD_APP_PATHS, DASHBOARD_APP_ROUTES } from 'apps/dashboard/routes/routes';
-import { EXPERIMENTAL_APP_ROUTES } from 'apps/modern/routes/routes';
-import { STABLE_APP_ROUTES } from 'apps/legacy/routes/routes';
+import { APP_ROUTES as MODERN_APP_ROUTES } from 'apps/modern/routes/routes';
+import { APP_ROUTES as LEGACY_APP_ROUTES } from 'apps/legacy/routes/routes';
import { WIZARD_APP_ROUTES } from 'apps/wizard/routes/routes';
import AppHeader from 'components/AppHeader';
import Backdrop from 'components/Backdrop';
@@ -20,13 +20,13 @@ import { LayoutMode } from 'constants/layoutMode';
import appTheme from 'themes';
import { ThemeStorageManager } from 'themes/themeStorageManager';
-const isExperimentalLayout = layoutManager.layout === LayoutMode.Experimental;
+const isModernLayout = layoutManager.layout === LayoutMode.Experimental;
const router = createHashRouter([
{
element: ,
children: [
- ...(isExperimentalLayout ? EXPERIMENTAL_APP_ROUTES : STABLE_APP_ROUTES),
+ ...(isModernLayout ? MODERN_APP_ROUTES : LEGACY_APP_ROUTES),
...DASHBOARD_APP_ROUTES,
...WIZARD_APP_ROUTES,
{
@@ -59,7 +59,7 @@ function RootAppLayout() {
storageManager={ThemeStorageManager}
>
-
+
diff --git a/src/apps/legacy/routes/routes.tsx b/src/apps/legacy/routes/routes.tsx
index 3174798293..970a45c33f 100644
--- a/src/apps/legacy/routes/routes.tsx
+++ b/src/apps/legacy/routes/routes.tsx
@@ -12,7 +12,7 @@ import AppLayout from '../AppLayout';
import { ASYNC_PUBLIC_ROUTES, ASYNC_USER_ROUTES } from './asyncRoutes';
import { LEGACY_PUBLIC_ROUTES, LEGACY_USER_ROUTES } from './legacyRoutes';
-export const STABLE_APP_ROUTES: RouteObject[] = [
+export const APP_ROUTES: RouteObject[] = [
{
path: '/*',
Component: AppLayout,
diff --git a/src/apps/modern/components/AppToolbar/index.tsx b/src/apps/modern/components/AppToolbar/index.tsx
index b73b9b5bea..7fdc8505c7 100644
--- a/src/apps/modern/components/AppToolbar/index.tsx
+++ b/src/apps/modern/components/AppToolbar/index.tsx
@@ -3,7 +3,7 @@ import React, { type FC } from 'react';
import { useLocation } from 'react-router-dom';
import { appRouter, PUBLIC_PATHS } from 'components/router/appRouter';
-import AppToolbar from 'components/toolbar/AppToolbar';
+import BaseToolbar from 'components/toolbar/AppToolbar';
import ServerButton from 'components/toolbar/ServerButton';
import RemotePlayButton from './RemotePlayButton';
@@ -17,7 +17,7 @@ interface AppToolbarProps {
onDrawerButtonClick: (event: React.MouseEvent) => void
}
-const ExperimentalAppToolbar: FC = ({
+const AppToolbar: FC = ({
isDrawerAvailable,
isDrawerOpen,
onDrawerButtonClick
@@ -34,7 +34,7 @@ const ExperimentalAppToolbar: FC = ({
const isPublicPath = PUBLIC_PATHS.includes(location.pathname);
return (
-
@@ -60,8 +60,8 @@ const ExperimentalAppToolbar: FC = ({
)}
)}
-
+
);
};
-export default ExperimentalAppToolbar;
+export default AppToolbar;
diff --git a/src/apps/modern/routes/routes.tsx b/src/apps/modern/routes/routes.tsx
index f783acb492..ff9471df77 100644
--- a/src/apps/modern/routes/routes.tsx
+++ b/src/apps/modern/routes/routes.tsx
@@ -11,7 +11,7 @@ import { ASYNC_USER_ROUTES } from './asyncRoutes';
import { LEGACY_PUBLIC_ROUTES, LEGACY_USER_ROUTES } from './legacyRoutes';
import VideoPage from './video';
-export const EXPERIMENTAL_APP_ROUTES: RouteObject[] = [
+export const APP_ROUTES: RouteObject[] = [
{
path: '/*',
lazy: () => import('../AppLayout'),
diff --git a/src/components/router/appRouter.js b/src/components/router/appRouter.js
index 63e3ac8bf0..6e99f73feb 100644
--- a/src/components/router/appRouter.js
+++ b/src/components/router/appRouter.js
@@ -405,9 +405,9 @@ class AppRouter {
}
if (context !== 'folders' && !itemHelper.isLocalItem(item)) {
- const isExperimentalLayout = layoutManager.layout === LayoutMode.Experimental;
+ const isModernLayout = layoutManager.layout === LayoutMode.Experimental;
- if (isExperimentalLayout && item.CollectionType == CollectionType.Books) {
+ if (isModernLayout && item.CollectionType == CollectionType.Books) {
url = `#/books?topParentId=${item.Id}&collectionType=${item.CollectionType}`;
if (options?.section === 'latest') {
@@ -446,11 +446,11 @@ class AppRouter {
return url;
}
- if (isExperimentalLayout && item.CollectionType == CollectionType.Homevideos) {
+ if (isModernLayout && item.CollectionType == CollectionType.Homevideos) {
return '#/homevideos?topParentId=' + item.Id;
}
- if (isExperimentalLayout && item.CollectionType == CollectionType.Musicvideos) {
+ if (isModernLayout && item.CollectionType == CollectionType.Musicvideos) {
url = `#/musicvideos?topParentId=${item.Id}&collectionType=${item.CollectionType}`;
if (options?.section === 'latest') {
@@ -459,15 +459,15 @@ class AppRouter {
return url;
}
- if (isExperimentalLayout && item.CollectionType == CollectionType.Boxsets) {
+ if (isModernLayout && item.CollectionType == CollectionType.Boxsets) {
return `#/boxsets?topParentId=${item.Id}&collectionType=${item.CollectionType}`;
}
- if (isExperimentalLayout && item.CollectionType == CollectionType.Playlists) {
+ if (isModernLayout && item.CollectionType == CollectionType.Playlists) {
return `#/playlists?topParentId=${item.Id}&collectionType=${item.CollectionType}`;
}
- if (isExperimentalLayout && item.CollectionType == null && item.Type === 'CollectionFolder') {
+ if (isModernLayout && item.CollectionType == null && item.Type === 'CollectionFolder') {
url = `#/mixed?topParentId=${item.Id}&collectionType=mixed`;
if (options?.section === 'latest') {