Skip to content

Commit

Permalink
chore: add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Aug 20, 2023
1 parent 659b65c commit 1de4915
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 34 deletions.
Binary file added public/apps/lark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/apps/tencent_meeting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/apps/webstorm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 33 additions & 34 deletions src/components/layout/header/internal/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { useQuery } from '@tanstack/react-query'
import React, { memo, useEffect, useMemo } from 'react'
import { AnimatePresence, m } from 'framer-motion'
import Image from 'next/image'
import type { RequestError } from '@mx-space/api-client'

import {
setActivityMediaInfo,
Expand All @@ -24,7 +23,7 @@ import {
} from '~/providers/root/aggregation-data-provider'

// autocorrect: false
const appDescrption = {
const appDescription = {
Typora: '水文',
Xcode: '玩个锤子',
iTerm2: '耍杂技',
Expand All @@ -36,48 +35,48 @@ const appDescrption = {
QQ: '水群',
Messages: '看验证码',
Code: 'Restart TS Server',
Finder: '发呆',
Infuse: '看片',
kitty: '撸猫',

'Activity Monitor': 'Maybe 电脑已死机',
} as any
const appLabels: { [app: string]: string } = {
Slack: 'slack',
'Activity Monitor': 'activity',
'Chrome Canary': 'chrome_canary',
'Code - Insiders': 'code',
'Google Chrome Canary': 'chrome_canary',
'Google Chrome': 'chrome',
'System Preferences': 'system',
'System Settings': 'system',
Alacritty: 'alacritty',
Arc: 'arc',
Chrome: 'chrome',
Code: 'code',
'Code - Insiders': 'code',
WebStorm: 'webstorm',
Linear: 'linear',
Figma: 'figma',
Telegram: 'telegram',
WeChat: 'wechat',
Discord: 'discord',
Mail: 'mail',
Safari: 'safari',
Music: 'music',
Figma: 'figma',
Finder: 'finder',
Home: 'homekit',
Infuse: 'infuse',
Linear: 'linear',
Mail: 'mail',
Maps: 'maps',
Messages: 'messages',
Music: 'music',
NetEaseMusic: 'netease',
Notes: 'notes',
QQ: 'qq',
'Google Chrome': 'chrome',
Chrome: 'chrome',
'Chrome Canary': 'chrome_canary',
'Google Chrome Canary': 'chrome_canary',
QQ音乐: 'qqmusic',
NetEaseMusic: 'netease',
iTerm2: 'iterm2',
Xcode: 'xcode',
Safari: 'safari',
Slack: 'slack',
Telegram: 'telegram',
Typora: 'typora',
Infuse: 'infuse',
kitty: 'kitty',
'Activity Monitor': 'activity',
Alacritty: 'alacritty',
Videos: 'apptv',
Maps: 'maps',
'System Preferences': 'system',
'System Settings': 'system',
Notes: 'notes',
Home: 'homekit',
WeChat: 'wechat',
WebStorm: 'webstorm',
Xcode: 'xcode',
iTerm2: 'iterm2',
kitty: 'kitty',
TencentMeeting: 'tencent_meeting',
Lark: 'lark',
Feishu: 'lark',

cmusic: 'cmusic',
}
Expand All @@ -103,7 +102,7 @@ export const Activity = memo(() => {
}
}>()
.then((res) => res)
.catch((err: RequestError) => {
.catch(() => {
return { processName: '', mediaInfo: undefined }
})
},
Expand Down Expand Up @@ -192,8 +191,8 @@ export const Activity = memo(() => {
trackerMessage="Activity"
>
{ownerName} 正在使用 {processName}
{appDescrption[processName]
? ` ${appDescrption[processName]}`
{appDescription[processName]
? ` ${appDescription[processName]}`
: ''}
</ImpressionView>
</FloatPopover>
Expand Down

1 comment on commit 1de4915

@vercel
Copy link

@vercel vercel bot commented on 1de4915 Aug 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

springtide.vercel.app
shiro-git-main-innei.vercel.app
shiro-innei.vercel.app
innei.in

Please sign in to comment.