Skip to content

Commit

Permalink
Chore: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
chakflying committed Aug 16, 2023
1 parent 92ecfba commit 285320d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
13 changes: 7 additions & 6 deletions src/pages/DashboardHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,8 @@ export default {
methods: {
/**
* Updates the displayed records when a new important heartbeat arrives.
*
* @param {object} heartbeat - The heartbeat object received.
* @return {void}
* @returns {void}
*/
onNewImportantHeartbeat(heartbeat) {
if (this.page === 1) {
Expand All @@ -148,8 +147,7 @@ export default {

/**
* Retrieves the length of the important heartbeat list for all monitors.
*
* @return {void}
* @returns {void}
*/
getImportantHeartbeatListLength() {
this.$root.getSocket().emit("monitorImportantHeartbeatListCount", null, (res) => {
Expand All @@ -162,8 +160,7 @@ export default {

/**
* Retrieves the important heartbeat list for the current page.
*
* @return {void}
* @returns {void}
*/
getImportantHeartbeatListPaged() {
const offset = (this.page - 1) * this.perPage;
Expand All @@ -174,6 +171,10 @@ export default {
});
},

/**
* Updates the number of items shown per page based on the available height.
* @returns {void}
*/
updatePerPage() {
const tableContainer = this.$refs.tableContainer;
const tableContainerHeight = tableContainer.offsetHeight;
Expand Down
8 changes: 3 additions & 5 deletions src/pages/Details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,7 @@ export default {
/**
* Retrieves the length of the important heartbeat list for this monitor.
*
* @return {void}
* @returns {void}
*/
getImportantHeartbeatListLength() {
if (this.monitor) {
Expand All @@ -528,8 +527,7 @@ export default {
/**
* Retrieves the important heartbeat list for the current page.
*
* @return {void}
* @returns {void}
*/
getImportantHeartbeatListPaged() {
if (this.monitor) {
Expand All @@ -544,8 +542,8 @@ export default {
/**
* Updates the displayed records when a new important heartbeat arrives.
*
* @param {object} heartbeat - The heartbeat object received.
* @returns {void}
*/
onNewImportantHeartbeat(heartbeat) {
if (heartbeat.monitorID === this.monitor?.id) {
Expand Down

0 comments on commit 285320d

Please sign in to comment.