1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-29 14:08:07 +09:00
hotomoe/src/web/app/desktop/api/post.ts

22 lines
490 B
TypeScript
Raw Normal View History

2018-02-20 22:53:34 +09:00
import PostFormWindow from '../views/components/post-form-window.vue';
2018-02-22 02:15:46 +09:00
import RepostFormWindow from '../views/components/repost-form-window.vue';
2018-02-20 22:53:34 +09:00
2018-02-22 02:15:46 +09:00
export default function(opts) {
const o = opts || {};
if (o.repost) {
const vm = new RepostFormWindow({
propsData: {
repost: o.repost
}
}).$mount();
document.body.appendChild(vm.$el);
} else {
const vm = new PostFormWindow({
propsData: {
reply: o.reply
}
}).$mount();
document.body.appendChild(vm.$el);
}
2018-02-20 22:53:34 +09:00
}