File tree Expand file tree Collapse file tree 5 files changed +16
-9
lines changed
definition/externals/meteor Expand file tree Collapse file tree 5 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ shell-server@0.6.1
4545dispatch:run-as-user
4646ostrio:cookies
4747
48- kadira:flow-router
4948
5049meteorhacks:inject-initial
5150
@@ -70,3 +69,4 @@ autoupdate@2.0.0
7069
7170zodern:types
7271zodern:standard-minifier-js
72+ ostrio:flow-router-extra
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ hot-code-push@1.0.5
4141http@3.0.0
4242id-map@1.2.0
4343inter-process-messaging@0.1.2
44- kadira:flow-router@2.12.1
4544localstorage@1.2.1
4645logging@1.3.5
4746meteor@2.1.0
@@ -63,6 +62,7 @@ oauth1@1.5.2
6362oauth2@1.3.3
6463ordered-dict@1.2.0
6564ostrio:cookies@2.7.2
65+ ostrio:flow-router-extra@3.11.0
6666promise@1.0.0
6767random@1.2.2
6868rate-limit@1.1.2
Original file line number Diff line number Diff line change 11import './serviceWorker' ;
22import './startup/accounts' ;
33
4- import { FlowRouter } from 'meteor/kadira :flow-router' ;
4+ import { FlowRouter } from 'meteor/ostrio :flow-router-extra ' ;
55
66FlowRouter . wait ( ) ;
77
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import type {
1010 RouteObject ,
1111 LocationSearch ,
1212} from '@rocket.chat/ui-contexts' ;
13- import { FlowRouter } from 'meteor/kadira :flow-router' ;
13+ import { FlowRouter } from 'meteor/ostrio :flow-router-extra ' ;
1414import { Tracker } from 'meteor/tracker' ;
1515import type { ReactNode } from 'react' ;
1616
@@ -125,7 +125,12 @@ const updateFlowRouter = () => {
125125 return ;
126126 }
127127
128- FlowRouter . initialize ( ) ;
128+ FlowRouter . initialize ( {
129+ hashbang : false ,
130+ page : {
131+ click : true ,
132+ } ,
133+ } ) ;
129134} ;
130135
131136const defineRoutes = ( routes : RouteObject [ ] ) => {
Original file line number Diff line number Diff line change 1- declare module 'meteor/kadira :flow-router' {
1+ declare module 'meteor/ostrio :flow-router-extra ' {
22 import type { Subscription } from 'meteor/meteor' ;
33
44 type Context = {
@@ -100,12 +100,15 @@ declare module 'meteor/kadira:flow-router' {
100100 } ;
101101
102102 type RouterOptions = {
103- hashbang ?: boolean ;
103+ hashbang : boolean ;
104+ page : { click : boolean } ;
104105 } ;
105106
106107 class Router {
107108 constructor ( ) ;
108109
110+ _page : typeof page ;
111+
109112 route < TRouteName extends string > ( pathDef : string , options : RouteOptions < TRouteName > ) : Route < TRouteName , undefined > ;
110113
111114 route < TRouteName extends string , TGroup extends Group < string > > (
@@ -139,7 +142,7 @@ declare module 'meteor/kadira:flow-router' {
139142
140143 withTrailingSlash ( fn : ( ) => void ) : Router ;
141144
142- initialize ( options ? : RouterOptions ) : void ;
145+ initialize : ( options : RouterOptions ) => void ;
143146
144147 wait ( ) : void ;
145148
@@ -178,6 +181,5 @@ declare module 'meteor/kadira:flow-router' {
178181 const FlowRouter : Router & {
179182 Route : typeof Route ;
180183 Router : typeof Router ;
181- _page : typeof page ;
182184 } ;
183185}
You can’t perform that action at this time.
0 commit comments