From bc94d8e1e4b590a022fb629c73d53706ef60f9ba Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 15 Feb 2025 18:35:15 +0800 Subject: [PATCH] add some --- LICENSE | 2 +- base/cli/runtime.go | 4 +++- base/web/spide.go | 1 + core/core.go | 1 - misc/coder/server.go | 2 +- misc/misc.go | 4 +--- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index f85b222d..5f247068 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 shylinux +Copyright (c) 2017-2025 shylinux Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/base/cli/runtime.go b/base/cli/runtime.go index d252e6a9..f47e1ce5 100644 --- a/base/cli/runtime.go +++ b/base/cli/runtime.go @@ -148,8 +148,10 @@ const ( ) const ( CTX_SHY = "ctx_shy" - CTX_DEV = "ctx_dev" + CTX_WEB = "ctx_web" + CTX_GIT = "ctx_git" CTX_DEV_IP = "ctx_dev_ip" + CTX_DEV = "ctx_dev" CTX_OPS = "ctx_ops" CTX_REPOS = "ctx_repos" CTX_NAME = "ctx_name" diff --git a/base/web/spide.go b/base/web/spide.go index b369dad4..ccb6f12c 100644 --- a/base/web/spide.go +++ b/base/web/spide.go @@ -311,6 +311,7 @@ func init() { m.Cmd("", mdb.CREATE, kit.Select(dev, os.Getenv("ctx_dev_ip")), ice.DEV_IP, ice.SRC_MAIN_ICO, "dev_ip") m.Cmd("", mdb.CREATE, kit.Select("http://localhost:9020", conf[cli.CTX_OPS]), ice.OPS, ice.SRC_MAIN_ICO, nfs.REPOS) 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://web.shylinux.com", conf[cli.CTX_WEB]), ice.WEB, 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.shylinux.com", "2023-ContextOS", ice.SRC_MAIN_ICO, nfs.REPOS) diff --git a/core/core.go b/core/core.go index cfc44a80..4ae40d7b 100644 --- a/core/core.go +++ b/core/core.go @@ -2,7 +2,6 @@ package core import ( _ "shylinux.com/x/icebergs/core/chat" - _ "shylinux.com/x/icebergs/core/chat/location" _ "shylinux.com/x/icebergs/core/chat/macos" _ "shylinux.com/x/icebergs/core/code" _ "shylinux.com/x/icebergs/core/mall" diff --git a/misc/coder/server.go b/misc/coder/server.go index fa570cc1..78366285 100644 --- a/misc/coder/server.go +++ b/misc/coder/server.go @@ -52,4 +52,4 @@ func (s server) List(m *ice.Message, arg ...string) { }) } } -func init() { ice.CodeCtxCmd(server{}) } +func init() { ice.Cmd("web.code.coder.server", server{}) } diff --git a/misc/misc.go b/misc/misc.go index 2242a3a9..19c04757 100644 --- a/misc/misc.go +++ b/misc/misc.go @@ -1,8 +1,6 @@ package misc import ( - // _ "shylinux.com/x/icebergs/misc/bash" _ "shylinux.com/x/icebergs/misc/git" - // _ "shylinux.com/x/icebergs/misc/tmux" - // _ "shylinux.com/x/icebergs/misc/vim" + _ "shylinux.com/x/icebergs/misc/wx" )