From fdc1b5420ae75c568361ea801959fa67245aa8ee Mon Sep 17 00:00:00 2001 From: shylinux Date: Mon, 17 Jan 2022 00:17:00 +0800 Subject: [PATCH] opt inner.js --- core/code/inner.go | 1 + misc/git/total.go | 2 +- misc/git/trend.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/code/inner.go b/core/code/inner.go index a0889f00..599dd5ca 100644 --- a/core/code/inner.go +++ b/core/code/inner.go @@ -103,6 +103,7 @@ func init() { m.Set(ice.MSG_STATUS) return } + m.Option("plug", "inner/search.js?a=1,inner/favor.js,inner/sess.js") arg[1] = kit.Split(arg[1])[0] _inner_list(m, kit.Ext(arg[1]), arg[1], arg[0]) m.Set(ice.MSG_STATUS) diff --git a/misc/git/total.go b/misc/git/total.go index 0076464e..5af31a72 100644 --- a/misc/git/total.go +++ b/misc/git/total.go @@ -26,7 +26,7 @@ func init() { ), )}, }, Commands: map[string]*ice.Command{ - TOTAL: {Name: "total name auto pie", Help: "统计量", Action: map[string]*ice.Action{ + TOTAL: {Name: "total repos auto pie", Help: "统计量", Action: map[string]*ice.Action{ PIE: {Name: "pie", Help: "饼图", Hand: func(m *ice.Message, arg ...string) { defer m.Display("/plugin/story/pie.js") m.Cmd(TOTAL).Table(func(index int, value map[string]string, head []string) { diff --git a/misc/git/trend.go b/misc/git/trend.go index 749bc8ea..0647f2cc 100644 --- a/misc/git/trend.go +++ b/misc/git/trend.go @@ -12,7 +12,7 @@ const TREND = "trend" func init() { Index.Merge(&ice.Context{Commands: map[string]*ice.Command{ - TREND: {Name: "trend name begin_time@date auto", Help: "趋势图", Meta: kit.Dict( + TREND: {Name: "trend repos begin_time@date auto", Help: "趋势图", Meta: kit.Dict( ice.Display("/plugin/story/trend.js"), ), Action: ice.MergeAction(map[string]*ice.Action{ mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) {