Initial commit of swing trading dashboard script

This commit is contained in:
moshferatu 2024-10-23 11:56:25 -07:00
parent 8c16dc1f7c
commit da659c56bd

11
assets/dashboard.js Normal file
View File

@ -0,0 +1,11 @@
document.documentElement.setAttribute('data-bs-theme', 'dark')
var dagcomponentfuncs = (window.dashAgGridComponentFunctions = window.dashAgGridComponentFunctions || {});
dagcomponentfuncs.SignalRenderer = function (props) {
let signalElements = props.value.split('').map((char) => {
let className = char === 'N' ? 'no-signal' : 'long-signal';
return React.createElement('span', { className: className });
});
return React.createElement('div', { className: 'signal-container' }, signalElements);
};