File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import 'nav-router/plugins/head' ;
2- import 'nav-router/plugins/preload-intent' ;
3- import 'nav-router/plugins/view-transitions' ;
1+ import '@ nav-router/plugins/head' ;
2+ import '@ nav-router/plugins/preload-intent' ;
3+ import '@ nav-router/plugins/view-transitions' ;
44
55import { app } from './routes.js' ;
66
Original file line number Diff line number Diff line change 1- import { solidRouter } from '@nav-router/solid' ;
1+ import { lazy , router } from '@nav-router/solid' ;
22import { wait } from '@semantic-ui/utils' ;
3- import { lazy } from 'nav-router' ;
43
54import { members , user } from './store.js' ;
65import { Breadcrumbs } from './views/breadcrumbs.jsx' ;
@@ -19,7 +18,7 @@ import { TeamLayout } from './views/team-layout.jsx';
1918import { TeamOverviewPage } from './views/team-overview-page.jsx' ;
2019import { TeamSidebar } from './views/team-sidebar.jsx' ;
2120
22- export const app = solidRouter ( {
21+ export const app = router ( {
2322 name : 'home' ,
2423 mount : '#app' ,
2524 title : 'Acme Console' ,
Original file line number Diff line number Diff line change 1- import { href , isActive , isCurrent } from 'nav-router' ;
1+ import { href , isActive , isCurrent } from '@ nav-router/solid ' ;
22import { splitProps } from 'solid-js' ;
33
44import { signIn , user } from '../store.js' ;
Original file line number Diff line number Diff line change 1- import { navigate } from 'nav-router' ;
1+ import { navigate } from '@ nav-router/solid ' ;
22
33import { signIn } from '../store.js' ;
44
Original file line number Diff line number Diff line change 1- import { href , isCurrent } from 'nav-router' ;
1+ import { href , isCurrent } from '@ nav-router/solid ' ;
22
33import { orgs } from '../store.js' ;
44
Original file line number Diff line number Diff line change @@ -73,4 +73,8 @@ export class SolidRouter extends ReactiveRouter {
7373 }
7474}
7575
76+ // the router's whole public surface from the one import a Solid app writes, with router as the
77+ // factory for this integration
78+ export * from 'nav-router' ;
7679export const solidRouter = ( options ) => new SolidRouter ( options ) ;
80+ export { solidRouter as router } ;
You can’t perform that action at this time.
0 commit comments