File manager - Edit - /home/verseaumee/maze/wp-content/plugins/reddit-for-woocommerce/js/src/utils/urls.js
Back
/** * External dependencies */ import { getNewPath } from '@woocommerce/navigation'; export const pagePaths = { getStarted: '/reddit/start', onboarding: '/reddit/setup', settings: '/reddit/settings', dashboard: '/reddit/dashboard', }; /** * Generates the URL for the "Get Started" page. * * @return {string} The constructed URL for the Get Started page. */ export const getGetStartedUrl = () => { return getNewPath( null, pagePaths.getStarted, null ); }; /** * Returns the onboarding URL by generating a new path using the onboarding page path. * * @return {string} The generated onboarding URL. */ export const getOnboardingUrl = () => { return getNewPath( null, pagePaths.onboarding, null ); }; /** * Generates the dashboard URL with optional query parameters. * * @param {Object|null} query - Optional query parameters to append to the URL. * @return {string} The constructed dashboard URL. */ export const getDashboardUrl = ( query = null ) => { return getNewPath( query, pagePaths.dashboard, null ); }; /** * Returns the URL path for the settings page. * * @return {string} The constructed settings page URL. */ export const getSettingsUrl = () => { return getNewPath( null, pagePaths.settings, null ); };
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings