From f6f1eb1bca8209714a24b997c720fb27a9f15b86 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Feb 2017 16:52:14 +0900 Subject: [PATCH] :v: --- src/web/app/common/mixins.ls | 12 ++++++------ src/web/app/common/scripts/is-promise.js | 1 + src/web/app/common/scripts/is-promise.ls | 1 - 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 src/web/app/common/scripts/is-promise.js delete mode 100644 src/web/app/common/scripts/is-promise.ls diff --git a/src/web/app/common/mixins.ls b/src/web/app/common/mixins.ls index 1194793994..c412e3b322 100644 --- a/src/web/app/common/mixins.ls +++ b/src/web/app/common/mixins.ls @@ -12,23 +12,23 @@ module.exports = (me) ~> Cropper: require \cropperjs riot.mixin \signout do - signout: require './scripts/signout.js' + signout: require './scripts/signout' riot.mixin \messaging-stream do MessagingStreamConnection: require './scripts/messaging-stream' riot.mixin \is-promise do - is-promise: require './scripts/is-promise.ls' + is-promise: require './scripts/is-promise' riot.mixin \get-post-summary do - get-post-summary: require './scripts/get-post-summary.js' + get-post-summary: require './scripts/get-post-summary' riot.mixin \date-stringify do - date-stringify: require './scripts/date-stringify.ls' + date-stringify: require './scripts/date-stringify' riot.mixin \text do - analyze: require '../../../common/text/index.js' - compile: require './scripts/text-compiler.js' + analyze: require '../../../common/text/index' + compile: require './scripts/text-compiler' riot.mixin \get-password-strength do get-password-strength: require 'syuilo-password-strength' diff --git a/src/web/app/common/scripts/is-promise.js b/src/web/app/common/scripts/is-promise.js new file mode 100644 index 0000000000..fd3dc42da3 --- /dev/null +++ b/src/web/app/common/scripts/is-promise.js @@ -0,0 +1 @@ +module.exports = x => typeof x.then == 'function'; diff --git a/src/web/app/common/scripts/is-promise.ls b/src/web/app/common/scripts/is-promise.ls deleted file mode 100644 index e3c7adff85..0000000000 --- a/src/web/app/common/scripts/is-promise.ls +++ /dev/null @@ -1 +0,0 @@ -module.exports = (x) -> typeof x.then == \function