Sharkey/src/client/app/mobile/views/widgets/activity.vue
syuilo 9f5dc2c0df
[WIP] Use FontAwesome Component for Vue (#3127)
* wip

* Rename

* Clean up

* Clean up

* wip

* wip

* Enable tree shaking

* ✌️

* ✌️

* wip

* wip

* Clean up
2018-11-06 01:40:11 +09:00

33 lines
618 B
Vue

<template>
<div class="mkw-activity">
<mk-widget-container :show-header="!props.compact">
<template slot="header"><fa icon="chart-bar"/>%i18n:@activity%</template>
<div :class="$style.body">
<mk-activity :user="$store.state.i"/>
</div>
</mk-widget-container>
</div>
</template>
<script lang="ts">
import define from '../../../common/define-widget';
export default define({
name: 'activity',
props: () => ({
compact: false
})
}).extend({
methods: {
func() {
this.props.compact = !this.props.compact;
this.save();
}
}
});
</script>
<style lang="stylus" module>
.body
padding 8px
</style>