npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dc-common

v3.0.0

Published

**Steps To follow to integrate Dc-Common NPM Library:-**

Downloads

3

Readme

DC-Common NPM Library

Steps To follow to integrate Dc-Common NPM Library:-

Dc-Common NPM Library URL:-

https://www.npmjs.com/package/dc-common

  1. Install the Library:-

Install the library into your application by the command

npm i dc-common

  1. Import " HeaderFooterModule" and "overlayService" to your app.module.ts

  2. import { NgModule } from'@angular/core';

  3. import { BrowserModule } from'@angular/platform-browser';

  4. import { AppComponent } from'./app';

  5. import { HeaderFooterModule } from '../../node_modules/dc-common/src/app/headerFooter.module';

  6. import { OverlayService } from '../../node_modules/dc-common/src/app/services/verlay.service';

  7. @NgModule({

  8. imports: [BrowserModule, HeaderFooterModule],

  9. declarations: [AppComponent],

  10. bootstrap: [AppComponent],

  11. providers: [OverlayService],

  12. })

  13. exportclassAppModule {}

  14. Now let's add the component definition to our template. Edit app/app.component.html as fallows

  15. <divclass="content-fluid">

  16. <DC-Sidebar-Tab></DC-Sidebar-Tab>

  17. <main#mainWrapperclass="main_wrap">

  18. \<DC-Header-Tab\>\</DC-Header-Tab\>
  19. \<divclass="container"\>
  20.   \<router-outlet\>
  21.     \<endpoint-watcher\>\</endpoint-watcher\>
  22.   \</router-outlet\>
  23. \</div\>
  24. \<DC-Footer-Tab\>\</DC-Footer-Tab\>
  25. </main>

  26. </div>

  27. Now let's add the overlayService in the components and add the path of overlayservice pointing to node_Module and pass the Track Name, Page Name, Tab Names(optional perameter) to overlayService by the method setOverlayImage.

Eg:-

import { Component, OnInit, Output, EventEmitter, ElementRef, ViewChild,

HostListener, Input, ChangeDetectorRef , OnChanges} from'@angular/core';

//import OverlayService pointing the path to node_module

import { OverlayService } from'../../node_modules/header-footer/src/app/services/overlay.service';

@Component({

selector:'app-root',

templateUrl:'./app.component.html',

styleUrls: ['./app.component.css']

})

exportclassAppComponentimplementsOnInit {

constructor(

//to initiate the overlayService in the component add overlayService in the constructor

privateoverlayService: OverlayService,

) { }

ngOnInit() {

//pass the Track Name, Page Name, Tab Names(optional perameter) to overlayService by the method setOverlayImage

this.overlayService.setOverlayImg('Hardware', 'Home');

}

}

Parameters to be passed for DC-Header-Tab :-

Parameters Type:-

// Input Parameters from other applications

// UserId and UserName is to be passed in order to mitigate the getUserId calls

userData: any = {

userId:'anthfern',

userName:'Subba Reddy Nusum',

};

// piwikData has to be passed PiwikSite and piwikId are different for different tracts

piwikData: any = {

 piwikSite:'\*.devscui-stg.cloudapps.cisco.com',

 piwikSiteId:'10',

};

// Base Url should be passed to let library known in what environment the user is in

localHostMode: string = 'https://dc-stg1.cisco.com';

// End url has to passed by the Tracks who are using wrapper service if not default url will be used

getMenuListUrl: string = 'devscapp/dsc/getMenuList';

getHWPUserAccessUrl: string = 'devscapp/dsc/getHWPUserAccess';

notificationsUrl: string = 'devscapp/dsc/notifications1';

getSEEMAdminsUrl: string = 'getSEEMAdmins';

overlayUrl: string = 'devscapp/images/imagemap';

getTracksUrl: string = 'devscapp/sef/getReleaseRevisionTracks';

//Input parameters ends here

How to pass parameters in app.component.html for DC-Header-Tab Tag

<DC-Header-Tab[piwikData]='this.piwikData'[localHostMode]='this.localHostMode'

[getMenuListUrl]='this.getMenuListUrl'

[getHWPUserAccessUrl]='this.getHWPUserAccessUrl'

  [notificationsUrl]='this.notificationsUrl'[getSEEMAdminsUrl]='this.getSEEMAdminsUrl'[overlayUrl]='this.overlayUrl'[getTracksUrl]='this.getTracksUrl'\>\</DC-Header-Tab\>

Angular update 5-6

Angular CLI: 6.2.9 Node: 10.16.3


-- npm install @angular/[email protected] -- ng update @angular/cli (this command will automatically generate angular.json file and remove the angular-cli.json )
-- npx @angular/cli@6 update @angular/cli@6 @angular/core@6 while running the above command found Incompatible peer dependency in the @angular/material again run the below command --npx @angular/cli@6 update @angular/cli@6 @angular/core@6 so removed "@angular/material": "^8.2.3",Then All module update successfully -- npm i @angular/material -- npm i @angular/[email protected] -- npm i [email protected]

-- npm audit fix Try to deleted the package-lock.json and delete the complete node module again I did the npm install

Angular update 6-7

Angular CLI: 7.3.10 Node: 10.16.3

npm uninstall -g @angular/cli npm cache verify npm cache clean npm cache clean --force npm install -g @angular/cli@ 7.3.10 ng version *removed the rxjs-compat

  • npx @angular/cli@7 update @angular/cli@7 @angular/core@7 Not found : cisco-ui "cisco-ui": "git+http://gitlab-sjc.cisco.com/cisco-ui/pattern-library.git#v1.3.3-official", Removed the above package

Not found : @cisco-ngx/cui-components "@cisco-ngx/cui-components": "git+https://gitlab-sjc.cisco.com/anthfern/cui-components.git", Removed the above package

Package "@angular/material" has an incompatible peer dependency to "@angular/animations" (requires "^17.0.0 || ^18.0.0" (extended), would install "7.2.16"). Incompatible peer dependencies found. See above. "@angular/material": "~17.3.2", Removed the above package

Package "angular-highcharts" has an incompatible peer dependency to "@angular/core" (requires "^5.0.0" (extended), would install "7.2.16"). Incompatible peer dependencies found. See above. "angular-highcharts": "^5.2.13", Removed the above package

  • npx @angular/cli@7 update @angular/cli@7 @angular/core@7

    • Now package is updated to 7 success fully
  • now add all the above package which are removed while doing the update and add those package into package.json and delete the package-lock.json and then do Npm install

-- npm run local through error so due to rxjs-compat So re install projcet running local fine