-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Allow custom Javascript files for specific page #2375
base: develop
Are you sure you want to change the base?
Allow custom Javascript files for specific page #2375
Conversation
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 51.87% | 263/507 |
🔴 | Branches | 21.61% | 67/310 |
🔴 | Functions | 14.66% | 17/116 |
🔴 | Lines | 53.19% | 242/455 |
Test suite run success
7 tests passing in 1 suite.
Report generated by 🧪jest coverage report action from c5fda73
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🟢 | Statements | 87.31% (-0.14% 🔻) |
3524/4036 |
🟡 | Branches | 69.27% (-0.06% 🔻) |
2437/3518 |
🟢 | Functions | 83.27% (-0.09% 🔻) |
652/783 |
🟢 | Lines | 87.75% (-0.16% 🔻) |
3265/3721 |
Show files with reduced coverage 🔻
St.❔ |
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|---|
🔴 | ... / TaipyRendered.tsx |
55.17% (-9.41% 🔻) |
12.77% (-0.87% 🔻) |
37.5% (-12.5% 🔻) |
55.17% (-9.41% 🔻) |
Test suite run success
717 tests passing in 47 suites.
Report generated by 🧪jest coverage report action from 359fef6
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
@@ -61,6 +62,18 @@ const setStyle = (id: string, styleString: string): void => { | |||
} | |||
}; | |||
|
|||
// set script tag for the page | |||
const setScript = (id: string, scriptPaths: string[]): void => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not use helmet for this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've put the script outside of the Helmet
What type of PR is this? (check all applicable)
Description
Allowing custom javascript file for specific page from Page()
Related Tickets & Documents
#2366
Checklist
We encourage you to keep the code coverage percentage at 80% and above.