Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import changeCase from 'change-case';
export default {
camelCase: changeCase.camel,
snakeCase: changeCase.snake,
dotCase: changeCase.dot,
pathCase: changeCase.path,
lowerCase: changeCase.lower,
upperCase: changeCase.upper,
sentenceCase: changeCase.sentence,
constantCase: changeCase.constant,
titleCase: changeCase.title,
dashCase: changeCase.param,
kabobCase: changeCase.param,
kebabCase: changeCase.param,
properCase: changeCase.pascal,
pascalCase: changeCase.pascal
};
function dotTitle(s) {
return changeCase.title(s).replace(/ /g, '.');
}
{docs ? : }
{deploymentVersion && (
{deploymentVersion}
)}
);
const isDocs = history.location.pathname.startsWith(DOCS_PATH_PREFIX);
const isMobileView = width === 'sm' || width === 'xs';
const pageTitle = disableTitleFormatting ? title : makeTitle(title);
return (
<div>
{pageTitle}
{(!isDocs || (isDocs && isMobileView)) && (
</div>
)}
<div>
{showDots ? '...' : count}
{title(status)}
</div>
);
})}
default: answers => changeCase.title(answers.projectName).replace('Rest', 'REST').replace('Api', 'API')
},{
{docs ? : }
{deploymentVersion && (
{deploymentVersion}
)}
);
const isDocs = history.location.pathname.startsWith(DOCS_PATH_PREFIX);
const isMobileView = width === 'sm' || width === 'xs';
const pageTitle = disableTitleFormatting ? title : makeTitle(title);
return (
<div>
{pageTitle}
{!disableAppbar && (
{(!isDocs || (isDocs && isMobileView)) && (
</div>
<div>
{showDots ? '...' : statusCount[lowerCase(status)]}
{title(status)}
</div>
);
})}
)}
<div>
{showDots ? '...' : count}
{title(status)}
</div>
);
})}