mirror of
https://github.com/SEPPDROID/JellyCAT.git
synced 2025-10-23 00:14:28 +00:00
Some testing & cleanup
This commit is contained in:
43
app/xml/devtools.xml
Normal file
43
app/xml/devtools.xml
Normal 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>
|
||||
8
app/xml/dvt/jsvtestpage.xml
Normal file
8
app/xml/dvt/jsvtestpage.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<atv>
|
||||
<body>
|
||||
<scriptView id="com.jellycat.jsctestpage">
|
||||
<script src="http://jcathost.dns/js/jsvtestpage.js"/>
|
||||
</scriptView>
|
||||
</body>
|
||||
</atv>
|
||||
29
app/xml/dvt/storagetest.xml
Normal file
29
app/xml/dvt/storagetest.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<atv>
|
||||
<head>
|
||||
<script src="http://jcathost.dns/js/jcm.js"/>
|
||||
<script src="http://jcathost.dns/js/storagetest.js"/>
|
||||
</head>
|
||||
<body>
|
||||
<optionList id="com.jellycat.storagetestpage" autoSelectSingleItem="false">
|
||||
<footnote>atv.localstorage || storage data elements || JellyCAT</footnote>
|
||||
<items>
|
||||
<oneLineMenuItem id="list_0" accessibilityLabel="Set test session storage key" onSelect="setTestSessionStorageItem();">
|
||||
<label>Set ATV APP session storage key (test)</label>
|
||||
</oneLineMenuItem>
|
||||
<oneLineMenuItem id="list_0" accessibilityLabel="Set test local storage key" onSelect="setTestLocalStorageItem();">
|
||||
<label>Set ATV APP local storage key (test)</label>
|
||||
</oneLineMenuItem>
|
||||
<oneLineMenuItem id="list_1" accessibilityLabel="Print session storage (log)" onSelect="printSessionStorage();">
|
||||
<label>Print ATV App session storage (log)</label>
|
||||
</oneLineMenuItem>
|
||||
<oneLineMenuItem id="list_2" accessibilityLabel="Print ATV storage (log)" onSelect="printLocalStorage();">
|
||||
<label>Print ATV App local storage (log)</label>
|
||||
</oneLineMenuItem>
|
||||
<oneLineMenuItem id="list_3" accessibilityLabel="Clear ATV Storage and exit" onSelect="console.log('CLEARING ALL APP STORAGE AND EXITING APP'); atv.localStorage.clear(); atv.sessionStorage.clear(); atv.exitApp();">
|
||||
<label>Clear ATV App Storage and exit App</label>
|
||||
</oneLineMenuItem>
|
||||
</items>
|
||||
</optionList>
|
||||
</body>
|
||||
</atv>
|
||||
9
app/xml/dvt/testpage.xml
Normal file
9
app/xml/dvt/testpage.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<atv>
|
||||
<body>
|
||||
<dialog id="com.jellycat.xmltestpage">
|
||||
<title>XML Test-Page Not Implemented</title>
|
||||
<description>The feed for this page has not been written. (but works)</description>
|
||||
</dialog>
|
||||
</body>
|
||||
</atv>
|
||||
@@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<atv>
|
||||
<head>
|
||||
<script src="http://jcathost.dns/js/jclog.js"/>
|
||||
</head>
|
||||
<body>
|
||||
<optionDialog id="com.sample.error-dialog">
|
||||
<header>
|
||||
<simpleHeader accessibilityLabel="Dialog with Options">
|
||||
<title>JellyCAT Debug/Dev Tools</title>
|
||||
</simpleHeader>
|
||||
</header>
|
||||
<description>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</description>
|
||||
<menu>
|
||||
<initialSelection>
|
||||
<row>1</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_0" accessibilityLabel="Option 2" onSelect="console.log('Option 2 selected'); atv.unloadPage();">
|
||||
<label>Unload Page</label>
|
||||
</oneLineMenuItem>
|
||||
</items>
|
||||
</menuSection>
|
||||
</sections>
|
||||
</menu>
|
||||
</optionDialog>
|
||||
</body>
|
||||
</atv>
|
||||
Reference in New Issue
Block a user