Skip to content

Commit f991ebc

Browse files
committed
chore: update application name and version, enhance localization, and improve homepage layout
- Changed application name from "algorithm-practice" to "algolocal" and updated version to 0.2.0 in package.json and package-lock.json. - Updated dependencies, including @tabler/icons-react to version 3.36.1. - Enhanced localization files (en.json and zh.json) with new navigation and practice-related strings for better user guidance. - Improved homepage layout by adding a navigation drawer and view mode toggle for a more user-friendly experience. These changes support the rebranding effort and enhance the overall usability of the application. Change-Id: I269d92f314f40e026bb09df568a231ba5d90a80b Co-developed-by: Cursor <[email protected]> Signed-off-by: zxypro1 <[email protected]>
1 parent fbdb460 commit f991ebc

File tree

5 files changed

+540
-74
lines changed

5 files changed

+540
-74
lines changed

locales/en.json

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,27 @@
88
"loading": "Loading...",
99
"error": "Error",
1010
"success": "Success",
11-
"settings": "Settings"
11+
"settings": "Settings",
12+
"navigation": "Navigation",
13+
"practice": "Practice",
14+
"content": "Content",
15+
"system": "System"
16+
},
17+
"navigation": {
18+
"statsDesc": "View your progress and statistics",
19+
"addDesc": "Create a new problem",
20+
"aiDesc": "Generate problems with AI",
21+
"manageDesc": "Import and manage problems",
22+
"settingsDesc": "Configure app settings"
1223
},
1324
"header": {
14-
"title": "Offline Algorithm Practice",
25+
"title": "AlgoLocal",
1526
"subtitle": "Local problem set, supports editing and running tests in browser (JavaScript, TypeScript, Python)"
1627
},
1728
"homepage": {
18-
"title": "🚀 Offline Algorithm Practice",
29+
"title": "AlgoLocal",
1930
"subtitle": "Local problem set, supports editing and running tests in browser (JavaScript, TypeScript, Python)",
20-
"problemList": "📚 Problem List",
31+
"problemList": "Problem List",
2132
"problems": "problems",
2233
"addProblem": "Add Problem",
2334
"search": "Search",
@@ -31,6 +42,17 @@
3142
"showingResults": "Showing",
3243
"of": "of",
3344
"aiGenerator": "AI Generator",
45+
"viewMode": {
46+
"title": "View Mode",
47+
"grid": "Grid View",
48+
"list": "List View"
49+
},
50+
"table": {
51+
"status": "Status",
52+
"title": "Title",
53+
"difficulty": "Difficulty",
54+
"tags": "Tags"
55+
},
3456
"problemStatus": {
3557
"attempted": "Attempted",
3658
"solved": "Solved"
@@ -103,7 +125,7 @@
103125
"noSolutions": "No reference solutions available for this problem."
104126
},
105127
"codeRunner": {
106-
"title": "💻 Code Editor",
128+
"title": "Code Editor",
107129
"submit": "🚀 Submit & Run Tests",
108130
"running": "Running...",
109131
"testResults": "📋 Test Results",

locales/zh.json

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,27 @@
88
"loading": "加载中...",
99
"error": "错误",
1010
"success": "成功",
11-
"settings": "设置"
11+
"settings": "设置",
12+
"navigation": "导航",
13+
"practice": "练习",
14+
"content": "内容",
15+
"system": "系统"
16+
},
17+
"navigation": {
18+
"statsDesc": "查看练习进度和统计数据",
19+
"addDesc": "创建新的题目",
20+
"aiDesc": "使用 AI 生成题目",
21+
"manageDesc": "导入和管理题目",
22+
"settingsDesc": "配置应用设置"
1223
},
1324
"header": {
14-
"title": "离线算法练习",
25+
"title": "AlgoLocal",
1526
"subtitle": "本地题库,支持在浏览器内编辑并运行测试(JavaScript、TypeScript、Python)"
1627
},
1728
"homepage": {
18-
"title": "🚀 离线算法练习",
29+
"title": "AlgoLocal",
1930
"subtitle": "本地题库,支持在浏览器内编辑并运行测试(JavaScript、TypeScript、Python)",
20-
"problemList": "📚 题目列表",
31+
"problemList": "题目列表",
2132
"problems": "",
2233
"addProblem": "添加题目",
2334
"search": "搜索",
@@ -31,6 +42,17 @@
3142
"showingResults": "显示",
3243
"of": "",
3344
"aiGenerator": "AI 生成器",
45+
"viewMode": {
46+
"title": "视图模式",
47+
"grid": "卡片视图",
48+
"list": "列表视图"
49+
},
50+
"table": {
51+
"status": "状态",
52+
"title": "标题",
53+
"difficulty": "难度",
54+
"tags": "标签"
55+
},
3456
"problemStatus": {
3557
"attempted": "已做过",
3658
"solved": "已通过"
@@ -103,7 +125,7 @@
103125
"noSolutions": "此题目暂无参考解法。"
104126
},
105127
"codeRunner": {
106-
"title": "💻 代码编辑器",
128+
"title": "代码编辑器",
107129
"submit": "🚀 提交并运行测试",
108130
"running": "运行中...",
109131
"testResults": "📋 测试结果",

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "algolocal",
3-
"version": "0.1.9",
3+
"version": "0.2.0",
44
"private": true,
55
"main": "electron-main.js",
66
"description": "Practice coding algorithms 100% offline with AI: generate problems, get hints, discuss solutions, and run code in JavaScript, TypeScript, or Python",
@@ -62,7 +62,8 @@
6262
"@mantine/hooks": "7.6.1",
6363
"@mantine/notifications": "7.6.1",
6464
"@monaco-editor/react": "^4.7.0",
65-
"@tabler/icons-react": "^3.34.1",
65+
"@reduxjs/toolkit": "^2.0.1",
66+
"@tabler/icons-react": "^3.36.1",
6667
"@types/katex": "^0.16.7",
6768
"@types/react-syntax-highlighter": "^15.5.13",
6869
"d3-sankey": "^0.12.3",
@@ -76,7 +77,6 @@
7677
"react-markdown": "^10.1.0",
7778
"react-syntax-highlighter": "^15.6.3",
7879
"recharts": "^3.6.0",
79-
"@reduxjs/toolkit": "^2.0.1",
8080
"rehype-katex": "^7.0.1",
8181
"rehype-mermaid": "^3.0.0",
8282
"rehype-raw": "^7.0.0",

0 commit comments

Comments
 (0)