// Copyright (C) 2021 Intel Corporation // // SPDX-License-Identifier: MIT import React from 'react'; import Text from 'antd/lib/typography/Text'; import Paragraph from 'antd/lib/typography/Paragraph'; import './styles.scss'; import CVATTooltip from 'components/common/cvat-tooltip'; interface Props { instance: 'task' | 'project' | 'cloudstorage'; children: JSX.Element; } // provider: isEnum.bind(CloudStorageProviderType), // credentialsType: isEnum.bind(CloudStorageCredentialsType), export default function SearchTooltip(props: Props): JSX.Element { const { instance, children } = props; const instances = ` ${instance}s `; return ( {instance === 'cloudstorage' ? ( displayName: Azure all {instances} where name includes the substring Azure ) : null} {instance === 'cloudstorage' ? ( description: Personal bucket all {instances} where description includes the substring Personal bucket ) : null} {instance === 'cloudstorage' ? ( resourceName: mycvatbucket all {instances} where a name of the resource includes the substring mycvatbucket ) : null} {instance === 'cloudstorage' ? ( providerType: AWS_S3_BUCKET AWS_S3_BUCKET or AZURE_CONTAINER ) : null} {instance === 'cloudstorage' ? ( credentialsType: KEY_SECRET_KEY_PAIR KEY_SECRET_KEY_PAIR or ACCOUNT_NAME_TOKEN_PAIR or ANONYMOUS_ACCESS ) : null} owner: admin all {instances} created by users who have the substring admin in their username {instance !== 'cloudstorage' ? ( assignee: employee all {instances} which are assigned to a user who has the substring admin in their username ) : null} {instance !== 'cloudstorage' ? ( name: training all {instances} with the substring training in its name ) : null} {instance === 'task' ? ( mode: annotation annotation tasks are tasks with images, interpolation tasks are tasks with videos ) : null} {instance !== 'cloudstorage' ? ( status: annotation annotation, validation, or completed ) : null} id: 5 the {` ${instance} `} with id 5 Filters can be combined (to the exclusion of id) using the keyword AND. Example: status: annotation AND owner: admin Search within all the string fields by default )} > {children} ); }