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

angularjs-bootstrap-feedback

v1.0.1

Published

User feedback form for angular with screenshot and highlighting

Downloads

2

Readme

angular-bootstrap-feedback

GitHub version Build Status

Overview

A user feedback modal with screenshot and highlighting functionality built around Angular 1.5+. (Fork from https://github.com/RobertYoung/angular-bootstrap-feedback)

Features
  • Angular component(s)
  • Modal popup
  • User can create Screenshots
  • User can highlight screenshots
  • Include custom inputs

View Demo

Requirements

  • angular - 1.5.0+
  • bootstrap - 3.3.7+
  • angular-ui-bootstrap - 2.5.0+
  • html2canvas - 1.0.0-alpha.12+

Installation

Yarn

yarn add angularjs-bootstrap-feedback 

NPM

npm install angularjs-bootstrap-feedback --save

Manual

Or, you can download source files straight from this repo, they're located in the dist folder. Just include the minified version of both .js and .css files.

  • dist/angular-bootstrap-feedback-styles.css
  • dist/angular-bootstrap-feedback.js
Or, Minified
  • dist/angular.bootstrap.feedback.min.css
  • dist/angular.bootstrap.feedback.min.js

Usage

Make sure you have the required bower_components and included them in your html page as well as the angular-bootstrap-feedback files:

1. Injection

Inject the angular.bootstrap.feedback provider into your module

    var myApp = angular.module('myApp', [
        'angular.bootstrap.feedback'
    ]);

2. Options

Create an options object on the controller. All options are optional, see below for a detailed explanation of each property.

    myApp.controller('appController', ['angularBootstrapFeedbackFactory',

    function(feedbackFactory) {
        $scope.options = {
          modalTitle: 'Feedback',
          takeScreenshotButtonText: "Take screenshot",
          submitButtonText: "Submit",
          sendFeedbackButtonText: "Send Feedback",
          cancelScreenshotOptionsButtonText: "Cancel",
          takeScreenshotOptionsButtonText: "Take Screenshot",
          takeScreenshotButtonPressed: takeScreenshotButtonPressed,
          submitButtonPressed: submitButtonPressed,
          sendFeedbackButtonPressed: sendFeedbackButtonPressed,
          cancelScreenshotOptionsButtonPressed: cancelScreenshotOptionsButtonPressed,
          takeScreenshotOptionsButtonPressed: takeScreenshotOptionsButtonPressed,
          screenshotTaken: screenshotTaken,
          highlightDrawn: highlightDrawn,
          modalDismissed: modalDismissed
        }

        function takeScreenshotButtonPressed() {}
        function submitButtonPressed(form) {}
        function sendFeedbackButtonPressed() {}
        function cancelScreenshotOptionsButtonPressed() {}
        function takeScreenshotOptionsButtonPressed() {}
        function screenshotTaken(image, canvas) {}
        function highlightDrawn(element) {}
        function modalDismissed() {}
    }]);

3. Setup HTML

The angular components are split into 2 elements:

  • angular-bootstrap-feedback
  • angular-bootstrap-feedback-screenshot

Please note, the screenshot component is not required.

    <angular-bootstrap-feedback options="options">
        <div class="row">
          <div class="col-lg-6">
            // Your custom inputs here
          </div>

          <div class="col-lg-6">
            <angular-bootstrap-feedback-screenshot></angular-bootstrap-feedback-screenshot>
          </div>
        </div>
      </angular-bootstrap-feedback>

Options

Text properties

|Property|Description|Default| |:-------------|:-----------------------|------:| |modalTitle|Sets the title of the modal|'Feedback'| |submitButtonText|Sets the submit button value of the modal|'Submit'| |takeScreenshotButtonText|Sets the button text value that is fixed to the bottom of the users screen|'Take Screenshot'| |cancelScreenshotOptionsButtonText|The screenshot options cancel button text|'Cancel'| |takeScreenshotOptionsButtonText|The screenshot options capture button text|'Take Screenshot'|

Event callbacks

|Event|Description| |:--------|:-------------| |takeScreenshotButtonPressed|Fired when the take screenshot button is pressed from the modal| |submitButtonPressed|Fired when the submit button is pressed from the modal| |sendFeedbackButtonPressed|Fired when the send feedback button is pressed| |cancelScreenshotOptionsButtonPressed|Fired when a user cancels screenshotting/highlighting| |takeScreenshotOptionsButtonPressed|Fired when the take screenshot button is pressed| |screenshotTaken|Fired when a user takes a screenshot| |highlightDrawn|Fired when the user draws a highlight square| |modalDismissed|Fired when the modal is dismissed|

Contributing

Pull requests and issues are welcome.