Get the router page information

@inner
@param {string} pagePath the page path
@param {string=} prefix the page name prefix, optional
@return {{pageName: string, componentName: string}}
function getPageInfo(pagePath, prefix) {
    let parts = pagePath.split('/');
    let componentName = parts.pop();
    let pageName = parts.join('/');

    prefix && (pageName = `${prefix}/${pageName}`);
    return {
        pageName,
        componentName
    };
}