Skip to content

Commit

Permalink
Trying to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Dec 11, 2024
1 parent 235a035 commit 8c052f0
Showing 1 changed file with 48 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,60 @@ import { checkCondition, type CompactInstanceInfo } from '@/dialogs/AdapterUpdat

import AddInstanceDialog, { type AdapterDependencies } from '@/dialogs/AddInstanceDialog';
import LicenseDialog from '@/dialogs/LicenseDialog';
import type { AdapterInformation } from '@iobroker/js-controller-common-db/build/esm/lib/common/tools';
// import type { AdapterInformation } from '@iobroker/js-controller-common-db/build/esm/lib/common/tools';
import type InstancesWorker from '@/Workers/InstancesWorker';
import type HostsWorker from '@/Workers/HostsWorker';
import type { RatingDialogRepository } from '@/dialogs/RatingDialog';
import type HostAdapterWorker from '@/Workers/HostAdapterWorker';
import { extractUrlLink, type RepoAdapterObject } from './Utils';

// TODO: Placed here from @iobroker/js-controller-common-db/build/esm/lib/common/tools
interface Multilingual {
en: string;
de?: string;
ru?: string;
pt?: string;
nl?: string;
fr?: string;
it?: string;
es?: string;
pl?: string;
uk?: string;
'zh-cn'?: string;
}

// TODO: Placed here from @iobroker/js-controller-common-db/build/esm/lib/common/tools
export interface AdapterInformation {
/** this flag is only true for the js-controller */
controller: boolean;
/** adapter version */
version: string;
/** path to icon of the adapter */
icon: string;
/** path to local icon of the adapter */
localIcon?: string;
/** title of the adapter */
title: string;
/** title of the adapter in multiple languages */
titleLang: Multilingual;
/** description of the adapter in multiple languages */
desc: Multilingual;
/** platform of the adapter */
platform: 'Javascript/Node.js';
/** keywords of the adapter */
keywords: string[];
/** path to readme file */
readme: string;
/** The installed adapter version, not existing on controller */
runningVersion?: string;
/** type of the adapter */
type: string;
/** license of the adapter */
license: string;
/** url to license information */
licenseUrl?: string;
}

export type AdapterRating = {
rating?: { r: number; c: number };
[version: string]: { r: number; c: number };
Expand Down

0 comments on commit 8c052f0

Please sign in to comment.