リファクタリングなど

This commit is contained in:
syuilo
2018-04-29 17:17:15 +09:00
parent 1625b37b44
commit 372bfaceda
64 changed files with 521 additions and 570 deletions

View File

@ -22,9 +22,11 @@ export default define({
} else {
this.props.design++;
}
this.save();
},
viewChanged(view) {
this.props.view = view;
this.save();
}
}
});

View File

@ -37,6 +37,7 @@ export default define({
methods: {
func() {
this.props.compact = !this.props.compact;
this.save();
},
settings() {
const id = window.prompt('チャンネルID');

View File

@ -35,6 +35,7 @@ export default define({
} else {
this.props.design++;
}
this.save();
}
}
});

View File

@ -23,6 +23,7 @@ export default define({
},
func() {
this.props.compact = !this.props.compact;
this.save();
}
}
});

View File

@ -39,6 +39,7 @@ export default define({
methods: {
func() {
this.props.compact = !this.props.compact;
this.save();
},
fetch() {
this.fetching = true;

View File

@ -29,6 +29,7 @@ export default define({
} else {
this.props.design++;
}
this.save();
},
onKeydown(e) {
if ((e.which == 10 || e.which == 13) && (e.ctrlKey || e.metaKey)) this.post();

View File

@ -36,6 +36,7 @@ export default define({
} else {
this.props.design++;
}
this.save();
}
}
});

View File

@ -22,6 +22,7 @@ export default define({
} else {
this.props.design++;
}
this.save();
}
}
});

View File

@ -38,6 +38,7 @@ export default define({
methods: {
func() {
this.props.compact = !this.props.compact;
this.save();
},
fetch() {
this.fetching = true;

View File

@ -8,9 +8,7 @@
<p class="fetching" v-if="fetching">%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p>
<template v-else-if="users.length != 0">
<div class="user" v-for="_user in users">
<router-link class="avatar-anchor" :to="_user | userPage">
<img class="avatar" :src="`${_user.avatarUrl}?thumbnail&size=42`" alt="" v-user-preview="_user.id"/>
</router-link>
<mk-avatar class="avatar" :user="_user"/>
<div class="body">
<router-link class="name" :to="_user | userPage" v-user-preview="_user.id">{{ _user | userName }}</router-link>
<p class="username">@{{ _user | acct }}</p>
@ -48,6 +46,7 @@ export default define({
methods: {
func() {
this.props.compact = !this.props.compact;
this.save();
},
fetch() {
this.fetching = true;
@ -88,18 +87,13 @@ root(isDark)
display block
clear both
> .avatar-anchor
> .avatar
display block
float left
margin 0 12px 0 0
> .avatar
display block
width 42px
height 42px
margin 0
border-radius 8px
vertical-align bottom
width 42px
height 42px
border-radius 8px
> .body
float left