From 5e10bad07e57b92851244ba080cdc23fabdfaf24 Mon Sep 17 00:00:00 2001 From: purocean Date: Thu, 21 Oct 2021 17:20:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(context):=20ctx=20=E5=A2=9E=E5=8A=A0=20lib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/context/index.ts | 2 ++ src/renderer/context/lib.ts | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 src/renderer/context/lib.ts diff --git a/src/renderer/context/index.ts b/src/renderer/context/index.ts index c5e555c9..9bbcdbc6 100644 --- a/src/renderer/context/index.ts +++ b/src/renderer/context/index.ts @@ -6,6 +6,7 @@ import storage from '@fe/utils/storage' import * as utils from '@fe/utils/index' import * as env from '@fe/utils/env' import * as api from '@fe/support/api' +import * as lib from './lib' import * as action from './action' import * as doc from './document' import * as shortcut from './shortcut' @@ -39,6 +40,7 @@ const ctx = { theme, storage, embed, + lib, env, utils, } diff --git a/src/renderer/context/lib.ts b/src/renderer/context/lib.ts new file mode 100644 index 00000000..cb77f22c --- /dev/null +++ b/src/renderer/context/lib.ts @@ -0,0 +1,3 @@ +export * as lodash from 'lodash-es' +export * as vue from 'vue' +export { default as crypto } from 'crypto-js'