-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rares/grafana9.3 navbar latest (#758)
* new nav changes in progress * navbar changes * navbar * working navbar * got rid of deprecated usages from @grafana/* * removed duplicated headers * navbar changes * path fix for links * old navbar support through navbarRootFallback * alignment * minor changes * breadcrumb fix * header * tabs and header for legacy navigation * nav fix * more fixes :) * refactored sass rule * docker file * docker source image * eslint added ^plugin to settings * docker host * fix * test fix * bring back team selector * cleanup * linter fix * navbar chatops changes * navbar * added component to display header in legacy navbar * fixed headings * linter changes * default route * navbar class fallback * permission checks for viewing cloud/live settings * fixed styling for legacy * linter + docker * legacy handling of hideFromTabs * init tabs logic * renamed to isTopNavbar * refactor * some refactoring * fix deprecated query usage * temporarily disable test for webhooks * reverted docker file to original content
- Loading branch information
Showing
77 changed files
with
2,037 additions
and
2,222 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 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
|
||
import { PluginPageProps, PluginPage as RealPluginPage } from '@grafana/runtime'; | ||
import Header from 'navbar/Header/Header'; | ||
|
||
import { isTopNavbar } from 'plugin/GrafanaPluginRootPage.helpers'; | ||
import { useStore } from 'state/useStore'; | ||
import { useQueryParams } from 'utils/hooks'; | ||
|
||
export const PluginPage = (isTopNavbar() ? RealPlugin : PluginPageFallback) as React.ComponentType<PluginPageProps>; | ||
|
||
function RealPlugin(props: PluginPageProps): React.ReactNode { | ||
const store = useStore(); | ||
|
||
const queryParams = useQueryParams(); | ||
const page = queryParams.get('page'); | ||
|
||
return ( | ||
<RealPluginPage {...props}> | ||
<Header page={page} backendLicense={store.backendLicense} /> | ||
{props.children} | ||
</RealPluginPage> | ||
); | ||
} | ||
|
||
function PluginPageFallback(props: PluginPageProps): React.ReactNode { | ||
return props.children; | ||
} |
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
18 changes: 10 additions & 8 deletions
18
...ltPageLayout/DefaultPageLayout.module.css → ...tPageLayout/DefaultPageLayout.module.scss
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 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 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
process() { | ||
return { code: 'module.exports = {};' }; | ||
}, | ||
getCacheKey() { | ||
return 'svgTransform'; | ||
}, | ||
}; |
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
Oops, something went wrong.