This file contains hidden or 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
const { resolve } = require('path'); | |
const { existsSync, writeFileSync, readFileSync } = require('fs'); | |
const { promisify } = require('util'); | |
const exec = promisify(require('child_process').exec); | |
const { Rcon } = require('rcon-client'); | |
const moment = require('moment'); | |
const configFile = resolve(__dirname, 'backup-config.json'); | |
if (!existsSync(configFile)) { |
This file contains hidden or 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 { useCallback, useRef, useState, useEffect, useMemo } from 'react'; | |
import { | |
FormApi, | |
FormState, | |
FieldState, | |
Config, | |
FormSubscription, | |
FieldSubscription, | |
FieldValidator, | |
formSubscriptionItems, |
This file contains hidden or 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
0eNrtXctu20gQ/JWFzpIx0/Okj7nluklOi0VgO0QirC0bsuxdI9C/r2RTjB9NskocHgzktLC9qvSQPTM9VdWjn7Pzy7v6Zr1cbb6eX1//Mzv9+es3t7PTv579uP/b8uJ69fTr2+X31dnl/nebh5t6djpbbuqr2Xy2Orva/7Q+W17OtvPZcvWt/m92arfzwY+cL78v6sv6YrNeXixuri/rZ58X9fP3y/XmbvebFuLp/1h8fPZJt/17PqtXm+VmWT9F/vjDw9fV3dV5vd6F9uvTm13U339sFo/Bz2c317e7T12v9v/iDmnh57OH3X+cbPfRvIKRnnG8hbINlNWgHBqR9AXk6XEZDSawwagokQ1GsgaTyGB0lEwHEzWYig1GRbHmxZxZXPw4W64WTaq/jSichAbNnwQVj85n8SqOsMPTYdzL4XUNzL0Y13z2bbnezaDHv3sN9ld2X9yt7+tvXWNsUG31EjNomAHDdDqkGmYEw0wN5quhRw0TngSL3KD6l6hJQ800anyJ6jRUeI4sREcVbak1KKohQC32qoL+prTRCzyFoh6nlqXiWNBXb99qoPhmYQ/PVIaTSgIP64HnCu8mHRNAfa6JBRXgueKzyh4mgAGea8XDyvBzdfC86koC7cE6S6Oa4SfrBFxZbTNhE4Dp8Mfa7J15+GU5T6O+fgDqy4LnVldmqS8L3LCsOzxVDSSxoWXg5WT0hVdPmGF4zXfEPIpqpNqb8fg00rNIezEe3J5sUkevJaYXrDR7LMka1BPgqXrHVLQiHDg+m1yTXB5AxTcqZ3BU/NQjGUfF6z+JOCq+U4nHUfEzEv6yAjy/iEgDvEsRDzXgZyj8/Qd4lyJSNXiKvnANf6HSFyHQq6pKYIR4DKWih5TYJVmPKDMRSdUXEb316LwKu9foKJZdVGU4paKwayoC6tglFQH17IqKgAZ2QUVAI1cEueFqJSaukAbImZipIjIMVz+xoqofN8yiJEPuTMDbSZbcmBBMIfclBNOR2xKC6cldCcEMFDXalqn |