Skip to content

Commit 09dc79e

Browse files
committed
Kirby 4 fix
1 parent 126cb55 commit 09dc79e

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "floriankarsten/kirby-plausible",
33
"description": "",
44
"type": "kirby-plugin",
5-
"version": "0.2.0",
5+
"version": "0.2.1",
66
"license": "MIT",
77
"authors": [
88
{
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"getkirby/composer-installer": "^1.1",
15-
"getkirby/cms": "^3.6.0 || ^4.0.0"
15+
"getkirby/cms": "^4.0.0"
1616
},
1717
"autoload": {
1818
},

index.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ panel.plugin("floriankarsten/plausible", {
22
components: {
33
'k-plausible-view': {
44
template: `
5-
<k-inside>
6-
<k-view class="k-plausible-view">
7-
<iframe v-if="sharedLink" plausible-embed v-bind:src="sharedLink + '&embed=true&theme=light&background=%23efefef'" scrolling="no" frameborder="0" loading="lazy" class="plausible-iframe"></iframe>
8-
<div style="margin-top: 30px; text-align: center;" v-else>
9-
<code>You need to set floriankarsten.plausible.sharedLink in config.php</code>
10-
</div>
11-
</k-view>
12-
</k-inside>
5+
<k-panel-inside class="k-plausible-view">
6+
<k-section>
7+
<iframe v-if="sharedLink" plausible-embed v-bind:src="sharedLink + '&embed=true&theme=light&background=%23efefef'" scrolling="no" frameborder="0" loading="lazy" class="plausible-iframe"></iframe>
8+
<script async src="https://plausible.io/js/embed.host.js"></script>
9+
<div style="margin-top: 30px; text-align: center;" v-else>
10+
<code>You need to set floriankarsten.plausible.sharedLink in config.php</code>
11+
</div>
12+
</k-section>
13+
</k-panel-inside>
1314
`,
1415
props: ["sharedLink"],
1516
},

0 commit comments

Comments
 (0)