@nbtca/prompt 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ export declare const URLS: {
12
12
  };
13
13
  export declare const APP_INFO: {
14
14
  readonly name: "Prompt";
15
- readonly version: "1.0.6";
15
+ readonly version: "1.0.7";
16
16
  readonly description: "浙大宁波理工学院计算机协会";
17
17
  readonly fullDescription: "NBTCA Prompt - 极简命令行工具";
18
18
  readonly author: "m1ngsama <contact@m1ng.space>";
@@ -15,7 +15,7 @@ export const URLS = {
15
15
  };
16
16
  export const APP_INFO = {
17
17
  name: 'Prompt',
18
- version: '1.0.6',
18
+ version: '1.0.7',
19
19
  description: '浙大宁波理工学院计算机协会',
20
20
  fullDescription: 'NBTCA Prompt - 极简命令行工具',
21
21
  author: 'm1ngsama <contact@m1ng.space>',
@@ -0,0 +1,107 @@
1
+ {
2
+ "common": {
3
+ "back": "Back",
4
+ "exit": "Exit",
5
+ "cancel": "Cancel",
6
+ "confirm": "Confirm",
7
+ "loading": "Loading...",
8
+ "error": "Error",
9
+ "success": "Success",
10
+ "goodbye": "Goodbye!"
11
+ },
12
+ "menu": {
13
+ "title": "Choose an action",
14
+ "events": "Recent Events",
15
+ "eventsDesc": "View upcoming events in next 30 days",
16
+ "repair": "Repair Service",
17
+ "repairDesc": "Computer repair and software installation",
18
+ "docs": "Knowledge Base",
19
+ "docsDesc": "Technical docs and tutorials",
20
+ "website": "Official Website",
21
+ "websiteDesc": "Visit NBTCA homepage",
22
+ "github": "GitHub",
23
+ "githubDesc": "Open source projects and code",
24
+ "about": "About",
25
+ "aboutDesc": "Project info and help",
26
+ "language": "Language",
27
+ "languageDesc": "Change display language",
28
+ "navigationHint": "Navigation: j/k or ↑/↓ | Jump: g/G | Quit: q or Ctrl+C",
29
+ "chooseAction": "Choose an action"
30
+ },
31
+ "about": {
32
+ "title": "About NBTCA",
33
+ "project": "Project",
34
+ "version": "Version",
35
+ "description": "Description",
36
+ "github": "GitHub",
37
+ "website": "Website",
38
+ "email": "Email",
39
+ "features": "Features:",
40
+ "feature1": "- View recent association events",
41
+ "feature2": "- Online repair service",
42
+ "feature3": "- Technical knowledge base access",
43
+ "feature4": "- Quick access to website and GitHub",
44
+ "license": "License",
45
+ "author": "Author"
46
+ },
47
+ "calendar": {
48
+ "title": "Recent Events",
49
+ "subtitle": "(Next 30 days)",
50
+ "loading": "Loading event calendar...",
51
+ "noEvents": "No upcoming events",
52
+ "error": "Failed to load event calendar",
53
+ "errorHint": "Please try again later or visit https://nbtca.space",
54
+ "dateTime": "Date & Time",
55
+ "eventName": "Event Name",
56
+ "location": "Location"
57
+ },
58
+ "docs": {
59
+ "title": "Knowledge Base",
60
+ "subtitle": "Browse documentation from terminal or open in browser",
61
+ "loading": "Loading documentation list...",
62
+ "loadingDir": "Loading directory",
63
+ "chooseCategory": "Choose a category:",
64
+ "currentDir": "Current directory",
65
+ "chooseDoc": "Choose a document or directory:",
66
+ "emptyDir": "This directory is empty",
67
+ "upToParent": "[..] Up to parent directory",
68
+ "returnToMenu": "[ ^] Return to main menu",
69
+ "backToList": "[ <] Back to docs list",
70
+ "reread": "[ ↻] Re-read document",
71
+ "openBrowser": "[ *] Open in browser",
72
+ "loadError": "Failed to load directory",
73
+ "errorHint": "Error",
74
+ "openBrowserPrompt": "Open in browser?",
75
+ "docCompleted": "Document loaded successfully",
76
+ "chooseAction": "Choose an action:",
77
+ "opening": "Opening browser...",
78
+ "browserOpened": "Knowledge base opened in browser",
79
+ "browserError": "Failed to open browser",
80
+ "browserErrorHint": "Please visit manually: https://docs.nbtca.space",
81
+ "retry": "Retry?",
82
+ "pagerNotAvailable": "⚠ Pager not available, using standard output",
83
+ "endOfDocument": "End of document - Press q to quit"
84
+ },
85
+ "repair": {
86
+ "title": "Repair Service",
87
+ "subtitle": "Computer repair and software installation support",
88
+ "opening": "Opening repair service page...",
89
+ "opened": "Repair service page opened in browser",
90
+ "error": "Failed to open browser",
91
+ "errorHint": "Please visit manually: https://nbtca.space/repair"
92
+ },
93
+ "website": {
94
+ "opening": "Opening website...",
95
+ "opened": "Opened in browser",
96
+ "error": "Failed to open browser",
97
+ "errorHint": "Please visit manually"
98
+ },
99
+ "language": {
100
+ "title": "Language Settings",
101
+ "currentLanguage": "Current Language",
102
+ "selectLanguage": "Select a language:",
103
+ "zh": "简体中文 (Simplified Chinese)",
104
+ "en": "English",
105
+ "changed": "Language changed successfully"
106
+ }
107
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "common": {
3
+ "back": "返回",
4
+ "exit": "退出",
5
+ "cancel": "取消",
6
+ "confirm": "确认",
7
+ "loading": "加载中...",
8
+ "error": "错误",
9
+ "success": "成功",
10
+ "goodbye": "再见!"
11
+ },
12
+ "menu": {
13
+ "title": "选择操作",
14
+ "events": "近期活动",
15
+ "eventsDesc": "查看未来30天的活动",
16
+ "repair": "维修服务",
17
+ "repairDesc": "电脑维修和软件安装",
18
+ "docs": "知识库",
19
+ "docsDesc": "技术文档和教程",
20
+ "website": "官方网站",
21
+ "websiteDesc": "访问 NBTCA 主页",
22
+ "github": "GitHub",
23
+ "githubDesc": "开源项目和代码",
24
+ "about": "关于",
25
+ "aboutDesc": "项目信息和帮助",
26
+ "language": "切换语言",
27
+ "languageDesc": "更改显示语言",
28
+ "navigationHint": "导航: j/k 或 ↑/↓ | 跳转: g/G | 退出: q 或 Ctrl+C",
29
+ "chooseAction": "选择一个操作"
30
+ },
31
+ "about": {
32
+ "title": "关于 NBTCA",
33
+ "project": "项目",
34
+ "version": "版本",
35
+ "description": "描述",
36
+ "github": "GitHub",
37
+ "website": "网站",
38
+ "email": "邮箱",
39
+ "features": "功能:",
40
+ "feature1": "- 查看协会近期活动",
41
+ "feature2": "- 在线维修服务",
42
+ "feature3": "- 技术知识库访问",
43
+ "feature4": "- 快速访问网站和 GitHub",
44
+ "license": "许可证",
45
+ "author": "作者"
46
+ },
47
+ "calendar": {
48
+ "title": "近期活动",
49
+ "subtitle": "(最近30天)",
50
+ "loading": "正在获取活动日历...",
51
+ "noEvents": "近期暂无活动安排",
52
+ "error": "无法获取活动日历",
53
+ "errorHint": "请稍后重试或访问 https://nbtca.space",
54
+ "dateTime": "日期时间",
55
+ "eventName": "活动名称",
56
+ "location": "地点"
57
+ },
58
+ "docs": {
59
+ "title": "知识库",
60
+ "subtitle": "从终端浏览文档或在浏览器中打开",
61
+ "loading": "正在加载文档列表...",
62
+ "loadingDir": "正在加载目录",
63
+ "chooseCategory": "选择文档分类:",
64
+ "currentDir": "当前目录",
65
+ "chooseDoc": "选择文档或目录:",
66
+ "emptyDir": "该目录为空",
67
+ "upToParent": "[..] 返回上级目录",
68
+ "returnToMenu": "[ ^] 返回主菜单",
69
+ "backToList": "[ <] 返回文档列表",
70
+ "reread": "[ ↻] 重新阅读文档",
71
+ "openBrowser": "[ *] 在浏览器中打开",
72
+ "loadError": "无法加载目录",
73
+ "errorHint": "错误",
74
+ "openBrowserPrompt": "是否在浏览器中打开?",
75
+ "docCompleted": "文档加载完成",
76
+ "chooseAction": "选择操作:",
77
+ "opening": "正在打开浏览器...",
78
+ "browserOpened": "已在浏览器中打开知识库",
79
+ "browserError": "无法打开浏览器",
80
+ "browserErrorHint": "请手动访问: https://docs.nbtca.space",
81
+ "retry": "是否重试?",
82
+ "pagerNotAvailable": "⚠ Pager不可用,使用标准输出",
83
+ "endOfDocument": "文档结束 - 按 q 退出"
84
+ },
85
+ "repair": {
86
+ "title": "维修服务",
87
+ "subtitle": "电脑维修和软件安装支持",
88
+ "opening": "正在打开维修服务页面...",
89
+ "opened": "已在浏览器中打开维修服务页面",
90
+ "error": "无法打开浏览器",
91
+ "errorHint": "请手动访问: https://nbtca.space/repair"
92
+ },
93
+ "website": {
94
+ "opening": "正在打开网站...",
95
+ "opened": "已在浏览器中打开",
96
+ "error": "无法打开浏览器",
97
+ "errorHint": "请手动访问"
98
+ },
99
+ "language": {
100
+ "title": "语言设置",
101
+ "currentLanguage": "当前语言",
102
+ "selectLanguage": "选择语言:",
103
+ "zh": "简体中文",
104
+ "en": "English",
105
+ "changed": "语言已切换"
106
+ }
107
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbtca/prompt",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -12,7 +12,7 @@
12
12
  "dev": "tsx src/index.ts",
13
13
  "dev:watch": "tsx watch src/index.ts",
14
14
  "build": "tsc",
15
- "postbuild": "mkdir -p dist/logo && cp src/logo/logo.txt dist/logo/ && cp src/logo/ascii-logo.txt dist/logo/",
15
+ "postbuild": "mkdir -p dist/logo dist/i18n/locales && cp src/logo/logo.txt dist/logo/ && cp src/logo/ascii-logo.txt dist/logo/ && cp src/i18n/locales/*.json dist/i18n/locales/",
16
16
  "clean": "rm -rf dist",
17
17
  "prebuild": "npm run clean",
18
18
  "prepublishOnly": "npm run build",
@@ -19,7 +19,7 @@ export const URLS = {
19
19
 
20
20
  export const APP_INFO = {
21
21
  name: 'Prompt',
22
- version: '1.0.6',
22
+ version: '1.0.7',
23
23
  description: '浙大宁波理工学院计算机协会',
24
24
  fullDescription: 'NBTCA Prompt - 极简命令行工具',
25
25
  author: 'm1ngsama <contact@m1ng.space>',