From fde6ed60736d688c63bdbc8de2875e2e687f9f16 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Feb 2017 13:24:39 +0900 Subject: [PATCH] :v: --- src/web/app/mobile/mixins.js | 2 +- src/web/app/mobile/scripts/ui.js | 7 +++++++ src/web/app/mobile/scripts/ui.ls | 6 ------ 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 src/web/app/mobile/scripts/ui.js delete mode 100644 src/web/app/mobile/scripts/ui.ls diff --git a/src/web/app/mobile/mixins.js b/src/web/app/mobile/mixins.js index cd344d32e..be0e0d155 100644 --- a/src/web/app/mobile/mixins.js +++ b/src/web/app/mobile/mixins.js @@ -5,7 +5,7 @@ module.exports = me => { require('./scripts/stream')(me); } - require('./scripts/ui.ls'); + require('./scripts/ui'); riot.mixin('open-post-form', { openPostForm: opts => { diff --git a/src/web/app/mobile/scripts/ui.js b/src/web/app/mobile/scripts/ui.js new file mode 100644 index 000000000..51ab6acd2 --- /dev/null +++ b/src/web/app/mobile/scripts/ui.js @@ -0,0 +1,7 @@ +const riot = require('riot'); + +const ui = riot.observable(); + +riot.mixin('ui', { + ui: ui +}); diff --git a/src/web/app/mobile/scripts/ui.ls b/src/web/app/mobile/scripts/ui.ls deleted file mode 100644 index aa94a8b05..000000000 --- a/src/web/app/mobile/scripts/ui.ls +++ /dev/null @@ -1,6 +0,0 @@ -riot = require \riot - -ui = riot.observable! - -riot.mixin \ui do - ui: ui