• Stars
    star
    824
  • Rank 55,348 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

❄ A multi theme, completely accessible, ready for production dashboard.

Windmill Dashboard React
Four 100 scores and PWA ready. Just connect your data.

🚀 See it live

This is not a template. This is a complete application, built on top of React, with all tiny details taken care of so you just need to bring the data to feed it.

Accessibility is a priority in my projects and I think it should be in yours too, so this was developed listening to real screen readers, focus traps and keyboard navigation are available everywhere.

📦 Features

  • 🦮 Throughly accessible (developed using screen readers)
  • 🌗 Dark theme enabled (load even different images based on theme)
  • 🧩 Multiple (custom) components
  • ⚡ Code splitting
  • Tailwind CSS
  • Windmill React UI
  • React Router
  • Heroicons
  • Chart.js
  • PWA delivering offline-first and app-like experience

📚 Docs

General components

Windmill Dashboard React is built on top of Windmill React UI. You will find the documentation for every small component there.

Routing

Routes in Windmill Dashboard are separated into two categories, sidebar (routes/sidebar.js) and general (routes/index.js).

Sidebar routes

These are the routes that will show in the sidebar. They expect three properties:

  • path: the destination;
  • name: the name to be shown;
  • icon: an icon to illustrate the item

Item that are used as dropdowns, like the Pages option, don't need a path, but expect a routes array of objects with path and name:

// sidebar.js
{
  path: '/app/tables',
  icon: 'TablesIcon',
  name: 'Tables',
},
{
  icon: 'PagesIcon', // <-- this is used as a submenu, so no path
  name: 'Pages',
  routes: [
    // submenu
    {
      path: '/login',
      name: 'Login', // <-- these don't have icons
    },
    {
      path: '/create-account',
      name: 'Create account',
    },

General (Router) routes

These are internal (private) routes. They will be rendered inside the app, using the default containers/Layout.

If you want to add a route to, let's say, a landing page, you should add it to the App's router (src/App.js, exactly like Login, CreateAccount and other pages are routed.

How to add a new page to router?

  1. Create your page inside src/pages, say MyPage.js;
  2. Add it to the global router (src/routes/index.js)
const MyPage = lazy(() => import('../pages/MyPage'))

Then add it to the routes array:

{
  path: '/my-page', // the url that will be added to /app/
  component: MyPage, // the page component you jsut imported
}
  1. If you want to make this page accessible from the sidebar, you have to options:
  • add it to the root routes array
{
  path: '/app/my-page', // /app + the url you added in routes/index.js
  icon: 'HomeIcon', // the component being exported from src/icons/index.js
  name: 'My Page', // name that appear in Sidebar
},
  • add it as an option under a dropdown
{
  icon: 'PagesIcon',
  name: 'Pages',
  routes: [
    // submenu
    {
      path: '/app/my-page',
      name: 'My Page',
    },

If you're asking where does this /app come from, it is from this line inside src/App.js, that renders the app:

<Route path="/app" component={Layout} />

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

More Repositories

1

windmill-dashboard

📊 A multi theme, completely accessible, ready for production dashboard.
HTML
2,427
star
2

windmill-react-ui

🧩 The component library for fast and accessible development of gorgeous interfaces.
TypeScript
729
star
3

apenas-crie-websites

Algumas ideias para sites que você pode construir!
522
star
4

tailwindcss-multi-theme

🎨 The easiest way to create themes with Tailwind CSS.
JavaScript
491
star
5

sharect

🔗 A lightweight JavaScript library to let users share their text selections to social networks.
JavaScript
215
star
6

tailwind-starter-kit

📚 A library of components and learning resource for Tailwind CSS.
JavaScript
153
star
7

aprenda-html5-css3

Códigos do curso de HTML5 e CSS3.
HTML
57
star
8

aprenda-html-css

Livro Aprenda HTML e CSS. Trabalho em andamento e sem exercicios.
53
star
9

codigos-canal

Códigos usados nos vídeos do canal no YouTube
JavaScript
41
star
10

tailwindcss-dropdown

🔽 Create accessible, JavaScript free dropdowns with Tailwind CSS. See live 👉
JavaScript
22
star
11

organico

Framework Responsivo CSS em português
CSS
14
star
12

pomodoro-timer

Vue
12
star
13

front-end-quiz

A non-exausting list of questions about front-end.
10
star
14

tailwindcss-markdown

Tailwind CSS plugin to style Markdown
JavaScript
10
star
15

a-simple-cms

That's it. A really simple and easy CMS, made with Node and Mongo.
JavaScript
6
star
16

yt-terminal-basico

Comandos básicos de linha de comando.
5
star
17

brasileirao-perf-2019

Estudo sobre a performance dos sites dos 20 clubes da série A do campeonato brasileiro de 2019
5
star
18

algorithms-in-javascript

Computer Science algorithms in JavaScript
JavaScript
5
star
19

ushor

URL Shortener
JavaScript
4
star
20

sublime-shortcuts

A list of Sublime Text 3 shortcuts
4
star
21

learn-html-css

WIP translation from https://github.com/estevanmaito/aprenda-html-css
4
star
22

tailwindcss-react-ui

Build complete UIs using Tailwind CSS. WIP. See live 👉
JavaScript
4
star
23

react-gradients

JavaScript
3
star
24

tailwindcss-boilerplate

A simple Tailwind CSS boilerplate
CSS
3
star
25

windmill-ui-site

JavaScript
3
star
26

react-native-boilerplate

My personal React Native Boilerplate
TypeScript
3
star
27

billie

Visual localized accessibility hints for websites
JavaScript
3
star
28

curso

Material e site do Curso de Framework CSS
HTML
3
star
29

react-redux-shopping-cart

Work in progress
JavaScript
2
star
30

human-regex

Simple, human readable Regular Expressions for JavaScript
2
star
31

library-boilerplate

General JavaScript library boilerplate
JavaScript
2
star
32

docurin-release

Release for https://docurin.com
2
star
33

react-component-library

JavaScript
1
star
34

billie-ext

[WIP] Accessibility error detector
JavaScript
1
star
35

pomodoro

TypeScript + React version of my Pomodoro Timer
TypeScript
1
star
36

node-backend-boilerplate

Node, MongoDB, Express, Redis, Docker, Jest, Nodemailer
JavaScript
1
star
37

error-logger

JavaScript
1
star
38

old-blog

Too much to do, too much to write... the worst blog in the web
1
star
39

div-to-img

A wip playground. for now
JavaScript
1
star
40

blog

JavaScript
1
star