mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-27 09:29:22 -04:00
commit before branch switch
This commit is contained in:
@@ -1,26 +1,23 @@
|
||||
(function (window) {
|
||||
|
||||
alert('loaded');
|
||||
const ctx = document.getElementById('myChart');
|
||||
|
||||
const ctx = document.getElementById('myChart');
|
||||
|
||||
new Chart(ctx, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
|
||||
datasets: [{
|
||||
label: '# of Votes',
|
||||
data: [12, 19, 3, 5, 2, 3],
|
||||
borderWidth: 1
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
y: {
|
||||
beginAtZero: true
|
||||
}
|
||||
}
|
||||
new Chart(ctx, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
|
||||
datasets: [{
|
||||
label: '# of Votes',
|
||||
data: [12, 19, 3, 5, 2, 3],
|
||||
borderWidth: 1
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
y: {
|
||||
beginAtZero: true
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
})(window);
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
const data = {
|
||||
messageStats: {
|
||||
totalMessages: 1000,
|
||||
delivered: 820,
|
||||
pending: 80,
|
||||
delivered: 520,
|
||||
pending: 280,
|
||||
failed: 100
|
||||
},
|
||||
dailyUsage: {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<meta property="og:image" content="{{ asset_url('images/notify-og-image.png') }}">
|
||||
{% endblock %}
|
||||
<script type="text/javascript" src="{{ asset_url('js/gtm_head.js') }}"></script>
|
||||
<script type="text/javascript" type="module" src="{{ asset_url('js/chart.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block pageTitle %}
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
{% endblock %}
|
||||
{# google #}
|
||||
<script type="text/javascript" src="{{ asset_url('js/gtm_head.js') }}"></script>
|
||||
<script type="text/javascript" src="{{ asset_url('js/chart.js') }}"></script>
|
||||
<meta name="google-site-verification" content="niWnSqImOWz6mVQTYqNb5tFK8HaKSB4b3ED4Z9gtUQ0" />
|
||||
{% if g.hide_from_search_engines %}
|
||||
<meta name="robots" content="noindex" />
|
||||
|
||||
@@ -18,9 +18,7 @@
|
||||
|
||||
{{ ajax_block(partials, updates_url, 'upcoming') }}
|
||||
|
||||
<!-- <div>
|
||||
<canvas id="myChart"></canvas>
|
||||
</div> -->
|
||||
<canvas id="myChart" width="900" height="400"></canvas>
|
||||
|
||||
<h2 class="font-body-xl margin-0">
|
||||
SMS Activity
|
||||
|
||||
@@ -56,6 +56,10 @@ const copy = {
|
||||
gtm: () => {
|
||||
return src(paths.src + 'js/gtm_head.js')
|
||||
.pipe(dest(paths.dist + 'js/'));
|
||||
},
|
||||
chart: () => {
|
||||
return src(paths.src + 'js/chart.js')
|
||||
.pipe(dest(paths.dist + 'js/'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -125,7 +129,6 @@ const javascripts = () => {
|
||||
paths.src + 'javascripts/date.js',
|
||||
paths.src + 'javascripts/loginAlert.js',
|
||||
paths.src + 'javascripts/dataVisualization.js',
|
||||
paths.src + 'javascripts/chart.min.js',
|
||||
paths.src + 'javascripts/chartTest.js',
|
||||
paths.src + 'javascripts/main.js',
|
||||
])
|
||||
@@ -203,7 +206,8 @@ const defaultTask = parallel(
|
||||
),
|
||||
uswds.compile,
|
||||
uswds.copyAssets,
|
||||
copy.gtm
|
||||
copy.gtm,
|
||||
copy.chart
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user