Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
push(
'/plugins/content-type-builder/models/user&source=users-permissions?modalType=model&settingType=base&actionType=create'
);
};
const hasAlreadyCreatedContentTypes =
get(
plugins,
['content-manager', 'leftMenuSections', '0', 'links'],
[]
).filter(contentType => contentType.isDisplayed === true).length > 1;
const headerId = hasAlreadyCreatedContentTypes
? 'HomePage.greetings'
: 'app.components.HomePage.welcome';
const username = get(auth.getUserInfo(), 'username', '');
const linkProps = hasAlreadyCreatedContentTypes
? {
id: 'app.components.HomePage.button.blog',
href: 'https://blog.strapi.io/',
onClick: () => {},
type: 'blog',
target: '_blank',
}
: {
id: 'app.components.HomePage.create',
href: '',
onClick: handleClick,
type: 'documentation',
};
return (
const handleGoToAdministrator = () => {
push({
pathname: '/plugins/content-manager/administrator',
search: '?source=admin',
});
};
const handleLogout = () => {
auth.clearAppStorage();
push('/auth/login');
};
return (
{get(auth.getUserInfo(), 'username')}
<i alt="{`${isOpen}`}">
</i><i alt="{`${isOpen}`}">
<i>
</i><i>
</i><i>
</i></i><i alt="{`${isOpen}`}"><i>
</i></i>