PROEDITOR-7: Cloned the Library Manager layout.

To match with the official Arduino editor's UI.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2019-07-17 10:32:28 +02:00
parent cf44fe2ad0
commit 8d838fcce4
19 changed files with 426 additions and 138 deletions

View File

@@ -3,10 +3,18 @@ import { ArduinoComponent } from "./arduino-component";
export const LibraryServicePath = '/services/library-service';
export const LibraryService = Symbol('LibraryService');
export interface LibraryService {
search(options: { query?: string }): Promise<{ items: Library[] }>;
search(options: { query?: string, props?: LibraryService.Search.Props }): Promise<{ items: Library[] }>;
install(library: Library): Promise<void>;
}
export namespace LibraryService {
export namespace Search {
export interface Props {
[key: string]: string | undefined;
}
}
}
export interface Library extends ArduinoComponent {
readonly builtIn?: boolean;
}