From 860db32165f8f66f67a4e854da9c048fcbbd762c Mon Sep 17 00:00:00 2001 From: txthinking Date: Fri, 20 Jan 2023 14:46:30 +0800 Subject: [PATCH] v20230122 ChineseNewYear --- cli/brook/main.go | 33 ++++++++++++++++++++++++++++++++- docs/index.html | 12 ++++++------ ping/ping.json | 2 +- 3 files changed, 39 insertions(+), 8 deletions(-) diff --git a/cli/brook/main.go b/cli/brook/main.go index 65b9ee6a..cc19253b 100644 --- a/cli/brook/main.go +++ b/cli/brook/main.go @@ -50,7 +50,7 @@ var debugAddress string func main() { app := cli.NewApp() app.Name = "Brook" - app.Version = "20230101" + app.Version = "20230122" app.Usage = "A cross-platform network tool designed for developers" app.Authors = []*cli.Author{ { @@ -2324,6 +2324,37 @@ complete -o bashdefault -o default -o nospace -F _cli_bash_autocomplete brook return nil }, }, + &cli.Command{ + Name: "ChineseNewYear", + Hidden: true, + Action: func(c *cli.Context) error { + s := ` +This version number 20230122 coincides with the date of Chinese New Year 20230101. +So this hidden command is to wish everyone a happy new year. +In the chinese shi er sheng xiao, this year is tu nian: + + /| __ +* + / | ,-~ / + + . Y :| // / . * + . | jj /( .^ * + * >-"~"-v" . * . +* / Y + . . jo o | . + + ( ~T~ j + . + + >._-' _./ + + /| ;-"~ _ l + . / l/ ,-"~ \ + + \//\/ .- \ + + Y / Y + l I ! + ]\ _\ /"\ + (" ~----( ~ Y. ) + ~~~~~~~~~~~~~~~~~~~~~~~~~~ +` + fmt.Println(s) + return nil + }, + }, } if err := app.Run(os.Args); err != nil { log.Println(err) diff --git a/docs/index.html b/docs/index.html index 7afe6e88..98bf4153 100644 --- a/docs/index.html +++ b/docs/index.html @@ -44,7 +44,7 @@ ing7: false, p7c: "", p: 0, - zh: navigator.language.toLowerCase() == "zh-cn", + zh: navigator.language.toLowerCase().startsWith("zh-"), }; }, methods: { @@ -113,9 +113,9 @@
-
+
-
{{ zh ? '图形端原理' : 'How GUI works' }}
+
{{ zh ? '图形端文档' : 'GUI Documentation' }}
@@ -125,6 +125,9 @@
+
+ Sponsors ❤️ Shiliew - Not just VPN +
{{ zh ? '服务端' : 'Server' }}
@@ -217,15 +220,12 @@
Windows EXE
-
Linux GUI
- deps -
diff --git a/ping/ping.json b/ping/ping.json index 98661c09..48547f8b 100644 --- a/ping/ping.json +++ b/ping/ping.json @@ -1,5 +1,5 @@ { - "version": "20230101", + "version": "20230122", "text": "", "link": "" }