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

pdsb-lib

v12.0.3

Published

This library contains components and services to support SIS Angular applications at the Peel District School Board.

Downloads

58

Readme

pdsb-lib v12.0.3

v12.0.3 is compiled with Ivy and requires Angular 12 or higher.

This library contains components and services to support SIS Angular applications at the Peel District School Board.

Apps must include

  • @angular/common
  • @angular/core
  • @angular/material
  • @angular/cdk
  • @angular/flex-layout
  • @ng-idle/core
  • @ng-idle/keepalive

Classes

User

  • Returned after successful login to a parent app
  • Amongst other things, it holds the authentication token

MessageData

  • Describes the data that is passed between parent and child windows with the WindowManagerService

Components

AlertComponent

  • Simple 1, 2, or 3 button alert/confirmation dialog, based on MatDialog
  • IAlert defines the data
  • Updated to allow icon and iconColor prior to title

InactivityComponent

  • Count-down alert popup, based on MatDialog
  • Used exclusively by InactivityManagerService

PrintManagerComponent

  • The MatDialog to initialize and monitor printing to an Oracle print server
  • IPrintManagerData defines the data

Services

AppService

The AppService should be initialized by the application's main app.module to set up the API root and application version number. You can then use this service to get...

  • the API root
  • the application version number
  • the server-type we're running on (prod / dev / localhost)

AuthService

The AuthService is used to

  • Set Authorization headers for HTTP requests
  • Update the token information stored in the session storage
  • Determine if the user has a token
  • Determine if the user has a is logged in with a valid token (i.e. the token has not expired)

IFrameManagerService

The IFrameManagerService is a simple manager to open/close iFrames and handle communication between parent/child iFrames. It is used to more closely mimic Oracle Forms by opening directly on top of a parent app instead of in a child window/tab. Default settings open the iFrame at 100vw and 100vh.

PrintManagerService

The PrintManagerService works with PrintManagerComponent to handle printing to an Oracle print server

  • RxJS Subjects are used to communicate between the PrintManagerComponent and page/component that is requesting the print

RunModeService

The RunModeService is used to determine if the application is running as its own application, or if it is running as the child of another application

StorageManagerService

The StorageManagerService is a simple web storage manager to work with multiple apps under the same domain.

  • The manager will use local / session storage if available.
  • Otherwise, it will revert to using cookies.

TokenManagerService

Use the TokenManagerService to maintain a token

  • Tokens expire every 60 minutes on the Java server
  • This service refreshes tokens at 20 minute intervals to ensure it never expires (The 20 minute interval matches the inactivity timeout interval)
  • Tokens are only maintained (updated) when the app is running in standalone mode (Child windows always use the token from the parent window)

ToolsService

The ToolsService is used to display generic alerts or application error alerts. It can also be used to handle subscriber errors to return a default value

WindowManagerService

The WindowManagerService is a simple manager to open/close windows and handle communication between parent/child windows