Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Activity.tsx): Chinese translation and new app #74

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ next-env.d.ts
.idea


.vscode/sftp.json
Binary file added public/apps/excel.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/goodnotes.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/iina.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/illustrator.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/photoshop.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/powerpoint.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/remnote.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/warp.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/word.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/components/layout/header/internal/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ const appDescription = {
Code: 'Restart TS Server',
Infuse: '看片',
kitty: '撸猫',
IINA: '看片',
Warp: '耍杂技',
'Adobe Photoshop 2023': '抠图',
'Microsoft Word': '码字',
'Microsoft Excel': '雕花',
'Microsoft PowerPoint': '画饼',
} as any
const appLabels: { [app: string]: string } = {
'Activity Monitor': 'activity',
Expand All @@ -46,6 +52,25 @@ const appLabels: { [app: string]: string } = {
'Google Chrome': 'chrome',
'System Preferences': 'system',
'System Settings': 'system',
'Adobe Illustrator 2023': 'illustrator',
'Adobe Photoshop 2023': 'photoshop',
'Microsoft Word': 'word',
'Microsoft Excel': 'excel',
'Microsoft PowerPoint': 'powerpoint',
IINA: 'iina',
Warp: 'warp',
RemNote: 'remnote',

访达: 'finder',
邮件: 'mail',
地图: 'maps',
信息: 'messages',
音乐: 'music',
网易云音乐: 'netease',
备忘录: 'notes',
'Safari 浏览器': 'safari',
微信: 'wechat',
腾讯会议: 'tencent_meeting',
Alacritty: 'alacritty',
Arc: 'arc',
Chrome: 'chrome',
Expand Down