Skip to content

Commit

Permalink
fix: panel view with header
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Oct 29, 2021
1 parent 66c8753 commit 034104a
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 62 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mauricerenck/komments",
"version": "1.0.0",
"version": "1.0.1",
"description": "A comment and webmention plugin for Kirby 3",
"type": "kirby-plugin",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "komments",
"version": "1.0.0",
"description": "A comment and webmention plugin for Kirby 3",
"main": "index.js",
"author": "Maurice Renck",
"scripts": {
"dev": "parcel watch src/index.js --no-source-maps -d ./",
"build": "parcel build src/index.js --no-source-maps --experimental-scope-hoisting -d ./",
"build-css": "sass src/komments.scss assets/komments.css"
},
"posthtml": {
"recognizeSelfClosing": true
},
"dependencies": {
"semver": "^7.3.4",
"vue": "^2.6.11",
"vue-hot-reload-api": "^2.3.4"
},
"devDependencies": {
"@vue/component-compiler-utils": "^3.1.2",
"cssnano": "^4.1.10",
"sass": "^1.32.6",
"stylus": "^0.54.7",
"vue-template-compiler": "^2.6.11"
}
"name": "komments",
"version": "1.0.1",
"description": "A comment and webmention plugin for Kirby 3",
"main": "index.js",
"author": "Maurice Renck",
"scripts": {
"dev": "parcel watch src/index.js --no-source-maps -d ./",
"build": "parcel build src/index.js --no-source-maps --experimental-scope-hoisting -d ./",
"build-css": "sass src/komments.scss assets/komments.css"
},
"posthtml": {
"recognizeSelfClosing": true
},
"dependencies": {
"semver": "^7.3.4",
"vue": "^2.6.11",
"vue-hot-reload-api": "^2.3.4"
},
"devDependencies": {
"@vue/component-compiler-utils": "^3.1.2",
"cssnano": "^4.1.10",
"sass": "^1.32.6",
"stylus": "^0.54.7",
"vue-template-compiler": "^2.6.11"
}
}
64 changes: 33 additions & 31 deletions src/components/views/Komments.vue
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
<template>
<k-view class="k-komments-view">
<k-header>Komments</k-header>
<k-inside>
<k-view class="k-komments-view">
<k-header>Komments</k-header>

<k-grid gutter="medium">
<k-column width="3/4">
<k-grid>
<k-column width="1/2" class="komment-list">
<KommentList
:queuedKomments="kommentList"
:onSelectKomment="selectKomment"
:selectedKomment="this.selectedKomment"
/>
</k-column>
<k-column width="1/2" class="komment-details">
<KommentDetails
:komment="this.selectedKomment"
:onMarkAsSpam="this.onMarkAsSpam"
:onMarkAsVerified="this.onMarkAsVerified"
:onMarkAsPublished="this.onMarkAsPublished"
:onDelete="this.onDelete"
/>
</k-column>
</k-grid>
</k-column>
<k-grid gutter="medium">
<k-column width="3/4">
<k-grid>
<k-column width="1/2" class="komment-list">
<KommentList
:queuedKomments="kommentList"
:onSelectKomment="selectKomment"
:selectedKomment="this.selectedKomment"
/>
</k-column>
<k-column width="1/2" class="komment-details">
<KommentDetails
:komment="this.selectedKomment"
:onMarkAsSpam="this.onMarkAsSpam"
:onMarkAsVerified="this.onMarkAsVerified"
:onMarkAsPublished="this.onMarkAsPublished"
:onDelete="this.onDelete"
/>
</k-column>
</k-grid>
</k-column>

<k-column width="1/4">
<KommentVersion :version="version" />
</k-column>
</k-grid>
</k-view>
<k-column width="1/4">
<KommentVersion :version="version" />
</k-column>
</k-grid>
</k-view>
</k-inside>
</template>

<script>
Expand All @@ -51,12 +53,12 @@ export default {
},
methods: {
loadKomments() {
this.$api.get('komments/queued').then(komments => {
this.$api.get('komments/queued').then((komments) => {
this.komments = komments
})
},
selectKomment(id) {
this.selectedKomment = this.queuedKomments.find(komment => {
this.selectedKomment = this.queuedKomments.find((komment) => {
return komment.id === id
})
},
Expand Down Expand Up @@ -87,7 +89,7 @@ export default {
}
},
onDelete() {
this.kommentList = this.kommentList.filter(entry => {
this.kommentList = this.kommentList.filter((entry) => {
return entry.id !== this.selectedKomment.id
})
},
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php return array(
'root' => array(
'pretty_version' => '1.0.0',
'version' => '1.0.0.0',
'pretty_version' => '1.0.1',
'version' => '1.0.1.0',
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -29,8 +29,8 @@
'dev_requirement' => false,
),
'mauricerenck/komments' => array(
'pretty_version' => '1.0.0',
'version' => '1.0.0.0',
'pretty_version' => '1.0.1',
'version' => '1.0.1.0',
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down

0 comments on commit 034104a

Please sign in to comment.