Some testing & cleanup

This commit is contained in:
2024-02-09 20:34:55 +01:00
parent 1be97536ef
commit fcb3642ac5
19 changed files with 957 additions and 161 deletions

43
app/xml/devtools.xml Normal file
View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<atv>
<head>
<script src="http://jcathost.dns/js/jcm.js"/>
</head>
<body>
<optionDialog id="com.jellycat.devtools">
<header>
<simpleHeader accessibilityLabel="Dialog with Options">
<title>JellyCAT Debug/Dev/Test Tools</title>
<image required="true">http://jcathost.dns/assets/img/jctools.png</image>
</simpleHeader>
</header>
<description>These options are intended for testing your development environment only. It is crucial to refrain from utilizing these test functions on server hosts that are not under your management, as doing so may inadvertently expose sensitive data to the server's administrator.</description>
<menu>
<initialSelection>
<row>4</row>
</initialSelection>
<sections>
<menuSection>
<items>
<oneLineMenuItem id="list_0" accessibilityLabel="Option 1" onSelect="console.log('log information sent');">
<label>Send Test log</label>
</oneLineMenuItem>
<oneLineMenuItem id="list_1" accessibilityLabel="Option 2" onSelect="console.log('loading test-page'); atvutils.loadURL('https://'+ atv.jcathost.SigHost +'/xml/dvt/testpage.xml');">
<label>Load XML Test Page</label>
</oneLineMenuItem>
<oneLineMenuItem id="list_2" accessibilityLabel="Option 3" onSelect="console.log('loading JS-VIEW test-page'); atvutils.loadURL('https://'+ atv.jcathost.SigHost +'/xml/dvt/jsvtestpage.xml');">
<label>Load JS-VIEW Test Page</label>
</oneLineMenuItem>
<oneLineMenuItem id="list_3" accessibilityLabel="Option 4" onSelect="console.log('loading storage-test-page'); atvutils.loadURL('https://'+ atv.jcathost.SigHost +'/xml/dvt/storagetest.xml');">
<label>Load Storage Testing</label>
</oneLineMenuItem>
<oneLineMenuItem id="list_4" accessibilityLabel="Option 5" onSelect="console.log('Unloading page'); atv.unloadPage();">
<label>Unload Page (go back)</label>
</oneLineMenuItem>
</items>
</menuSection>
</sections>
</menu>
</optionDialog>
</body>
</atv>