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

ty-feedback-library

v1.2.1

Published

Simple feedback library for web applications.

Downloads

12

Readme

ty-feedback-library

🧪 Live Demo Application

npm

Easily integrate feedbaack modal for your websites.

Features

  • Easy installation with package managers
  • Simple integration
  • Multi-language support
  • Customization options
  • Low bundle size

Get started

with CDN

Install ty-feedback-library using NPM or Yarn

with NPM
npm i ty-feedback-library
with Yarn
yarn add ty-feedback-library

That's enough for use! Then you can call it like this in your project.

import {FeedbackContainer} from 'ty-feedback-library'

...
<FeedbackContainer sheetId={"sheet"} token={"123"}/>

🚨 How do I get a Sheet ID?

sheetid

  • Open the Google Sheets you want to save.
  • Select "Anyone with the link" via the "Share" button and update the authorization to "Editor".
  • Save Sheet ID from URL.

Example URL: docs.google.com/spreadsheets/d/2rGDgYHzDnoDNnoJzyw4HyKXJSqIbhqDj2vRob8O9Q-U/edit#gid=0

According to this URL's Sheet ID: 2rGDgYHzDnoDNnoJzyw4HyKXJSqIbhqDj2vRob8O9Q-U

🚨 How do I get a Access Token?

acccesstoken

  • Go to this link: https://developers.google.com/oauthplayground/
  • Find the "Google Sheets API v4" service
  • Select the ".../auth/spreadsheets" service and click on the "Authorize APIs" button
  • After selecting your user and continuing, under the heading "Step 2 Exchange authorization code for tokens" click on the "Exchange authorization code for tokens" button and you will be able to access the Access token.

Props for ty-feedback-library Component

| Property | Type | Is Required | Default Value | |--------------------------------|---------------------------|-------------|----------------------------------------------------------| | sheetId | string | required | - | | token | string | required | - | | language | string ('en', 'tr', 'de') | optional | detect browser's language
| modalTitleAlignment | 'left', 'center', 'right' | optional | 'center'
| modalTitleValue | string | optional | 'Send us your feedback!'
| modalTitleClassName | string | optional | -
| modalFeedbackPlaceholder | string | optional | 'Describe your experience here.'
| modalFeedbackZIndex | number | optional | 1
| modalFeedbackDefaultValue | string | optional | -
| modalFeedbackClassName | string | optional | -
| modalFeedbackSuccessMessage | string | optional | 'We have got your feedback!'
| modalFeedbackFailedMessage | string | optional | 'We encountered a problem while receiving your feedback' | modalFeedbackSubmitButtonValue | string | optional | 'Send'

The default value table is written according to the English language. In case of TR or DE, the translations of that language appear. If a language other than these is sent to the language parameter, it is written according to the EN language.