From f59b7cc461c0167c24ef21bb025b4bc2729fa403 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 2 Jan 2025 18:29:31 +0800 Subject: [PATCH] add some --- base/web/spide.go | 4 ++-- conf.go | 19 ++++++++++--------- core/code/autogen.go | 2 +- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/base/web/spide.go b/base/web/spide.go index f9b26e40..f13ddd73 100644 --- a/base/web/spide.go +++ b/base/web/spide.go @@ -299,8 +299,8 @@ func init() { m.Cmd("", mdb.CREATE, kit.Select("https://shylinux.com", conf[cli.CTX_SHY]), ice.SHY, ice.SRC_MAIN_ICO, nfs.REPOS) m.Cmd("", mdb.CREATE, kit.Select("https://mail.shylinux.com", conf[cli.CTX_MAIL]), ice.MAIL, "usr/icons/Mail.png", "mail") m.Cmd("", mdb.CREATE, kit.Select("https://demo.shylinux.com", conf[cli.CTX_DEMO]), ice.DEMO, ice.SRC_MAIN_ICO, "demo") - m.Cmd("", mdb.CREATE, "https://2023-contexts.shylinux.com", "2023-contexts", ice.SRC_MAIN_ICO, nfs.REPOS) - m.Cmd("", mdb.CREATE, "https://2024-contexts.shylinux.com", "2024-contexts", ice.SRC_MAIN_ICO, nfs.REPOS) + m.Cmd("", mdb.CREATE, "https://2023-contextos.shylinux.com", "2023-ContextOS", ice.SRC_MAIN_ICO, nfs.REPOS) + m.Cmd("", mdb.CREATE, "https://2024-contextos.shylinux.com", "2024-ContextOS", ice.SRC_MAIN_ICO, nfs.REPOS) }}, mdb.SEARCH: {Hand: func(m *ice.Message, arg ...string) { if mdb.IsSearchPreview(m, arg) { diff --git a/conf.go b/conf.go index 1a4f10c1..a86c9a55 100644 --- a/conf.go +++ b/conf.go @@ -60,15 +60,16 @@ const ( INT = "int" ) const ( // REPOS - CONTEXTS = "contexts" - INTSHELL = "intshell" - LEARNING = "learning" - VOLCANOS = "volcanos" - TOOLKITS = "toolkits" - ICEBERGS = "icebergs" - RELEASE = "release" - MATRIX = "matrix" - ICONS = "icons" + CONTEXTOS = "ContextOS" + CONTEXTS = "contexts" + INTSHELL = "intshell" + LEARNING = "learning" + VOLCANOS = "volcanos" + TOOLKITS = "toolkits" + ICEBERGS = "icebergs" + RELEASE = "release" + MATRIX = "matrix" + ICONS = "icons" INSTALL = "install" REQUIRE = "require" diff --git a/core/code/autogen.go b/core/code/autogen.go index 0fa6e896..0e5f616b 100644 --- a/core/code/autogen.go +++ b/core/code/autogen.go @@ -216,7 +216,7 @@ func init() { }) } func isReleaseContexts(m *ice.Message) bool { - return nfs.Exists(m, ice.USR_RELEASE) && nfs.Exists(m, ice.USR_VOLCANOS) && nfs.Exists(m, ice.USR_INTSHELL) && ice.Info.Make.Module == "shylinux.com/x/contexts" + return ice.Info.Make.Module == "shylinux.com/x/ContextOS" && nfs.Exists(m, ice.USR_RELEASE) && nfs.Exists(m, ice.USR_VOLCANOS) && nfs.Exists(m, ice.USR_INTSHELL) } func AutogenMod(m *ice.Message) string { return _autogen_mod(m, ice.GO_MOD)