mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-19 10:15:45 +08:00
结构调整
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* 所有的匹配类型
|
||||
*/
|
||||
|
||||
const commandTypes = {
|
||||
key: {
|
||||
name: "key",
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* 所有的输出类型
|
||||
*/
|
||||
|
||||
const outputTypes = {
|
||||
ignore: {
|
||||
name: "ignore",
|
||||
@@ -41,4 +45,4 @@ const outputTypes = {
|
||||
},
|
||||
};
|
||||
|
||||
export default outputTypes
|
||||
export default outputTypes
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* 所有的特殊变量
|
||||
*/
|
||||
|
||||
const specialVars = {
|
||||
LocalId: {
|
||||
name: "LocalId",
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
/**
|
||||
* 阉割utools,同时返回一个满血版的UTOOLS
|
||||
* 防止输出html输出时,通过script标签调用utools执行危险函数
|
||||
*/
|
||||
*/
|
||||
|
||||
// 禁用危险函数
|
||||
let whole = window.utools
|
||||
if (!utools.isDev()) window.utools = window.getuToolsLite()
|
||||
|
||||
// 数据库前缀
|
||||
const DBPRE = {
|
||||
@@ -47,5 +46,5 @@ export default {
|
||||
putDB,
|
||||
delDB,
|
||||
getDocs,
|
||||
DBPRE
|
||||
DBPRE,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user