Skip to content

Commit 8ccc021

Browse files
authored
Feat auto close publish page (#164)
* feat: add contact us message in multiple languages - Added a new message for contacting support in English and Chinese. - Updated the layout and styling in the Publish component for better readability. * feat: add auto close feature for publish page - Implemented auto close functionality with countdown in the Publish component. - Added corresponding messages in English and Chinese for user interface. - Enhanced layout and styling for better user experience. * feat: update auto close feature in publish component - Enhanced auto close functionality with adjustable delay settings. - Added a number input for users to set the delay in minutes. - Improved user interface with tooltips for better guidance.
1 parent 32f523d commit 8ccc021

File tree

7 files changed

+2275
-1853
lines changed

7 files changed

+2275
-1853
lines changed

.cursor/rules/typescript.mdc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
description: typescript
3-
globs: *.tsx, *.js, *.ts
3+
globs: *.tsx
44
alwaysApply: false
55
---
66
TypeScript Development Guidelines:
77

8+
- Don't `npm run build` or `pnpm build` for testing
9+
810
Code Style:
911
- Use TypeScript for all code; prefer interfaces over types
1012
- Avoid enums; use maps instead

locales/en/messages.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,5 +1010,16 @@
10101010
},
10111011
"errorCloseAllTabs": {
10121012
"message": "Failed to close all tabs: $1"
1013+
},
1014+
"contactUsIfProblem": {
1015+
"message": "If you have any issues or want us to support new platforms, please "
1016+
},
1017+
"publishAutoClose": {
1018+
"message": "Auto Close",
1019+
"description": "Auto close switch text for publish page"
1020+
},
1021+
"publishAutoCloseCountdown": {
1022+
"message": "Auto close in $1 seconds",
1023+
"description": "Auto close countdown text for publish page"
10131024
}
10141025
}

locales/zh_CN/messages.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,5 +984,16 @@
984984
},
985985
"errorCloseAllTabs": {
986986
"message": "关闭所有标签页失败: $1"
987+
},
988+
"contactUsIfProblem": {
989+
"message": "如果遇到任何问题,请"
990+
},
991+
"publishAutoClose": {
992+
"message": "自动关闭",
993+
"description": "发布页面自动关闭开关文本"
994+
},
995+
"publishAutoCloseCountdown": {
996+
"message": "$1 秒后自动关闭",
997+
"description": "发布页面自动关闭倒计时文本"
987998
}
988999
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"prepare": "husky"
1515
},
1616
"dependencies": {
17-
"@heroui/react": "2.6.14",
17+
"@heroui/react": "2.7.8",
1818
"@heroui/theme": "2.4.6",
1919
"@mozilla/readability": "^0.5.0",
2020
"@plasmohq/storage": "^1.11.0",

0 commit comments

Comments
 (0)