How to use harbor-ui - 4 common examples

To help you get started, we’ve selected a few harbor-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github goharbor / harbor / src / ui_ng / src / app / project / member / add-group / add-group.component.ts View on Github external
.flatMap(res => {
            operateChanges(operMessage, OperationState.success);
            return Observable.of(res);
           }); })
           .catch(error => {
github goharbor / harbor / src / ui_ng / src / app / project / member / add-group / add-group.component.ts View on Github external
.flatMap(res => {
              operateChanges(operMessage, OperationState.failure, res);
              return Observable.of(res);
            }); })
        .catch(error => Observable.of(error.status));
github goharbor / harbor / src / ui_ng / src / app / project / member / add-group / add-group.component.ts View on Github external
let GroupAdders$ = this.selectedGroups.map(group => {
      let operMessage = new OperateInfo();
      operMessage.name = 'OPERATION.ADD_GROUP';
      operMessage.data.id = group.id;
      operMessage.state = OperationState.progressing;
      operMessage.data.name = group.group_name;
      this.operationService.publishInfo(operMessage);
      return this.memberService
        .addGroupMember(this.projectId, group, this.selectedRole)
        .flatMap(response => {
           return this.translateService.get("BATCH.DELETED_SUCCESS")
           .flatMap(res => {
            operateChanges(operMessage, OperationState.success);
            return Observable.of(res);
           }); })
           .catch(error => {
            return this.translateService.get("BATCH.DELETED_FAILURE")
            .flatMap(res => {
github goharbor / harbor / src / ui_ng / src / app / project / member / add-group / add-group.component.ts View on Github external
let GroupAdders$ = this.selectedGroups.map(group => {
      let operMessage = new OperateInfo();
      operMessage.name = 'OPERATION.ADD_GROUP';
      operMessage.data.id = group.id;
      operMessage.state = OperationState.progressing;
      operMessage.data.name = group.group_name;
      this.operationService.publishInfo(operMessage);
      return this.memberService
        .addGroupMember(this.projectId, group, this.selectedRole)
        .flatMap(response => {
           return this.translateService.get("BATCH.DELETED_SUCCESS")
           .flatMap(res => {
            operateChanges(operMessage, OperationState.success);
            return Observable.of(res);
           }); })
           .catch(error => {
            return this.translateService.get("BATCH.DELETED_FAILURE")
            .flatMap(res => {
              operateChanges(operMessage, OperationState.failure, res);
              return Observable.of(res);
            }); })

harbor-ui

Harbor shared UI components based on Clarity and Angular4

Apache-2.0
Latest version published 6 years ago

Package Health Score

70 / 100
Full package analysis