X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/plugins/extendify/src/Launch/lib
home
/
hikrsdyp
/
public_html
/
wp-content
/
plugins
/
extendify
/
src
/
Launch
/
lib
/
??
..
??
__tests__
??
blocks.js
(154 B)
??
fonts-helpers.js
(1.91 KB)
??
linkPages.js
(6.4 KB)
??
logo.js
(1.3 KB)
??
pages.js
(2.23 KB)
??
preview-helpers.js
(1.6 KB)
??
util.js
(1.8 KB)
??
wp.js
(10.43 KB)
Editing: pages.js
import { ContentGathering, state as contentGatheringState, } from '@launch/pages/ContentGathering'; import { HomeSelect, state as homeSelectState } from '@launch/pages/HomeSelect'; import { ObjectiveSelection, state as objectiveSelectionState, } from '@launch/pages/ObjectiveSelection'; import { PagesSelect, state as pagesSelectState, } from '@launch/pages/PagesSelect'; import { SiteInformation, state as siteInfoState, } from '@launch/pages/SiteInformation'; import { SitePrep, state as sitePrepState } from '@launch/pages/SitePrep'; import { SiteQuestions, state as siteQuestionsState, } from '@launch/pages/SiteQuestions'; import { SiteStructure, state as siteStructureState, } from '@launch/pages/SiteStructure'; import { useUserSelectionStore } from '@launch/state/user-selections'; const showSiteQuestions = window.extSharedData?.showSiteQuestions ?? false; // This is the default pages array // You can add pre-fetch functions to start fetching data for the next page // Supports both [] and single fetcher functions const initialPagesList = { 'website-objective': { component: ObjectiveSelection, state: objectiveSelectionState, condition: () => !showSiteQuestions, }, 'site-information': { component: SiteInformation, state: siteInfoState, }, 'site-prep': { component: SitePrep, state: sitePrepState, }, 'site-questions': { component: SiteQuestions, state: siteQuestionsState, condition: () => showSiteQuestions, }, 'site-structure': { component: SiteStructure, state: siteStructureState, condition: ({ siteObjective }) => siteObjective !== 'landing-page' || !showSiteQuestions, }, 'content-fetching': { component: ContentGathering, state: contentGatheringState, }, layout: { component: HomeSelect, state: homeSelectState, }, 'page-select': { component: PagesSelect, state: pagesSelectState, condition: ({ siteStructure }) => siteStructure === 'multi-page', }, }; export const getPages = () => { const { siteStructure, siteObjective } = useUserSelectionStore?.getState() ?? {}; const conditionData = { siteStructure, siteObjective }; return Object.entries(initialPagesList).filter( ([_, page]) => !page.condition || page.condition(conditionData), ); }; export const pages = getPages();
Upload File
Create Folder