From d761e858640c3a33b22785507ee900ec4fc9f67c Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 18 Mar 2024 12:20:16 +0100 Subject: [PATCH] Moved FO pages to classic directory --- src/index.ts | 7 ++++--- src/pages/FO/{ => classic}/category/index.ts | 4 ++-- src/pages/FO/{ => classic}/home/index.ts | 4 ++-- src/pages/FO/{ => classic}/login/index.ts | 4 ++-- .../8.0.0/pages/FO/{ => classic}/category/index.ts | 0 src/versions/8.0.0/pages/FO/{ => classic}/home/index.ts | 0 src/versions/8.0.0/pages/FO/{ => classic}/login/index.ts | 0 7 files changed, 10 insertions(+), 9 deletions(-) rename src/pages/FO/{ => classic}/category/index.ts (75%) rename src/pages/FO/{ => classic}/home/index.ts (76%) rename src/pages/FO/{ => classic}/login/index.ts (76%) rename src/versions/8.0.0/pages/FO/{ => classic}/category/index.ts (100%) rename src/versions/8.0.0/pages/FO/{ => classic}/home/index.ts (100%) rename src/versions/8.0.0/pages/FO/{ => classic}/login/index.ts (100%) diff --git a/src/index.ts b/src/index.ts index 010b7eba..2ff4a85d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -32,9 +32,10 @@ export {default as boDashboardPage} from '@pages/BO/dashboard'; export {default as boModuleManagerPage} from '@pages/BO/modules/moduleManager'; // Export Pages FO export * as FOBasePage from '@pages/FO/FOBasePage'; -export {default as foCategoryPage} from '@pages/FO/category'; -export {default as foHomePage} from '@pages/FO/home'; -export {default as foLoginPage} from '@pages/FO/login'; +// Export Pages FO/Classic +export {default as foClassicCategoryPage} from '@pages/FO/classic/category'; +export {default as foClassicHomePage} from '@pages/FO/classic/home'; +export {default as foClassicLoginPage} from '@pages/FO/classic/login'; // Export Modules export {default as modBlockwishlistBoMain} from '@pages/BO/modules/blockwishlist'; diff --git a/src/pages/FO/category/index.ts b/src/pages/FO/classic/category/index.ts similarity index 75% rename from src/pages/FO/category/index.ts rename to src/pages/FO/classic/category/index.ts index a1aaed91..b1ddf92d 100644 --- a/src/pages/FO/category/index.ts +++ b/src/pages/FO/classic/category/index.ts @@ -7,9 +7,9 @@ const psVersion = testContext.getPSVersion(); /* eslint-disable global-require */ function requirePage(): FoCategoryPageInterface { if (semver.gte(psVersion, '8.0.0')) { - return require('@versions/8.0.0/pages/FO/category'); + return require('@versions/8.0.0/pages/FO/classic/category'); } - return require('@versions/8.0.0/pages/FO/category'); + return require('@versions/8.0.0/pages/FO/classic/category'); } /* eslint-enable global-require */ diff --git a/src/pages/FO/home/index.ts b/src/pages/FO/classic/home/index.ts similarity index 76% rename from src/pages/FO/home/index.ts rename to src/pages/FO/classic/home/index.ts index 88a0ba77..45199522 100644 --- a/src/pages/FO/home/index.ts +++ b/src/pages/FO/classic/home/index.ts @@ -7,9 +7,9 @@ const psVersion = testContext.getPSVersion(); /* eslint-disable global-require, @typescript-eslint/no-var-requires */ function requirePage(): FoHomePageInterface { if (semver.gte(psVersion, '8.0.0')) { - return require('@versions/8.0.0/pages/FO/home').homePage; + return require('@versions/8.0.0/pages/FO/classic/home').homePage; } - return require('@versions/8.0.0/pages/FO/home').homePage; + return require('@versions/8.0.0/pages/FO/classic/home').homePage; } /* eslint-enable global-require, @typescript-eslint/no-var-requires */ diff --git a/src/pages/FO/login/index.ts b/src/pages/FO/classic/login/index.ts similarity index 76% rename from src/pages/FO/login/index.ts rename to src/pages/FO/classic/login/index.ts index 11db7e97..05611557 100644 --- a/src/pages/FO/login/index.ts +++ b/src/pages/FO/classic/login/index.ts @@ -7,9 +7,9 @@ const psVersion = testContext.getPSVersion(); /* eslint-disable global-require, @typescript-eslint/no-var-requires */ function requirePage(): FoLoginPageInterface { if (semver.gte(psVersion, '8.0.0')) { - return require('@versions/8.0.0/pages/FO/login').loginPage; + return require('@versions/8.0.0/pages/FO/classic/login').loginPage; } - return require('@versions/8.0.0/pages/FO/login').loginPage; + return require('@versions/8.0.0/pages/FO/classic/login').loginPage; } /* eslint-enable global-require, @typescript-eslint/no-var-requires */ diff --git a/src/versions/8.0.0/pages/FO/category/index.ts b/src/versions/8.0.0/pages/FO/classic/category/index.ts similarity index 100% rename from src/versions/8.0.0/pages/FO/category/index.ts rename to src/versions/8.0.0/pages/FO/classic/category/index.ts diff --git a/src/versions/8.0.0/pages/FO/home/index.ts b/src/versions/8.0.0/pages/FO/classic/home/index.ts similarity index 100% rename from src/versions/8.0.0/pages/FO/home/index.ts rename to src/versions/8.0.0/pages/FO/classic/home/index.ts diff --git a/src/versions/8.0.0/pages/FO/login/index.ts b/src/versions/8.0.0/pages/FO/classic/login/index.ts similarity index 100% rename from src/versions/8.0.0/pages/FO/login/index.ts rename to src/versions/8.0.0/pages/FO/classic/login/index.ts