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

[QOLDEV-614] use QGOV CDN for grid scripts #255

Merged
merged 5 commits into from
Nov 17, 2023

Conversation

ThrawnCA
Copy link
Contributor

Add CDN override to point 'grid' library at static.qgov.net.au

@duttonw
Copy link
Member

duttonw commented Nov 14, 2023

no good, please don't 'hack' the supplied @formio packages, these are replaced often. Please use the supplied hooks and add it to the loader system instead.

Copy link
Member

@duttonw duttonw left a comment

Choose a reason for hiding this comment

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

prmium.js and primum.min.js is imported and should not be altered. The latest formio now has ability to change cdn endpoints for all and per library.

@duttonw duttonw changed the base branch from main to develop November 14, 2023 03:39
@ThrawnCA ThrawnCA force-pushed the QOLDEV-614-grid-cdn-change branch from de95405 to defb91e Compare November 14, 2023 04:34
@@ -168,6 +168,7 @@ const defaultInitFormioAction = () => {
const initFormio = () => {
// Init form
Formio.icons = "fontawesome";
Formio.cdn.setOverrideUrl('grid', 'https://static.qgov.net.au/formio-qld/v2/v2.x.x-latest/');
Copy link
Member

Choose a reason for hiding this comment

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

@ThrawnCA ThrawnCA force-pushed the QOLDEV-614-grid-cdn-change branch 3 times, most recently from b2379d9 to 4f16763 Compare November 17, 2023 01:52
- Allow any base URL to be provided, not just a subdomain of qgov.net.au.
This lets us reuse the default function for the Gitbridge script.
@ThrawnCA ThrawnCA force-pushed the QOLDEV-614-grid-cdn-change branch from 4f16763 to 864d9f1 Compare November 17, 2023 05:04
@ThrawnCA ThrawnCA merged commit d09b7ec into develop Nov 17, 2023
4 checks passed
@duttonw duttonw deleted the QOLDEV-614-grid-cdn-change branch April 5, 2024 01:36
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.

2 participants