diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-19 19:36:12 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-19 19:36:12 +0900 |
| commit | 5d968afa7424d82f49502c12f63f546f86eae433 (patch) | |
| tree | 52508c7c786eb6324e4874efa98ca7ef2e91ee35 /packages/client/src/components/global | |
| parent | Update .eslintrc.js (diff) | |
| download | misskey-5d968afa7424d82f49502c12f63f546f86eae433.tar.gz misskey-5d968afa7424d82f49502c12f63f546f86eae433.tar.bz2 misskey-5d968afa7424d82f49502c12f63f546f86eae433.zip | |
update linr
Diffstat (limited to 'packages/client/src/components/global')
| -rw-r--r-- | packages/client/src/components/global/acct.vue | 2 | ||||
| -rw-r--r-- | packages/client/src/components/global/ad.vue | 6 | ||||
| -rw-r--r-- | packages/client/src/components/global/avatar.vue | 4 | ||||
| -rw-r--r-- | packages/client/src/components/global/error.vue | 2 | ||||
| -rw-r--r-- | packages/client/src/components/global/header.vue | 18 | ||||
| -rw-r--r-- | packages/client/src/components/global/url.vue | 4 |
6 files changed, 18 insertions, 18 deletions
diff --git a/packages/client/src/components/global/acct.vue b/packages/client/src/components/global/acct.vue index b0c41c99c0..018826153c 100644 --- a/packages/client/src/components/global/acct.vue +++ b/packages/client/src/components/global/acct.vue @@ -1,7 +1,7 @@ <template> <span class="mk-acct"> <span class="name">@{{ user.username }}</span> - <span class="host" v-if="user.host || detail || $store.state.showFullAcct">@{{ user.host || host }}</span> + <span v-if="user.host || detail || $store.state.showFullAcct" class="host">@{{ user.host || host }}</span> </span> </template> diff --git a/packages/client/src/components/global/ad.vue b/packages/client/src/components/global/ad.vue index 71cb16740c..49046b00a7 100644 --- a/packages/client/src/components/global/ad.vue +++ b/packages/client/src/components/global/ad.vue @@ -1,12 +1,12 @@ <template> -<div class="qiivuoyo" v-if="ad"> - <div class="main" :class="ad.place" v-if="!showMenu"> +<div v-if="ad" class="qiivuoyo"> + <div v-if="!showMenu" class="main" :class="ad.place"> <a :href="ad.url" target="_blank"> <img :src="ad.imageUrl"> <button class="_button menu" @click.prevent.stop="toggleMenu"><span class="fas fa-info-circle"></span></button> </a> </div> - <div class="menu" v-else> + <div v-else class="menu"> <div class="body"> <div>Ads by {{ host }}</div> <!--<MkButton class="button" primary>{{ $ts._ad.like }}</MkButton>--> diff --git a/packages/client/src/components/global/avatar.vue b/packages/client/src/components/global/avatar.vue index e509e893da..300e5e079f 100644 --- a/packages/client/src/components/global/avatar.vue +++ b/packages/client/src/components/global/avatar.vue @@ -1,9 +1,9 @@ <template> -<span class="eiwwqkts _noSelect" :class="{ cat, square: $store.state.squareAvatars }" :title="acct(user)" v-if="disableLink" v-user-preview="disablePreview ? undefined : user.id" @click="onClick"> +<span v-if="disableLink" v-user-preview="disablePreview ? undefined : user.id" class="eiwwqkts _noSelect" :class="{ cat, square: $store.state.squareAvatars }" :title="acct(user)" @click="onClick"> <img class="inner" :src="url" decoding="async"/> <MkUserOnlineIndicator v-if="showIndicator" class="indicator" :user="user"/> </span> -<MkA class="eiwwqkts _noSelect" :class="{ cat, square: $store.state.squareAvatars }" :to="userPage(user)" :title="acct(user)" :target="target" v-else v-user-preview="disablePreview ? undefined : user.id"> +<MkA v-else v-user-preview="disablePreview ? undefined : user.id" class="eiwwqkts _noSelect" :class="{ cat, square: $store.state.squareAvatars }" :to="userPage(user)" :title="acct(user)" :target="target"> <img class="inner" :src="url" decoding="async"/> <MkUserOnlineIndicator v-if="showIndicator" class="indicator" :user="user"/> </MkA> diff --git a/packages/client/src/components/global/error.vue b/packages/client/src/components/global/error.vue index 8ce5d16ac6..d759186167 100644 --- a/packages/client/src/components/global/error.vue +++ b/packages/client/src/components/global/error.vue @@ -3,7 +3,7 @@ <div class="mjndxjcg"> <img src="https://xn--931a.moe/assets/error.jpg" class="_ghost"/> <p><i class="fas fa-exclamation-triangle"></i> {{ $ts.somethingHappened }}</p> - <MkButton @click="() => $emit('retry')" class="button">{{ $ts.retry }}</MkButton> + <MkButton class="button" @click="() => $emit('retry')">{{ $ts.retry }}</MkButton> </div> </transition> </template> diff --git a/packages/client/src/components/global/header.vue b/packages/client/src/components/global/header.vue index 7d5e426f2b..2e03d783af 100644 --- a/packages/client/src/components/global/header.vue +++ b/packages/client/src/components/global/header.vue @@ -1,24 +1,24 @@ <template> -<div class="fdidabkb" :class="{ slim: narrow, thin: thin_ }" :style="{ background: bg }" @click="onClick" ref="el"> +<div ref="el" class="fdidabkb" :class="{ slim: narrow, thin: thin_ }" :style="{ background: bg }" @click="onClick"> <template v-if="info"> - <div class="titleContainer" @click="showTabsPopup" v-if="!hideTitle"> + <div v-if="!hideTitle" class="titleContainer" @click="showTabsPopup"> <MkAvatar v-if="info.avatar" class="avatar" :user="info.avatar" :disable-preview="true" :show-indicator="true"/> <i v-else-if="info.icon" class="icon" :class="info.icon"></i> <div class="title"> <MkUserName v-if="info.userName" :user="info.userName" :nowrap="false" class="title"/> <div v-else-if="info.title" class="title">{{ info.title }}</div> - <div class="subtitle" v-if="!narrow && info.subtitle"> + <div v-if="!narrow && info.subtitle" class="subtitle"> {{ info.subtitle }} </div> - <div class="subtitle activeTab" v-if="narrow && hasTabs"> + <div v-if="narrow && hasTabs" class="subtitle activeTab"> {{ info.tabs.find(tab => tab.active)?.title }} <i class="chevron fas fa-chevron-down"></i> </div> </div> </div> - <div class="tabs" v-if="!narrow || hideTitle"> - <button class="tab _button" v-for="tab in info.tabs" :class="{ active: tab.active }" @click="tab.onClick" v-tooltip="tab.title"> + <div v-if="!narrow || hideTitle" class="tabs"> + <button v-for="tab in info.tabs" v-tooltip="tab.title" class="tab _button" :class="{ active: tab.active }" @click="tab.onClick"> <i v-if="tab.icon" class="icon" :class="tab.icon"></i> <span v-if="!tab.iconOnly" class="title">{{ tab.title }}</span> </button> @@ -27,11 +27,11 @@ <div class="buttons right"> <template v-if="info && info.actions && !narrow"> <template v-for="action in info.actions"> - <MkButton class="fullButton" v-if="action.asFullButton" @click.stop="action.handler" primary><i :class="action.icon" style="margin-right: 6px;"></i>{{ action.text }}</MkButton> - <button v-else class="_button button" :class="{ highlighted: action.highlighted }" @click.stop="action.handler" @touchstart="preventDrag" v-tooltip="action.text"><i :class="action.icon"></i></button> + <MkButton v-if="action.asFullButton" class="fullButton" primary @click.stop="action.handler"><i :class="action.icon" style="margin-right: 6px;"></i>{{ action.text }}</MkButton> + <button v-else v-tooltip="action.text" class="_button button" :class="{ highlighted: action.highlighted }" @click.stop="action.handler" @touchstart="preventDrag"><i :class="action.icon"></i></button> </template> </template> - <button v-if="shouldShowMenu" class="_button button" @click.stop="showMenu" @touchstart="preventDrag" v-tooltip="$ts.menu"><i class="fas fa-ellipsis-h"></i></button> + <button v-if="shouldShowMenu" v-tooltip="$ts.menu" class="_button button" @click.stop="showMenu" @touchstart="preventDrag"><i class="fas fa-ellipsis-h"></i></button> </div> </div> </template> diff --git a/packages/client/src/components/global/url.vue b/packages/client/src/components/global/url.vue index 092fe6620c..4987c2b61c 100644 --- a/packages/client/src/components/global/url.vue +++ b/packages/client/src/components/global/url.vue @@ -7,12 +7,12 @@ <template v-if="!self"> <span class="schema">{{ schema }}//</span> <span class="hostname">{{ hostname }}</span> - <span class="port" v-if="port != ''">:{{ port }}</span> + <span v-if="port != ''" class="port">:{{ port }}</span> </template> <template v-if="pathname === '/' && self"> <span class="self">{{ hostname }}</span> </template> - <span class="pathname" v-if="pathname != ''">{{ self ? pathname.substr(1) : pathname }}</span> + <span v-if="pathname != ''" class="pathname">{{ self ? pathname.substr(1) : pathname }}</span> <span class="query">{{ query }}</span> <span class="hash">{{ hash }}</span> <i v-if="target === '_blank'" class="fas fa-external-link-square-alt icon"></i> |