From 1bbf7cc294dd24b0fc3a0531cc28f38b2e24a2bb Mon Sep 17 00:00:00 2001 From: Alexandre de Verteuil Date: Wed, 20 Feb 2019 11:00:29 -0500 Subject: [PATCH 1/2] Fix heading levels in generic-oauth.md --- docs/sources/auth/generic-oauth.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/auth/generic-oauth.md b/docs/sources/auth/generic-oauth.md index ac5801dbe1d..1a83432b8f7 100644 --- a/docs/sources/auth/generic-oauth.md +++ b/docs/sources/auth/generic-oauth.md @@ -113,7 +113,7 @@ allowed_organizations = allowed_organizations = ``` -### Set up OAuth2 with Auth0 +## Set up OAuth2 with Auth0 1. Create a new Client in Auth0 - Name: Grafana @@ -139,7 +139,7 @@ allowed_organizations = api_url = https:///userinfo ``` -### Set up OAuth2 with Azure Active Directory +## Set up OAuth2 with Azure Active Directory 1. Log in to portal.azure.com and click "Azure Active Directory" in the side menu, then click the "Properties" sub-menu item. From f28cc871e1b9e7286e01226708ad998fd9510a97 Mon Sep 17 00:00:00 2001 From: Dominik Prokop Date: Thu, 21 Feb 2019 09:09:24 +0100 Subject: [PATCH 2/2] Fix build --- .../src/components/ColorPicker/ColorPickerPopover.tsx | 2 +- .../src/components/DeleteButton/DeleteButton.story.tsx | 2 +- .../src/components/ThresholdsEditor/ThresholdsEditor.tsx | 3 ++- packages/grafana-ui/src/components/Tooltip/Popper.tsx | 2 +- public/app/plugins/datasource/graphite/FunctionEditor.tsx | 8 +++++++- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/grafana-ui/src/components/ColorPicker/ColorPickerPopover.tsx b/packages/grafana-ui/src/components/ColorPicker/ColorPickerPopover.tsx index d3d70175c4b..ee879f94762 100644 --- a/packages/grafana-ui/src/components/ColorPicker/ColorPickerPopover.tsx +++ b/packages/grafana-ui/src/components/ColorPicker/ColorPickerPopover.tsx @@ -4,7 +4,7 @@ import { getColorName, getColorFromHexRgbOrName } from '../../utils/namedColorsP import { ColorPickerProps, warnAboutColorPickerPropsDeprecation } from './ColorPicker'; import { PopperContentProps } from '../Tooltip/PopperController'; import SpectrumPalette from './SpectrumPalette'; -import { GrafanaThemeType } from '@grafana/ui'; +import { GrafanaThemeType } from '../../types/theme'; export interface Props extends ColorPickerProps, PopperContentProps { customPickers?: T; diff --git a/packages/grafana-ui/src/components/DeleteButton/DeleteButton.story.tsx b/packages/grafana-ui/src/components/DeleteButton/DeleteButton.story.tsx index e086663f065..ccbccea9c5c 100644 --- a/packages/grafana-ui/src/components/DeleteButton/DeleteButton.story.tsx +++ b/packages/grafana-ui/src/components/DeleteButton/DeleteButton.story.tsx @@ -1,6 +1,6 @@ import React, { FunctionComponent } from 'react'; import { storiesOf } from '@storybook/react'; -import { DeleteButton } from '@grafana/ui'; +import { DeleteButton } from './DeleteButton'; const CenteredStory: FunctionComponent<{}> = ({ children }) => { return ( diff --git a/packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.tsx b/packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.tsx index d613a911b03..b3d82982e6c 100644 --- a/packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.tsx +++ b/packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.tsx @@ -3,7 +3,8 @@ import { Threshold } from '../../types'; import { ColorPicker } from '..'; import { PanelOptionsGroup } from '..'; import { colors } from '../../utils'; -import { getColorFromHexRgbOrName, ThemeContext } from '@grafana/ui'; +import { ThemeContext } from '../../themes/ThemeContext'; +import { getColorFromHexRgbOrName } from '../../utils/namedColorsPalette'; export interface Props { thresholds: Threshold[]; diff --git a/packages/grafana-ui/src/components/Tooltip/Popper.tsx b/packages/grafana-ui/src/components/Tooltip/Popper.tsx index f43d150350b..e439ecf0437 100644 --- a/packages/grafana-ui/src/components/Tooltip/Popper.tsx +++ b/packages/grafana-ui/src/components/Tooltip/Popper.tsx @@ -1,7 +1,7 @@ import React, { PureComponent } from 'react'; import * as PopperJS from 'popper.js'; import { Manager, Popper as ReactPopper, PopperArrowProps } from 'react-popper'; -import { Portal } from '@grafana/ui'; +import { Portal } from '../Portal/Portal'; import Transition from 'react-transition-group/Transition'; import { PopperContent } from './PopperController'; diff --git a/public/app/plugins/datasource/graphite/FunctionEditor.tsx b/public/app/plugins/datasource/graphite/FunctionEditor.tsx index aa8aecb1ddf..f8a684529c6 100644 --- a/public/app/plugins/datasource/graphite/FunctionEditor.tsx +++ b/public/app/plugins/datasource/graphite/FunctionEditor.tsx @@ -23,7 +23,13 @@ class FunctionEditor extends React.PureComponent { - const { onMoveLeft, onMoveRight, func: { def: { name, description } } } = this.props; + const { + onMoveLeft, + onMoveRight, + func: { + def: { name, description }, + }, + } = this.props; const { showingDescription } = this.state; if (showingDescription) {