⤴ Rebased from master

This commit is contained in:
Alicia Sykes
2023-06-11 11:30:55 +01:00
102 changed files with 7607 additions and 1856 deletions

View File

@@ -3,7 +3,7 @@ export default {
computed: {
/* Required, hostname (e.g. IP + port) for Glances instance */
hostname() {
if (!this.options.hostname) this.error('You must specify a \'hostname\' for Glaces');
if (!this.options.hostname) this.error('You must specify a \'hostname\' for Glances');
return this.options.hostname;
},
/* Optionally specify the API version, defaults to V 3 */

View File

@@ -162,7 +162,7 @@ const HomeMixin = {
/* If user has a background image, then generate CSS attributes */
getBackgroundImage() {
if (this.appConfig && this.appConfig.backgroundImg) {
return `background: url('${this.appConfig.backgroundImg}');background-size:cover;`;
return `background: url('${this.appConfig.backgroundImg}') no-repeat center fixed;background-size:cover;`;
}
return '';
},

View File

@@ -157,8 +157,8 @@ export default {
this.$emit('itemClicked');
// Update the most/ last used ledger, for smart-sorting
if (!this.appConfig.disableSmartSort) {
this.incrementMostUsedCount(this.id);
this.incrementLastUsedCount(this.id);
this.incrementMostUsedCount(this.item.id);
this.incrementLastUsedCount(this.item.id);
}
},
/* Open item, using specified method */