thedesk/app/native.js

15 lines
454 B
JavaScript
Raw Permalink Normal View History

2020-11-28 07:57:11 +11:00
const { AiScript, parse, values, utils } = require('@syuilo/aiscript')
const gcc = require('textarea-caret')
2021-06-19 20:16:08 +10:00
const { v4: uuidv4 } = require('uuid')
global.uuid = uuidv4
global.getCaretCoordinates = gcc
2021-01-09 23:07:59 +11:00
global.sanitizeHtml = require('sanitize-html')
2020-11-28 07:57:11 +11:00
global.asValue = values
global.AiScript = AiScript
global.asParse = parse
global.asCommon = {
'TheDesk:console': values.FN_NATIVE((z) => {
console.log(z[0].value)
})
}
global.asUtil = utils