Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Inlay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
Inlay
Commits
d1b70288
Commit
d1b70288
authored
1 year ago
by
Rich Lott / Artful Robot
Browse files
Options
Downloads
Patches
Plain Diff
1.3.9 remove type=module!!
parent
cf8d9333
Branches
main
Branches containing commit
Tags
1.3.9
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CRM/Inlay/Page/Demo.php
+1
-1
1 addition, 1 deletion
CRM/Inlay/Page/Demo.php
ang/inlay/Inlays.js
+1
-1
1 addition, 1 deletion
ang/inlay/Inlays.js
docs/reference/changes.md
+8
-1
8 additions, 1 deletion
docs/reference/changes.md
info.xml
+2
-2
2 additions, 2 deletions
info.xml
with
12 additions
and
5 deletions
CRM/Inlay/Page/Demo.php
+
1
−
1
View file @
d1b70288
...
...
@@ -28,7 +28,7 @@ class CRM_Inlay_Page_Demo extends CRM_Core_Page {
$editUrl
=
str_replace
(
'{id}'
,
$inlay
->
getID
(),
$inlay
->
getInstanceEditURLTemplate
());
$this
->
assign
(
'editUrl'
,
CRM_Utils_System
::
url
(
$editUrl
));
$cacheBuster
=
time
();
$this
->
assign
(
'scriptTag'
,
"<script
type=module
src=
\"
{
$inlay
->
getBundleUrl
()
}
?nocache=
$cacheBuster
\"
data-inlay-id=
\"
{
$inlay
->
getPublicID
()
}
\"
></script>"
);
$this
->
assign
(
'scriptTag'
,
"<script
defer
src=
\"
{
$inlay
->
getBundleUrl
()
}
?nocache=
$cacheBuster
\"
data-inlay-id=
\"
{
$inlay
->
getPublicID
()
}
\"
></script>"
);
parent
::
run
();
}
...
...
This diff is collapsed.
Click to expand it.
ang/inlay/Inlays.js
+
1
−
1
View file @
d1b70288
...
...
@@ -177,7 +177,7 @@
}
$scope
.
getScript
=
function
(
i
)
{
var
mainScript
=
encodeToHTML
(
`<script
type=module
src="
${
i
.
scriptUrl
}
" data-inlay-id="
${
i
.
public_id
}
" ></script>`
);
var
mainScript
=
encodeToHTML
(
`<script
defer
src="
${
i
.
scriptUrl
}
" data-inlay-id="
${
i
.
public_id
}
" ></script>`
);
var
wpShortcode
=
encodeToHTML
(
`[inlay id="
${
i
.
public_id
}
"]`
);
console
.
log
({
mainScript
,
wpShortcode
});
...
...
This diff is collapsed.
Click to expand it.
docs/reference/changes.md
+
8
−
1
View file @
d1b70288
# Change log
## 1.3.9
-
remove
`type=module`
! It requires sites to emit special headers
`Access-Control-Allow-Origin`
and breaks on sites without that!
## 1.3.8
-
Changes to support better migration and validation of config between versions
of type implementations.
-
Suggest
`<script>`
tags sourcing inlay bundles now specify
`type=module`
. This
should not hurt existing scripts but might be important to support ESM modules used within scripts.
should not hurt existing scripts but might be important to support ESM modules used within scripts.
⚠️ this turned out to be wrong!
-
Inlay tidies up better if you uninstall it. (Warning, if not obvious: it will
now delete all inlay-managed assets, as well as bundle scripts and inlay-specific database tables)
...
...
This diff is collapsed.
Click to expand it.
info.xml
+
2
−
2
View file @
d1b70288
...
...
@@ -14,8 +14,8 @@
<url
desc=
"Support"
>
https://lab.civicrm.org/extensions/inlay
</url>
<url
desc=
"Licensing"
>
http://www.gnu.org/licenses/agpl-3.0.html
</url>
</urls>
<releaseDate>
202
3-11-24
</releaseDate>
<version>
1.3.
8
</version>
<releaseDate>
202
4-02-19
</releaseDate>
<version>
1.3.
9
</version>
<develStage>
stable
</develStage>
<compatibility>
<ver>
5.64
</ver>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment