Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Outlet } from '@dojo/framework/routing/Outlet';
import { MapParamsOptions } from '@dojo/framework/routing/interfaces';
import TodoDetailsContainer from './../containers/TodoDetailsContainer';
export default Outlet(TodoDetailsContainer, 'edit', { mapParams: ({ params, router }) => {
return {
id: params.id,
onRequestExit() {
const link = router.link('view');
link && router.setPath(link);
}
};
}});
import { Outlet } from '@dojo/framework/routing/Outlet';
import { MapParamsOptions } from '@dojo/framework/routing/interfaces';
const mapParams = ({ params }: MapParamsOptions) => {
return {
slug: params.slug
};
};
export const ArticleOutlet = Outlet('article', 'article', { mapParams });
import { Outlet } from '@dojo/framework/routing/Outlet';
import WorkerContainer from './../widgets/WorkerContainer';
export const WorkerContainerOutlet = Outlet({ index: WorkerContainer }, 'directory');
export default WorkerContainerOutlet;
import { Outlet } from '@dojo/framework/routing/Outlet';
import Banner from './../widgets/Banner';
export const BannerOutlet = Outlet({ index: Banner }, 'home');
export default BannerOutlet;
import { Outlet } from '@dojo/framework/routing/Outlet';
import Banner from './../widgets/Banner';
export const BannerOutlet = Outlet({ index: Banner }, 'home');
export default BannerOutlet;
import { Outlet } from '@dojo/framework/routing/Outlet';
import { MapParamsOptions } from '@dojo/framework/routing/interfaces';
import TodoList from './../widgets/TodoList';
export default Outlet(TodoList, 'view', { mapParams: ({ queryParams, params, router }) => {
return {
view: params.view,
filter: queryParams.filter,
editTodo({ id }: {id: string}) {
const link = router.link('edit', { id });
link && router.setPath(link);
}
};
}});
import { Outlet } from '@dojo/framework/routing/Outlet';
import Banner from './../widgets/Banner';
export const BannerOutlet = Outlet({ index: Banner }, 'home');
export default BannerOutlet;
import { Outlet } from '@dojo/framework/routing/Outlet';
export const LoginOutlet = Outlet('login', 'login');
import { Outlet } from '@dojo/framework/routing/Outlet';
import { Home } from './../widgets/Home';
export const HomeOutlet = Outlet({ index: Home }, 'home');
import { Outlet } from '@dojo/framework/routing/Outlet';
export const SettingsOutlet = Outlet('settings', 'settings');