-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ a6234d1 🚀
- Loading branch information
Showing
179 changed files
with
106,574 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
v38/container-platform-starter/common/views/platform/of-info/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
<title>OpenFin Information</title> | ||
<link rel="icon" type="image/x-icon" href="../../../../favicon.ico" /> | ||
<link rel="stylesheet" href="../../../style/app.css" /> | ||
<script defer="defer" src="./of-info.js"></script> | ||
</head> | ||
|
||
<body class="col fill gap20"> | ||
<header class="row spread middle"> | ||
<div class="col"> | ||
<h1>OpenFin Information</h1> | ||
<h1 class="tag">Information about the OpenFin environment</h1> | ||
</div> | ||
<div class="row middle gap10"> | ||
<image src="../../../images/icon-blue.png" alt="OpenFin" height="40px"></image> | ||
</div> | ||
</header> | ||
<main class="fill col scroll-vertical gap10"> | ||
<fieldset> | ||
<label for="rvmVersion">RVM Version</label> | ||
<span id="rvmVersion"></span> | ||
</fieldset> | ||
<fieldset> | ||
<label for="rvmPath">RVM Path</label> | ||
<span id="rvmPath"></span> | ||
</fieldset> | ||
<fieldset> | ||
<label for="appLogDirectory">App Log Directory</label> | ||
<span id="appLogDirectory"></span> | ||
</fieldset> | ||
<hr /> | ||
<fieldset> | ||
<label for="runtimeVersion">Runtime Version</label> | ||
<span id="runtimeVersion"></span> | ||
</fieldset> | ||
<fieldset> | ||
<label for="chromeVersion">Chrome Version</label> | ||
<span id="chromeVersion"></span> | ||
</fieldset> | ||
<fieldset> | ||
<label for="electronVersion">Electron Version</label> | ||
<span id="electronVersion"></span> | ||
</fieldset> | ||
<hr /> | ||
<fieldset> | ||
<label for="platformIdentity">Platform Identity</label> | ||
<span id="platformIdentity" class="nowrap"></span> | ||
</fieldset> | ||
</main> | ||
</body> | ||
</html> |
60 changes: 60 additions & 0 deletions
60
v38/container-platform-starter/common/views/platform/of-info/of-info.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* Displays a view with information about the OpenFin runtime. | ||
*/ | ||
|
||
document.addEventListener('DOMContentLoaded', () => { | ||
try { | ||
init(); | ||
} catch (error) { | ||
console.error(error); | ||
} | ||
}); | ||
|
||
/** | ||
* Initialize the DOM elements. | ||
*/ | ||
async function init() { | ||
let rvmInfo; | ||
|
||
try { | ||
rvmInfo = await fin.System.getRvmInfo(); | ||
} catch (err) { | ||
console.error(err); | ||
} | ||
|
||
const rvmVersionElement = document.querySelector('#rvmVersion'); | ||
rvmVersionElement.textContent = `v${rvmInfo?.version ?? 'unknown'}`; | ||
|
||
const rvmPathElement = document.querySelector('#rvmPath'); | ||
rvmPathElement.textContent = rvmInfo?.path ?? 'unknown'; | ||
|
||
const appLogDirectoryElement = document.querySelector('#appLogDirectory'); | ||
appLogDirectoryElement.textContent = rvmInfo?.appLogDirectory ?? 'unknown'; | ||
|
||
let runtimeInfo; | ||
try { | ||
runtimeInfo = await fin.System.getRuntimeInfo(); | ||
} catch (err) { | ||
console.error(err); | ||
} | ||
|
||
const runtimeVersionElement = document.querySelector('#runtimeVersion'); | ||
runtimeVersionElement.textContent = `v${runtimeInfo?.version ?? 'unknown'}`; | ||
|
||
const chromeVersionElement = document.querySelector('#chromeVersion'); | ||
chromeVersionElement.textContent = `v${runtimeInfo?.chromeVersion ?? 'unknown'}`; | ||
|
||
const electronVersionElement = document.querySelector('#electronVersion'); | ||
electronVersionElement.textContent = runtimeInfo?.electronVersion ?? 'unknown'; | ||
|
||
let platform; | ||
|
||
try { | ||
platform = fin.Platform.getCurrentSync(); | ||
} catch (err) { | ||
console.error(err); | ||
} | ||
|
||
const platformIdentityElement = document.querySelector('#platformIdentity'); | ||
platformIdentityElement.textContent = platform?.identity?.uuid ?? 'unknown'; | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<title>Platform Provider</title> | ||
<link rel="icon" type="image/x-icon" href="../favicon.ico" /> | ||
<meta name="description" content="" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<script src="../js/provider.bundle.js"></script> | ||
</head> | ||
<body> | ||
<div>Custom Provider...</div> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"runtime": { | ||
"arguments": "--v=1 --inspect", | ||
"version": "36.122.80.11" | ||
}, | ||
"platform": { | ||
"enableBeforeUnload": true, | ||
"uuid": "container-platform-starter", | ||
"icon": "https://built-on-openfin.github.io/container-starter/v38/container-platform-starter/favicon.ico", | ||
"autoShow": false, | ||
"providerUrl": "https://built-on-openfin.github.io/container-starter/v38/container-platform-starter/html/provider.html" | ||
}, | ||
"snapshot": { | ||
"windows": [ | ||
{ | ||
"layout": { | ||
"content": [ | ||
{ | ||
"type": "row", | ||
"content": [ | ||
{ | ||
"type": "stack", | ||
"content": [ | ||
{ | ||
"type": "component", | ||
"title": "view1", | ||
"componentName": "view", | ||
"componentState": { | ||
"url": "https://built-on-openfin.github.io/container-starter/v38/container-platform-starter/common/views/platform/of-info/index.html", | ||
"name": "view1", | ||
"componentName": "view" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"devtools_port": 9090, | ||
"startup_app": { | ||
"name": "OpenMultipleWindows", | ||
"description": "OpenMultipleWindows", | ||
"url": "http://www.google.com", | ||
"showTaskbarIcon": true, | ||
"taskbarIcon": "http://cdn.openfin.co/hyperblotter/favicon.ico", | ||
"icon": "http://cdn.openfin.co/hyperblotter/favicon.ico", | ||
"uuid": "OpenMultipleWindows", | ||
"autoShow": true, | ||
"contextMenu": true, | ||
"defaultHeight": 500, | ||
"defaultwidth": 500, | ||
"frame": true, | ||
"defaultCentered": true, | ||
"resizable": true | ||
}, | ||
"runtime": { | ||
"arguments": "--enable-crash-reporting --no-sandbox", | ||
"version": "36.122.80.11" | ||
}, | ||
"shortcut": { | ||
"company": "OpenFin", | ||
"description": "Openfin openfin application window Sample", | ||
"name": "Openfin application window" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.