mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-14 02:28:23 +00:00
chg: [UI] bump jquery to 3.4.1
This commit is contained in:
parent
873797d87f
commit
0fb8245c07
9 changed files with 63 additions and 63 deletions
|
@ -239,7 +239,7 @@ function submitPaste(){
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
jQuery("#all-tags-taxonomies").click(function(e){
|
jQuery("#all-tags-taxonomies").on("click", function(e){
|
||||||
//change input tags list
|
//change input tags list
|
||||||
$.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}",
|
$.getJSON("{{ url_for('Tags.get_all_tags_taxonomies') }}",
|
||||||
function(data) {
|
function(data) {
|
||||||
|
@ -249,7 +249,7 @@ function submitPaste(){
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
jQuery("#all-tags-galaxies").click(function(e){
|
jQuery("#all-tags-galaxies").on("click", function(e){
|
||||||
$.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}",
|
$.getJSON("{{ url_for('Tags.get_all_tags_galaxy') }}",
|
||||||
function(data) {
|
function(data) {
|
||||||
ltagsgalaxies.setData(data)
|
ltagsgalaxies.setData(data)
|
||||||
|
@ -257,7 +257,7 @@ function submitPaste(){
|
||||||
});
|
});
|
||||||
|
|
||||||
{% for taxo in active_taxonomies %}
|
{% for taxo in active_taxonomies %}
|
||||||
jQuery("#{{ taxo }}-id{{ loop.index0 }}").click(function(e){
|
jQuery("#{{ taxo }}-id{{ loop.index0 }}").on("click", function(e){
|
||||||
$.getJSON("{{ url_for('Tags.get_tags_taxonomie') }}?taxonomie={{ taxo }}",
|
$.getJSON("{{ url_for('Tags.get_tags_taxonomie') }}?taxonomie={{ taxo }}",
|
||||||
function(data) {
|
function(data) {
|
||||||
ltags.setData(data)
|
ltags.setData(data)
|
||||||
|
@ -267,7 +267,7 @@ function submitPaste(){
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
{% for galaxy in active_galaxies %}
|
{% for galaxy in active_galaxies %}
|
||||||
jQuery("#{{ galaxy }}-idgalax{{ loop.index0 }}").click(function(e){
|
jQuery("#{{ galaxy }}-idgalax{{ loop.index0 }}").on("click", function(e){
|
||||||
$.getJSON("{{ url_for('Tags.get_tags_galaxy') }}?galaxy={{ galaxy }}",
|
$.getJSON("{{ url_for('Tags.get_tags_galaxy') }}?galaxy={{ galaxy }}",
|
||||||
function(data) {
|
function(data) {
|
||||||
ltagsgalaxies.setData(data)
|
ltagsgalaxies.setData(data)
|
||||||
|
@ -294,8 +294,8 @@ function submitPaste(){
|
||||||
|
|
||||||
if(processing){
|
if(processing){
|
||||||
$("#loading_button").hide();
|
$("#loading_button").hide();
|
||||||
$("#pr").removeAttr('hidden');
|
$("#pr").prop('hidden', false);
|
||||||
$("#files_submitted_btn").removeAttr('hidden');
|
$("#files_submitted_btn").prop('hidden', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(i < 100){
|
if(i < 100){
|
||||||
|
@ -309,8 +309,8 @@ function submitPaste(){
|
||||||
//error handler
|
//error handler
|
||||||
if(isError){
|
if(isError){
|
||||||
document.getElementById('error_message').innerHTML = error;
|
document.getElementById('error_message').innerHTML = error;
|
||||||
$("#panel_error").removeAttr('hidden');
|
$("#panel_error").prop('hidden', false);
|
||||||
$("#error_submit_button").removeAttr('hidden');
|
$("#error_submit_button").prop('hidden', false);
|
||||||
err = err + 1;
|
err = err + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -321,15 +321,15 @@ function submitPaste(){
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('files_submitted').innerHTML = in_progress;
|
document.getElementById('files_submitted').innerHTML = in_progress;
|
||||||
$("#progress-bar").removeClass('progress-bar-animated');
|
$("#progress-bar").removeClass('progress-bar-animated');
|
||||||
$("#submit_result").removeAttr('hidden');
|
$("#submit_result").prop('hidden', false);
|
||||||
|
|
||||||
if(isError){
|
if(isError){
|
||||||
document.getElementById('error_message').innerHTML = error;
|
document.getElementById('error_message').innerHTML = error;
|
||||||
$("#panel_error").removeAttr('hidden');
|
$("#panel_error").prop('hidden', false);
|
||||||
$("#error_submit_button").removeAttr('hidden');
|
$("#error_submit_button").prop('hidden', false);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$("#success_submit_button").removeAttr('hidden');
|
$("#success_submit_button").prop('hidden', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(in_progress == '0 / '){
|
if(in_progress == '0 / '){
|
||||||
|
@ -339,7 +339,7 @@ function submitPaste(){
|
||||||
} else {
|
} else {
|
||||||
var link = data.link;
|
var link = data.link;
|
||||||
$("#submit_pastes").append(link);
|
$("#submit_pastes").append(link);
|
||||||
$("#submit_pastes").removeAttr('hidden');
|
$("#submit_pastes").prop('hidden', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ $(document).ready(function(){
|
||||||
$("#nav_manual_crawler").addClass("active");
|
$("#nav_manual_crawler").addClass("active");
|
||||||
manual_crawler_input_controler();
|
manual_crawler_input_controler();
|
||||||
|
|
||||||
$('#crawler_type').change(function () {
|
$('#crawler_type').on("change", function () {
|
||||||
manual_crawler_input_controler();
|
manual_crawler_input_controler();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -160,11 +160,11 @@ var to_refresh = false
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$("#page-Crawler").addClass("active");
|
$("#page-Crawler").addClass("active");
|
||||||
$("#nav_dashboard").addClass("active");
|
$("#nav_dashboard").addClass("active");
|
||||||
$( window ).focus(function() {
|
$( window ).on("focus", function() {
|
||||||
to_refresh = true
|
to_refresh = true
|
||||||
refresh_crawler_status();
|
refresh_crawler_status();
|
||||||
});
|
});
|
||||||
$( window ).blur(function() {
|
$( window ).on("blur", function() {
|
||||||
to_refresh = false
|
to_refresh = false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,7 @@
|
||||||
$("#"+activePage).addClass("active");
|
$("#"+activePage).addClass("active");
|
||||||
$('[data-toggle="tooltip"]').tooltip();
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
|
|
||||||
$("#LoadAll").click(function(){ draw_page("True"); });
|
$("#LoadAll").on("click", function(){ draw_page("True"); });
|
||||||
draw_page("False");
|
draw_page("False");
|
||||||
// Reload every 30min
|
// Reload every 30min
|
||||||
setTimeout(function(){ location.reload(); }, 30*60*1000);
|
setTimeout(function(){ location.reload(); }, 30*60*1000);
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
perform_binding();
|
perform_binding();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#seekInput").keyup(function(event){
|
$("#seekInput").on("keyup", function(event){
|
||||||
if(event.keyCode == 13){
|
if(event.keyCode == 13){
|
||||||
$("#followTermBtn").click();
|
$("#followTermBtn").click();
|
||||||
$("#seekInput").val("");
|
$("#seekInput").val("");
|
||||||
|
@ -135,8 +135,8 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function perform_binding() {
|
function perform_binding() {
|
||||||
$(".btn-interaction").unbind("click.interaction");
|
$(".btn-interaction").off("click.interaction");
|
||||||
$(".btn-interaction").bind("click.interaction", perform_operation);
|
$(".btn-interaction").on("click.interaction", perform_operation);
|
||||||
}
|
}
|
||||||
|
|
||||||
function perform_modal_binding() {
|
function perform_modal_binding() {
|
||||||
|
|
|
@ -137,7 +137,7 @@ function initfunc( csvay, scroot) {
|
||||||
var source = new EventSource(urllog);
|
var source = new EventSource(urllog);
|
||||||
|
|
||||||
source.onmessage = function(event) {
|
source.onmessage = function(event) {
|
||||||
var feed = jQuery.parseJSON( event.data );
|
var feed = JSON.parse( event.data );
|
||||||
create_log_table(feed);
|
create_log_table(feed);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ function query_and_plot(provider, graphNum) {
|
||||||
var neu = 0;
|
var neu = 0;
|
||||||
|
|
||||||
for(i=0; i<data_array.length; i++){
|
for(i=0; i<data_array.length; i++){
|
||||||
var curr_data = jQuery.parseJSON(data_array[i].replace(/\'/g, '\"'));
|
var curr_data = JSON.parse(data_array[i].replace(/\'/g, '\"'));
|
||||||
compPosAvg += curr_data['compoundPos'];
|
compPosAvg += curr_data['compoundPos'];
|
||||||
compNegAvg += curr_data['compoundNeg'];
|
compNegAvg += curr_data['compoundNeg'];
|
||||||
pos += curr_data['pos'];
|
pos += curr_data['pos'];
|
||||||
|
|
|
@ -524,7 +524,7 @@
|
||||||
*/
|
*/
|
||||||
this.expand = function()
|
this.expand = function()
|
||||||
{
|
{
|
||||||
if (!cfg.expanded && (this.input.val().length >= cfg.minChars || this.combobox.children().size() > 0)) {
|
if (!cfg.expanded && (this.input.val().length >= cfg.minChars || this.combobox.children().length > 0)) {
|
||||||
this.combobox.appendTo(this.container);
|
this.combobox.appendTo(this.container);
|
||||||
self._processSuggestions();
|
self._processSuggestions();
|
||||||
cfg.expanded = true;
|
cfg.expanded = true;
|
||||||
|
@ -876,10 +876,10 @@
|
||||||
(cfg.editable === true ? '' : ' tag-ctn-readonly'),
|
(cfg.editable === true ? '' : ' tag-ctn-readonly'),
|
||||||
style: cfg.style
|
style: cfg.style
|
||||||
}).width(w);
|
}).width(w);
|
||||||
ms.container.focus($.proxy(handlers._onFocus, this));
|
ms.container.on("focus", $.proxy(handlers._onFocus, this));
|
||||||
ms.container.blur($.proxy(handlers._onBlur, this));
|
ms.container.on("blur", $.proxy(handlers._onBlur, this));
|
||||||
ms.container.keydown($.proxy(handlers._onKeyDown, this));
|
ms.container.on("keydown", $.proxy(handlers._onKeyDown, this));
|
||||||
ms.container.keyup($.proxy(handlers._onKeyUp, this));
|
ms.container.on("keyup", $.proxy(handlers._onKeyUp, this));
|
||||||
|
|
||||||
// holds the input field
|
// holds the input field
|
||||||
ms.input = $('<input/>', $.extend({
|
ms.input = $('<input/>', $.extend({
|
||||||
|
@ -891,8 +891,8 @@
|
||||||
disabled: cfg.disabled
|
disabled: cfg.disabled
|
||||||
}, cfg.inputCfg)).width(w - (cfg.hideTrigger ? 16 : 42));
|
}, cfg.inputCfg)).width(w - (cfg.hideTrigger ? 16 : 42));
|
||||||
|
|
||||||
ms.input.focus($.proxy(handlers._onInputFocus, this));
|
ms.input.on("focus", $.proxy(handlers._onInputFocus, this));
|
||||||
ms.input.click($.proxy(handlers._onInputClick, this));
|
ms.input.on("click", $.proxy(handlers._onInputClick, this));
|
||||||
|
|
||||||
// holds the trigger on the right side
|
// holds the trigger on the right side
|
||||||
if(cfg.hideTrigger === false) {
|
if(cfg.hideTrigger === false) {
|
||||||
|
@ -901,7 +901,7 @@
|
||||||
'class': 'tag-trigger',
|
'class': 'tag-trigger',
|
||||||
html: '<div class="tag-trigger-ico"></div>'
|
html: '<div class="tag-trigger-ico"></div>'
|
||||||
});
|
});
|
||||||
ms.trigger.click($.proxy(handlers._onTriggerClick, this));
|
ms.trigger.on("click", $.proxy(handlers._onTriggerClick, this));
|
||||||
ms.container.append(ms.trigger);
|
ms.container.append(ms.trigger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -919,7 +919,7 @@
|
||||||
id: 'tag-sel-ctn-' + $('div[id^="tag-sel-ctn"]').length,
|
id: 'tag-sel-ctn-' + $('div[id^="tag-sel-ctn"]').length,
|
||||||
'class': 'tag-sel-ctn'
|
'class': 'tag-sel-ctn'
|
||||||
});
|
});
|
||||||
ms.selectionContainer.click($.proxy(handlers._onFocus, this));
|
ms.selectionContainer.on("click", $.proxy(handlers._onFocus, this));
|
||||||
|
|
||||||
if(cfg.selectionPosition === 'inner') {
|
if(cfg.selectionPosition === 'inner') {
|
||||||
ms.selectionContainer.append(ms.input);
|
ms.selectionContainer.append(ms.input);
|
||||||
|
@ -962,7 +962,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
$(ms).trigger('afterrender', [ms]);
|
$(ms).trigger('afterrender', [ms]);
|
||||||
$("body").click(function(e) {
|
$("body").on("click", function(e) {
|
||||||
if(ms.container.hasClass('tag-ctn-bootstrap-focus') &&
|
if(ms.container.hasClass('tag-ctn-bootstrap-focus') &&
|
||||||
ms.container.has(e.target).length === 0 &&
|
ms.container.has(e.target).length === 0 &&
|
||||||
e.target.className.indexOf('tag-res-item') < 0 &&
|
e.target.className.indexOf('tag-res-item') < 0 &&
|
||||||
|
@ -988,8 +988,8 @@
|
||||||
html: cfg.highlight === true ? self._highlightSuggestion(displayed) : displayed,
|
html: cfg.highlight === true ? self._highlightSuggestion(displayed) : displayed,
|
||||||
'data-json': JSON.stringify(value)
|
'data-json': JSON.stringify(value)
|
||||||
});
|
});
|
||||||
resultItemEl.click($.proxy(handlers._onComboItemSelected, ref));
|
resultItemEl.on("click", $.proxy(handlers._onComboItemSelected, ref));
|
||||||
resultItemEl.mouseover($.proxy(handlers._onComboItemMouseOver, ref));
|
resultItemEl.on("mouseover", $.proxy(handlers._onComboItemMouseOver, ref));
|
||||||
html += $('<div/>').append(resultItemEl).html();
|
html += $('<div/>').append(resultItemEl).html();
|
||||||
});
|
});
|
||||||
ms.combobox.append(html);
|
ms.combobox.append(html);
|
||||||
|
@ -1032,7 +1032,7 @@
|
||||||
'class': 'tag-close-btn'
|
'class': 'tag-close-btn'
|
||||||
}).data('json', value).appendTo(selectedItemEl);
|
}).data('json', value).appendTo(selectedItemEl);
|
||||||
|
|
||||||
delItemEl.click($.proxy(handlers._onTagTriggerClick, ref));
|
delItemEl.on("click", $.proxy(handlers._onTagTriggerClick, ref));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1077,7 +1077,7 @@
|
||||||
ms.collapse();
|
ms.collapse();
|
||||||
}
|
}
|
||||||
if(!_hasFocus){
|
if(!_hasFocus){
|
||||||
ms.input.focus();
|
ms.input.trigger("focus")
|
||||||
} else if(_hasFocus && (cfg.expandOnFocus || _ctrlDown)){
|
} else if(_hasFocus && (cfg.expandOnFocus || _ctrlDown)){
|
||||||
self._processSuggestions();
|
self._processSuggestions();
|
||||||
if(_ctrlDown){
|
if(_ctrlDown){
|
||||||
|
@ -1217,7 +1217,7 @@
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_onFocus: function() {
|
_onFocus: function() {
|
||||||
ms.input.focus();
|
ms.input.trigger("focus");
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1290,7 +1290,7 @@
|
||||||
_selection.pop();
|
_selection.pop();
|
||||||
self._renderSelection();
|
self._renderSelection();
|
||||||
$(ms).trigger('selectionchange', [ms, ms.getSelectedItems()]);
|
$(ms).trigger('selectionchange', [ms, ms.getSelectedItems()]);
|
||||||
ms.input.focus();
|
ms.input.trigger("focus");
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -1364,7 +1364,7 @@
|
||||||
obj[cfg.displayField] = obj[cfg.valueField] = freeInput;
|
obj[cfg.displayField] = obj[cfg.valueField] = freeInput;
|
||||||
ms.addToSelection(obj);
|
ms.addToSelection(obj);
|
||||||
ms.collapse(); // reset combo suggestions
|
ms.collapse(); // reset combo suggestions
|
||||||
ms.input.focus();
|
ms.input.trigger("focus");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1423,7 +1423,7 @@
|
||||||
} else {
|
} else {
|
||||||
var curLength = ms.getRawValue().length;
|
var curLength = ms.getRawValue().length;
|
||||||
if(curLength >= cfg.minChars){
|
if(curLength >= cfg.minChars){
|
||||||
ms.input.focus();
|
ms.input.trigger("focus");
|
||||||
ms.expand();
|
ms.expand();
|
||||||
} else {
|
} else {
|
||||||
self._updateHelper(cfg.minCharsRenderer.call(this, cfg.minChars - curLength));
|
self._updateHelper(cfg.minCharsRenderer.call(this, cfg.minChars - curLength));
|
||||||
|
@ -1442,7 +1442,7 @@
|
||||||
$.fn.tagSuggest = function(options) {
|
$.fn.tagSuggest = function(options) {
|
||||||
var obj = $(this);
|
var obj = $(this);
|
||||||
|
|
||||||
if(obj.size() === 1 && obj.data('tagSuggest')) {
|
if(obj.length === 1 && obj.data('tagSuggest')) {
|
||||||
return obj.data('tagSuggest');
|
return obj.data('tagSuggest');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1479,7 +1479,7 @@
|
||||||
field.container.data('tagSuggest', field);
|
field.container.data('tagSuggest', field);
|
||||||
});
|
});
|
||||||
|
|
||||||
if(obj.size() === 1) {
|
if(obj.length === 1) {
|
||||||
return obj.data('tagSuggest');
|
return obj.data('tagSuggest');
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
|
|
|
@ -13,7 +13,6 @@ rm -rf temp
|
||||||
mkdir temp
|
mkdir temp
|
||||||
|
|
||||||
wget -q https://github.com/twbs/bootstrap/releases/download/v${BOOTSTRAP_VERSION}/bootstrap-${BOOTSTRAP_VERSION}-dist.zip -O temp/bootstrap${BOOTSTRAP_VERSION}.zip
|
wget -q https://github.com/twbs/bootstrap/releases/download/v${BOOTSTRAP_VERSION}/bootstrap-${BOOTSTRAP_VERSION}-dist.zip -O temp/bootstrap${BOOTSTRAP_VERSION}.zip
|
||||||
wget -q https://github.com/FezVrasta/popper.js/archive/v1.14.3.zip -O temp/popper.zip
|
|
||||||
wget -q https://github.com/BlackrockDigital/startbootstrap-sb-admin/archive/v${SBADMIN_VERSION}.zip -O temp/${SBADMIN_VERSION}.zip
|
wget -q https://github.com/BlackrockDigital/startbootstrap-sb-admin/archive/v${SBADMIN_VERSION}.zip -O temp/${SBADMIN_VERSION}.zip
|
||||||
wget -q https://github.com/BlackrockDigital/startbootstrap-sb-admin-2/archive/v${SBADMIN_VERSION}.zip -O temp/${SBADMIN_VERSION}-2.zip
|
wget -q https://github.com/BlackrockDigital/startbootstrap-sb-admin-2/archive/v${SBADMIN_VERSION}.zip -O temp/${SBADMIN_VERSION}-2.zip
|
||||||
wget -q https://github.com/FortAwesome/Font-Awesome/archive/v4.7.0.zip -O temp/FONT_AWESOME_4.7.0.zip
|
wget -q https://github.com/FortAwesome/Font-Awesome/archive/v4.7.0.zip -O temp/FONT_AWESOME_4.7.0.zip
|
||||||
|
@ -21,28 +20,24 @@ wget -q https://github.com/FortAwesome/Font-Awesome/archive/5.7.1.zip -O temp/FO
|
||||||
wget -q https://github.com/d3/d3/releases/download/v${D3_JS_VERSION}/d3.zip -O temp/d3_${D3_JS_VERSION}.zip
|
wget -q https://github.com/d3/d3/releases/download/v${D3_JS_VERSION}/d3.zip -O temp/d3_${D3_JS_VERSION}.zip
|
||||||
|
|
||||||
# dateRangePicker
|
# dateRangePicker
|
||||||
wget -q https://github.com/moment/moment/archive/2.22.2.zip -O temp/moment_2.22.2.zip
|
wget -q https://github.com/moment/moment/archive/2.24.0.zip -O temp/moment.zip
|
||||||
wget -q https://github.com/longbill/jquery-date-range-picker/archive/v0.18.0.zip -O temp/daterangepicker_v0.18.0.zip
|
wget -q https://github.com/longbill/jquery-date-range-picker/archive/v0.20.0.zip -O temp/daterangepicker.zip
|
||||||
|
|
||||||
unzip -qq temp/bootstrap${BOOTSTRAP_VERSION}.zip -d temp/
|
unzip -qq temp/bootstrap${BOOTSTRAP_VERSION}.zip -d temp/
|
||||||
unzip -qq temp/popper.zip -d temp/
|
|
||||||
unzip -qq temp/${SBADMIN_VERSION}.zip -d temp/
|
unzip -qq temp/${SBADMIN_VERSION}.zip -d temp/
|
||||||
unzip -qq temp/${SBADMIN_VERSION}-2.zip -d temp/
|
unzip -qq temp/${SBADMIN_VERSION}-2.zip -d temp/
|
||||||
unzip -qq temp/FONT_AWESOME_4.7.0.zip -d temp/
|
unzip -qq temp/FONT_AWESOME_4.7.0.zip -d temp/
|
||||||
unzip -qq temp/FONT_AWESOME_${FONT_AWESOME_VERSION}.zip -d temp/
|
unzip -qq temp/FONT_AWESOME_${FONT_AWESOME_VERSION}.zip -d temp/
|
||||||
unzip -qq temp/d3_${D3_JS_VERSION}.zip -d temp/
|
unzip -qq temp/d3_${D3_JS_VERSION}.zip -d temp/
|
||||||
|
|
||||||
unzip -qq temp/moment_2.22.2.zip -d temp/
|
unzip -qq temp/moment.zip -d temp/
|
||||||
unzip -qq temp/daterangepicker_v0.18.0.zip -d temp/
|
unzip -qq temp/daterangepicker.zip -d temp/
|
||||||
|
|
||||||
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/js/bootstrap.min.js ./static/js/bootstrap4.min.js
|
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/js/bootstrap.min.js ./static/js/bootstrap4.min.js
|
||||||
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/js/bootstrap.min.js.map ./static/js/bootstrap.min.js.map
|
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/js/bootstrap.min.js.map ./static/js/bootstrap.min.js.map
|
||||||
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/css/bootstrap.min.css ./static/css/bootstrap4.min.css
|
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/css/bootstrap.min.css ./static/css/bootstrap4.min.css
|
||||||
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/css/bootstrap.min.css.map ./static/css/bootstrap4.min.css.map
|
mv temp/bootstrap-${BOOTSTRAP_VERSION}-dist/css/bootstrap.min.css.map ./static/css/bootstrap4.min.css.map
|
||||||
|
|
||||||
mv temp/popper-core-1.14.3/dist/umd/popper.min.js ./static/js/
|
|
||||||
mv temp/popper-core-1.14.3/dist/umd/popper.min.js.map ./static/js/
|
|
||||||
|
|
||||||
mv temp/startbootstrap-sb-admin-${SBADMIN_VERSION} temp/sb-admin
|
mv temp/startbootstrap-sb-admin-${SBADMIN_VERSION} temp/sb-admin
|
||||||
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION} temp/sb-admin-2
|
mv temp/startbootstrap-sb-admin-2-${SBADMIN_VERSION} temp/sb-admin-2
|
||||||
mv temp/Font-Awesome-4.7.0 temp/font-awesome
|
mv temp/Font-Awesome-4.7.0 temp/font-awesome
|
||||||
|
@ -61,24 +56,29 @@ mv temp/font-awesome/ ./static/
|
||||||
rm -rf ./static/css/plugins/
|
rm -rf ./static/css/plugins/
|
||||||
mv temp/sb-admin/css/* ./static/css/
|
mv temp/sb-admin/css/* ./static/css/
|
||||||
mv temp/sb-admin-2/dist/css/* ./static/css/
|
mv temp/sb-admin-2/dist/css/* ./static/css/
|
||||||
mv temp/jquery-date-range-picker-0.18.0/dist/daterangepicker.min.css ./static/css/
|
mv temp/jquery-date-range-picker-0.20.0/dist/daterangepicker.min.css ./static/css/
|
||||||
|
|
||||||
mv temp/d3.min.js ./static/js/
|
mv temp/d3.min.js ./static/js/
|
||||||
mv temp/moment-2.22.2/min/moment.min.js ./static/js/
|
mv temp/moment-2.24.0/min/moment.min.js ./static/js/
|
||||||
mv temp/jquery-date-range-picker-0.18.0/dist/jquery.daterangepicker.min.js ./static/js/
|
mv temp/jquery-date-range-picker-0.20.0/dist/jquery.daterangepicker.min.js ./static/js/
|
||||||
|
|
||||||
rm -rf temp
|
rm -rf temp
|
||||||
|
|
||||||
JQVERSION="1.12.4"
|
JQVERSION="3.4.1"
|
||||||
wget -q http://code.jquery.com/jquery-${JQVERSION}.js -O ./static/js/jquery.js
|
wget -q http://code.jquery.com/jquery-${JQVERSION}.js -O ./static/js/jquery.js
|
||||||
|
|
||||||
#Ressources for dataTable
|
#Ressources for dataTable
|
||||||
wget -q https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js -O ./static/js/jquery.dataTables.min.js
|
wget -q https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js -O ./static/js/jquery.dataTables.min.js
|
||||||
wget -q https://cdn.datatables.net/plug-ins/1.10.7/integration/bootstrap/3/dataTables.bootstrap.css -O ./static/css/dataTables.bootstrap.css
|
wget -q https://cdn.datatables.net/plug-ins/1.10.20/integration/bootstrap/3/dataTables.bootstrap.css -O ./static/css/dataTables.bootstrap.css
|
||||||
wget -q https://cdn.datatables.net/plug-ins/1.10.7/integration/bootstrap/3/dataTables.bootstrap.js -O ./static/js/dataTables.bootstrap.js
|
wget -q https://cdn.datatables.net/plug-ins/1.10.20/integration/bootstrap/3/dataTables.bootstrap.js -O ./static/js/dataTables.bootstrap.js
|
||||||
|
|
||||||
wget -q https://cdn.datatables.net/1.10.18/css/dataTables.bootstrap4.min.css -O ./static/css/dataTables.bootstrap.min.css
|
wget -q https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css -O ./static/css/dataTables.bootstrap.min.css
|
||||||
wget -q https://cdn.datatables.net/1.10.18/js/dataTables.bootstrap4.min.js -O ./static/js/dataTables.bootstrap.min.js
|
wget -q https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.min.js -O ./static/js/dataTables.bootstrap.min.js
|
||||||
|
|
||||||
|
#Ressources for bootstrap popover
|
||||||
|
POPPER_VERSION="2.0.6"
|
||||||
|
wget -q https://unpkg.com/@popperjs/core@${POPPER_VERSION}/dist/umd/popper.min.js -O ./static/js/popper.min.js
|
||||||
|
wget -q https://unpkg.com/@popperjs/core@${POPPER_VERSION}/dist/umd/popper.min.js.map -O ./static/js/popper.min.js.map
|
||||||
|
|
||||||
#Ressource for graph
|
#Ressource for graph
|
||||||
wget -q https://raw.githubusercontent.com/flot/flot/958e5fd43c6dff4bab3e1fd5cb6109df5c1e8003/jquery.flot.js -O ./static/js/jquery.flot.js
|
wget -q https://raw.githubusercontent.com/flot/flot/958e5fd43c6dff4bab3e1fd5cb6109df5c1e8003/jquery.flot.js -O ./static/js/jquery.flot.js
|
||||||
|
@ -93,10 +93,10 @@ wget -q http://canvasjs.com/fdm/chart/ -O temp/canvasjs.zip
|
||||||
unzip -qq temp/canvasjs.zip -d temp/
|
unzip -qq temp/canvasjs.zip -d temp/
|
||||||
mv temp/jquery.canvasjs.min.js ./static/js/jquery.canvasjs.min.js
|
mv temp/jquery.canvasjs.min.js ./static/js/jquery.canvasjs.min.js
|
||||||
|
|
||||||
wget -q https://jqueryui.com/resources/download/jquery-ui-1.12.0.zip -O temp/jquery-ui.zip
|
wget -q https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip -O temp/jquery-ui.zip
|
||||||
unzip -qq temp/jquery-ui.zip -d temp/
|
unzip -qq temp/jquery-ui.zip -d temp/
|
||||||
mv temp/jquery-ui-1.12.0/jquery-ui.min.js ./static/js/jquery-ui.min.js
|
mv temp/jquery-ui-1.12.1/jquery-ui.min.js ./static/js/jquery-ui.min.js
|
||||||
mv temp/jquery-ui-1.12.0/jquery-ui.min.css ./static/css/jquery-ui.min.css
|
mv temp/jquery-ui-1.12.1/jquery-ui.min.css ./static/css/jquery-ui.min.css
|
||||||
rm -rf temp
|
rm -rf temp
|
||||||
|
|
||||||
mkdir -p ./static/image
|
mkdir -p ./static/image
|
||||||
|
|
Loading…
Reference in a new issue