summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/api/post.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-11-09 16:00:29 +0900
committerGitHub <noreply@github.com>2018-11-09 16:00:29 +0900
commit3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa (patch)
tree3af53c7b8d5ecc5f0c21cbc5abec3ec5254606b0 /src/client/app/mobile/api/post.ts
parent[Client] Fix bug (diff)
downloadsharkey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.tar.gz
sharkey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.tar.bz2
sharkey-3f79c9ae4927d4186c708e130ecbb1ea4f72d9fa.zip
Refactor client (#3178)
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
Diffstat (limited to 'src/client/app/mobile/api/post.ts')
-rw-r--r--src/client/app/mobile/api/post.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/client/app/mobile/api/post.ts b/src/client/app/mobile/api/post.ts
deleted file mode 100644
index a64ed1c43e..0000000000
--- a/src/client/app/mobile/api/post.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import PostForm from '../views/components/post-form-dialog.vue';
-
-export default (os) => (opts) => {
- const o = opts || {};
-
- document.documentElement.style.overflow = 'hidden';
-
- function recover() {
- document.documentElement.style.overflow = 'auto';
- }
-
- const vm = new PostForm({
- parent: os.app,
- propsData: {
- reply: o.reply,
- renote: o.renote
- }
- }).$mount();
- vm.$once('cancel', recover);
- vm.$once('posted', recover);
- if (o.cb) vm.$once('closed', o.cb);
- document.body.appendChild(vm.$el);
- (vm as any).focus();
-};