mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
wip: moved plugin exports
This commit is contained in:
parent
dfe1b20f3d
commit
a201c76c5f
@ -1,3 +1,4 @@
|
|||||||
export * from './series';
|
export * from './series';
|
||||||
export * from './time';
|
export * from './time';
|
||||||
export * from './panel';
|
export * from './panel';
|
||||||
|
export * from './plugin';
|
||||||
|
20
packages/grafana-ui/src/types/plugin.ts
Normal file
20
packages/grafana-ui/src/types/plugin.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import { ComponentClass } from 'react';
|
||||||
|
import { PanelProps, PanelOptionsProps } from './panel';
|
||||||
|
|
||||||
|
export interface PluginExports {
|
||||||
|
Datasource?: any;
|
||||||
|
QueryCtrl?: any;
|
||||||
|
QueryEditor?: any;
|
||||||
|
ConfigCtrl?: any;
|
||||||
|
AnnotationsQueryCtrl?: any;
|
||||||
|
VariableQueryEditor?: any;
|
||||||
|
ExploreQueryField?: any;
|
||||||
|
ExploreStartPage?: any;
|
||||||
|
|
||||||
|
// Panel plugin
|
||||||
|
PanelCtrl?: any;
|
||||||
|
Panel?: ComponentClass<PanelProps>;
|
||||||
|
PanelOptions?: ComponentClass<PanelOptionsProps>;
|
||||||
|
PanelDefaults?: any;
|
||||||
|
}
|
||||||
|
|
@ -18,7 +18,7 @@ import config from 'app/core/config';
|
|||||||
import TimeSeries from 'app/core/time_series2';
|
import TimeSeries from 'app/core/time_series2';
|
||||||
import TableModel from 'app/core/table_model';
|
import TableModel from 'app/core/table_model';
|
||||||
import { coreModule, appEvents, contextSrv } from 'app/core/core';
|
import { coreModule, appEvents, contextSrv } from 'app/core/core';
|
||||||
import { PluginExports } from 'app/types/plugins';
|
import { PluginExports } from '@grafana/ui';
|
||||||
import * as datemath from 'app/core/utils/datemath';
|
import * as datemath from 'app/core/utils/datemath';
|
||||||
import * as fileExport from 'app/core/utils/file_export';
|
import * as fileExport from 'app/core/utils/file_export';
|
||||||
import * as flatten from 'app/core/utils/flatten';
|
import * as flatten from 'app/core/utils/flatten';
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import { LayoutMode } from '../core/components/LayoutSelector/LayoutSelector';
|
import { LayoutMode } from '../core/components/LayoutSelector/LayoutSelector';
|
||||||
import { Plugin, PluginExports, PluginMeta } from './plugins';
|
import { Plugin, PluginMeta } from './plugins';
|
||||||
|
import { PluginExports } from '@grafana/ui';
|
||||||
|
|
||||||
export interface DataSource {
|
export interface DataSource {
|
||||||
id: number;
|
id: number;
|
||||||
|
@ -1,90 +1,20 @@
|
|||||||
import { Team, TeamsState, TeamState, TeamGroup, TeamMember } from './teams';
|
export * from './teams';
|
||||||
import { AlertRuleDTO, AlertRule, AlertRulesState } from './alerting';
|
export * from './alerting';
|
||||||
import { LocationState, LocationUpdate, UrlQueryMap, UrlQueryValue } from './location';
|
export * from './location';
|
||||||
import { NavModel, NavModelItem, NavIndex } from './navModel';
|
export * from './navModel';
|
||||||
import { FolderDTO, FolderState, FolderInfo } from './folders';
|
export * from './folders';
|
||||||
import { DashboardState } from './dashboard';
|
export * from './dashboard';
|
||||||
import { DashboardAcl, OrgRole, PermissionLevel } from './acl';
|
export * from './acl';
|
||||||
import { ApiKey, ApiKeysState, NewApiKey } from './apiKeys';
|
export * from './apiKeys';
|
||||||
import { Invitee, OrgUser, User, UsersState, UserState } from './user';
|
export * from './user';
|
||||||
import { DataSource, DataSourceSelectItem, DataSourcesState } from './datasources';
|
export * from './datasources';
|
||||||
import { DataQuery, DataQueryResponse, DataQueryOptions } from './series';
|
export * from './series';
|
||||||
import { PluginDashboard, PluginMeta, Plugin, PanelPlugin, PluginsState } from './plugins';
|
export * from './plugins';
|
||||||
import { Organization, OrganizationState } from './organization';
|
export * from './organization';
|
||||||
import {
|
export * from './appNotifications';
|
||||||
AppNotification,
|
export * from './search';
|
||||||
AppNotificationSeverity,
|
export * from './form';
|
||||||
AppNotificationsState,
|
export * from './explore';
|
||||||
AppNotificationTimeout,
|
export * from './store';
|
||||||
} from './appNotifications';
|
|
||||||
import { DashboardSearchHit } from './search';
|
|
||||||
import { ValidationEvents, ValidationRule } from './form';
|
|
||||||
import { ExploreState } from './explore';
|
|
||||||
export {
|
|
||||||
Team,
|
|
||||||
TeamsState,
|
|
||||||
TeamState,
|
|
||||||
TeamGroup,
|
|
||||||
TeamMember,
|
|
||||||
AlertRuleDTO,
|
|
||||||
AlertRule,
|
|
||||||
AlertRulesState,
|
|
||||||
LocationState,
|
|
||||||
LocationUpdate,
|
|
||||||
NavModel,
|
|
||||||
NavModelItem,
|
|
||||||
NavIndex,
|
|
||||||
UrlQueryMap,
|
|
||||||
UrlQueryValue,
|
|
||||||
FolderDTO,
|
|
||||||
FolderState,
|
|
||||||
FolderInfo,
|
|
||||||
DashboardState,
|
|
||||||
DashboardAcl,
|
|
||||||
OrgRole,
|
|
||||||
PermissionLevel,
|
|
||||||
DataSource,
|
|
||||||
DataSourceSelectItem,
|
|
||||||
PluginMeta,
|
|
||||||
ApiKey,
|
|
||||||
ApiKeysState,
|
|
||||||
NewApiKey,
|
|
||||||
Plugin,
|
|
||||||
PluginsState,
|
|
||||||
DataSourcesState,
|
|
||||||
Invitee,
|
|
||||||
OrgUser,
|
|
||||||
User,
|
|
||||||
UsersState,
|
|
||||||
PanelPlugin,
|
|
||||||
DataQuery,
|
|
||||||
DataQueryResponse,
|
|
||||||
DataQueryOptions,
|
|
||||||
PluginDashboard,
|
|
||||||
Organization,
|
|
||||||
OrganizationState,
|
|
||||||
AppNotification,
|
|
||||||
AppNotificationsState,
|
|
||||||
AppNotificationSeverity,
|
|
||||||
AppNotificationTimeout,
|
|
||||||
DashboardSearchHit,
|
|
||||||
UserState,
|
|
||||||
ValidationEvents,
|
|
||||||
ValidationRule,
|
|
||||||
};
|
|
||||||
|
|
||||||
export interface StoreState {
|
|
||||||
navIndex: NavIndex;
|
|
||||||
location: LocationState;
|
|
||||||
alertRules: AlertRulesState;
|
|
||||||
teams: TeamsState;
|
|
||||||
team: TeamState;
|
|
||||||
folder: FolderState;
|
|
||||||
dashboard: DashboardState;
|
|
||||||
dataSources: DataSourcesState;
|
|
||||||
explore: ExploreState;
|
|
||||||
users: UsersState;
|
|
||||||
organization: OrganizationState;
|
|
||||||
appNotifications: AppNotificationsState;
|
|
||||||
user: UserState;
|
|
||||||
}
|
|
||||||
|
@ -1,22 +1,4 @@
|
|||||||
import { ComponentClass } from 'react';
|
import { PluginExports } from '@grafana/ui/src/types';
|
||||||
import { PanelProps, PanelOptionsProps } from '@grafana/ui';
|
|
||||||
|
|
||||||
export interface PluginExports {
|
|
||||||
Datasource?: any;
|
|
||||||
QueryCtrl?: any;
|
|
||||||
QueryEditor?: any;
|
|
||||||
ConfigCtrl?: any;
|
|
||||||
AnnotationsQueryCtrl?: any;
|
|
||||||
VariableQueryEditor?: any;
|
|
||||||
ExploreQueryField?: any;
|
|
||||||
ExploreStartPage?: any;
|
|
||||||
|
|
||||||
// Panel plugin
|
|
||||||
PanelCtrl?;
|
|
||||||
Panel?: ComponentClass<PanelProps>;
|
|
||||||
PanelOptions?: ComponentClass<PanelOptionsProps>;
|
|
||||||
PanelDefaults?: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PanelPlugin {
|
export interface PanelPlugin {
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { PluginMeta, PluginExports } from './plugins';
|
import { PluginMeta } from './plugins';
|
||||||
import { TimeSeries, TimeRange, RawTimeRange } from '@grafana/ui';
|
import { TimeSeries, TimeRange, RawTimeRange, PluginExports } from '@grafana/ui';
|
||||||
|
|
||||||
export interface DataQueryResponse {
|
export interface DataQueryResponse {
|
||||||
data: TimeSeries[];
|
data: TimeSeries[];
|
||||||
|
27
public/app/types/store.ts
Normal file
27
public/app/types/store.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import { NavIndex } from './navModel';
|
||||||
|
import { LocationState } from './location';
|
||||||
|
import { AlertRulesState } from './alerting';
|
||||||
|
import { TeamsState, TeamState } from './teams';
|
||||||
|
import { FolderState } from './folders';
|
||||||
|
import { DashboardState } from './dashboard';
|
||||||
|
import { DataSourcesState } from './datasources';
|
||||||
|
import { ExploreState } from './explore';
|
||||||
|
import { UsersState, UserState } from './user';
|
||||||
|
import { OrganizationState } from './organization';
|
||||||
|
import { AppNotificationsState } from './appNotifications';
|
||||||
|
|
||||||
|
export interface StoreState {
|
||||||
|
navIndex: NavIndex;
|
||||||
|
location: LocationState;
|
||||||
|
alertRules: AlertRulesState;
|
||||||
|
teams: TeamsState;
|
||||||
|
team: TeamState;
|
||||||
|
folder: FolderState;
|
||||||
|
dashboard: DashboardState;
|
||||||
|
dataSources: DataSourcesState;
|
||||||
|
explore: ExploreState;
|
||||||
|
users: UsersState;
|
||||||
|
organization: OrganizationState;
|
||||||
|
appNotifications: AppNotificationsState;
|
||||||
|
user: UserState;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user