wip
This commit is contained in:
parent
ec63c3463a
commit
131bbce66e
5 changed files with 84 additions and 87 deletions
42
src/web/app/mobile/views/pages/followers.vue
Normal file
42
src/web/app/mobile/views/pages/followers.vue
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<template>
|
||||
<mk-ui>
|
||||
<span slot="header" v-if="!fetching">
|
||||
<img :src="`${user.avatar_url}?thumbnail&size=64`" alt="">
|
||||
{{ '%i18n:mobile.tags.mk-user-followers-page.followers-of%'.replace('{}', user.name) }}
|
||||
</span>
|
||||
<mk-user-followers v-if="!fetching" :user="user" @loaded="onLoaded"/>
|
||||
</mk-ui>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import Progress from '../../../common/scripts/loading';
|
||||
|
||||
export default Vue.extend({
|
||||
props: ['username'],
|
||||
data() {
|
||||
return {
|
||||
fetching: true,
|
||||
user: null
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
Progress.start();
|
||||
|
||||
this.$root.$data.os.api('users/show', {
|
||||
username: this.username
|
||||
}).then(user => {
|
||||
this.fetching = false;
|
||||
this.user = user;
|
||||
|
||||
document.title = '%i18n:mobile.tags.mk-user-followers-page.followers-of%'.replace('{}', user.name) + ' | Misskey';
|
||||
document.documentElement.style.background = '#313a42';
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
onLoaded() {
|
||||
Progress.done();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
42
src/web/app/mobile/views/pages/following.vue
Normal file
42
src/web/app/mobile/views/pages/following.vue
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<template>
|
||||
<mk-ui>
|
||||
<span slot="header" v-if="!fetching">
|
||||
<img :src="`${user.avatar_url}?thumbnail&size=64`" alt="">
|
||||
{{ '%i18n:mobile.tags.mk-user-following-page.following-of'.replace('{}', user.name) }}
|
||||
</span>
|
||||
<mk-user-following v-if="!fetching" :user="user" @loaded="onLoaded"/>
|
||||
</mk-ui>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import Progress from '../../../common/scripts/loading';
|
||||
|
||||
export default Vue.extend({
|
||||
props: ['username'],
|
||||
data() {
|
||||
return {
|
||||
fetching: true,
|
||||
user: null
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
Progress.start();
|
||||
|
||||
this.$root.$data.os.api('users/show', {
|
||||
username: this.username
|
||||
}).then(user => {
|
||||
this.fetching = false;
|
||||
this.user = user;
|
||||
|
||||
document.title = '%i18n:mobile.tags.mk-user-followers-page.followers-of%'.replace('{}', user.name) + ' | Misskey';
|
||||
document.documentElement.style.background = '#313a42';
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
onLoaded() {
|
||||
Progress.done();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue