fixed dependencies

This commit is contained in:
Dorian Zedler 2019-07-11 14:53:18 +02:00
parent 6f75f34c1b
commit c0d09749f6
6 changed files with 370 additions and 283 deletions

View file

@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}

7
css/bootstap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -1,279 +1,289 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Jekyll v3.8.5">
<title>Dashboard Template · Bootstrap</title>
<link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/dashboard/"> <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Jekyll v3.8.5">
<title>Dashboard Template · Bootstrap</title>
<!-- Bootstrap core CSS --> <link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/dashboard/">
<link href="/docs/4.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style> <style>
.bd-placeholder-img { .bd-placeholder-img {
font-size: 1.125rem; font-size: 1.125rem;
text-anchor: middle; text-anchor: middle;
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
} }
}
</style>
<!-- Custom styles for this template -->
<link href="css/dashboard.css" rel="stylesheet">
</head>
@media (min-width: 768px) { <body>
.bd-placeholder-img-lg { <nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
font-size: 3.5rem; <a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">Company name</a>
} <input class="form-control form-control-dark w-100" type="text" placeholder="Search" aria-label="Search">
} <ul class="navbar-nav px-3">
</style> <li class="nav-item text-nowrap">
<!-- Custom styles for this template --> <a class="nav-link" href="#">Sign out</a>
<link href="dashboard.css" rel="stylesheet"> </li>
</head> </ul>
<body> </nav>
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">Company name</a>
<input class="form-control form-control-dark w-100" type="text" placeholder="Search" aria-label="Search">
<ul class="navbar-nav px-3">
<li class="nav-item text-nowrap">
<a class="nav-link" href="#">Sign out</a>
</li>
</ul>
</nav>
<div class="container-fluid"> <div class="container-fluid">
<div class="row"> <div class="row">
<nav class="col-md-2 d-none d-md-block bg-light sidebar"> <nav class="col-md-2 d-none d-md-block bg-light sidebar">
<div class="sidebar-sticky"> <div class="sidebar-sticky">
<ul class="nav flex-column"> <ul class="nav flex-column">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link active" href="#"> <a class="nav-link active" href="#">
<span data-feather="home"></span> <span data-feather="home"></span>
Dashboard <span class="sr-only">(current)</span> Dashboard <span class="sr-only">(current)</span>
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#"> <a class="nav-link" href="#">
<span data-feather="file"></span> <span data-feather="file"></span>
Orders Orders
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#"> <a class="nav-link" href="#">
<span data-feather="shopping-cart"></span> <span data-feather="shopping-cart"></span>
Products Products
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#"> <a class="nav-link" href="#">
<span data-feather="users"></span> <span data-feather="users"></span>
Customers Customers
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#"> <a class="nav-link" href="#">
<span data-feather="bar-chart-2"></span> <span data-feather="bar-chart-2"></span>
Reports Reports
</a> </a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link" href="#"> <a class="nav-link" href="#">
<span data-feather="layers"></span> <span data-feather="layers"></span>
Integrations Integrations
</a> </a>
</li> </li>
</ul> </ul>
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"> <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
<span>Saved reports</span> <span>Saved reports</span>
<a class="d-flex align-items-center text-muted" href="#"> <a class="d-flex align-items-center text-muted" href="#">
<span data-feather="plus-circle"></span> <span data-feather="plus-circle"></span>
</a>
</h6>
<ul class="nav flex-column mb-2">
<li class="nav-item">
<a class="nav-link" href="#">
<span data-feather="file-text"></span>
Current month
</a> </a>
</li> </h6>
<li class="nav-item"> <ul class="nav flex-column mb-2">
<a class="nav-link" href="#"> <li class="nav-item">
<span data-feather="file-text"></span> <a class="nav-link" href="#">
Last quarter <span data-feather="file-text"></span>
</a> Current month
</li> </a>
<li class="nav-item"> </li>
<a class="nav-link" href="#"> <li class="nav-item">
<span data-feather="file-text"></span> <a class="nav-link" href="#">
Social engagement <span data-feather="file-text"></span>
</a> Last quarter
</li> </a>
<li class="nav-item"> </li>
<a class="nav-link" href="#"> <li class="nav-item">
<span data-feather="file-text"></span> <a class="nav-link" href="#">
Year-end sale <span data-feather="file-text"></span>
</a> Social engagement
</li> </a>
</ul> </li>
</div> <li class="nav-item">
</nav> <a class="nav-link" href="#">
<span data-feather="file-text"></span>
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4"> Year-end sale
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> </a>
<h1 class="h2">Dashboard</h1> </li>
<div class="btn-toolbar mb-2 mb-md-0"> </ul>
<div class="btn-group mr-2">
<button type="button" class="btn btn-sm btn-outline-secondary">Share</button>
<button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
</div>
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle">
<span data-feather="calendar"></span>
This week
</button>
</div> </div>
</div> </nav>
<canvas class="my-4 w-100" id="myChart" width="900" height="380"></canvas> <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
<div
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Dashboard</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group mr-2">
<button type="button" class="btn btn-sm btn-outline-secondary">Share</button>
<button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
</div>
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle">
<span data-feather="calendar"></span>
This week
</button>
</div>
</div>
<h2>Section title</h2> <canvas class="my-4 w-100" id="myChart" width="900" height="380"></canvas>
<div class="table-responsive">
<table class="table table-striped table-sm"> <h2>Section title</h2>
<thead> <div class="table-responsive">
<tr> <table class="table table-striped table-sm">
<th>#</th> <thead>
<th>Header</th> <tr>
<th>Header</th> <th>#</th>
<th>Header</th> <th>Header</th>
<th>Header</th> <th>Header</th>
</tr> <th>Header</th>
</thead> <th>Header</th>
<tbody> </tr>
<tr> </thead>
<td>1,001</td> <tbody>
<td>Lorem</td> <tr>
<td>ipsum</td> <td>1,001</td>
<td>dolor</td> <td>Lorem</td>
<td>sit</td> <td>ipsum</td>
</tr> <td>dolor</td>
<tr> <td>sit</td>
<td>1,002</td> </tr>
<td>amet</td> <tr>
<td>consectetur</td> <td>1,002</td>
<td>adipiscing</td> <td>amet</td>
<td>elit</td> <td>consectetur</td>
</tr> <td>adipiscing</td>
<tr> <td>elit</td>
<td>1,003</td> </tr>
<td>Integer</td> <tr>
<td>nec</td> <td>1,003</td>
<td>odio</td> <td>Integer</td>
<td>Praesent</td> <td>nec</td>
</tr> <td>odio</td>
<tr> <td>Praesent</td>
<td>1,003</td> </tr>
<td>libero</td> <tr>
<td>Sed</td> <td>1,003</td>
<td>cursus</td> <td>libero</td>
<td>ante</td> <td>Sed</td>
</tr> <td>cursus</td>
<tr> <td>ante</td>
<td>1,004</td> </tr>
<td>dapibus</td> <tr>
<td>diam</td> <td>1,004</td>
<td>Sed</td> <td>dapibus</td>
<td>nisi</td> <td>diam</td>
</tr> <td>Sed</td>
<tr> <td>nisi</td>
<td>1,005</td> </tr>
<td>Nulla</td> <tr>
<td>quis</td> <td>1,005</td>
<td>sem</td> <td>Nulla</td>
<td>at</td> <td>quis</td>
</tr> <td>sem</td>
<tr> <td>at</td>
<td>1,006</td> </tr>
<td>nibh</td> <tr>
<td>elementum</td> <td>1,006</td>
<td>imperdiet</td> <td>nibh</td>
<td>Duis</td> <td>elementum</td>
</tr> <td>imperdiet</td>
<tr> <td>Duis</td>
<td>1,007</td> </tr>
<td>sagittis</td> <tr>
<td>ipsum</td> <td>1,007</td>
<td>Praesent</td> <td>sagittis</td>
<td>mauris</td> <td>ipsum</td>
</tr> <td>Praesent</td>
<tr> <td>mauris</td>
<td>1,008</td> </tr>
<td>Fusce</td> <tr>
<td>nec</td> <td>1,008</td>
<td>tellus</td> <td>Fusce</td>
<td>sed</td> <td>nec</td>
</tr> <td>tellus</td>
<tr> <td>sed</td>
<td>1,009</td> </tr>
<td>augue</td> <tr>
<td>semper</td> <td>1,009</td>
<td>porta</td> <td>augue</td>
<td>Mauris</td> <td>semper</td>
</tr> <td>porta</td>
<tr> <td>Mauris</td>
<td>1,010</td> </tr>
<td>massa</td> <tr>
<td>Vestibulum</td> <td>1,010</td>
<td>lacinia</td> <td>massa</td>
<td>arcu</td> <td>Vestibulum</td>
</tr> <td>lacinia</td>
<tr> <td>arcu</td>
<td>1,011</td> </tr>
<td>eget</td> <tr>
<td>nulla</td> <td>1,011</td>
<td>Class</td> <td>eget</td>
<td>aptent</td> <td>nulla</td>
</tr> <td>Class</td>
<tr> <td>aptent</td>
<td>1,012</td> </tr>
<td>taciti</td> <tr>
<td>sociosqu</td> <td>1,012</td>
<td>ad</td> <td>taciti</td>
<td>litora</td> <td>sociosqu</td>
</tr> <td>ad</td>
<tr> <td>litora</td>
<td>1,013</td> </tr>
<td>torquent</td> <tr>
<td>per</td> <td>1,013</td>
<td>conubia</td> <td>torquent</td>
<td>nostra</td> <td>per</td>
</tr> <td>conubia</td>
<tr> <td>nostra</td>
<td>1,014</td> </tr>
<td>per</td> <tr>
<td>inceptos</td> <td>1,014</td>
<td>himenaeos</td> <td>per</td>
<td>Curabitur</td> <td>inceptos</td>
</tr> <td>himenaeos</td>
<tr> <td>Curabitur</td>
<td>1,015</td> </tr>
<td>sodales</td> <tr>
<td>ligula</td> <td>1,015</td>
<td>in</td> <td>sodales</td>
<td>libero</td> <td>ligula</td>
</tr> <td>in</td>
</tbody> <td>libero</td>
</table> </tr>
</div> </tbody>
</main> </table>
</div>
</main>
</div>
</div> </div>
</div> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
<script>window.jQuery || document.write('<script src="/docs/4.3/assets/js/vendor/jquery-slim.min.js"><\/script>')</script><script src="/docs/4.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-xrRywqdh3PHs8keKZN+8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o" crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/feather-icons/4.9.0/feather.min.js"></script> <script>window.jQuery || document.write('<script src="/docs/4.3/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js"></script> <script src="/docs/4.3/dist/js/bootstrap.bundle.min.js"
<script src="dashboard.js"></script></body> integrity="sha384-xrRywqdh3PHs8keKZN+8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o"
</html> crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/feather-icons/4.9.0/feather.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js"></script>
<script src="js/dashboard.js"></script>
</body>
</html>

View file

@ -1,29 +1,37 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS --> <head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Hello, world!</title> <!-- Bootstrap CSS -->
</head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body> <body>
<h1>Hello, world!</h1> <h1>Hello, world!</h1>
<!-- Optional JavaScript --> <!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS --> <!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<div class="alert alert-primary" role="alert"> <div class="alert alert-primary" role="alert">
A simple primary alert—check it out! A simple primary alert—check it out!
</div> </div>

54
js/dashboard.js Normal file
View file

@ -0,0 +1,54 @@
/* globals Chart:false, feather:false */
(function () {
'use strict'
feather.replace()
// Graphs
var ctx = document.getElementById('myChart')
// eslint-disable-next-line no-unused-vars
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: [
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday'
],
datasets: [{
data: [
15339,
21345,
18483,
24003,
23489,
24092,
12034
],
lineTension: 0,
backgroundColor: 'transparent',
borderColor: '#007bff',
borderWidth: 4,
pointBackgroundColor: '#007bff'
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: false
}
}]
},
legend: {
display: false
}
}
})
}())