for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import template from './sw-admin.html.twig';
const { Component } = Shopware;
Shopware
/** global: Shopware */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
/**
* @package admin
*
* @private
*/
Component.register('sw-admin', {
template,
inject: ['userActivityService'],
metaInfo() {
return {
title: this.$tc('global.sw-admin-menu.textShopwareAdmin'),
};
},
computed: {
isLoggedIn() {
return Shopware.Service('loginService').isLoggedIn();
methods: {
onUserActivity: Shopware.Utils.debounce(function updateUserActivity() {
this.userActivityService.updateLastUserActivity();
}, 5000),
});
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.