@@ -56,76 +56,17 @@ import { configure as configureLogging, getLoggingService, NewRelicLoggingServic
56
56
import { configure as configureAnalytics , SegmentAnalyticsService , identifyAnonymousUser , identifyAuthenticatedUser } from './analytics' ;
57
57
import { getAuthenticatedHttpClient , configure as configureAuth , ensureAuthenticatedUser , fetchAuthenticatedUser , hydrateAuthenticatedUser , getAuthenticatedUser , AxiosJwtAuthService } from './auth' ;
58
58
import { configure as configureI18n } from './i18n' ;
59
-
60
- /** @constant */
61
- export const APP_TOPIC = 'APP' ;
62
-
63
- export const APP_PUBSUB_INITIALIZED = `${ APP_TOPIC } .PUBSUB_INITIALIZED` ;
64
-
65
- /**
66
- * Event published when the application initialization sequence has finished loading any dynamic
67
- * configuration setup in a custom config handler.
68
- *
69
- * @event
70
- */
71
- export const APP_CONFIG_INITIALIZED = `${ APP_TOPIC } .CONFIG_INITIALIZED` ;
72
-
73
- /**
74
- * Event published when the application initialization sequence has finished determining the user's
75
- * authentication state, creating an authenticated API client, and executing auth handlers.
76
- *
77
- * @event
78
- */
79
- export const APP_AUTH_INITIALIZED = `${ APP_TOPIC } .AUTH_INITIALIZED` ;
80
-
81
- /**
82
- * Event published when the application initialization sequence has finished initializing
83
- * internationalization and executing any i18n handlers.
84
- *
85
- * @event
86
- */
87
- export const APP_I18N_INITIALIZED = `${ APP_TOPIC } .I18N_INITIALIZED` ;
88
-
89
- /**
90
- * Event published when the application initialization sequence has finished initializing the
91
- * logging service and executing any logging handlers.
92
- *
93
- * @event
94
- */
95
- export const APP_LOGGING_INITIALIZED = `${ APP_TOPIC } .LOGGING_INITIALIZED` ;
96
-
97
- /**
98
- * Event published when the application initialization sequence has finished initializing the
99
- * analytics service and executing any analytics handlers.
100
- *
101
- * @event
102
- */
103
- export const APP_ANALYTICS_INITIALIZED = `${ APP_TOPIC } .ANALYTICS_INITIALIZED` ;
104
-
105
- /**
106
- * Event published when the application initialization sequence has finished. Applications should
107
- * subscribe to this event and start rendering the UI when it has fired.
108
- *
109
- * @event
110
- */
111
- export const APP_READY = `${ APP_TOPIC } .READY` ;
112
-
113
- /**
114
- * Event published when the application initialization sequence has aborted. This is frequently
115
- * used to show an error page when an initialization error has occurred.
116
- *
117
- * @see {@link module:React~ErrorPage }
118
- * @event
119
- */
120
- export const APP_INIT_ERROR = `${ APP_TOPIC } .INIT_ERROR` ;
59
+ import { APP_PUBSUB_INITIALIZED , APP_CONFIG_INITIALIZED , APP_AUTH_INITIALIZED , APP_I18N_INITIALIZED , APP_LOGGING_INITIALIZED , APP_ANALYTICS_INITIALIZED , APP_READY , APP_INIT_ERROR } from './constants' ;
121
60
122
61
/**
123
62
* A browser history object created by the [history](https://github.com/ReactTraining/history)
124
63
* package. Applications are encouraged to use this history object, rather than creating their own,
125
64
* as behavior may be undefined when managing history via multiple mechanisms/instances.
126
65
*
127
66
*/
128
- export const history = createBrowserHistory ( ) ;
67
+ export const history = createBrowserHistory ( {
68
+ basename : getConfig ( ) . PUBLIC_PATH ,
69
+ } ) ;
129
70
130
71
/**
131
72
* The default handler for the initialization lifecycle's `initError` phase. Logs the error to the
0 commit comments