Skip to content

Commit

Permalink
Deploying to gh-pages from @ b74dc9e 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
joeransegnola committed Dec 3, 2024
1 parent 891b986 commit 5bae9d5
Show file tree
Hide file tree
Showing 193 changed files with 108,719 additions and 0 deletions.
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.
929 changes: 929 additions & 0 deletions dev/joe/init-params/container-platform-starter/common/style/app.css

Large diffs are not rendered by default.

410 changes: 410 additions & 0 deletions dev/joe/init-params/container-platform-starter/common/style/style.html

Large diffs are not rendered by default.

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>
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.
15 changes: 15 additions & 0 deletions dev/joe/init-params/container-platform-starter/html/provider.html
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.

43 changes: 43 additions & 0 deletions dev/joe/init-params/container-platform-starter/manifest.fin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"runtime": {
"arguments": "--v=1 --inspect",
"version": "38.126.83.79"
},
"platform": {
"enableBeforeUnload": true,
"uuid": "container-platform-starter",
"icon": "https://built-on-openfin.github.io/container-starter/dev/joe/init-params/container-platform-starter/favicon.ico",
"autoShow": false,
"providerUrl": "https://built-on-openfin.github.io/container-starter/dev/joe/init-params/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/dev/joe/init-params/container-platform-starter/common/views/platform/of-info/index.html",
"name": "view1",
"componentName": "view"
}
}
]
}
]
}
]
}
}
]
}
}
28 changes: 28 additions & 0 deletions dev/joe/init-params/create-window/app.fin.json
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": "38.126.83.79"
},
"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.
Loading

0 comments on commit 5bae9d5

Please sign in to comment.