Skip to content

Commit 809c616

Browse files
committed
feat: add typora
Signed-off-by: Innei <[email protected]>
1 parent 0a6f7d6 commit 809c616

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

public/apps/typora.png

15.3 KB
Loading

src/components/layout/header/internal/Activity.tsx

+15
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ import { apiClient } from '~/lib/request'
1111
import { useAggregationSelector } from '~/providers/root/aggregation-data-provider'
1212

1313
// autocorrect: false
14+
const appDescrption = {
15+
Typora: '水文',
16+
Xcode: '敲榔头',
17+
iTerm2: '耍杂技',
18+
NeteaseMusic: '听歌',
19+
QQ音乐: '听歌',
20+
Chrome: '冲浪',
21+
'Chrome Canary': '调试',
22+
QQ: '水群',
23+
Messages: '看验证码',
24+
Code: 'Restart TS Server',
25+
Finder: '发呆',
26+
} as any
1427
const appLabels: { [app: string]: string } = {
1528
Slack: 'slack',
1629
Arc: 'arc',
@@ -34,6 +47,7 @@ const appLabels: { [app: string]: string } = {
3447
NeteaseMusic: 'netease',
3548
iTerm2: 'iterm2',
3649
Xcode: 'xcode',
50+
Typora: 'typora',
3751

3852
cmusic: 'cmusic',
3953
}
@@ -116,6 +130,7 @@ export function Activity() {
116130
strategy="fixed"
117131
>
118132
{ownerName} 正在使用 {processName}
133+
{appDescrption[processName] ? ` ${appDescrption[processName]}` : ''}
119134
</FloatPopover>
120135
</m.div>
121136
</AnimatePresence>

0 commit comments

Comments
 (0)