This commit is contained in:
syuilo 2019-02-15 15:35:52 +09:00
parent f8b3f66904
commit 937f7cbd60
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
28 changed files with 103 additions and 94 deletions

View file

@ -1,11 +1,11 @@
<template>
<div class="mkw-messaging">
<mk-widget-container :show-header="props.design == 0">
<ui-container :show-header="props.design == 0">
<template slot="header"><fa icon="comments"/>{{ $t('title') }}</template>
<button slot="func" @click="add"><fa icon="plus"/></button>
<x-messaging ref="index" compact @navigate="navigate"/>
</mk-widget-container>
</ui-container>
</div>
</template>

View file

@ -1,11 +1,11 @@
<template>
<div class="mkw-notifications">
<mk-widget-container :show-header="!props.compact">
<ui-container :show-header="!props.compact">
<template slot="header"><fa :icon="['far', 'bell']"/>{{ $t('title') }}</template>
<!-- <button slot="func" :title="$t('title')" @click="settings"><fa icon="cog"/></button> -->
<mk-notifications :class="$style.notifications"/>
</mk-widget-container>
</ui-container>
</div>
</template>

View file

@ -1,6 +1,6 @@
<template>
<div class="mkw-polls">
<mk-widget-container :show-header="!props.compact">
<ui-container :show-header="!props.compact">
<template slot="header"><fa icon="chart-pie"/>{{ $t('title') }}</template>
<button slot="func" :title="$t('title')" @click="fetch">
<fa v-if="!fetching && more" icon="arrow-right"/>
@ -16,7 +16,7 @@
<p class="empty" v-if="!fetching && poll == null">{{ $t('nothing') }}</p>
<p class="fetching" v-if="fetching"><fa icon="spinner" pulse fixed-width/>{{ $t('@.loading') }}<mk-ellipsis/></p>
</div>
</mk-widget-container>
</ui-container>
</div>
</template>

View file

@ -1,6 +1,6 @@
<template>
<div>
<mk-widget-container :show-header="props.design == 0">
<ui-container :show-header="props.design == 0">
<template slot="header"><fa icon="pencil-alt"/>{{ $t('title') }}</template>
<div class="lhcuptdmcdkfwmipgazeawoiuxpzaclc-body"
@ -37,7 +37,7 @@
<button @click="post" :disabled="posting" class="post">{{ $t('note') }}</button>
</footer>
</div>
</mk-widget-container>
</ui-container>
</div>
</template>

View file

@ -1,6 +1,6 @@
<template>
<div class="egwyvoaaryotefqhqtmiyawwefemjfsd">
<mk-widget-container :show-header="false" :naked="props.design == 2">
<ui-container :show-header="false" :naked="props.design == 2">
<div class="egwyvoaaryotefqhqtmiyawwefemjfsd-body"
:data-compact="props.design == 1 || props.design == 2"
:data-melt="props.design == 2"
@ -18,7 +18,7 @@
<router-link class="name" :to="$store.state.i | userPage"><mk-user-name :user="$store.state.i"/></router-link>
<p class="username">@{{ $store.state.i | acct }}</p>
</div>
</mk-widget-container>
</ui-container>
</div>
</template>

View file

@ -1,6 +1,6 @@
<template>
<div class="mkw-trends">
<mk-widget-container :show-header="!props.compact">
<ui-container :show-header="!props.compact">
<template slot="header"><fa icon="fire"/>{{ $t('title') }}</template>
<button slot="func" :title="$t('title')" @click="fetch"><fa icon="sync"/></button>
@ -12,7 +12,7 @@
</div>
<p class="empty" v-else>{{ $t('nothing') }}</p>
</div>
</mk-widget-container>
</ui-container>
</div>
</template>

View file

@ -1,6 +1,6 @@
<template>
<div class="mkw-users">
<mk-widget-container :show-header="!props.compact">
<ui-container :show-header="!props.compact">
<template slot="header"><fa icon="users"/>{{ $t('title') }}</template>
<button slot="func" :title="$t('title')" @click="refresh">
<fa v-if="!fetching && more" icon="arrow-right"/>
@ -20,7 +20,7 @@
</template>
<p class="empty" v-else>{{ $t('no-one') }}</p>
</div>
</mk-widget-container>
</ui-container>
</div>
</template>