mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-14 09:16:05 +01:00
Push minified js
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import $ from 'jquery';
|
||||
import _ from 'lodash';
|
||||
import _ from 'lodash';
|
||||
import { config, translations } from 'grav-config';
|
||||
import formatBytes from '../utils/formatbytes';
|
||||
import { Instance as gpm } from '../utils/gpm';
|
||||
@@ -104,7 +104,7 @@ export default class Updates {
|
||||
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}`);
|
||||
|
||||
Object.keys(resources).forEach(function(item) {
|
||||
|
||||
@@ -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>`);
|
||||
} else {
|
||||
$('.packages-names-list').append(`<li>${name ? name : slug}</li>`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
30
themes/grav/js/admin.min.js
vendored
30
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
38
themes/grav/js/vendor.min.js
vendored
38
themes/grav/js/vendor.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user