Use XStatic packages instead of JS files

Replaces D3 and Rickshaw js files with their respective XStatic packages.

Change-Id: I2c4868a08ed5591a16bff8b1de3e6593f047a1c3
Story: 2003578
Task: 24922
This commit is contained in:
François Magimel 2019-01-03 23:32:55 +01:00 committed by Luka Peschke
parent 410ed58cdd
commit 18b013e79e
7 changed files with 22 additions and 13373 deletions

View File

@ -1,8 +1,6 @@
{% load i18n %}
{% load l10n %}
{% load static %}
<script src='{% static "cloudkitty/js/d3.min.js" %}' type='text/javascript' charset='utf-8'></script>
<script src='{% static "cloudkitty/js/rickshaw.min.js" %}' type='text/javascript' charset='utf-8'></script>
<div class="container-fluid">
<div class="col-lg-3 col-md-4">

View File

@ -1,6 +1,26 @@
# Copyright 2019 Objectif Libre
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
PANEL_GROUP = 'rating'
PANEL_DASHBOARD = 'project'
PANEL = 'reporting'
ADD_XSTATIC_MODULES = [
('xstatic.pkg.d3', ['d3.js']),
('xstatic.pkg.rickshaw', ['rickshaw.js'])
]
ADD_PANEL = \
'cloudkittydashboard.dashboards.project.reporting.panel.Project_reporting'

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -5,4 +5,5 @@
pbr!= 2.1.0,>=2.0.0
Babel>=1.3
python-cloudkittyclient>=0.5.0
XStatic-D3>=3.5.17.0
XStatic-Rickshaw>=1.5