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

graph-ticket-sla

v0.0.1

Published

Componente que genera una gráfica donde se indican los tickets; dependiendo de estados.

Downloads

5

Readme

TicketSLA

Descripción

Componente que genera una gráfica donde se indican los tickets; dependiendo de estados.

graph-ticket-sla

Versiones

Este proyecto fue generado con Angular CLI version 6.0.8.

Instalación

La descarga de las librerias se hace directamente en el Nexus Axity: http://devtools.axity.com/nexus3/repository/npm-group/

Con las siguientes instrucciones:

  • npm adduser --registry http://devtools.axity.com/nexus3/repository/npm-group/ (Ingresar credenciales Active Directory)
  • npm install three-steps-selector --registry http://devtools.axity.com/nexus3/repository/npm-group/ --save

Para no tener que colocar el registry en cada ocasión, solo agregar un archivo llamado: .npmrc al nivel de donde se encuentre el archivo package.json, con el siguiente contenido:

# add the URL of the repository
registry = http://devtools.axity.com/nexus3/repository/npm-group/

Esto permite ejecutar los comandos que comunmente utilizamos: npm install, pero apuntando al repositorio nexus de Axity.

El repositorio Nexus de Axity descarga librerias internas y tambien las publicas de repositorio de npm.

Agregar al modulo principal de Angular

import { GraphTicketSlaModule } from 'graph-ticket-sla';
@NgModule({
  imports: [
    ...,
    GraphTicketSlaModule
  ],
})
export class AppModule { }

Como usar

<axy-graph-ticket-sla
  title="Incidentes SLA desde librería"
  [dataBehaviourSubject]="dataBehaviourSubjectTicketSLA"
  [graphDimensions]="dimensionsSLA"
></axy-graph-ticket-sla>

El componente se autoajusta al contenedor donde se coloque, por lo que es necesario colocar el componente dentro de un elemento contenedor como el ejemplo. La propiedad 'graphDimensions', es para ajustar el tamaño de la gráfica. Se le debe de pasar un objeto con la siguiente estructura.

const dimensionsSLA = {
  height: 300,
  width: "100%"
};

El dato que reciba el dataBehaviourSubject, será con esta estructura. A través del BehaviorSubject, con su método next(), se hará el envío de la información.

const exampleTicketSLA = {
  body: [
    {
      slalevel: [
        {
          total: 6,
          totalnok: 0,
          sla: 100.0,
          slanok: 0.0
        }
      ],
      prioridadall: [
        {
          tipo: 0,
          slacantidad: 6
        }
      ],
      prioridadeachone: [
        {
          tipo: "4",
          label: "Baja",
          ocurrencias: 1,
          total: 6,
          data: [
            {
              slalevel: 0,
              slacantidad: 6
            }
          ]
        }
      ]
    }
  ],
  message: "Success",
  status: "200"
};

// Envío de información desde el padre al componente.
dataBehaviourSubjectTicketSLA.next(exampleTicketSLA);

graph-ticket-sla-exp

Contribuciones

Mediante pull-request se evaluan los cambios a componentes, mas información: [email protected]

Axity

Axity logo