Skip to content

Commit

Permalink
Remove expero views as they are no longer supported. (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnman authored Sep 4, 2024
1 parent a1b4bd3 commit 61243a3
Show file tree
Hide file tree
Showing 27 changed files with 15 additions and 348 deletions.
8 changes: 5 additions & 3 deletions how-to/integrate-with-snap-basic/client/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ window.addEventListener("DOMContentLoaded", async () => {
*/
async function initializeDOM(): Promise<void> {
chkShowDebugWindow = document.querySelector<HTMLInputElement>("#chkShowDebugWindow");
chkDisableShiftToUnsnap = document.querySelector<HTMLInputElement>("#chkDisableShiftToUnsnap");
chkDisableShiftToUnsnap = document.querySelector<HTMLInputElement>("#chkDisableShiftToUnsnap");
chkCtrlToSnap = document.querySelector<HTMLInputElement>("#chkCtrlToSnap");
chkDisableGPUDragging = document.querySelector<HTMLInputElement>("#chkDisableGPUDragging");
chkDisableBlurDrop = document.querySelector<HTMLInputElement>("#chkDisableBlurDrop");
Expand Down Expand Up @@ -91,11 +91,13 @@ async function initializeDOM(): Promise<void> {

logInformation(`Starting Snap Server with Id ${fin.me.identity.uuid}`);
server = new Snap.SnapServer(fin.me.identity.uuid);
await server.start({ showDebug: chkShowDebugWindow?.checked,
await server.start({
showDebug: chkShowDebugWindow?.checked,
disableUserUnstick: chkDisableShiftToUnsnap?.checked,
keyToStick: chkCtrlToSnap?.checked,
disableGPUAcceleratedDragging: chkDisableGPUDragging?.checked,
disableBlurDropPreview: chkDisableBlurDrop?.checked });
disableBlurDropPreview: chkDisableBlurDrop?.checked
});

server.addEventListener("client-registered", (event: Snap.ClientRegisteredEvent) => {
logInformation(`Client Registered: ${JSON.stringify(event)}`);
Expand Down
27 changes: 1 addition & 26 deletions how-to/register-with-home-basic/client/src/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { AppManifestType, getCurrentSync } from "@openfin/workspace-platform";
* @returns List of app definitions.
*/
export function getApps(): App[] {
return [OPENFIN_INFORMATION_APP, EXPERO_APP, PROCESS_MANAGER, DEVELOPER_CONTENT];
return [OPENFIN_INFORMATION_APP, PROCESS_MANAGER, DEVELOPER_CONTENT];
}

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

/**
* App definition for the Expero labs news gateway.
*/
const EXPERO_APP: App = {
appId: "expero-company-news",
title: "Gateway - Company News",
manifest: "https://openfin-iex.experolabs.com/openfin/manifests/company-news.json",
manifestType: "view",
icons: [
{
src: "https://openfin-iex.experolabs.com/favicon.ico"
}
],
contactEmail: "[email protected]",
supportEmail: "[email protected]",
publisher: "Expero",
intents: [],
images: [
{
src: "http://localhost:8080/common/images/previews/expero-news-view.png"
}
],
tags: ["expero", "view", "interop"]
};

/**
* App definition for the OpenFin Notification Process Manager development tool.
*/
Expand Down
68 changes: 0 additions & 68 deletions how-to/register-with-home/public/common/apps-expero.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 0 additions & 4 deletions how-to/register-with-home/public/manifest.fin.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"appProvider": {
"appSourceUrls": [
"http://localhost:8080/common/apps-contact.json",
"http://localhost:8080/common/apps-expero.json",
"http://localhost:8080/common/apps-interop.json",
"http://localhost:8080/common/apps-native.json",
"http://localhost:8080/common/apps-tools.json"
Expand All @@ -63,9 +62,6 @@
"icon": "http://localhost:8080/favicon.ico",
"queryMinLength": 3,
"queryAgainst": ["title"]
},
"keys": {
"expero": "pk_aa9aeeae6d1949269e73cf6cf477eb53"
}
}
}
25 changes: 0 additions & 25 deletions how-to/register-with-store-basic/client/src/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,6 @@ export const OPENFIN_INFORMATION_APP: App = {
tags: ["view", "openfin", "versions"]
};

/**
* App definition for the Expero labs news gateway.
*/
export const EXPERO_APP: App = {
appId: "expero-company-news",
title: "Gateway - Company News",
manifest: "https://openfin-iex.experolabs.com/openfin/manifests/company-news.json",
manifestType: "view",
icons: [
{
src: "https://openfin-iex.experolabs.com/favicon.ico"
}
],
contactEmail: "[email protected]",
supportEmail: "[email protected]",
publisher: "Expero",
intents: [],
images: [
{
src: "http://localhost:8080/common/images/previews/expero/expero-news-view.png"
}
],
tags: ["expero", "view", "interop"]
};

/**
* App definition for the OpenFin Notification Process Manager development tool.
*/
Expand Down
28 changes: 7 additions & 21 deletions how-to/register-with-store-basic/client/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
type CustomActionPayload,
type CustomActionsMap
} from "@openfin/workspace-platform";
import { DEVELOPER_CONTENT, EXPERO_APP, OPENFIN_INFORMATION_APP, PROCESS_MANAGER, launchApp } from "./apps";
import { DEVELOPER_CONTENT, OPENFIN_INFORMATION_APP, PROCESS_MANAGER, launchApp } from "./apps";

/**
* Register with the store component.
Expand Down Expand Up @@ -34,7 +34,7 @@ export async function register(
title: "Views",
templateId: StorefrontTemplate.AppGrid,
templateData: {
apps: [OPENFIN_INFORMATION_APP, EXPERO_APP]
apps: [OPENFIN_INFORMATION_APP]
}
},
{
Expand Down Expand Up @@ -77,20 +77,6 @@ export async function register(
items: [
{
id: "top-row-item-1",
title: "Expero",
description:
"A collection of example views from Expero showing the power of interop and context sharing.",
image: {
src: "http://localhost:8080/common/images/store/coding-1-unsplash.jpg"
},
templateId: StorefrontTemplate.AppGrid,
templateData: {
apps: [EXPERO_APP]
},
buttonTitle: "Expero Apps"
},
{
id: "top-row-item-2",
title: "Dev Tools",
description:
"A collection of developer tools that can aid with building and debugging OpenFin applications.",
Expand All @@ -106,8 +92,8 @@ export async function register(
]
},
middleRow: {
title: "A collection of simple views that show how to share context using the Interop API.",
apps: [EXPERO_APP]
title: "A collection of tools providing information about OpenFin.",
apps: [OPENFIN_INFORMATION_APP]
},
bottomRow: {
title: "Quick Access",
Expand All @@ -121,7 +107,7 @@ export async function register(
},
templateId: StorefrontTemplate.AppGrid,
templateData: {
apps: [OPENFIN_INFORMATION_APP, EXPERO_APP]
apps: [OPENFIN_INFORMATION_APP]
},
buttonTitle: "See Views"
},
Expand Down Expand Up @@ -155,7 +141,7 @@ export async function register(
}
]
}),
getApps: async () => [OPENFIN_INFORMATION_APP, EXPERO_APP, PROCESS_MANAGER],
getApps: async () => [OPENFIN_INFORMATION_APP, PROCESS_MANAGER],
launchApp: async (app) => {
await launchApp(app);
}
Expand All @@ -181,7 +167,7 @@ export function storeGetCustomActions(): CustomActionsMap {
},
"launch-app": async (payload: CustomActionPayload): Promise<void> => {
if (payload.callerType === CustomActionCallerType.StoreCustomButton) {
const apps = [OPENFIN_INFORMATION_APP, EXPERO_APP, PROCESS_MANAGER, DEVELOPER_CONTENT];
const apps = [OPENFIN_INFORMATION_APP, PROCESS_MANAGER, DEVELOPER_CONTENT];
const app = apps.find((a) => a.appId === payload.appId);
if (app) {
await launchApp(app);
Expand Down
Binary file not shown.
8 changes: 0 additions & 8 deletions how-to/register-with-store/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,6 @@ The [platform.ts](client/src/platform.ts) file reads the customSettings section
"topRow": {
"title": "Custom Top Row Content",
"items": [
{
"title": "Expero",
"description": "A collection of example views from Expero showing the power of interop and context sharing.",
"image": {
"src": "http://localhost:8080/common/images/store/coding-1-unsplash.jpg"
},
"tags": ["expero"]
},
{
"title": "Dev Tools",
"description": "A collection of developer tools that can aid with building and debugging OpenFin applications.",
Expand Down
68 changes: 0 additions & 68 deletions how-to/register-with-store/public/common/apps-expero.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 0 additions & 12 deletions how-to/register-with-store/public/manifest.fin.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"appProvider": {
"appSourceUrls": [
"http://localhost:8080/common/apps-contact.json",
"http://localhost:8080/common/apps-expero.json",
"http://localhost:8080/common/apps-interop.json",
"http://localhost:8080/common/apps-native.json",
"http://localhost:8080/common/apps-tools.json"
Expand All @@ -76,14 +75,6 @@
"topRow": {
"title": "Custom Top Row Content",
"items": [
{
"title": "Expero",
"description": "A collection of example views from Expero showing the power of interop and context sharing.",
"image": {
"src": "http://localhost:8080/common/images/store/coding-1-unsplash.jpg"
},
"tags": ["expero"]
},
{
"title": "Dev Tools",
"description": "A collection of developer tools that can aid with building and debugging OpenFin applications.",
Expand Down Expand Up @@ -184,9 +175,6 @@
}
]
}
},
"keys": {
"expero": "pk_aa9aeeae6d1949269e73cf6cf477eb53"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ If you need to return different settings by user then you can have a cut down ma
"userSessionId": "example-auth-data",
"roleMapping": {
"developer": {
"excludeAppsWithTag": ["expero", "contact", "manager", "irs"],
"excludeAppsWithTag": ["contact", "manager", "irs"],
"preferredScheme": "dark"
},
"sales": {
Expand Down
Loading

0 comments on commit 61243a3

Please sign in to comment.