mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* Fix KUI docs site. Remove history dependency. * Use EUI reset in KUI docs.
This commit is contained in:
parent
059a8a34ee
commit
b56269ef50
4 changed files with 4 additions and 25 deletions
|
@ -260,7 +260,6 @@
|
|||
"grunt-simple-mocha": "0.4.0",
|
||||
"gulp-sourcemaps": "1.7.3",
|
||||
"highlight.js": "9.0.0",
|
||||
"history": "2.1.1",
|
||||
"html": "1.0.0",
|
||||
"html-loader": "0.5.1",
|
||||
"husky": "0.8.1",
|
||||
|
|
|
@ -6,10 +6,8 @@ import ReactDOM from 'react-dom';
|
|||
import { Provider } from 'react-redux';
|
||||
import {
|
||||
Router,
|
||||
useRouterHistory,
|
||||
hashHistory,
|
||||
} from 'react-router';
|
||||
import { syncHistoryWithStore } from 'react-router-redux';
|
||||
import createHashHistory from 'history/lib/createHashHistory';
|
||||
|
||||
// Store.
|
||||
import configureStore from './store/configure_store';
|
||||
|
@ -24,10 +22,6 @@ import {
|
|||
} from './services';
|
||||
|
||||
const store = configureStore();
|
||||
const browserHistory = useRouterHistory(createHashHistory)({
|
||||
queryKey: false,
|
||||
});
|
||||
const history = syncHistoryWithStore(browserHistory, store);
|
||||
|
||||
const childRoutes = [].concat(Routes.getAppRoutes());
|
||||
childRoutes.push({
|
||||
|
@ -72,7 +66,7 @@ syncTitleWithRoutes(routes);
|
|||
ReactDOM.render(
|
||||
<Provider store={store}>
|
||||
<Router
|
||||
history={history}
|
||||
history={hashHistory}
|
||||
routes={routes}
|
||||
/>
|
||||
</Provider>,
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
@import "../../../node_modules/@elastic/eui/src/global_styling/index";
|
||||
@import "../../dist/ui_framework.css";
|
||||
@import "./components/guide_components";
|
||||
|
|
17
yarn.lock
17
yarn.lock
|
@ -5541,15 +5541,6 @@ highlight.js@^9.12.0:
|
|||
version "9.12.0"
|
||||
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.12.0.tgz#e6d9dbe57cbefe60751f02af336195870c90c01e"
|
||||
|
||||
history@2.1.1:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.yarnpkg.com/history/-/history-2.1.1.tgz#7490ff80c9d42e5b27f46898fcfc7311c6f685e3"
|
||||
dependencies:
|
||||
deep-equal "^1.0.0"
|
||||
invariant "^2.0.0"
|
||||
query-string "^3.0.0"
|
||||
warning "^2.0.0"
|
||||
|
||||
history@^3.0.0:
|
||||
version "3.3.0"
|
||||
resolved "https://registry.yarnpkg.com/history/-/history-3.3.0.tgz#fcedcce8f12975371545d735461033579a6dae9c"
|
||||
|
@ -9768,12 +9759,6 @@ qs@~6.4.0:
|
|||
version "6.4.0"
|
||||
resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233"
|
||||
|
||||
query-string@^3.0.0:
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/query-string/-/query-string-3.0.3.tgz#ae2e14b4d05071d4e9b9eb4873c35b0dcd42e638"
|
||||
dependencies:
|
||||
strict-uri-encode "^1.0.0"
|
||||
|
||||
query-string@^4.1.0, query-string@^4.2.2:
|
||||
version "4.3.4"
|
||||
resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb"
|
||||
|
@ -12669,7 +12654,7 @@ ware@^1.3.0:
|
|||
dependencies:
|
||||
wrap-fn "^0.1.0"
|
||||
|
||||
warning@^2.0.0, warning@^2.1.0:
|
||||
warning@^2.1.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/warning/-/warning-2.1.0.tgz#21220d9c63afc77a8c92111e011af705ce0c6901"
|
||||
dependencies:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue