mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' into new-data-source-as-separate-page
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
interface ExploreDatasource {
|
||||
value: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
export interface Range {
|
||||
from: string;
|
||||
to: string;
|
||||
@@ -5,10 +10,46 @@ export interface Range {
|
||||
|
||||
export interface Query {
|
||||
query: string;
|
||||
edited?: boolean;
|
||||
key?: string;
|
||||
}
|
||||
|
||||
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;
|
||||
showingGraph: boolean;
|
||||
showingLogs: boolean;
|
||||
showingTable: boolean;
|
||||
supportsGraph: boolean | null;
|
||||
supportsLogs: boolean | null;
|
||||
supportsTable: boolean | null;
|
||||
tableResult: any;
|
||||
}
|
||||
|
||||
export interface ExploreUrlState {
|
||||
datasource: string;
|
||||
queries: Query[];
|
||||
|
||||
@@ -6,7 +6,7 @@ import { FolderDTO, FolderState, FolderInfo } from './folders';
|
||||
import { DashboardState } from './dashboard';
|
||||
import { DashboardAcl, OrgRole, PermissionLevel } from './acl';
|
||||
import { ApiKey, ApiKeysState, NewApiKey } from './apiKeys';
|
||||
import { User } from './user';
|
||||
import { Invitee, OrgUser, User, UsersState } from './user';
|
||||
import { DataSource, DataSourcesState } from './datasources';
|
||||
import { PluginMeta, Plugin, PluginsState } from './plugins';
|
||||
|
||||
@@ -38,10 +38,13 @@ export {
|
||||
ApiKey,
|
||||
ApiKeysState,
|
||||
NewApiKey,
|
||||
User,
|
||||
Plugin,
|
||||
PluginsState,
|
||||
DataSourcesState,
|
||||
Invitee,
|
||||
OrgUser,
|
||||
User,
|
||||
UsersState,
|
||||
};
|
||||
|
||||
export interface StoreState {
|
||||
@@ -53,4 +56,5 @@ export interface StoreState {
|
||||
folder: FolderState;
|
||||
dashboard: DashboardState;
|
||||
dataSources: DataSourcesState;
|
||||
users: UsersState;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,44 @@
|
||||
export interface User {
|
||||
export interface OrgUser {
|
||||
avatarUrl: string;
|
||||
email: string;
|
||||
lastSeenAt: string;
|
||||
lastSeenAtAge: string;
|
||||
login: string;
|
||||
orgId: number;
|
||||
role: string;
|
||||
userId: number;
|
||||
}
|
||||
|
||||
export interface User {
|
||||
id: number;
|
||||
label: string;
|
||||
avatarUrl: string;
|
||||
login: string;
|
||||
}
|
||||
|
||||
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 UsersState {
|
||||
users: OrgUser[];
|
||||
invitees: Invitee[];
|
||||
searchQuery: string;
|
||||
canInvite: boolean;
|
||||
externalUserMngLinkUrl: string;
|
||||
externalUserMngLinkName: string;
|
||||
externalUserMngInfo: string;
|
||||
}
|
||||
|
||||
37
public/app/types/users.ts
Normal file
37
public/app/types/users.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user