Refactor & Clean up

This commit is contained in:
syuilo 2018-11-09 08:13:34 +09:00
parent ba845f5218
commit 60ef3e3563
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
154 changed files with 438 additions and 481 deletions

View file

@ -24,12 +24,12 @@ export default define({
i18n: i18n('desktop/views/widgets/messaging.vue'),
methods: {
navigate(user) {
(this as any).os.new(MkMessagingRoomWindow, {
this.$root.new(MkMessagingRoomWindow, {
user: user
});
},
add() {
(this as any).os.new(MkMessagingWindow);
this.$root.new(MkMessagingWindow);
},
func() {
if (this.props.design == 1) {

View file

@ -47,7 +47,7 @@ export default define({
this.fetching = true;
this.poll = null;
(this as any).api('notes/polls/recommendation', {
this.$root.api('notes/polls/recommendation', {
limit: 1,
offset: this.offset
}).then(notes => {

View file

@ -53,7 +53,7 @@ export default define({
post() {
this.posting = true;
(this as any).api('notes/create', {
this.$root.api('notes/create', {
text: this.text
}).then(data => {
this.clear();

View file

@ -46,7 +46,7 @@ export default define({
this.fetching = true;
this.note = null;
(this as any).api('notes/trend', {
this.$root.api('notes/trend', {
limit: 1,
offset: this.offset,
renote: false,

View file

@ -53,7 +53,7 @@ export default define({
this.fetching = true;
this.users = [];
(this as any).api('users/recommendation', {
this.$root.api('users/recommendation', {
limit: limit,
offset: limit * this.page
}).then(users => {