mirror of
https://github.com/misskey-dev/misskey
synced 2024-06-29 05:39:52 +02:00
38 lines
671 B
HTML
38 lines
671 B
HTML
<mk-messaging-room-page>
|
|
<mk-messaging-room if={ user } user={ user } isNaked={ true }/>
|
|
|
|
<style>
|
|
:scope
|
|
display block
|
|
background #fff
|
|
|
|
</style>
|
|
<script>
|
|
import Progress from '../../../common/scripts/loading';
|
|
|
|
this.mixin('api');
|
|
|
|
this.fetching = true;
|
|
this.user = null;
|
|
|
|
this.on('mount', () => {
|
|
Progress.start();
|
|
|
|
document.documentElement.style.background = '#fff';
|
|
|
|
this.api('users/show', {
|
|
username: this.opts.user
|
|
}).then(user => {
|
|
this.update({
|
|
fetching: false,
|
|
user: user
|
|
});
|
|
|
|
document.title = 'メッセージ: ' + this.user.name;
|
|
|
|
Progress.done();
|
|
});
|
|
});
|
|
</script>
|
|
</mk-messaging-room-page>
|