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

darwin-zone-recherche

v1.0.0

Published

Il s'agit d'un composant 'react' faisant partie d'un ensemble d'outils réalisés dans le cadre du projet Darwin. Cet outil permet de rechercher et lancer les applications auxquelles l'utilisateur a accès. ## Contenu Feuilles CSS : darwinautosuggest

Downloads

7

Readme

DarwinZoneRecherche

Il s'agit d'un composant 'react' faisant partie d'un ensemble d'outils réalisés dans le cadre du projet Darwin. Cet outil permet de rechercher et lancer les applications auxquelles l'utilisateur a accès.

Contenu

Feuilles CSS :  darwinautosuggest.css (faisant référence à autosuggest-static.css ou autosuggest-animation.css) 
Javascript :    darwinautosuggest.js 
images :        magnifying-glass-24x24.png, app-icon-default.png 

Intégration

  1. Copier le répertoire du composant 'darwinzonerecherche' dans le projet cible
  2. Dans le formulaire cible :
    • ajouter les imports des bibliothèques darwin (DarwinLauncher et DarwinCatalogueClient)
    • placer la balise 'DarwinZoneRecherche' dans le corps de la fonction render() du formulaire (voir copie d'écran ci-dessous)
  3. Ajouter les livrables des modules DarwinLauncher et DarwinCatalogueClient, dans le fichier package.json du projet

Exemple d'intégration avec MADERE :

ecran-xxx.model.js

import { DarwinLauncher } from './darwin-launcher-1.0.0.es6.js';
import { DarwinCatalogueClient } from './darwin-catalogue-client-1.0.0.es6.js';
...
class TFxxxModel extends TFormSModel {
 /*=================== Darwin ==================*/
  darwinCatalogueClient = new DarwinCatalogueClient( { catalogRootURL: API_CATALOG_URL })
  darwinLauncher = new DarwinLauncher(this.darwinCatalogueClient); 
/*=============================================*/
...
}

ecran-xxx.jsx

  /**
  * Rendu de la page
  */
  render() {
    return (
      <TMGrille {...this.model.grille} header="REN - MISSIONNEMENT ENTREPRISE PARTENAIRE">
        <DarwinZoneRecherche darwinLauncher={this.model.darwinLauncher}
                           darwinApiCatalogClient={this.model.darwinCatalogueClient} 
                           displayLimit={DISPLAY_LIMIT} 
                           renderThresholdValue={RENDER_THRESHOLD_VALUE} />
        <TMRow>
        ...
    );
  }

Les propriétés suivantes doivent être valorisées :

  • darwinLauncher    : la fonction 'darwin' qui permet de lancer une application
  • darwinApiCatalogclient  : une instance de darwin-apicatalog-client
  • displayLimit           : le nombre maxi de lignes affichées lors de la recherche.
  • renderThresholdValue : le nombre de caractères saisis au delà duquel les éléments trouvés sont affichés

Pré-requis :

Dans le formulaire cible :
1. fournir l'url du endpoint de l'api catalogue (ex : 'http://<host>:<port>/postetravail/gestionnaires/v1/tenants/TCOR')
2. instancier darwiCatalogueClient et darwinLauncher comme suit : 
     darwinCatalogueClient = new DarwinCatalogueClient({ catalogRootURL: 'http://sl900311:5083/postetravail/gestionnaires/v1/tenants/TCOR'});
     darwinLauncher = new DarwinLauncher(this.darwinCatalogueClient);