Skip to content

Commit

Permalink
wip: Add a Document activity #150
Browse files Browse the repository at this point in the history
  • Loading branch information
cnouguier committed Mar 18, 2024
1 parent e8f9d09 commit 2b9de7b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const leftPane = {
{ component: 'account/KProfile', class: 'full-width' },
{ id: 'layout', icon: 'las la-desktop', label: 'LayoutActivity.LABEL', renderer: 'item', route: { name: 'layout-activity' } },
{ id: 'miscellaneous', icon: 'las la-icons', label: 'MiscellaneousActivity.LABEL', renderer: 'item', route: { name: 'miscellaneous-activity' } },
{ id: 'document', icon: 'las la-icons', label: 'DocumentActivity.LABEL', renderer: 'item', route: { name: 'document-activity' } },
{ id: 'collection', icon: 'las la-list', label: 'CollectionActivity.LABEL', renderer: 'item', route: { name: 'collection-activity', params: { page: 'list' } } },
{ id: 'kanban', icon: 'dashboard', label: 'KanbanActivity.LABEL', renderer: 'item', route: { name: 'kanban-activity' } },
{ id: 'chart', icon: 'las la-chart-pie', label: 'ChartActivity.LABEL', renderer: 'item', route: { name: 'chart-activity' } },
Expand Down Expand Up @@ -300,6 +301,14 @@ module.exports = {
]
}
},
documentActivity: {
leftPane: leftPane,
topPane: {
content: [
{ id: 'layout', icon: 'las la-icons', label: 'DocumnetActivity.LABEL', color: 'primary', disabled: true }
]
}
},
collectionActivity: {
leftPane: leftPane,
topPane: {
Expand Down
1 change: 1 addition & 0 deletions src/boot/kdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default async ({ app }) => {
app.component('KTime', await kdkCoreUtils.loadComponent('time/KTime'))
app.component('KDateTime', await kdkCoreUtils.loadComponent('time/KDateTime'))
app.component('KDateTimeRange', await kdkCoreUtils.loadComponent('time/KDateTimeRange'))
app.component('KDocument', await kdkCoreUtils.loadComponent('document/KDocument'))
app.component('KForm', await kdkCoreUtils.loadComponent('form/KForm'))
app.component('KChart', await kdkCoreUtils.loadComponent('chart/KChart'))
app.component('KPage', await kdkCoreUtils.loadComponent('layout/KPage'))
Expand Down
22 changes: 22 additions & 0 deletions src/components/document/DocumentActivity.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template>
<KPage>
<template v-slot:page-content>
<div class="row full-width justify-center q-gutter-md">
<KDocument
url="sample.html"
:localize="true"
/>
</div>
</template>
</KPage>
</template>

<script>
import { mixins } from '@kalisio/kdk/core.client'
export default {
name: 'document-activity',
components: {},
mixins: [mixins.baseActivity()]
}
</script>
4 changes: 4 additions & 0 deletions src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ module.exports = [{
name: 'miscellaneous-activity',
component: 'MiscellaneousActivity'
},
document: {
name: 'document-activity',
component: 'document/DocumentActivity'
},
'collection/:page': {
name: 'collection-activity',
component: 'CollectionActivity',
Expand Down

0 comments on commit 2b9de7b

Please sign in to comment.