Merge branch 'master' into react-panels-step1

This commit is contained in:
Torkel Ödegaard
2018-10-12 13:31:20 +02:00
232 changed files with 15596 additions and 2187 deletions

View File

@@ -14,4 +14,5 @@ export interface NewApiKey {
export interface ApiKeysState {
keys: ApiKey[];
searchQuery: string;
hasFetched: boolean;
}

View File

@@ -1,4 +1,5 @@
import { LayoutMode } from '../core/components/LayoutSelector/LayoutSelector';
import { Plugin } from './plugins';
export interface DataSource {
id: number;
@@ -20,6 +21,9 @@ export interface DataSource {
export interface DataSourcesState {
dataSources: DataSource[];
searchQuery: string;
dataSourceTypeSearchQuery: string;
layoutMode: LayoutMode;
dataSourcesCount: number;
dataSourceTypes: Plugin[];
hasFetched: boolean;
}

View File

@@ -1,3 +1,8 @@
interface ExploreDatasource {
value: string;
label: string;
}
export interface Range {
from: string;
to: string;
@@ -5,23 +10,41 @@ export interface Range {
export interface Query {
query: string;
edited?: boolean;
key?: string;
}
export interface TextMatch {
text: string;
start: number;
length: number;
end: number;
}
export interface ExploreState {
datasource: any;
datasourceError: any;
datasourceLoading: boolean | null;
datasourceMissing: boolean;
datasourceName?: string;
exploreDatasources: ExploreDatasource[];
graphResult: any;
history: any[];
latency: number;
loading: any;
logsResult: any;
/**
* Initial rows of queries to push down the tree.
* Modifications do not end up here, but in `this.queryExpressions`.
* The only way to reset a query is to change its `key`.
*/
queries: Query[];
/**
* Errors caused by the running the query row.
*/
queryErrors: any[];
/**
* Hints gathered for the query row.
*/
queryHints: any[];
range: Range;
requestOptions: any;

View File

@@ -66,4 +66,5 @@ export interface PluginsState {
plugins: Plugin[];
searchQuery: string;
layoutMode: string;
hasFetched: boolean;
}

View File

@@ -23,6 +23,7 @@ export interface TeamGroup {
export interface TeamsState {
teams: Team[];
searchQuery: string;
hasFetched: boolean;
}
export interface TeamState {

View File

@@ -41,4 +41,5 @@ export interface UsersState {
externalUserMngLinkUrl: string;
externalUserMngLinkName: string;
externalUserMngInfo: string;
hasFetched: boolean;
}

View File

@@ -1,37 +0,0 @@
export interface Invitee {
code: string;
createdOn: string;
email: string;
emailSent: boolean;
emailSentOn: string;
id: number;
invitedByEmail: string;
invitedByLogin: string;
invitedByName: string;
name: string;
orgId: number;
role: string;
status: string;
url: string;
}
export interface User {
avatarUrl: string;
email: string;
lastSeenAt: string;
lastSeenAtAge: string;
login: string;
orgId: number;
role: string;
userId: number;
}
export interface UsersState {
users: User[];
invitees: Invitee[];
searchQuery: string;
canInvite: boolean;
externalUserMngLinkUrl: string;
externalUserMngLinkName: string;
externalUserMngInfo: string;
}