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

@asdeporte/asdeporte-inscription-questions

v0.0.4

Published

Asdeporte inscription questions

Downloads

13

Readme

Preguntas dinamicas para usuario y generales

Recibe como parametros un arreglo de objetos ( el arreglo que ya viene en payload de inscripciones), puede ser user o general.

Ejemplo de parametros que recibe:

<Questions 
  userid={this.props.userid}
  questions={this.props.user_questions }
  questiontype='user'
  onValidateData={this.onValidateData} 
  validate={this.state.validate}  
  />

userid={this.props.userid}

Es el uuid del usuario

  "d95654c5-45eb-4a8d-bcde-79268b995f4f"

questions

Es el Arreglo que devuelve la api de incripciones dentro del objeto questions: user[] o general[],

    [
        {
          "deleted":false
          "disabled":true
          "eventid":"77bb6a87-4fb1-48ab-9a9c-240a479907d5"
          "global":false
          "placeholder":"placeholder"
          "question":"Pregunta de prueba number one. test disable"
          "questionid":"01d0b703-537b-418a-8828-48cc5952a92d"
          "range_end":null
          "range_start":null
          "range_unity":null
          "type":"text"
        },{
          "deleted":false
          "disabled":true
          "eventid":"77bb6a87-4fb1-48ab-9a9c-240a479907d5"
          "global":false
          "placeholder":"placeholder"
          "question":"Pregunta de prueba number two. test"
          "questionid":"01d0b703-537b-418a-8828-48cc5952a92d"
          "range_end":null
          "range_start":null
          "range_unity":null
          "type":"text"
        }
    ]

Los arreglos pueden ir vacios.

questiontype

El questontype es un string, puede ser 'user' o 'general' dependiendo del tipo de pregunta.

onValidateData

onValidateData es una funcion que te va a retornar dos parametros. 1.- Un arreglo de objetos n, siendo n un objeto con los campos questionid, answer y userid en caso de ser una pregunta de usuario.

    [
        {
            answer:"Opcion 2"
            questionid:"013e40f7-2ee7-4ddb-9dae-c7129f8cc63a"
            questionoptionid:"545bb1bf-edc4-49bd-9edc-a2c7315f9261"
            userid:"a49be111-2710-4bb8-b256-8452dca08cbd"
        },{
            answer:76
            questionid:"d95654c5-45eb-4a8d-bcde-79268b995f4f"
            userid:"a49be111-2710-4bb8-b256-8452dca08cbd"
        },{
            answer:91
            questionid:"d4537bd9-88da-4eb7-86f5-fd6fa1cb9931"
            userid:"a49be111-2710-4bb8-b256-8452dca08cbd"
        }
    ]

2.- False en caso de que todavia quede alguna pregunta sin responder o True en caso de que todas las preguntas esten respondidas.

validate

Se debe pasar un booleano. true para retornar la informacion en onValidateData.