Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import XFC as ES6 module #27

Merged
merged 7 commits into from
Oct 3, 2020
Merged

Conversation

pgross41
Copy link
Contributor

#26

Copy link
Member

@kolkheang kolkheang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pgross41 ! Could you update the README to include way to disable logs?

@pgross41
Copy link
Contributor Author

@kolkheang is this ready to be merged?

@@ -4,9 +4,38 @@ In order to run any SMART app in Cerner's MPage view (iframe), the following pro

This library uses [xfc](https://github.com/cerner/xfc) to solve [Clickjacking](https://www.owasp.org/index.php/Clickjacking) problem for all browsers.

## Availability
## Installation

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a heading for NPM Module(Recommended)

README.md Outdated
};
```

Warning: Disable XFC logging if using [F-Twelve](https://github.com/cerner/f-twelve/). F-Twelve writes to the DOM every time `console.log` is called and (when logging is enabled) XFC calls `console.log` every time the DOM is written to. This causes the browser to endlessly loop and freeze. It is safe to use both concurrently if XFC logging is disabled.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps bold the Warning: part

README.md Outdated
import 'cerner-smart-embeddable-lib';
```

The minified & transpiled files are also available in the `dist/` directory and can be used with a `<script>` tag.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be under a new heading Script Include (NOT recommended) since you can't turn off XFC logging and it would conflict with MPages integration.

@kolkheang
Copy link
Member

@pgross41 I just got a chance to review. Please let me know if the comments make sense.

@shriniketsarkar could you take a look at this PR as well?

@pgross41 pgross41 requested a review from kolkheang September 30, 2020 04:44
@pgross41
Copy link
Contributor Author

pgross41 commented Oct 1, 2020

@kolkheang made changes based on your comments please re-review

@pgross41
Copy link
Contributor Author

pgross41 commented Oct 3, 2020

@kolkheang is this ready to merge?

Copy link
Contributor

@shriniketsarkar shriniketsarkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. @pgross41 Thanks for this PR.

@shriniketsarkar shriniketsarkar merged commit 9260f80 into oracle-samples:master Oct 3, 2020
@pgross41 pgross41 deleted the patch-1 branch October 4, 2020 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants