2018-02-23 18:46:09 +01:00
|
|
|
<template>
|
|
|
|
<div class="mkw-activity">
|
2019-02-15 07:35:52 +01:00
|
|
|
<ui-container :show-header="!props.compact">
|
2019-02-18 01:48:00 +01:00
|
|
|
<template v-slot:header><fa icon="chart-bar"/>{{ $t('activity') }}</template>
|
2018-02-23 18:46:09 +01:00
|
|
|
<div :class="$style.body">
|
2018-11-13 15:06:31 +01:00
|
|
|
<x-activity :user="$store.state.i"/>
|
2018-02-23 18:46:09 +01:00
|
|
|
</div>
|
2019-02-15 07:35:52 +01:00
|
|
|
</ui-container>
|
2018-02-23 18:46:09 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2018-02-24 16:18:09 +01:00
|
|
|
import define from '../../../common/define-widget';
|
2018-11-08 19:44:35 +01:00
|
|
|
import i18n from '../../../i18n';
|
2018-02-23 18:46:09 +01:00
|
|
|
|
|
|
|
export default define({
|
|
|
|
name: 'activity',
|
2018-02-23 19:03:26 +01:00
|
|
|
props: () => ({
|
|
|
|
compact: false
|
|
|
|
})
|
|
|
|
}).extend({
|
2018-11-08 19:44:35 +01:00
|
|
|
i18n: i18n(),
|
2018-11-13 15:06:31 +01:00
|
|
|
components: {
|
2019-02-14 21:08:59 +01:00
|
|
|
XActivity: () => import('../../../common/views/components/activity.vue').then(m => m.default)
|
2018-11-13 15:06:31 +01:00
|
|
|
},
|
2018-02-23 19:03:26 +01:00
|
|
|
methods: {
|
|
|
|
func() {
|
|
|
|
this.props.compact = !this.props.compact;
|
2018-04-29 10:17:15 +02:00
|
|
|
this.save();
|
2018-02-23 19:03:26 +01:00
|
|
|
}
|
|
|
|
}
|
2018-02-23 18:46:09 +01:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" module>
|
|
|
|
.body
|
|
|
|
padding 8px
|
|
|
|
</style>
|