Skip to content

Commit

Permalink
Kirby 4 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iskrisis committed Dec 1, 2023
1 parent 126cb55 commit 09dc79e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "floriankarsten/kirby-plausible",
"description": "",
"type": "kirby-plugin",
"version": "0.2.0",
"version": "0.2.1",
"license": "MIT",
"authors": [
{
Expand All @@ -12,7 +12,7 @@
],
"require": {
"getkirby/composer-installer": "^1.1",
"getkirby/cms": "^3.6.0 || ^4.0.0"
"getkirby/cms": "^4.0.0"
},
"autoload": {
},
Expand Down
17 changes: 9 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ panel.plugin("floriankarsten/plausible", {
components: {
'k-plausible-view': {
template: `
<k-inside>
<k-view class="k-plausible-view">
<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>
<div style="margin-top: 30px; text-align: center;" v-else>
<code>You need to set floriankarsten.plausible.sharedLink in config.php</code>
</div>
</k-view>
</k-inside>
<k-panel-inside class="k-plausible-view">
<k-section>
<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>
<script async src="https://plausible.io/js/embed.host.js"></script>
<div style="margin-top: 30px; text-align: center;" v-else>
<code>You need to set floriankarsten.plausible.sharedLink in config.php</code>
</div>
</k-section>
</k-panel-inside>
`,
props: ["sharedLink"],
},
Expand Down

0 comments on commit 09dc79e

Please sign in to comment.