Add symphony compatibility project#199
Conversation
ColinEberhardt
left a comment
There was a problem hiding this comment.
Looks really good in general - just a few minor changes. Thanks!
| return; | ||
| } | ||
|
|
||
| static registerActivityDetection(throttle: number, callback: Function) { |
There was a problem hiding this comment.
For these methods I think it would be useful to reference the symphony confluence URL where they are specifed
| namespace map { | ||
| export class ssf { | ||
| static activate(windowName: string) { | ||
| // Could use window.focus in containerjs, but no way of selecting window by name yet |
There was a problem hiding this comment.
Can you iterate over all windows to find the one with the given name?
There was a problem hiding this comment.
Not using ContainerJS. The only method we have is getCurrentWindow, but it should be relatively easy to add this in.
There was a problem hiding this comment.
OK, fair enough - that does look like a bit of an omission in our current API - and is something covered in #171
packages/api-demo/package.json
Outdated
| "dependencies": { | ||
| "containerjs-api-bundle": "0.0.2", | ||
| "containerjs-api-electron": "0.0.2", | ||
| "containerjs-compatibility-api": "0.0.1", |
There was a problem hiding this comment.
rather than adding to the existing api-demo, I'd prefer to keep this code self-container within containerjs-compatibility-api as I don't think we see these APIs being included in the long-term. Having it all in one place makes it easier to remove ;-)
There was a problem hiding this comment.
I only included this as a simple demo for how it works. Do you want to remove the demo, or add a new demo in the containerjs-compatibility-api project?
There was a problem hiding this comment.
I'd prefer to have a new demo in containerjs-compatibility-api - thanks
b5ce23c to
e009a8a
Compare
|
@ColinEberhardt Updated :-) |
Adds a compatibility layer for mapping the symphony API specifications to ContainerJS APIs. most of the APIs are not implemented in ContainerJS yet, but it gives us a simple way of mapping them once they are added.
To use the compatibility layer, add the
containerjs-compatibility-api.jsfile in a script tag in any webpage needing the compatibility. This could be improved by adding within the bundle/preload scripts.