2016-12-28 16:49:51 -06:00
|
|
|
riot = require \riot
|
|
|
|
|
|
|
|
module.exports = (me) ~>
|
|
|
|
i = if me? then me.token else null
|
|
|
|
|
|
|
|
(require './scripts/i.ls') me
|
|
|
|
|
|
|
|
riot.mixin \api do
|
2017-02-12 16:39:54 -06:00
|
|
|
api: (require './scripts/api').bind null i
|
2016-12-28 16:49:51 -06:00
|
|
|
|
|
|
|
riot.mixin \cropper do
|
2017-01-13 10:16:30 -06:00
|
|
|
Cropper: require \cropperjs
|
2016-12-28 16:49:51 -06:00
|
|
|
|
|
|
|
riot.mixin \signout do
|
|
|
|
signout: require './scripts/signout.ls'
|
|
|
|
|
|
|
|
riot.mixin \messaging-stream do
|
|
|
|
MessagingStreamConnection: require './scripts/messaging-stream.ls'
|
|
|
|
|
|
|
|
riot.mixin \is-promise do
|
|
|
|
is-promise: require './scripts/is-promise.ls'
|
|
|
|
|
|
|
|
riot.mixin \get-post-summary do
|
|
|
|
get-post-summary: require './scripts/get-post-summary.ls'
|
|
|
|
|
|
|
|
riot.mixin \date-stringify do
|
|
|
|
date-stringify: require './scripts/date-stringify.ls'
|
|
|
|
|
|
|
|
riot.mixin \text do
|
2017-01-13 10:16:30 -06:00
|
|
|
analyze: require '../../../common/text/index.js'
|
2016-12-28 16:49:51 -06:00
|
|
|
compile: require './scripts/text-compiler.js'
|
|
|
|
|
|
|
|
riot.mixin \get-password-strength do
|
2017-01-13 10:16:30 -06:00
|
|
|
get-password-strength: require 'syuilo-password-strength'
|
2016-12-28 16:49:51 -06:00
|
|
|
|
|
|
|
riot.mixin \ui-progress do
|
|
|
|
Progress: require './scripts/loading.ls'
|
|
|
|
|
|
|
|
riot.mixin \bytes-to-size do
|
|
|
|
bytes-to-size: require './scripts/bytes-to-size.js'
|