This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useEffect(() => { | |
const children = jsonRef.current.getElementsByTagName("*"); | |
const childArray = [].slice.call(children) as HTMLElement[]; | |
const filterElements: HTMLElement[] = []; | |
childArray.forEach((el) => { | |
if ( | |
el.textContent && | |
el.textContent.includes(props.filterValue) && | |
el.children.length === 0 && | |
props.currentFilteredJson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useEffect(() => { | |
if (activeFilterElement !== 0) { | |
setActiveFilterElement(0); | |
const hasElements = | |
refStore[REF_KEY.FILTER_ELEMENTS] && | |
(refStore[REF_KEY.FILTER_ELEMENTS] as HTMLElement[]).length > 0; | |
hasElements && | |
(refStore[REF_KEY.FILTER_ELEMENTS][0] as HTMLElement).scrollIntoView({ | |
behavior: "smooth", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import readLine from "readline"; | |
import fs from "fs"; | |
import { BrowserWindow } from "electron"; | |
import { ILogFile, PROCESS_EVENTS } from "../../definitions"; | |
let totalLineCount = 0; | |
let currentLine = 0; | |
let file: string; | |
let logs: string[] = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import * as ReactDOM from "react-dom"; | |
import { Root } from "./components/root"; | |
ReactDOM.render(<Root />, document.getElementById("app")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { app, BrowserWindow } from "electron"; | |
import * as url from "url"; | |
import * as path from "path"; | |
import { setupMainEventListeners } from "./main-events"; | |
let mainWindow: Electron.BrowserWindow; | |
function createWindow() { | |
// Create the browser window. | |
mainWindow = new BrowserWindow({ |