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

arquitetura

v14.8.7

Published

Arquitetura frontend de sistemas em angular da Universidade Federal de Goiás.

Downloads

25

Readme

Arquitetura Angular na UFG

Arquitetura frontend de sistemas em angular da Universidade Federal de Goiás.

Arquitetura

Este projeto é uma biblioteca de componentes com design e métodos reutilizaveis de front-end em Angular.

Instalação

Instale o pacote arquitetura via npm:

$ npm i arquitetura

Este projeto possui algumas dependencias, hammerjs, flex-layout, material angular e uma biblioteca de breadcrumbs. Para isso, instale estas dependências.

ng-breadcrumbs-go

npm i ng-breadcrumbs-go

@angular/material

ng add @angular/material

hammerjs

npm i hammerjs

@angular/flex-layout

npm i @angular/flex-layout

Configuração

Importe o módulo da arquitetura no app.module.ts:

import { ArquiteturaModule } from 'arquitetura';

Declare o uso do módulo, passando como parâmetro o arquivo de environment:

ArquiteturaModule.forRoot(environment)

Adicione o componente lib-arquitetura no arquivo app.component.html:

<lib-arquitetura 
  *ngIf="usuario"
  [dadosSistema]="dadosSistema"
  [menuPessoal]="menuPessoal"
  [sistema]="sistema"
  [perfilPadrao]="perfilPadrao"
  [usuario]="usuario">
</lib-arquitetura>

Atributos

| Atributo | Descrição | Tipo | |---------------|------------------------------------------------------------------|-------------| | dadosSistema | Dados gerais do sistema (Nome, dados de rodapé) | DadosSistema| | menuPessoal | Menu de configurações do usuário logado (Menu superior direito) | MenuPessoal | | usuario | Dados do usuário logado (Nome, login, codigos) | string | | sistema | Código do sistema no SAS | string | | perfilPadrao | Perfil padrão do sistema no SAS | string |

Perceba que existem atributos obrigatórios para montar o layout padrão, um exemplo dos atributos no app-component.ts abaixo:

dadosSistema = new DadosSistema(
    'Sistema',
    environment.app_url,
    new DadosRodape(
      '<URL SVG DA LOGO>', // Arquivo da logo
      '<URL DA LOGO SELECIONAVEL>', //URL do sistema ou site da logo
      [
        '<PRIMEIRA LINHA RODAPE>',
        '<SEGUNDA LINHA RODAPE>',
        '<TERCEIRA LINHA RODAPE>'
      ],
      ['+55 (62) 3521-1000', '[email protected]']
    )
  );
  usuario!: Usuario;
  menuPessoal: MenuPessoal[] = [];
  sistema = 'CRACHA-2.0';
  perfilPadrao = 'CRACHA_DEFAULT';


  ngOnInit() {
    this.usuario = new Usuario('<LOGIN DO USUARIO>', undefined, '<NOME DO USUARIO>');

    this.menuPessoal.push(new MenuPessoal('Perfil', MenuPessoal.ICON_MATERIAL, '/#/'));
    this.menuPessoal.push(new MenuPessoal('Configurações',MenuPessoal.ICON_MATERIAL, '/#/'));
    this.menuPessoal.push(new MenuPessoal('Sair', MenuPessoal.ICON_MATERIAL, '/#/'));
  }

Arquivos Estaticos

Importar arquivos estaticos no angular.json:

"styles": [
  "./node_modules/arquitetura/style/_styles.scss",
  "./node_modules/arquitetura/style/themes.scss",
  .
  .
  .
],

Pipes

Pipes

Services

Services

Componentes

Snackbar

Fonte de Dados

Modal Detalhes

Alerta

Tabela

Tabela customizável

Legenda

Badge

Author

👤 Ricardo Borges