import {BasicColumn} from '@jdlinker/ui';
import {FormSchema} from '@jdlinker/ui';
//列表数据
export const columns: BasicColumn[] = [
   {
    title: '名称',
    align:"center",
    dataIndex: 'name'
   },
  {
    title: '点位ID',
    align:"center",
    dataIndex: 'name'
  },
  {
    title: '数据类型',
    align:"center",
    dataIndex: 'name'
  },
  {
    title: '当前数据',
    align:"center",
    dataIndex: 'name'
  },
  {
    title: '采集状态',
    align:"center",
    dataIndex: 'name'
  },
   {
    title: '状态',
    align:"center",
    dataIndex: 'state'
   },
   // {
   //  title: '配置',
   //  align:"center",
   //  dataIndex: 'configuration'
   // },
   {
    title: '描述',
    align:"center",
    dataIndex: 'description'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
	{
      label: "名称",
      field: 'name',
      component: 'Input',
      colProps: {span: 6},
 	},
	{
      label: "状态",
      field: 'state',
      component: 'Input',
      colProps: {span: 6},
 	},
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '名称',
    field: 'name',
    component: 'Input',
  },
  {
    label: 'serverId',
    field: 'serverId',
    component: 'Input',
  },
  {
    label: 'acknowledgeTimeout',
    field: 'acknowledgeTimeout',
    component: 'Input',
  },
  {
    label: 'applicationName',
    field: 'applicationName',
    component: 'Input',
  },
  {
    label: 'applicationUri',
    field: 'applicationUri',
    component: 'Input',
  },
  {
    label: 'channelLifeTimeout',
    field: 'channelLifeTimeout',
    component: 'Input',
  },
  {
    label: 'connectTimeout',
    field: 'connectTimeout',
    component: 'Input',
  },
  {
    label: 'endpoint',
    field: 'endpoint',
    component: 'Input',
  },
  {
    label: 'keepAliveInterval',
    field: 'keepAliveInterval',
    component: 'Input',
  },
  {
    label: 'keepAliveTimeout',
    field: 'keepAliveTimeout',
    component: 'Input',
  },
  {
    label: 'productUrl',
    field: 'productUrl',
    component: 'Input',
  },
  {
    label: 'refactorEndpoint',
    field: 'refactorEndpoint',
    component: 'Input',
  },
  {
    label: 'requestTimeout',
    field: 'requestTimeout',
    component: 'Input',
  },
  {
    label: 'securityMode',
    field: 'securityMode',
    component: 'Input',
  },
  {
    label: 'securityPolicy',
    field: 'securityPolicy',
    component: 'Input',
  },
  {
    label: 'sessionTimeout',
    field: 'sessionTimeout',
    component: 'Input',
  },
  {
    label: 'username',
    field: 'username',
    component: 'Input',
  },
  {
    label: 'password',
    field: 'password',
    component: 'Input',
  },
  {
    label: 'lowerFrequencyRetryInterval',
    field: 'lowerFrequencyRetryInterval',
    component: 'Input',
  },
  {
    label: 'maxConsecutiveErrors',
    field: 'maxConsecutiveErrors',
    component: 'Input',
  },
  {
    label: 'type',
    field: 'type',
    component: 'Input',
  },
  {
    label: '描述',
    field: 'description',
    component: 'InputTextArea',
  },
	// TODO 主键隐藏字段，目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];

interface GroupItem {
  title: string;
  icon: string;
  color: string;
  desc: string;
  date: string;
  group: string;
}
export const groupItems: GroupItem[] = [
  // {
  //   title: 'Github',
  //   icon: 'carbon:logo-github',
  //   color: '',
  //   desc: '不要等待机会，而要创造机会。',
  //   group: '开源组',
  //   date: '2021-04-01',
  // },
];
