Coder Social home page Coder Social logo

jdenver90 / yeogurt-dashboard-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from larsonjj/yeogurt-dashboard-example

0.0 1.0 0.0 164 KB

Example of creating a dashboard with the yeogurt generator

License: MIT License

HTML 20.27% JavaScript 16.68% CSS 63.05%

yeogurt-dashboard-example's Introduction

yeogurt-dashboard-example

An example of how to create a site dashboard within the Yeogurt generator.

NOTE: Only Jade is supported currently. Nunjucks support will be coming soon!

Usage

Copy files into a yeogurt generated project using cURL:

# Run this inside the root of your Yeogurt generated project
curl -L https://github.com/larsonjj/yeogurt-dashboard-example/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,LICENSE.md}

This will add the needed files to your project.

Data

The JSON files generated in the _data/dashboard folder will be parsed and added to your template engine (i.e. Jade). The data will look like the following:

{
  dashboard: {
    header: {
      name: 'Header',
      link: '/dashboard/modules/header.html',
      category: 'Module',
      status: 'InProgress'
    },
    index: {
      name: 'Home',
      link: '/',
      category: 'Page',
      status: 'InProgress'
    },
    statuses: [ [Object], [Object], [Object], [Object], [Object] ]
  }
}

Statuses data

You can update the available statuses and their associated text/bg colors within the _data/dashboard/statuses.json. The data looks like the following:

{
  "name": "InProgress"
  "color": "#fff",
  "bgcolor": "#94caeb"
}

License

MIT License - © Jake Larson

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.