GithubHelp home page GithubHelp logo

mboogert / dashing-mailgun Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atatus/dashing-mailgun

0.0 2.0 0.0 152 KB

Open source Mailgun widgets for the Dashing framework

Ruby 32.68% CoffeeScript 3.96% HTML 30.68% CSS 32.68%

dashing-mailgun's Introduction

Mailgun widget to Dashing

This is a Dashing widget to display the email information using the Mailgun Ruby API.

Dependencies

mailgun-ruby

Add it to dashing's gemfile:

gem 'mailgun-ruby'

And run

bundle install

Using the Mailgun widgets

To use this widget:

  1. copy mailgun.coffee, mailgun.html, and mailgun.scss into the /widgets/mailgun directory of your Dashing app. This directory does not exist in new Dashing apps, so you may have to create it.

  2. Copy the mailgun.rb file into your /jobs folder.

  3. Now copy over the mailgun.yml into the root directory of your Dashing application. Be sure to replace the following options inside of the config file with your own Mailgun information:

:api_key: "xxxxxxxxxxxxxxx"
:domain: 'Your Domain'

To include the widget in a dashboard, add the following snippet to the dashboard layout file:

<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
   <div data-id="mailgun" data-view="Mailgun" data-title="Mailgun"></div>
</li>

Customize responsive (color changing) widgets

You can customize the thresholds for the point at which the widgets change colours. This is done by changing the data-green and data-yellow attributes of the HTML you added to the dashboard above.

Any value between data-green and data-yellow will be yellow. If data-green is larger than data-yellow, then anything above data-green will be green, and anything below data-yellow will be red, and vice-versa.

dashing-mailgun's People

Contributors

fizerkhan avatar

Watchers

James Cloos avatar Marcel Boogert avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.