import { Fragment } from "react"; import {Component} from "react"; import { ButtonItem, Field, PanelSectionRow, staticClasses, Router, } from "decky-frontend-lib"; import * as backend from "../backend"; import { tr } from "usdpl-front"; import { BACKEND_INFO, DRIVER_INFO, } from "../consts"; import { get_value, target_usdpl, version_usdpl} from "usdpl-front"; let eggCount = 0; let now = new Date(); let isSpecialDay = now.getDate() == 1 && now.getMonth() == 3; export class Debug extends Component { render() { return buildDebug(); } } function buildDebug() { return ({/* Version Info */}
{eggCount % 10 == 9 ? "Ha! Nerd" : tr("Debug")}
{ if (eggCount % 10 == 9) { // you know you're bored and/or conceited when you spend time adding an easter egg // that just sends people to your own project's repo Router.NavigateToExternalWeb("https://github.com/NGnius/PowerTools/releases"); } eggCount++; }}> {eggCount % 10 == 9 ? "by NGnius" : get_value(BACKEND_INFO)} eggCount++}> {eggCount % 10 == 9 ? "<3 <3 <3" : target_usdpl()} eggCount++}> {eggCount % 10 == 9 ? "Tracy Chapman" : get_value(DRIVER_INFO)} { if (eggCount % 10 == 9) { // you know you're bored and/or conceited when you spend time adding an easter egg // that just sends people to your own project's repo Router.NavigateToExternalWeb("https://github.com/NGnius/usdpl-rs"); } eggCount++; }}> v{version_usdpl()} {(eggCount % 10 == 9 || isSpecialDay) && { backend.idk(); }} > ??? }
); }