core-apps: Add initial missing bits for running & debugging properly on desktop

* Add missing framework_config.json
* Add index-desktop.html with launch="debug&nobridge"

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
This commit is contained in:
Herrie authored and Tofe committed 2017-07-28 14:25:50 +02:00
1 parent 9a9b2106c7
commit 9c64e839db
11 files changed
+327 -3

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
{
"logLevel": 99
"logLevel": 99
}
+30
View File
@@ -0,0 +1,30 @@
<!doctype html>
<!-- LICENSE@@@
Copyright (c) 2010-2013 LG Electronics, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@@LICENSE -->
<html>
<head>
<title>Accounts</title>
<script src="/usr/palm/frameworks/enyo/0.10/framework/enyo.js" launch="debug&nobridge" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
new AccountManager().renderInto(document.body);
</script>
</body>
</html>
+42
View File
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<!-- LICENSE@@@
Copyright (c) 2010-2013 LG Electronics, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@@LICENSE -->
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script type="text/javascript">
// console.profile && console.profile ("calendar");
var timing = {start: -Date.now()};
</script>
<title>Calendar</title>
<link rel="icon" type="image/png" href="images/icon.png">
<link rel="shortcut icon" type="image/png" href="images/icon.png">
<script type="text/javascript" src="/usr/palm/frameworks/mojoloader.js"></script>
<script type="text/javascript" src="/usr/palm/frameworks/enyo/0.10/framework/enyo.js" launch="debug&nobridge"></script>
</head>
<body>
<script type="text/javascript" src="libs/mock.js"></script>
<script type="text/javascript" src="index.js"></script>
</body>
</html>
end
+3 -1
View File
@@ -1 +1,3 @@
{"logLevel":99}
{
"logLevel": 99
}
+52
View File
@@ -0,0 +1,52 @@
<!doctype html>
<!-- LICENSE@@@
Copyright (c) 2011-2013 LG Electronics, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@@LICENSE -->
<html>
<head>
<title>ClockAppLauncher</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script src="/usr/palm/frameworks/enyo/0.10/framework/enyo.js" launch="debug&nobridge" type="text/javascript"></script>
<script type="text/javascript">
// enyo does not release its resources when it is run on desktop browsers, which recalls
// the old window instances from the previous session on page refresh/reload. The following
// piece of code clears out enyo's left-over windows before each page reload running Safari on
// desktop making sure that no left-over windows are recalled on page reload.
if (!window.PalmSystem) {
var windows = enyo.windows.getWindows(), w;
for (w in windows) if (windows.hasOwnProperty(w)) {
enyo.windows.manager.removeWindow(windows[w]);
}
};
</script>
</head>
<body>
<script type="text/javascript">
(function () {
var clockApp = enyo.application.launcher = new ClockApp();
enyo.applicationRelaunchHandler = function (params) { // attach relaunch handler
clockApp.applicationRelaunchHandler(params);
return true;
};
clockApp.startup();
})();
</script>
</body>
</html>
+1 -1
View File
@@ -1,3 +1,3 @@
{
"logLevel": 0
"logLevel": 99
}
+109
View File
@@ -0,0 +1,109 @@
<!DOCTYPE html>
<!-- LICENSE@@@
Copyright (c) 2010-2013 LG Electronics, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@@LICENSE -->
<html>
<head>
<title>Contacts</title>
<script src="/usr/palm/frameworks/enyo/0.10/framework/enyo.js" launch="debug&nobridge" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
if (window.PalmSystem && enyo.windowParams.runTests === true) {
// luna-send -n 1 palm://com.palm.applicationManager/launch '{"id":"com.palm.app.contacts","params":{"runTests":true}}'
/*
loadjscssfile("../../frameworks/jasmine/jasmine.css", "css");
loadjscssfile("../../frameworks/jasmine/jasmine.js", "js");
loadjscssfile("../../frameworks/jasmine/jasmine-html.js", "js");
var i;
for (i = 0; i < specsToTest.length; i++) {
//console.log("Loading specs file: " + specsToTest[i]);
loadjscssfile(specsToTest[i], "js");
}
*/
var testsPathsToImport = [
"tests/TestUtils.js"
];
enyo.depends.apply(this, testsPathsToImport);
ContactsApplication = new ContactsApp();
ContactsApplication.renderInto(document.body);
setTimeout("execTests()", 100);
} else {
appLaunch = new AppLaunch();
appLaunch.checkFirstLaunch();
}
function startTheApp() {
ContactsApplication = new ContactsApp();
ContactsApplication.renderInto(document.body);
if (appLaunch.firstUseShown === true) {
appLaunch.setFirstLaunchAsShown();
}
enyo.application.applicationRelaunchHandler = function (params) {
ContactsApplication.handleLaunchParams(params);
};
}
function showFirstUse() {
contactsFirstUse = new contactsFirstUse();
contactsFirstUse.renderInto(document.body);
}
function execTests() {
/*
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute();
*/
var winParams = {
window : "card",
splashbackgroundname: "./splash.png"
};
enyo.windows.openWindow("jasminerunner.html", "ContactsApp - Test", {contactsApp: ContactsApplication}, winParams);
}
/*
function loadjscssfile(filename, filetype) {
var fileref;
if (filetype === "js") { //if filename is a external JavaScript file
fileref = document.createElement("script");
fileref.setAttribute("type", "text/javascript");
fileref.setAttribute("src", filename);
}
else if (filetype === "css") { //if filename is an external CSS file
fileref = document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", filename);
}
if (typeof fileref !== undefined) {
document.getElementsByTagName("head")[0].appendChild(fileref)
}
}
*/
</script>
</body>
</html>
+3
View File
@@ -0,0 +1,3 @@
{
"logLevel": 99
}
+52
View File
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<!-- LICENSE@@@
Copyright (c) 2010-2013 LG Electronics, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@@LICENSE -->
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>enyo Mail Launcher</title>
<!--<script src="/usr/palm/frameworks/enyo/0.10/framework/enyo.js" launch="debug" type="text/javascript"></script> -->
<script src="/usr/palm/frameworks/enyo/0.10/framework/enyo.js" launch="debug&nobridge" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
window.fauxMail = false;
(function () {
console.log("Email app headless index.html loaded");
console.info("WINLOG: Email app headless index.html loading");
var unloadFunc = function () {
console.info("WINLOG: headless window UNLOAD");
window.removeEventListener('unload', unloadFunc);
};
window.addEventListener('unload', unloadFunc);
var launcher = enyo.application.launcher = new EmailAppLaunch();
enyo.applicationRelaunchHandler = function (params) {
enyo.application.launcher.relaunch(params);
};
launcher.startup();
})();
</script>
</body>
</html>
+3
View File
@@ -0,0 +1,3 @@
{
"logLevel": 99
}
+31
View File
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<!-- LICENSE@@@
Copyright (c) 2010-2013 LG Electronics, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@@LICENSE -->
<html>
<head>
<title>Memos</title>
<!--<script src="/usr/palm/frameworks/enyo/0.10/framework/enyo.js" launch="debug&nobridge" type="text/javascript"></script>-->
<script src="/usr/palm/frameworks/enyo/0.10/framework/enyo.js" launch="debug&nobridge" type="text/javascript"></script>
</head>
<body>
<div id="app-container" class="enyo-fit"></div>
<script type="text/javascript">
app.go();
</script>
</body>
</html>