File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,19 @@ import { apiClient } from '~/lib/request'
11
11
import { useAggregationSelector } from '~/providers/root/aggregation-data-provider'
12
12
13
13
// 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
14
27
const appLabels : { [ app : string ] : string } = {
15
28
Slack : 'slack' ,
16
29
Arc : 'arc' ,
@@ -34,6 +47,7 @@ const appLabels: { [app: string]: string } = {
34
47
NeteaseMusic : 'netease' ,
35
48
iTerm2 : 'iterm2' ,
36
49
Xcode : 'xcode' ,
50
+ Typora : 'typora' ,
37
51
38
52
cmusic : 'cmusic' ,
39
53
}
@@ -116,6 +130,7 @@ export function Activity() {
116
130
strategy = "fixed"
117
131
>
118
132
{ ownerName } 正在使用 { processName }
133
+ { appDescrption [ processName ] ? ` ${ appDescrption [ processName ] } ` : '' }
119
134
</ FloatPopover >
120
135
</ m . div >
121
136
</ AnimatePresence >
You can’t perform that action at this time.
0 commit comments