Explorar o código

Merge branch 'master' of https://github.com/grafana/grafana into piechart-react

corpglory-dev %!s(int64=6) %!d(string=hai) anos
pai
achega
8bc4139bbd

+ 2 - 2
docs/sources/auth/generic-oauth.md

@@ -113,7 +113,7 @@ allowed_organizations =
     allowed_organizations =
     allowed_organizations =
     ```
     ```
 
 
-### Set up OAuth2 with Auth0
+## Set up OAuth2 with Auth0
 
 
 1.  Create a new Client in Auth0
 1.  Create a new Client in Auth0
     - Name: Grafana
     - Name: Grafana
@@ -139,7 +139,7 @@ allowed_organizations =
     api_url = https://<domain>/userinfo
     api_url = https://<domain>/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.
 1.  Log in to portal.azure.com and click "Azure Active Directory" in the side menu, then click the "Properties" sub-menu item.
 
 

+ 1 - 1
packages/grafana-ui/src/components/ColorPicker/ColorPickerPopover.tsx

@@ -4,7 +4,7 @@ import { getColorName, getColorFromHexRgbOrName } from '../../utils/namedColorsP
 import { ColorPickerProps, warnAboutColorPickerPropsDeprecation } from './ColorPicker';
 import { ColorPickerProps, warnAboutColorPickerPropsDeprecation } from './ColorPicker';
 import { PopperContentProps } from '../Tooltip/PopperController';
 import { PopperContentProps } from '../Tooltip/PopperController';
 import SpectrumPalette from './SpectrumPalette';
 import SpectrumPalette from './SpectrumPalette';
-import { GrafanaThemeType } from '@grafana/ui';
+import { GrafanaThemeType } from '../../types/theme';
 
 
 export interface Props<T> extends ColorPickerProps, PopperContentProps {
 export interface Props<T> extends ColorPickerProps, PopperContentProps {
   customPickers?: T;
   customPickers?: T;

+ 1 - 1
packages/grafana-ui/src/components/DeleteButton/DeleteButton.story.tsx

@@ -1,6 +1,6 @@
 import React, { FunctionComponent } from 'react';
 import React, { FunctionComponent } from 'react';
 import { storiesOf } from '@storybook/react';
 import { storiesOf } from '@storybook/react';
-import { DeleteButton } from '@grafana/ui';
+import { DeleteButton } from './DeleteButton';
 
 
 const CenteredStory: FunctionComponent<{}> = ({ children }) => {
 const CenteredStory: FunctionComponent<{}> = ({ children }) => {
   return (
   return (

+ 2 - 1
packages/grafana-ui/src/components/ThresholdsEditor/ThresholdsEditor.tsx

@@ -3,7 +3,8 @@ import { Threshold } from '../../types';
 import { ColorPicker } from '..';
 import { ColorPicker } from '..';
 import { PanelOptionsGroup } from '..';
 import { PanelOptionsGroup } from '..';
 import { colors } from '../../utils';
 import { colors } from '../../utils';
-import { getColorFromHexRgbOrName, ThemeContext } from '@grafana/ui';
+import { ThemeContext } from '../../themes/ThemeContext';
+import { getColorFromHexRgbOrName } from '../../utils/namedColorsPalette';
 
 
 export interface Props {
 export interface Props {
   thresholds: Threshold[];
   thresholds: Threshold[];

+ 1 - 1
packages/grafana-ui/src/components/Tooltip/Popper.tsx

@@ -1,7 +1,7 @@
 import React, { PureComponent } from 'react';
 import React, { PureComponent } from 'react';
 import * as PopperJS from 'popper.js';
 import * as PopperJS from 'popper.js';
 import { Manager, Popper as ReactPopper, PopperArrowProps } from 'react-popper';
 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 Transition from 'react-transition-group/Transition';
 import { PopperContent } from './PopperController';
 import { PopperContent } from './PopperController';
 
 

+ 7 - 1
public/app/plugins/datasource/graphite/FunctionEditor.tsx

@@ -23,7 +23,13 @@ class FunctionEditor extends React.PureComponent<FunctionEditorProps, FunctionEd
   }
   }
 
 
   renderContent = ({ updatePopperPosition }) => {
   renderContent = ({ updatePopperPosition }) => {
-    const { onMoveLeft, onMoveRight, func: { def: { name, description } } } = this.props;
+    const {
+      onMoveLeft,
+      onMoveRight,
+      func: {
+        def: { name, description },
+      },
+    } = this.props;
     const { showingDescription } = this.state;
     const { showingDescription } = this.state;
 
 
     if (showingDescription) {
     if (showingDescription) {