Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

larsonjj/yeogurt-dashboard-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Example of creating a dashboard with the yeogurt generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published