Push minified js

This commit is contained in:
Flavio Copes
2016-05-09 14:38:10 +02:00
parent c44fdae0c8
commit 00f23a67db
4 changed files with 38 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
import $ from 'jquery'; import $ from 'jquery';
import _ from 'lodash'; import _ from 'lodash';
import { config, translations } from 'grav-config'; import { config, translations } from 'grav-config';
import formatBytes from '../utils/formatbytes'; import formatBytes from '../utils/formatbytes';
import { Instance as gpm } from '../utils/gpm'; import { Instance as gpm } from '../utils/gpm';
@@ -104,7 +104,7 @@ export default class Updates {
existing_slugs = []; existing_slugs = [];
} }
let slugs = _.uniq(existing_slugs.concat(Object.keys(resources))).join(); let slugs = _.uniq(existing_slugs.concat(Object.keys(resources))).join();
$('[data-update-packages]').attr('data-packages-slugs', `${slugs}`); $('[data-update-packages]').attr('data-packages-slugs', `${slugs}`);
Object.keys(resources).forEach(function(item) { Object.keys(resources).forEach(function(item) {

View File

@@ -239,7 +239,7 @@ class Packages {
$('.packages-names-list').append(`<li>${name ? name : slug}, from v<strong>${current_version}</strong> to v<strong>${available_version}</strong></li>`); $('.packages-names-list').append(`<li>${name ? name : slug}, from v<strong>${current_version}</strong> to v<strong>${available_version}</strong></li>`);
} else { } else {
$('.packages-names-list').append(`<li>${name ? name : slug}</li>`); $('.packages-names-list').append(`<li>${name ? name : slug}</li>`);
} }
}); });
event.preventDefault(); event.preventDefault();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long