mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-30 06:28:04 +09:00
829ffc60e4
* wip * Rename * Clean up * Clean up * wip * wip * Enable tree shaking * ✌️ * ✌️ * wip * wip * Clean up
38 lines
788 B
Vue
38 lines
788 B
Vue
<template>
|
|
<div class="mkw-notifications">
|
|
<mk-widget-container :show-header="!props.compact">
|
|
<template slot="header"><fa :icon="['far', 'bell']"/>%i18n:@title%</template>
|
|
<!-- <button slot="func" title="%i18n:@settings%" @click="settings"><fa icon="cog"/></button> -->
|
|
|
|
<mk-notifications :class="$style.notifications"/>
|
|
</mk-widget-container>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import define from '../../../common/define-widget';
|
|
export default define({
|
|
name: 'notifications',
|
|
props: () => ({
|
|
compact: false
|
|
})
|
|
}).extend({
|
|
methods: {
|
|
settings() {
|
|
alert('not implemented yet');
|
|
},
|
|
func() {
|
|
this.props.compact = !this.props.compact;
|
|
this.save();
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<style lang="stylus" module>
|
|
.notifications
|
|
max-height 300px
|
|
overflow auto
|
|
|
|
</style>
|