This commit is contained in:
syuilo 2022-12-30 13:37:14 +09:00
parent 254fede524
commit 632c7d2ac6
38 changed files with 90 additions and 90 deletions

View File

@ -10,7 +10,7 @@
</button>
</div>
</header>
<transition
<Transition
:name="$store.state.animation ? 'container-toggle' : ''"
@enter="enter"
@after-enter="afterEnter"
@ -23,7 +23,7 @@
<span>{{ $ts.showMore }}</span>
</button>
</div>
</transition>
</Transition>
</div>
</template>

View File

@ -1,9 +1,9 @@
<template>
<transition :name="$store.state.animation ? 'fade' : ''" appear>
<Transition :name="$store.state.animation ? 'fade' : ''" appear>
<div ref="rootEl" class="nvlagfpb" :style="{ zIndex }" @contextmenu.prevent.stop="() => {}">
<MkMenu :items="items" :align="'left'" @close="$emit('closed')"/>
</div>
</transition>
</Transition>
</template>
<script lang="ts" setup>

View File

@ -8,7 +8,7 @@
<template v-else><i class="ti ti-chevron-down"></i></template>
</button>
</header>
<transition
<Transition
:name="$store.state.animation ? 'folder-toggle' : ''"
@enter="enter"
@after-enter="afterEnter"
@ -18,7 +18,7 @@
<div v-show="showBody">
<slot></slot>
</div>
</transition>
</Transition>
</div>
</template>

View File

@ -1,12 +1,12 @@
<template>
<transition :name="$store.state.animation ? (type === 'drawer') ? 'modal-drawer' : (type === 'popup') ? 'modal-popup' : 'modal' : ''" :duration="$store.state.animation ? 200 : 0" appear @after-leave="emit('closed')" @enter="emit('opening')" @after-enter="onOpened">
<Transition :name="$store.state.animation ? (type === 'drawer') ? 'modal-drawer' : (type === 'popup') ? 'modal-popup' : 'modal' : ''" :duration="$store.state.animation ? 200 : 0" appear @after-leave="emit('closed')" @enter="emit('opening')" @after-enter="onOpened">
<div v-show="manualShowing != null ? manualShowing : showing" v-hotkey.global="keymap" class="qzhlnise" :class="{ drawer: type === 'drawer', dialog: type === 'dialog' || type === 'dialog:top', popup: type === 'popup' }" :style="{ zIndex, pointerEvents: (manualShowing != null ? manualShowing : showing) ? 'auto' : 'none', '--transformOrigin': transformOrigin }">
<div class="bg _modalBg" :class="{ transparent: transparentBg && (type === 'popup') }" :style="{ zIndex }" @click="onBgClick" @contextmenu.prevent.stop="() => {}"></div>
<div ref="content" class="content" :class="{ fixed, top: type === 'dialog:top' }" :style="{ zIndex }" @click.self="onBgClick">
<slot :max-height="maxHeight" :type="type"></slot>
</div>
</div>
</transition>
</Transition>
</template>
<script lang="ts" setup>

View File

@ -1,8 +1,8 @@
<template>
<div class="mk-notification-toast" :style="{ zIndex }">
<transition :name="$store.state.animation ? 'notification-toast' : ''" appear @after-leave="$emit('closed')">
<Transition :name="$store.state.animation ? 'notification-toast' : ''" appear @after-leave="$emit('closed')">
<XNotification v-if="showing" :notification="notification" class="notification _acrylic"/>
</transition>
</Transition>
</div>
</template>

View File

@ -1,5 +1,5 @@
<template>
<transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<MkLoading v-if="fetching"/>
<MkError v-else-if="error" @retry="init()"/>
@ -28,7 +28,7 @@
<MkLoading v-else class="loading"/>
</div>
</div>
</transition>
</Transition>
</template>
<script lang="ts" setup>

View File

@ -1,12 +1,12 @@
<template>
<div class="mk-toast">
<transition :name="$store.state.animation ? 'toast' : ''" appear @after-leave="emit('closed')">
<Transition :name="$store.state.animation ? 'toast' : ''" appear @after-leave="emit('closed')">
<div v-if="showing" class="body _acrylic" :style="{ zIndex }">
<div class="message">
{{ message }}
</div>
</div>
</transition>
</Transition>
</div>
</template>

View File

@ -1,12 +1,12 @@
<template>
<transition :name="$store.state.animation ? 'tooltip' : ''" appear @after-leave="emit('closed')">
<Transition :name="$store.state.animation ? 'tooltip' : ''" appear @after-leave="emit('closed')">
<div v-show="showing" ref="el" class="buebdbiu _acrylic _shadow" :style="{ zIndex, maxWidth: maxWidth + 'px' }">
<slot>
<Mfm v-if="asMfm" :text="text"/>
<span v-else>{{ text }}</span>
</slot>
</div>
</transition>
</Transition>
</template>
<script lang="ts" setup>

View File

@ -7,7 +7,7 @@
<iframe ref="tweet" scrolling="no" frameborder="no" :style="{ position: 'relative', width: '100%', height: `${tweetHeight}px` }" :src="`https://platform.twitter.com/embed/index.html?embedId=${embedId}&amp;hideCard=false&amp;hideThread=false&amp;lang=en&amp;theme=${$store.state.darkMode ? 'dark' : 'light'}&amp;id=${tweetId}`"></iframe>
</div>
<div v-else class="mk-url-preview">
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<component :is="self ? 'MkA' : 'a'" v-if="!fetching" class="link" :class="{ compact }" :[attr]="self ? url.substr(local.length) : url" rel="nofollow noopener" :target="target" :title="url">
<div v-if="thumbnail" class="thumbnail" :style="`background-image: url('${thumbnail}')`">
</div>
@ -22,7 +22,7 @@
</footer>
</article>
</component>
</transition>
</Transition>
<div v-if="tweetId" class="action">
<MkButton :small="true" inline @click="tweetExpanded = true">
<i class="ti ti-brand-twitter"></i> {{ i18n.ts.expandTweet }}

View File

@ -1,8 +1,8 @@
<template>
<div class="fgmtyycl" :style="{ zIndex, top: top + 'px', left: left + 'px' }">
<transition :name="$store.state.animation ? 'zoom' : ''" @after-leave="emit('closed')">
<Transition :name="$store.state.animation ? 'zoom' : ''" @after-leave="emit('closed')">
<MkUrlPreview v-if="showing" class="_popup _shadow" :url="url"/>
</transition>
</Transition>
</div>
</template>

View File

@ -1,5 +1,5 @@
<template>
<transition :name="$store.state.animation ? 'popup' : ''" appear @after-leave="emit('closed')">
<Transition :name="$store.state.animation ? 'popup' : ''" appear @after-leave="emit('closed')">
<div v-if="showing" class="fxxzrfni _popup _shadow" :style="{ zIndex, top: top + 'px', left: left + 'px' }" @mouseover="() => { emit('mouseover'); }" @mouseleave="() => { emit('mouseleave'); }">
<div v-if="user != null" class="info">
<div class="banner" :style="user.bannerUrl ? `background-image: url(${user.bannerUrl})` : ''">
@ -30,7 +30,7 @@
<MkLoading/>
</div>
</div>
</transition>
</Transition>
</template>
<script lang="ts" setup>

View File

@ -1,5 +1,5 @@
<template>
<transition :name="$store.state.animation ? 'window' : ''" appear @after-leave="$emit('closed')">
<Transition :name="$store.state.animation ? 'window' : ''" appear @after-leave="$emit('closed')">
<div v-if="showing" ref="rootEl" class="ebkgocck" :class="{ maximized }">
<div class="body _shadow _narrow_" @mousedown="onBodyMousedown" @keydown="onKeydown">
<div class="header" :class="{ mini }" @contextmenu.prevent.stop="onContextmenu">
@ -31,7 +31,7 @@
<div class="handle bottom-left" @mousedown.prevent="onBottomLeftHandleMousedown"></div>
</template>
</div>
</transition>
</Transition>
</template>
<script lang="ts" setup>

View File

@ -6,11 +6,11 @@
</template>
<div class="poamfof">
<transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<div v-if="player.url" class="player">
<iframe v-if="!fetching" :src="player.url + (player.url.match(/\?/) ? '&autoplay=1&auto_play=1' : '?autoplay=1&auto_play=1')" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen/>
</div>
</transition>
</Transition>
<MkLoading v-if="fetching"/>
<MkError v-else-if="!player.url" @retry="ytFetch()"/>
</div>

View File

@ -1,5 +1,5 @@
<template>
<transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<div v-if="pending">
<MkLoading/>
</div>
@ -12,7 +12,7 @@
<MkButton inline class="retry" @click="retry"><i class="ti ti-reload"></i> {{ $ts.retry }}</MkButton>
</div>
</div>
</transition>
</Transition>
</template>
<script lang="ts">

View File

@ -1,11 +1,11 @@
<template>
<transition :name="$store.state.animation ? 'zoom' : ''" appear>
<Transition :name="$store.state.animation ? 'zoom' : ''" appear>
<div class="mjndxjcg">
<img src="https://xn--931a.moe/assets/error.jpg" class="_ghost"/>
<p><i class="ti ti-alert-triangle"></i> {{ i18n.ts.somethingHappened }}</p>
<MkButton class="button" @click="() => $emit('retry')">{{ i18n.ts.retry }}</MkButton>
</div>
</transition>
</Transition>
</template>
<script lang="ts" setup>

View File

@ -1,6 +1,6 @@
<template>
<MkLoading v-if="!loaded"/>
<transition :name="$store.state.animation ? 'zoom' : ''" appear>
<Transition :name="$store.state.animation ? 'zoom' : ''" appear>
<div v-show="loaded" class="mjndxjch">
<img src="https://xn--931a.moe/assets/error.jpg" class="_ghost"/>
<p><b><i class="ti ti-alert-triangle"></i> {{ i18n.ts.pageLoadError }}</b></p>
@ -14,7 +14,7 @@
<p><MkA to="/docs/general/troubleshooting" class="_link">{{ i18n.ts.troubleshooting }}</MkA></p>
<p v-if="error" class="error">ERROR: {{ error }}</p>
</div>
</transition>
</Transition>
</template>
<script lang="ts" setup>

View File

@ -1,13 +1,13 @@
<template>
<div class="wbrkwale">
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<MkLoading v-if="fetching"/>
<div v-else class="instances">
<MkA v-for="(instance, i) in instances" :key="instance.id" v-tooltip.mfm.noDelay="`${instance.name}\n${instance.host}\n${instance.softwareName} ${instance.softwareVersion}`" :to="`/instance-info/${instance.host}`" class="instance">
<MkInstanceCardMini :instance="instance"/>
</MkA>
</div>
</transition>
</Transition>
</div>
</template>

View File

@ -1,13 +1,13 @@
<template>
<div>
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<MkLoading v-if="fetching"/>
<div v-else :class="$style.root" class="_panel">
<MkA v-for="user in moderators" :key="user.id" class="user" :to="`/user-info/${user.id}`">
<MkAvatar :user="user" class="avatar" :show-indicator="true" :disable-link="true"/>
</MkA>
</div>
</transition>
</Transition>
</div>
</template>

View File

@ -1,6 +1,6 @@
<template>
<div>
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<MkLoading v-if="fetching"/>
<div v-else :class="$style.root">
<div class="item _panel users">
@ -42,7 +42,7 @@
</div>
</div>
</div>
</transition>
</Transition>
</div>
</template>

View File

@ -1,13 +1,13 @@
<template>
<div :class="$style.root">
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<MkLoading v-if="fetching"/>
<div v-else class="users">
<MkA v-for="(user, i) in newUsers" :key="user.id" :to="`/user-info/${user.id}`" class="user">
<MkUserCardMini :user="user"/>
</MkA>
</div>
</transition>
</Transition>
</div>
</template>

View File

@ -3,7 +3,7 @@
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
<MkSpacer :content-max="1000" :margin-min="16" :margin-max="32">
<div class="_root">
<transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<div v-if="post" class="rkxwuolj">
<div class="files">
<div v-for="file in post.files" :key="file.id" class="file">
@ -48,7 +48,7 @@
</div>
<MkError v-else-if="error" @retry="fetch()"/>
<MkLoading v-else/>
</transition>
</Transition>
</div>
</MkSpacer>
</MkStickyContainer>

View File

@ -38,11 +38,11 @@
</I18n>
<MkEllipsis/>
</div>
<transition :name="animation ? 'fade' : ''">
<Transition :name="animation ? 'fade' : ''">
<div v-show="showIndicator" class="new-message">
<button class="_buttonPrimary" @click="onIndicatorClick"><i class="fas ti-fw fa-arrow-circle-down"></i>{{ i18n.ts.newMessageExists }}</button>
</div>
</transition>
</Transition>
<XForm v-if="!fetching" ref="formEl" :user="user" :group="group" class="form"/>
</footer>
</div>

View File

@ -3,7 +3,7 @@
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
<MkSpacer :content-max="700">
<div class="mk-list-page">
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<div v-if="list" class="_section">
<div class="_content">
<MkButton inline @click="addUser()">{{ i18n.ts.addUser }}</MkButton>
@ -11,9 +11,9 @@
<MkButton inline @click="deleteList()">{{ i18n.ts.delete }}</MkButton>
</div>
</div>
</transition>
</Transition>
<transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'zoom' : ''" mode="out-in">
<div v-if="list" class="_section members _gap">
<div class="_title">{{ i18n.ts.members }}</div>
<div class="_content">
@ -31,7 +31,7 @@
</div>
</div>
</div>
</transition>
</Transition>
</div>
</MkSpacer>
</MkStickyContainer>

View File

@ -3,7 +3,7 @@
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
<MkSpacer :content-max="800">
<div class="fcuexfpr">
<transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<div v-if="note" class="note">
<div v-if="showNext" class="_gap">
<XNotes class="_content" :pagination="nextPagination" :no-gap="true"/>
@ -34,7 +34,7 @@
</div>
<MkError v-else-if="error" @retry="fetch()"/>
<MkLoading v-else/>
</transition>
</Transition>
</div>
</MkSpacer>
</MkStickyContainer>

View File

@ -2,7 +2,7 @@
<MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
<MkSpacer :content-max="700">
<transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<Transition :name="$store.state.animation ? 'fade' : ''" mode="out-in">
<div v-if="page" :key="page.id" class="xcukqgmh">
<div class="_block main">
<!--
@ -57,7 +57,7 @@
</div>
<MkError v-else-if="error" @retry="fetchPage()"/>
<MkLoading v-else/>
</transition>
</Transition>
</MkSpacer>
</MkStickyContainer>
</template>

View File

@ -2,13 +2,13 @@
<MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
<MkSpacer :content-max="1000">
<transition name="fade" mode="out-in">
<Transition name="fade" mode="out-in">
<div v-if="user">
<XFollowList :user="user" type="followers"/>
</div>
<MkError v-else-if="error" @retry="fetchUser()"/>
<MkLoading v-else/>
</transition>
</Transition>
</MkSpacer>
</MkStickyContainer>
</template>

View File

@ -2,13 +2,13 @@
<MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
<MkSpacer :content-max="1000">
<transition name="fade" mode="out-in">
<Transition name="fade" mode="out-in">
<div v-if="user">
<XFollowList :user="user" type="following"/>
</div>
<MkError v-else-if="error" @retry="fetchUser()"/>
<MkLoading v-else/>
</transition>
</Transition>
</MkSpacer>
</MkStickyContainer>
</template>

View File

@ -2,7 +2,7 @@
<MkStickyContainer>
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template>
<div>
<transition name="fade" mode="out-in">
<Transition name="fade" mode="out-in">
<div v-if="user">
<XHome v-if="tab === 'home'" :user="user"/>
<XReactions v-else-if="tab === 'reactions'" :user="user"/>
@ -12,7 +12,7 @@
</div>
<MkError v-else-if="error" @retry="fetchUser()"/>
<MkLoading v-else/>
</transition>
</Transition>
</div>
</MkStickyContainer>
</template>

View File

@ -1,7 +1,7 @@
<template>
<span v-if="!fetching" class="nmidsaqw">
<template v-if="display === 'marquee'">
<transition name="change" mode="default">
<Transition name="change" mode="default">
<MarqueeText :key="key" :duration="marqueeDuration" :reverse="marqueeReverse">
<span v-for="instance in instances" :key="instance.id" class="item" :class="{ colored }" :style="{ background: colored ? instance.themeColor : null }">
<img class="icon" :src="getInstanceIcon(instance)" alt=""/>
@ -11,7 +11,7 @@
<span class="divider"></span>
</span>
</MarqueeText>
</transition>
</Transition>
</template>
<template v-else-if="display === 'oneByOne'">
<!-- TODO -->

View File

@ -1,13 +1,13 @@
<template>
<span v-if="!fetching" class="xbhtxfms">
<template v-if="display === 'marquee'">
<transition name="change" mode="default">
<Transition name="change" mode="default">
<MarqueeText :key="key" :duration="marqueeDuration" :reverse="marqueeReverse">
<span v-for="item in items" class="item">
<a class="link" :href="item.link" rel="nofollow noopener" target="_blank" :title="item.title">{{ item.title }}</a><span class="divider"></span>
</span>
</MarqueeText>
</transition>
</Transition>
</template>
<template v-else-if="display === 'oneByOne'">
<!-- TODO -->

View File

@ -1,7 +1,7 @@
<template>
<span v-if="!fetching" class="osdsvwzy">
<template v-if="display === 'marquee'">
<transition name="change" mode="default">
<Transition name="change" mode="default">
<MarqueeText :key="key" :duration="marqueeDuration" :reverse="marqueeReverse">
<span v-for="note in notes" :key="note.id" class="item">
<img class="avatar" :src="note.user.avatarUrl" decoding="async"/>
@ -11,7 +11,7 @@
<span class="divider"></span>
</span>
</MarqueeText>
</transition>
</Transition>
</template>
<template v-else-if="display === 'oneByOne'">
<!-- TODO -->

View File

@ -21,18 +21,18 @@
</div>
</div>
<transition :name="$store.state.animation ? 'tray-back' : ''">
<Transition :name="$store.state.animation ? 'tray-back' : ''">
<div
v-if="widgetsShowing"
class="tray-back _modalBg"
@click="widgetsShowing = false"
@touchstart.passive="widgetsShowing = false"
></div>
</transition>
</Transition>
<transition :name="$store.state.animation ? 'tray' : ''">
<Transition :name="$store.state.animation ? 'tray' : ''">
<XWidgets v-if="widgetsShowing" class="tray"/>
</transition>
</Transition>
<iframe v-if="$store.state.aiChanMode" ref="live2d" class="ivnzpscs" src="https://misskey-dev.github.io/mascot-web/?scale=2&y=1.4"></iframe>

View File

@ -54,18 +54,18 @@
<button class="button post _button" @click="os.post()"><i class="ti ti-pencil"></i></button>
</div>
<transition :name="$store.state.animation ? 'menu-back' : ''">
<Transition :name="$store.state.animation ? 'menu-back' : ''">
<div
v-if="drawerMenuShowing"
class="menu-back _modalBg"
@click="drawerMenuShowing = false"
@touchstart.passive="drawerMenuShowing = false"
></div>
</transition>
</Transition>
<transition :name="$store.state.animation ? 'menu' : ''">
<Transition :name="$store.state.animation ? 'menu' : ''">
<XDrawerMenu v-if="drawerMenuShowing" class="menu"/>
</transition>
</Transition>
<XCommon/>
</div>

View File

@ -26,31 +26,31 @@
<button class="button post _button" @click="os.post()"><i class="ti ti-pencil"></i></button>
</div>
<transition :name="$store.state.animation ? 'menuDrawer-back' : ''">
<Transition :name="$store.state.animation ? 'menuDrawer-back' : ''">
<div
v-if="drawerMenuShowing"
class="menuDrawer-back _modalBg"
@click="drawerMenuShowing = false"
@touchstart.passive="drawerMenuShowing = false"
></div>
</transition>
</Transition>
<transition :name="$store.state.animation ? 'menuDrawer' : ''">
<Transition :name="$store.state.animation ? 'menuDrawer' : ''">
<XDrawerMenu v-if="drawerMenuShowing" class="menuDrawer"/>
</transition>
</Transition>
<transition :name="$store.state.animation ? 'widgetsDrawer-back' : ''">
<Transition :name="$store.state.animation ? 'widgetsDrawer-back' : ''">
<div
v-if="widgetsShowing"
class="widgetsDrawer-back _modalBg"
@click="widgetsShowing = false"
@touchstart.passive="widgetsShowing = false"
></div>
</transition>
</Transition>
<transition :name="$store.state.animation ? 'widgetsDrawer' : ''">
<Transition :name="$store.state.animation ? 'widgetsDrawer' : ''">
<XWidgets v-if="widgetsShowing" class="widgetsDrawer"/>
</transition>
</Transition>
<XCommon/>
</div>

View File

@ -21,16 +21,16 @@
</div>
</div>
<transition :name="$store.state.animation ? 'tray-back' : ''">
<Transition :name="$store.state.animation ? 'tray-back' : ''">
<div
v-if="showMenu"
class="menu-back _modalBg"
@click="showMenu = false"
@touchstart.passive="showMenu = false"
></div>
</transition>
</Transition>
<transition :name="$store.state.animation ? 'tray' : ''">
<Transition :name="$store.state.animation ? 'tray' : ''">
<div v-if="showMenu" class="menu">
<MkA to="/" class="link" active-class="active"><i class="ti ti-home icon"></i>{{ $ts.home }}</MkA>
<MkA to="/explore" class="link" active-class="active"><i class="ti ti-hash icon"></i>{{ $ts.explore }}</MkA>
@ -41,7 +41,7 @@
<button class="_button" @click="signin()">{{ $ts.login }}</button>
</div>
</div>
</transition>
</Transition>
</div>
</template>

View File

@ -4,7 +4,7 @@
<div class="wbrkwalb">
<MkLoading v-if="fetching"/>
<transition-group v-else tag="div" :name="$store.state.animation ? 'chart' : ''" class="instances">
<TransitionGroup v-else tag="div" :name="$store.state.animation ? 'chart' : ''" class="instances">
<div v-for="(instance, i) in instances" :key="instance.id" class="instance">
<img :src="getInstanceIcon(instance)" alt=""/>
<div class="body">
@ -13,7 +13,7 @@
</div>
<MkMiniChart class="chart" :src="charts[i].requests.received"/>
</div>
</transition-group>
</TransitionGroup>
</div>
</MkContainer>
</template>

View File

@ -6,13 +6,13 @@
<div class="ekmkgxbk">
<MkLoading v-if="fetching"/>
<div v-else class="feed">
<transition name="change" mode="default">
<Transition name="change" mode="default">
<MarqueeText :key="key" :duration="widgetProps.duration" :reverse="widgetProps.reverse">
<span v-for="item in items" class="item">
<a class="link" :href="item.link" rel="nofollow noopener" target="_blank" :title="item.title">{{ item.title }}</a><span class="divider"></span>
</span>
</MarqueeText>
</transition>
</Transition>
</div>
</div>
</MkContainer>

View File

@ -4,7 +4,7 @@
<div class="wbrkwala">
<MkLoading v-if="fetching"/>
<transition-group v-else tag="div" :name="$store.state.animation ? 'chart' : ''" class="tags">
<TransitionGroup v-else tag="div" :name="$store.state.animation ? 'chart' : ''" class="tags">
<div v-for="stat in stats" :key="stat.tag">
<div class="tag">
<MkA class="a" :to="`/tags/${ encodeURIComponent(stat.tag) }`" :title="stat.tag">#{{ stat.tag }}</MkA>
@ -12,7 +12,7 @@
</div>
<MkMiniChart class="chart" :src="stat.chart"/>
</div>
</transition-group>
</TransitionGroup>
</div>
</MkContainer>
</template>