-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Management - New platform api (#52579)
* implement management new platform api
- Loading branch information
Showing
43 changed files
with
1,296 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
src/legacy/ui/public/management/components/__snapshots__/sidebar_nav.test.ts.snap
This file was deleted.
Oops, something went wrong.
107 changes: 0 additions & 107 deletions
107
src/legacy/ui/public/management/components/sidebar_nav.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"version": "kibana", | ||
"server": false, | ||
"ui": true, | ||
"requiredPlugins": [] | ||
"requiredPlugins": ["kibana_legacy"] | ||
} |
11 changes: 11 additions & 0 deletions
11
src/plugins/management/public/__snapshots__/management_app.test.tsx.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './management_sidebar_nav/index'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
export { ManagementSidebarNav } from './management_sidebar_nav'; | ||
export { ManagementChrome } from './management_chrome'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/plugins/management/public/components/management_chrome/management_chrome.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import * as React from 'react'; | ||
import { EuiPage, EuiPageBody } from '@elastic/eui'; | ||
import { I18nProvider } from '@kbn/i18n/react'; | ||
import { ManagementSidebarNav } from '../management_sidebar_nav'; | ||
import { LegacySection } from '../../types'; | ||
import { ManagementSection } from '../../management_section'; | ||
|
||
interface Props { | ||
getSections: () => ManagementSection[]; | ||
legacySections: LegacySection[]; | ||
selectedId: string; | ||
onMounted: (element: HTMLDivElement) => void; | ||
} | ||
|
||
export class ManagementChrome extends React.Component<Props> { | ||
private container = React.createRef<HTMLDivElement>(); | ||
componentDidMount() { | ||
if (this.container.current) { | ||
this.props.onMounted(this.container.current); | ||
} | ||
} | ||
render() { | ||
return ( | ||
<I18nProvider> | ||
<EuiPage> | ||
<ManagementSidebarNav | ||
getSections={this.props.getSections} | ||
legacySections={this.props.legacySections} | ||
selectedId={this.props.selectedId} | ||
/> | ||
<EuiPageBody> | ||
<div ref={this.container} /> | ||
</EuiPageBody> | ||
</EuiPage> | ||
</I18nProvider> | ||
); | ||
} | ||
} |
95 changes: 95 additions & 0 deletions
95
...ublic/components/management_sidebar_nav/__snapshots__/management_sidebar_nav.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.