From 57894d2ed3939ec77e87cbe8eb73a9452aa73417 Mon Sep 17 00:00:00 2001 From: shaoying Date: Fri, 25 Sep 2020 10:55:16 +0800 Subject: [PATCH] opt some --- plugin/input/location.js | 4 ++++ plugin/input/paste.js | 3 +++ plugin/local/wiki/word.js | 1 + 3 files changed, 8 insertions(+) create mode 100644 plugin/input/location.js create mode 100644 plugin/input/paste.js diff --git a/plugin/input/location.js b/plugin/input/location.js new file mode 100644 index 00000000..bfceaa72 --- /dev/null +++ b/plugin/input/location.js @@ -0,0 +1,4 @@ +Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, conf, list, cb, target) { + }, +}) + diff --git a/plugin/input/paste.js b/plugin/input/paste.js new file mode 100644 index 00000000..456fb824 --- /dev/null +++ b/plugin/input/paste.js @@ -0,0 +1,3 @@ +Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, conf, list, cb, target) { + }, +}) diff --git a/plugin/local/wiki/word.js b/plugin/local/wiki/word.js index 5abe7199..b6191819 100644 --- a/plugin/local/wiki/word.js +++ b/plugin/local/wiki/word.js @@ -51,6 +51,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, sub.run = function(event, cmds, cb, silent) { can.run(event, (cmds[0] == "search"? []: ["action", "story", item.type, item.name, item.text]).concat(cmds), cb, true) } + delete(target.dataset.meta) }, can._output, target) },