mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-17 05:26:39 +01:00
38 lines
766 B
Vue
38 lines
766 B
Vue
<template>
|
|
<div class="mkw-activity">
|
|
<mk-widget-container :show-header="!props.compact">
|
|
<template slot="header"><fa icon="chart-bar"/>{{ $t('activity') }}</template>
|
|
<div :class="$style.body">
|
|
<x-activity :user="$store.state.i"/>
|
|
</div>
|
|
</mk-widget-container>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import define from '../../../common/define-widget';
|
|
import i18n from '../../../i18n';
|
|
|
|
export default define({
|
|
name: 'activity',
|
|
props: () => ({
|
|
compact: false
|
|
})
|
|
}).extend({
|
|
i18n: i18n(),
|
|
components: {
|
|
XActivity: () => import('../components/activity.vue').then(m => m.default)
|
|
},
|
|
methods: {
|
|
func() {
|
|
this.props.compact = !this.props.compact;
|
|
this.save();
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang="stylus" module>
|
|
.body
|
|
padding 8px
|
|
</style>
|