Skip to content

Commit

Permalink
v20230122 ChineseNewYear
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking committed Jan 20, 2023
1 parent 4d1908d commit 860db32
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 8 deletions.
33 changes: 32 additions & 1 deletion cli/brook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down Expand Up @@ -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)
Expand Down
12 changes: 6 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
ing7: false,
p7c: "",
p: 0,
zh: navigator.language.toLowerCase() == "zh-cn",
zh: navigator.language.toLowerCase().startsWith("zh-"),
};
},
methods: {
Expand Down Expand Up @@ -113,9 +113,9 @@
<div><button :class="p!=2 ? 'contrast outline' : ''" @click="()=>this.p=2">{{ zh ? '安装图形端' : 'Install GUI' }}</button></div>
</div>
<div style="display: flex; justify-content: center; flex-wrap: wrap">
<div><button :class="p!=3 ? 'contrast outline' : ''" @click="p3" :aria-busy="ing3 ? 'true' : ''">{{ zh ? '命令行文档' : 'CLI Document' }}</button></div>
<div><button :class="p!=3 ? 'contrast outline' : ''" @click="p3" :aria-busy="ing3 ? 'true' : ''">{{ zh ? '命令行文档' : 'CLI Documentation' }}</button></div>
<div style="width: 30px"></div>
<div><a class="contrast outline" :href="zh ? 'https://www.txthinking.com/talks/articles/brook.article' : 'https://www.txthinking.com/talks/articles/brook-en.article'" target="_blank" role="button">{{ zh ? '图形端原理' : 'How GUI works' }}</a></div>
<div><a class="contrast outline" :href="zh ? 'https://www.txthinking.com/talks/articles/brook.article' : 'https://www.txthinking.com/talks/articles/brook-en.article'" target="_blank" role="button">{{ zh ? '图形端文档' : 'GUI Documentation' }}</a></div>
<div style="width: 30px"></div>
<div><button :class="p!=4 ? 'contrast outline' : ''" @click="()=>this.p=4">{{ zh ? '守护进程' : 'Daemon' }}</button></div>
<div style="width: 30px"></div>
Expand All @@ -125,6 +125,9 @@
<div style="width: 30px"></div>
<div><button :class="p!=7 ? 'contrast outline' : ''" @click="p7">{{ zh ? '一些例子' : 'Some Examples' }}</button></div>
</div>
<div v-if="zh" style="display: flex; justify-content: center; flex-wrap: wrap">
<a class="contrast outline" style="border-color: #b04386; color: #b04386" href="https://www.txthinking.com/shiliew.html?utm_source=brookdocs" target="_blank" role="button"> Sponsors ❤️ Shiliew - Not just VPN </a>
</div>
<div class="dm" v-if="p==0">
<article>
<div><h6>{{ zh ? '服务端' : 'Server' }}</h6></div>
Expand Down Expand Up @@ -217,15 +220,12 @@ <h6>
<div style="font-size: 12px">Windows EXE</div>
</div></a
>
<div style="display:flex;flex-direction:column;align-items:center;">
<a href="https://github.com/txthinking/brook/releases/latest/download/Brook.bin" target="_blank"
><div style="display: flex; flex-direction: column; align-items: center; padding: 30px">
<img src="./images/linux.png" style="width: 50px; height: 50px" />
<div style="font-size: 12px">Linux GUI</div>
</div></a
>
<i data-tooltip="Tested on Ubuntu 22.04. Other systems may need to install dependencies according to the output" style="font-size:9px">deps</i>
</div>
<a href="https://github.com/txthinking/brook/blob/master/docs/example.md#gui-for-official-openwrt" target="_blank"
><div style="display: flex; flex-direction: column; align-items: center; padding: 30px">
<img src="./images/openwrt.png" style="width: 50px; height: 50px" />
Expand Down
2 changes: 1 addition & 1 deletion ping/ping.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "20230101",
"version": "20230122",
"text": "",
"link": ""
}

0 comments on commit 860db32

Please sign in to comment.