2018-02-24 02:46:09 +09:00
|
|
|
<template>
|
|
|
|
<div class="mkw-activity">
|
2018-02-24 03:03:26 +09:00
|
|
|
<mk-widget-container :show-header="!props.compact">
|
2018-11-06 01:40:11 +09:00
|
|
|
<template slot="header"><fa icon="chart-bar"/>%i18n:@activity%</template>
|
2018-02-24 02:46:09 +09:00
|
|
|
<div :class="$style.body">
|
2018-05-27 13:49:09 +09:00
|
|
|
<mk-activity :user="$store.state.i"/>
|
2018-02-24 02:46:09 +09:00
|
|
|
</div>
|
|
|
|
</mk-widget-container>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2018-02-25 00:18:09 +09:00
|
|
|
import define from '../../../common/define-widget';
|
2018-02-24 02:46:09 +09:00
|
|
|
|
|
|
|
export default define({
|
|
|
|
name: 'activity',
|
2018-02-24 03:03:26 +09:00
|
|
|
props: () => ({
|
|
|
|
compact: false
|
|
|
|
})
|
|
|
|
}).extend({
|
|
|
|
methods: {
|
|
|
|
func() {
|
|
|
|
this.props.compact = !this.props.compact;
|
2018-04-29 17:17:15 +09:00
|
|
|
this.save();
|
2018-02-24 03:03:26 +09:00
|
|
|
}
|
|
|
|
}
|
2018-02-24 02:46:09 +09:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" module>
|
|
|
|
.body
|
|
|
|
padding 8px
|
|
|
|
</style>
|