Skip to content

Commit

Permalink
Added live launch links for snap and added window options builder (#692)
Browse files Browse the repository at this point in the history
* Add live links for snap and add window options builder

* Apps update
  • Loading branch information
johnman authored Mar 9, 2024
1 parent 847661c commit 9c83d97
Show file tree
Hide file tree
Showing 12 changed files with 89 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ There are topics that a workspace platform developer may want to look into in an
| [How To Use Theming](./how-to/use-theming) | This example demonstrates how to brand the workspace applications with your own theme | [Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fuse-theming%2Fmanifest.fin.json) |
| [How To Support Context And Intents](./how-to/support-context-and-intents) | This example is an extension of the register with store example but shows you how to implement intent support in your workspace platform. It includes various examples of sharing context and different ways of raising an intent and passing the context to the intent target. | [Example 1](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fsupport-context-and-intents%2Fmanifest.fin.json) [Example 2](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fsupport-context-and-intents%2Fsecond.manifest.fin.json) |
| [How To Register With Platform Windows](./how-to/register-with-platform-windows) | This example is based off of the register with store example except that it uses Platform API Windows instead of Workspace Browser Windows. The sample is a way of demonstrating that existing platforms can decide to take advantage of Workspace Components such as Home and Store before deciding on whether to move to the Workspace Browser Component. | [Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fregister-with-platform-windows%2Fmanifest.fin.json) |
| [How To Integrate with Snap - Basic](./how-to/integrate-with-snap-basic) | This example shows how to use the OpenFin Snap SDK to allow snapping and docking of native applications to your OpenFin windows. | |
| [How To Integrate with Snap](./how-to/integrate-with-snap) | This example shows how to use the OpenFin Snap SDK to allow snapping and docking of native applications to your OpenFin windows. Also saving and restoring them as part of a snapshot | |
| [How To Integrate with Snap - Basic](./how-to/integrate-with-snap-basic) | This example shows how to use the OpenFin Snap SDK to allow snapping and docking of native applications to your OpenFin windows. | [Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fintegrate-with-snap-basic%2Fmanifest.fin.json) |
| [How To Integrate with Snap](./how-to/integrate-with-snap) | This example shows how to use the OpenFin Snap SDK to allow snapping and docking of native applications to your OpenFin windows. Also saving and restoring them as part of a snapshot | [Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fintegrate-with-snap%2Fmanifest.fin.json) |
| [How To Add Workspace Native Window Integration](./how-to/workspace-native-window-integration) | This example shows an example of configuring Home so that it can launch a native application, capture it's location as a workspace and then launch the workspace to launch and restore the position of the native application. | [Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fworkspace-native-window-integration%2Fmanifest.fin.json) |
| [How To Integrate with OpenId Connect](./how-to/integrate-with-openid-connect/README.md) | This example demonstrates how to use Single Single On to integrate with an OpenId Connect provider to authenticate your application. | |
| [How To Integrate Server Authentication](./how-to/integrate-server-authentication) | This example demonstrates how to authenticate with a servers login page. | |
Expand Down
4 changes: 3 additions & 1 deletion how-to/integrate-with-snap-basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ This example demonstrates connecting to and using layouts with Snap.

The package utilized by this example is [@openfin/snap-sdk](https://www.npmjs.com/package/@openfin/snap-sdk).

> The **@openfin/snap-sdk** is currently in beta. The version of the Snap SDK is referenced in package.json and the app asset defined in manifest.fin.json.
> The version of **@openfin/snap-sdk** is referenced in package.json and the app asset defined in manifest.fin.json.
- [Live Launch Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fintegrate-with-snap-basic%2Fmanifest.fin.json)

## Getting Started

Expand Down
4 changes: 3 additions & 1 deletion how-to/integrate-with-snap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ This example demonstrates saving and restoring native applications as part of a

The package utilized by this example is [@openfin/snap-sdk](https://www.npmjs.com/package/@openfin/snap-sdk).

> The **@openfin/snap-sdk** is currently in beta. The version of the Snap SDK is referenced in package.json and the app asset defined in manifest.fin.json.
> The version of **@openfin/snap-sdk** is referenced in package.json and the app asset defined in manifest.fin.json.
- [Live Launch Example](https://start.openfin.co/?manifest=https%3A%2F%2Fbuilt-on-openfin.github.io%2Fworkspace-starter%2Fworkspace%2Fv17.0.0%2Fintegrate-with-snap%2Fmanifest.fin.json)

## Getting Started

Expand Down
24 changes: 23 additions & 1 deletion how-to/integrate-with-snap/client/src/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { randomUUID } from "./utils";
* @returns List of app definitions.
*/
export async function getApps(): Promise<PlatformApp[]> {
return [OPENFIN_INFORMATION_APP, SNAP_NATIVE_TEST_APP];
return [OPENFIN_INFORMATION_APP, SNAP_NATIVE_TEST_APP, OPENFIN_WINDOW_APP];
}

/**
Expand Down Expand Up @@ -48,6 +48,28 @@ const OPENFIN_INFORMATION_APP: PlatformApp = {
tags: ["view", "openfin", "versions"]
};

/**
* App definition to use for demonstration which show OpenFin environment information.
*/
const OPENFIN_WINDOW_APP: PlatformApp = {
appId: "openfin-window-options-builder",
title: "Window Options Builder",
description: "A tool to create a classic window and demonstrate the different window options available",
manifest: "http://localhost:8080/common/views/window-options/window.options.builder.view.fin.json",
manifestType: "view",
icons: [
{
src: "http://localhost:8080/common/images/icon-blue.png"
}
],
contactEmail: "[email protected]",
supportEmail: "[email protected]",
publisher: "OpenFin",
intents: [],
images: [],
tags: ["view", "openfin", "developer-tools"]
};

/**
* App definition for native test application.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"url": "http://built-on-openfin.github.io/container-starter/v34/use-window-options/html/app.html"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
"componentState": {
"url": "https://developers.openfin.co/of-docs/docs/workspace-overview",
"componentName": "view",
"interop": {}
"interop": {},
"workspacePlatform": {
"browserNavigationButtons": {
"back": true,
"forward": true,
"reload": true
}
}
},
"title": "Workspace Docs"
}
Expand All @@ -55,7 +62,14 @@
"componentState": {
"url": "https://developer.openfin.co/docs/javascript/stable/index.html",
"componentName": "view",
"interop": {}
"interop": {},
"workspacePlatform": {
"browserNavigationButtons": {
"back": true,
"forward": true,
"reload": true
}
}
},
"title": "OpenFin API Docs"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@
"componentState": {
"url": "https://developers.openfin.co/of-docs/docs/workspace-overview",
"componentName": "view",
"interop": {}
"interop": {},
"workspacePlatform": {
"browserNavigationButtons": {
"back": true,
"forward": true,
"reload": true
}
}
},
"title": "Workspace Docs"
}
Expand All @@ -55,7 +62,14 @@
"componentState": {
"url": "https://developer.openfin.co/docs/javascript/stable/index.html",
"componentName": "view",
"interop": {}
"interop": {},
"workspacePlatform": {
"browserNavigationButtons": {
"back": true,
"forward": true,
"reload": true
}
}
},
"title": "OpenFin API Docs"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,24 @@
}
],
"tags": ["view", "analytics", "tools"]
},
{
"appId": "window-options-builder",
"name": "window-options-builder",
"title": "Window Options Builder",
"description": "A developer tool to help evaluate the options available when creating classic windows",
"manifest": "http://localhost:8080/common/views/window-options/window.options.builder.view.fin.json",
"manifestType": "view",
"icons": [{ "src": "http://localhost:8080/common/images/icon-blue.png" }],
"contactEmail": "[email protected]",
"supportEmail": "[email protected]",
"publisher": "OpenFin",
"intents": [],
"images": [
{
"src": "http://localhost:8080/common/images/previews/window-options-builder.png"
}
],
"tags": ["view", "window", "tools"]
}
]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"url": "https://built-on-openfin.github.io/container-starter/v34/use-window-options/html/app.html"
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"how-to/integrate-with-openid-connect",
"how-to/integrate-with-rss",
"how-to/integrate-with-salesforce-basic",
"how-to/integrate-with-snap-basic",
"how-to/migrate-from-a-previous-version",
"how-to/automation-testing",
"how-to/automation-testing/register-with-home-js",
Expand Down
2 changes: 1 addition & 1 deletion scripts/common-files.json
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
{
"srcFolder": "how-to/workspace-platform-starter/public/common",
"destFolder": "how-to/integrate-with-snap/public/common",
"files": ["images/icon-blue.png", "style/app.css", "dos.json"]
"files": ["images/icon-blue.png", "style/app.css", "dos.json", "views/window-options/window.options.builder.view.fin.json"]
},
{
"srcFolder": "how-to/workspace-platform-starter/scripts",
Expand Down

0 comments on commit 9c83d97

Please sign in to comment.