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

cdx-library

v0.5.7

Published

Angular library for reusable components

Downloads

64

Readme

CdxLibrary

This library contains modules and components to develop in a easy way Angular WebApps.

Installation

> npm install cdx-library --save

Structure

This project aims to provide a modern and useful conventions to improve the development time and quality, according to the main design patterns.

  • Dependency Injection - Provide and inject services in other classes.
  • MVVM - The MVVM model supports two-way data binding between View and ViewModel.
  • RxJS - Event driven programming using the Observable pattern.
  • Lazy-Loading - Dynamically import modules and resources from the network, on-demand.

The project has two main folders:

  • core - in which there are services, pipes, models and the base structure to injects these classes.
  • modules - in which there are components (HTML/SCSS/TS), modules and relative routing modules.

Services

AuthService

AuthService provides an interface to the main methods for the users' authentication.

ChangelogService

ChangelogService provides an overridable service to get the app's changelog.

ConfigService

ConfigService provides the AppConfig interface injection.

CrudService

CrudService provides useful methods to do CRUD operations.

ItemsService

ItemsPipe transforms various object into a wrapper/generic one.

StorageService

StorageService provides the interface to do CRUD operations with a storage.

UIService

UIService provides routes, light/dark theme, show/hide menus controllers.

Modules

AppContainer

AppContainer is the substitute of the default AppComponent. It allows to update the whole app style in combination with the UIService.

AppVersion

Image

AppVersion is a simple dialog with the new app version and link to the changelog route module.

Authentication

Image

AuthenticationModule is a complete module with configurable providers and service to allows user to sign-up and sign-in to the application.

Changelog

Image

ChangelogModule is a complete module where the app's changelog is shown.

ConfirmationDialog

Image

ConfirmationDialog is a simple dialog with a title and message to show and action buttons.

DragDrop

Image

DragDrop is a component useful to upload file of various genres, as images, music, etc. You can drag & drop files or add by clicking.

DrawerContainer

Image

DrawerContainerModule is a container in which you can show your lazy-modules (or directly components) inside the available router-outlet. You can specify the drawer's style, the items to show and use a right-drawer for other operations.

DynamicForm

Image

DynamicForm is a powerful module whence to build a form only specifying types, constraints, label and key from .ts, without any HTML. Furthemore you can override styling.

Footer

Image

Footer is a simple component to put on the bottom of the page. You can set the items to show and their relative routing.

FooterCopyright

Image

Footer is a simple component for display copyright.

ItemsList

NamePhotos

PageContainer

Image

PageContainer is a composite component in which there are Footer, FooterCopyright and you can specify the page content as you want.

PhotoCard

SaveButton

Image

SaveButton is a simple material button with a state (disabled, enabled, loading) and a subject to change it.

SelectableCard

ThemeSwitch

Image

ThemeSwitch is a simple component useful to change the app theme between light and dark.