From 5e5a93d59b1a336f0ca78b1c374dd6b27fdc2242 Mon Sep 17 00:00:00 2001 From: Steven Zou Date: Mon, 5 Jun 2017 10:19:13 +0800 Subject: [PATCH] Add more usage info to readme --- src/ui_ng/lib/README.md | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/src/ui_ng/lib/README.md b/src/ui_ng/lib/README.md index 338a2c87e..e3228faa4 100644 --- a/src/ui_ng/lib/README.md +++ b/src/ui_ng/lib/README.md @@ -46,7 +46,40 @@ import { HarborLibraryModule } from 'harbor-ui'; export class AppModule { } ``` -If no parameters are passed to **'forRoot'**, the module will be initialized with default configurations. If re-configuration required, please refer the **Configurations** parts. +If no parameters are passed to **'forRoot'**, the module will be initialized with default configurations. If re-configuration required, please refer the **'Configurations'** parts. + +**Enable components via tags** + +* **Registry log view** +``` +//No @Input properties + + +``` + +* **Replication Management View** +``` + +``` + +* **Endpoint Management View** +``` + +``` + +* **Repository and Tag Management View** +``` +/* +export interface SessionInfo { + withNotary?: boolean; + hasProjectAdminRole?: boolean; + hasSignedIn?: boolean; + registryUrl?: string; +} +*/ + + +``` ## Configurations All the related configurations are defined in the **HarborModuleConfig** interface. @@ -86,7 +119,7 @@ It supports partially overriding. For the items not overridden, default values w * **replicationJobEndpoint:** The base endpoint of the service used to handle the replication jobs. Default is "/api/jobs/replication". * **langCookieKey:** The cookie key used to store the current used language preference. Default is "harbor-lang". * **supportedLangs:** Declare what languages are supported. Default is ['en-us', 'zh-cn', 'es-es']. -* **enablei18Support:** To determine whether to not enable the i18 multiple languages supporting. Default is false. +* **enablei18Support:** To determine whether or not to enable the i18 multiple languages supporting. Default is false. **2. errorHandler** UI components in the library use this interface to pass the errors/warnings/infos/logs to the top component or page. The top component or page can display those information in their message panel or notification system.