Skip to content

Commit

Permalink
feat(client): added support for log lines wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Moss committed Mar 29, 2024
1 parent 6b3437f commit fa23f0e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions app/client/assets/js/isaiah.js
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,13 @@
if (_state.communication.availableHosts.length > 0)
hgetMobileControl('host').classList.add('is-active');
}

// 11. Apply extra user settings if any

// 11.1. Log lines wrap
if (_state.settings.enableLogLinesWrap)
if (_state.inspector.currentTab === 'Logs')
hgetTab('inspector').classList.add('no-wrap');
};

// === Websocket-related methods
Expand Down Expand Up @@ -1136,6 +1143,23 @@
currentTheme: 'default',
},

settings: {
/**
* @type {boolean}
*/
enableLogLinesWrap: false,

/**
* @type {boolean}
*/
enableTimestampDisplay: true,

/**
* @type {boolean}
*/
enableMenuPrompt: true,
},

/**
* @typedef {object} Message
* @property {boolean} isEnabled
Expand Down

0 comments on commit fa23f0e

Please sign in to comment.