fixing types
This commit is contained in:
@@ -2,12 +2,13 @@ import React from 'react';
|
|||||||
import { shallow } from 'enzyme';
|
import { shallow } from 'enzyme';
|
||||||
import { PluginListPage, Props } from './PluginListPage';
|
import { PluginListPage, Props } from './PluginListPage';
|
||||||
import { NavModel, Plugin } from '../../types';
|
import { NavModel, Plugin } from '../../types';
|
||||||
|
import { LayoutModes } from '../../core/components/LayoutSelector/LayoutSelector';
|
||||||
|
|
||||||
const setup = (propOverrides?: object) => {
|
const setup = (propOverrides?: object) => {
|
||||||
const props: Props = {
|
const props: Props = {
|
||||||
navModel: {} as NavModel,
|
navModel: {} as NavModel,
|
||||||
plugins: [] as Plugin[],
|
plugins: [] as Plugin[],
|
||||||
layoutMode: 'grid',
|
layoutMode: LayoutModes.Grid,
|
||||||
loadPlugins: jest.fn(),
|
loadPlugins: jest.fn(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { FolderDTO, FolderState, FolderInfo } from './folders';
|
|||||||
import { DashboardState } from './dashboard';
|
import { DashboardState } from './dashboard';
|
||||||
import { DashboardAcl, OrgRole, PermissionLevel } from './acl';
|
import { DashboardAcl, OrgRole, PermissionLevel } from './acl';
|
||||||
import { DataSource } from './datasources';
|
import { DataSource } from './datasources';
|
||||||
import { PluginMeta, Plugin, PluginInfo, PluginsState } from './plugins';
|
import { PluginMeta, Plugin, PluginsState } from './plugins';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Team,
|
Team,
|
||||||
@@ -33,7 +33,6 @@ export {
|
|||||||
PermissionLevel,
|
PermissionLevel,
|
||||||
DataSource,
|
DataSource,
|
||||||
PluginMeta,
|
PluginMeta,
|
||||||
PluginInfo,
|
|
||||||
Plugin,
|
Plugin,
|
||||||
PluginsState,
|
PluginsState,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,20 +12,16 @@ export interface PluginInclude {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface PluginMetaInfo {
|
export interface PluginMetaInfo {
|
||||||
logos: {
|
|
||||||
large: string;
|
|
||||||
small: string;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginInfo {
|
|
||||||
author: {
|
author: {
|
||||||
name: string;
|
name: string;
|
||||||
url: string;
|
url: string;
|
||||||
};
|
};
|
||||||
description: string;
|
description: string;
|
||||||
links: string[];
|
links: string[];
|
||||||
logos: { small: string; large: string };
|
logos: {
|
||||||
|
large: string;
|
||||||
|
small: string;
|
||||||
|
};
|
||||||
screenshots: string;
|
screenshots: string;
|
||||||
updated: string;
|
updated: string;
|
||||||
version: string;
|
version: string;
|
||||||
@@ -36,7 +32,7 @@ export interface Plugin {
|
|||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
hasUpdate: boolean;
|
hasUpdate: boolean;
|
||||||
id: string;
|
id: string;
|
||||||
info: PluginInfo;
|
info: PluginMetaInfo;
|
||||||
latestVersion: string;
|
latestVersion: string;
|
||||||
name: string;
|
name: string;
|
||||||
pinned: boolean;
|
pinned: boolean;
|
||||||
|
|||||||
Reference in New Issue
Block a user