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

plugin-cmf

v0.1.4

Published

Plugin de avaliação de vagas da Cadê meu Feedback

Downloads

1,532

Readme

CMF Plugin Installation and Usage Guide

Overview

The CMF Plugin allows you to integrate a feedback form into your website, enabling users to provide feedback on job descriptions. This guide will walk you through the installation and configuration process.

Installation

Step 1: Include the Plugin Script

Add the following script to your HTML file to include the CMF plugin:

<script src="path/to/cade-plugin.js"></script>

Step 2: Add Meta Tags

Include the following meta tags in the <head> section of your HTML to configure the plugin:

<meta name="cmf-client-secret" content="your-client-secret">
<meta name="cmf-base-url" content="your-base-url">
<meta name="cmf-foreign-id" content="your-foreign-id">
<meta name="cmf-role-title" content="your-role-title">

Step 3: Add Plugin Container

Add a container element where the plugin will be rendered:

<div id="plugin_feedback"></div>

Step 4: Initialize the Plugin

Initialize the plugin by calling the start method. Parameters are optional as the plugin will also get values from the meta tags:

<script>
   CadePlugin.start();
</script>

If you prefer, you can also pass the parameters directly:

<script> 
   CadePlugin.start('your-client-secret', 'your-base-url', 'your-foreign-id');
</script>

Usage

Meta Tags

  • cmf-client-secret: The client secret for authentication.
  • cmf-base-url: The base URL where the plugin is enabled.
  • cmf-foreign-id: An identifier for the foreign entity (e.g., job posting).
  • cmf-role-title: The title of the role/job posting.

Methods

The CMF Plugin class provides several methods to manage the feedback form and handle user interactions.

  • start(clientSecret, baseUrl, foreignId): Initializes the plugin with the provided parameters. If parameters are not provided, it will use the values from the meta tags.
  • toggle(): Toggles the visibility of the plugin form.

Example Usage

Here is a complete example of how to set up and use the CMF Plugin:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Job Feedback</title>
  <meta name="cmf-client-secret" content="your-client-secret">
  <meta name="cmf-base-url" content="your-base-url">
  <meta name="cmf-foreign-id" content="your-foreign-id">
  <meta name="cmf-role-title" content="your-role-title">
  <link rel="stylesheet" href="path/to/cade-plugin.css">
  <script src="path/to/cade-plugin.js"></script>
</head>
<body>
  <div id="plugin_feedback"></div>
  <script> CadePlugin.start(); </script>
</body>
</html>