Navigation Menu

Skip to content

Commit

Permalink
Update tbl-for-kirby
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Hoffmann committed Mar 2, 2019
1 parent df22833 commit 607a84f
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 29 deletions.
2 changes: 1 addition & 1 deletion bili.config.js
Expand Up @@ -9,6 +9,6 @@ module.exports = {
},
plugins: {
vue: true,
livereload: true
// livereload: true
}
}
2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"chartist": "^0.11.0",
"tbl-for-kirby": "^1.0.0-alpa.11"
"tbl-for-kirby": "^1.0.0"
},
"devDependencies": {
"bili": "^4.2.5",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Parts/Logs.vue
Expand Up @@ -7,7 +7,7 @@
v-bind="table"
@action="action(...$event)"
>
<template slot="column-recency" slot-scope="props">
<template #column-recency="props">
<p><recency :value="props.value" /></p>
</template>
</tbl>
Expand Down
46 changes: 24 additions & 22 deletions src/components/Parts/Redirects.vue
Expand Up @@ -9,14 +9,14 @@
@action="action(...$event)"
>
<!-- Custom field cells -->
<template slot="column-status" slot-scope="props">
<template #column-status="props">
<p class="rt-redirects-status" :data-status="status(props.value)">
<k-icon type="circle" />
<code>{{ props.value }}</code>
</p>
</template>

<template slot="column-stats" slot-scope="props">
<template #column-stats="props">
<k-rt-count-field-preview
:value="{
hits: props.row.hits,
Expand All @@ -25,7 +25,7 @@
/>
</template>

<template slot="column-$default" slot-scope="props">
<template #column-$default="props">
<p v-if="props.column.type === 'url'" class="k-url-field-preview">
<k-link :to="site + '/' + props.value" target="_blank" @click.native.stop>
{{ props.value }}
Expand All @@ -35,9 +35,11 @@
</template>

<!-- Replace parts of k-tbl for add/edit screen -->
<template v-if="mode !== null">
<div slot="filter" />
<template v-if="mode !== null" #filter>
<div />
</template>

<template v-if="mode !== null" #table>
<k-form
ref="form"
slot="table"
Expand All @@ -46,27 +48,27 @@
class="rt-form"
@submit="submit"
/>
</template>

<template slot="footer">
<k-button
icon="cancel"
class="rt-form-btn"
@click="cancel"
>
{{ $t('cancel') }}
</k-button>
<k-button
icon="check"
class="rt-form-btn"
@click="submit"
>
{{ $t(mode === 'new' ? 'create' : 'change') }}
</k-button>
</template>
<template v-if="mode !== null" #footer>
<k-button
icon="cancel"
class="rt-form-btn"
@click="cancel"
>
{{ $t('cancel') }}
</k-button>
<k-button
icon="check"
class="rt-form-btn"
@click="submit"
>
{{ $t(mode === 'new' ? 'create' : 'change') }}
</k-button>
</template>

<!-- Dialogs -->
<template slot="dialogs">
<template #dialogs>
<k-dialog
ref="remove"
:button="$t('delete')"
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Expand Up @@ -4992,9 +4992,9 @@ tar@^4:
yallist "^3.0.2"

tbl-for-kirby@^1.0.0-alpa.11:
version "1.0.0-alpa.12"
resolved "https://registry.yarnpkg.com/tbl-for-kirby/-/tbl-for-kirby-1.0.0-alpa.12.tgz#3fbad9e6c956771ae38312eeed7151eb2c78eef3"
integrity sha512-O+KPtkvLcL6XOZ8IxACkiSlNo5H2wSNXlpVhdu7OlnFRVM0E3BqfZXtevbqgh4kwCDo2KrYQrKIveb0n/OtoAQ==
version "1.0.0"
resolved "https://registry.yarnpkg.com/tbl-for-kirby/-/tbl-for-kirby-1.0.0.tgz#fb5db93d0ff3c7b865fe283132c88a1b49915711"
integrity sha512-F5dhsRJdoBOunXyV8h5j4kfZNtQmx3ZHsYIQC7YoTQIYclKAxOdEuFgZ3uS1japp1wUadzv9zercSv3h/jPtxQ==

terser@^3.14.1:
version "3.16.1"
Expand Down

0 comments on commit 607a84f

Please sign in to comment.