Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix webos white screen #1444

Merged
merged 8 commits into from Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file not shown.
Binary file added packages/app-harness/tst/control.tar.gz
Binary file not shown.
Binary file added packages/app-harness/tst/data.tar.gz
Binary file not shown.
1 change: 1 addition & 0 deletions packages/app-harness/tst/debian-binary
@@ -0,0 +1 @@
2.0
10 changes: 10 additions & 0 deletions packages/app-harness/tst/testhosted/appinfo.json
@@ -0,0 +1,10 @@
{
"id": "com.domain.app",
"version": "0.0.1",
"vendor": "My Company",
"type": "web",
"main": "index.html",
"title": "new app",
"icon": "icon.png",
"largeIcon": "largeIcon.png"
}
Binary file added packages/app-harness/tst/testhosted/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/app-harness/tst/testhosted/index.html
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<script>
location.href = 'http://192.168.0.97:8088';
</script>
</head>
<body></body>
</html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/app-harness/tst/testproj/appinfo.json
@@ -0,0 +1,10 @@
{
"id": "com.domain.app",
"version": "0.0.1",
"vendor": "My Company",
"type": "web",
"main": "index.html",
"title": "new app",
"icon": "icon.png",
"largeIcon": "largeIcon.png"
}
Binary file added packages/app-harness/tst/testproj/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions packages/app-harness/tst/testproj/index.html
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <meta charset="utf-8" /> -->
<!-- <link rel="icon" href="./favicon.ico" /> -->
<!-- <meta name="viewport" content="width=device-width,initial-scale=1" /> -->
<!-- <meta name="theme-color" content="#000000" /> -->
<!-- <meta name="description" content="Hello ReNative - Use for production deployments" /> -->
<!-- <link rel="apple-touch-icon" href="./logo192.png" />
<link rel="manifest" href="./manifest.json" /> -->
<title>ReNative</title>
<!-- <script src="http://192.168.0.97:8079/target.js"></script>
<script type="text/javascript" src="./webOSTVjs-1.2.8/webOSTV.js"></script>
<script type="text/javascript" src="webOSTVjs-1.2.8/webOSTV-dev.js"></script> -->
<script src="./static/js/main.953e9554.js"></script>
</head>
<body>
<!-- <noscript>You need to enable JavaScript to run this app.</noscript> -->
<div id="root"></div>
</body>
</html>
49 changes: 49 additions & 0 deletions packages/app-harness/tst/testproj/indexxx.html
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<title>new app</title>
<style type="text/css">
body {
width: 100%;
height: 100%;
background-color: #202020;
}

div {
position: absolute;
height: 100%;
width: 100%;
display: table;
}

h1 {
display: table-cell;
vertical-align: middle;
text-align: center;
color: #ffffff;
}
</style>
</head>

<script src="webOSTVjs-1.2.4/webOSTV.js" charset="utf-8"></script>
<script src="webOSTVjs-1.2.4/webOSTV-dev.js" charset="utf-8"></script>
<script type="text/javascript">
//sample code for calling LS2 API
webOS.service.request('luna://com.palm.systemservice', {
method: 'clock/getTime',
parameters: {},
onSuccess: function (args) {
console.log('UTC:', args.utc);
},
onFailure: function (args) {
console.log('Failed to getTime');
},
});
</script>

<body>
<div>
<h1>Hello, World!</h1>
</div>
</body>
</html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/app-harness/tst/testproj/static/js/main.953e9554.js

Large diffs are not rendered by default.

@@ -0,0 +1,39 @@
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

Large diffs are not rendered by default.

Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

@@ -0,0 +1,10 @@
{
"id": "com.domain.app",
"version": "0.0.1",
"vendor": "My Company",
"type": "web",
"main": "index.html",
"title": "new app",
"icon": "icon.png",
"largeIcon": "largeIcon.png"
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <meta charset="utf-8" /> -->
<!-- <link rel="icon" href="./favicon.ico" /> -->
<!-- <meta name="viewport" content="width=device-width,initial-scale=1" /> -->
<meta name="theme-color" content="#000000" />
<meta name="description" content="Hello ReNative - Use for production deployments" />
<!-- <link rel="apple-touch-icon" href="./logo192.png" />
<link rel="manifest" href="./manifest.json" /> -->
<title>ReNative</title>
<script src="http://192.168.0.97:8079/target.js"></script>
Fixed Show fixed Hide fixed
<script type="text/javascript" src="./webOSTVjs-1.2.8/webOSTV.js"></script>
<script type="text/javascript" src="webOSTVjs-1.2.8/webOSTV-dev.js"></script>
<script src="static/js/main.953e9554.js"></script>
</head>
<body>
<!-- <noscript>You need to enable JavaScript to run this app.</noscript> -->
<div id="root"></div>
</body>
</html>
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<title>new app</title>
<style type="text/css">
body {
width: 100%;
height: 100%;
background-color: #202020;
}

div {
position: absolute;
height: 100%;
width: 100%;
display: table;
}

h1 {
display: table-cell;
vertical-align: middle;
text-align: center;
color: #ffffff;
}
</style>
</head>

<script src="webOSTVjs-1.2.4/webOSTV.js" charset="utf-8"></script>
<script src="webOSTVjs-1.2.4/webOSTV-dev.js" charset="utf-8"></script>
<script type="text/javascript">
//sample code for calling LS2 API
webOS.service.request('luna://com.palm.systemservice', {
method: 'clock/getTime',
parameters: {},
onSuccess: function (args) {
console.log('UTC:', args.utc);
},
onFailure: function (args) {
console.log('Failed to getTime');
},
});
</script>

<body>
<div>
<h1>Hello, World!</h1>
</div>
</body>
</html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

@@ -0,0 +1,39 @@
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

Large diffs are not rendered by default.

Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.