1
0

Compare commits

...

1239 Commits

Author SHA1 Message Date
a539bedbbd Update repository description and fetch updated clone URL in main.js 2025-06-01 12:28:59 +02:00
26a6463c25 Refactor code structure for generateRepoDescription function 2025-06-01 12:26:55 +02:00
6a360256f3 Refactor push-to-gitea handler to include LLM-generated description and improve error handling 2025-06-01 12:25:20 +02:00
24a2d51868 auto-git:
[change] main.js
2025-06-01 12:24:50 +02:00
b4d902a1db auto-git:
[change] main.js
2025-06-01 12:22:02 +02:00
42b847cc11 Add node-fetch dependency for HTTP requests in main.js 2025-06-01 12:22:02 +02:00
dd22549b8a Implement push-to-Gitea functionality in main.js 2025-06-01 12:18:45 +02:00
41507997fd Add pushToGitea function to preload.js 2025-06-01 12:18:45 +02:00
58b5d9680d Implement push functionality for selected folder in renderer.js 2025-06-01 12:17:45 +02:00
9a528e671c Add push button to renderer.js 2025-06-01 12:17:45 +02:00
f211556f20 Add push button for Gitea in index.html 2025-06-01 12:17:16 +02:00
b7eed581cb Update README.md with new project description and features 2025-06-01 12:09:22 +02:00
3e259ce7de Refactor renderer.js to improve code organization and readability 2025-06-01 12:06:41 +02:00
a4fe460719 auto-git:
[change] renderer.js
2025-06-01 12:03:56 +02:00
0e5b175202 Remove unused code in renderer.js 2025-06-01 12:02:45 +02:00
1196038b08 Move README generation logic to renderer.js 2025-06-01 12:01:30 +02:00
8424543569 Update .gitignore to exclude additional build artifacts and IDE files 2025-06-01 11:59:37 +02:00
9d081114b4 Fix typo in watcher ignore pattern 2025-06-01 11:59:37 +02:00
8b15b09246 Remove unused code in main.js 2025-06-01 11:52:06 +02:00
6a83d22888 Remove unused code in main.js 2025-06-01 11:51:46 +02:00
05b81dfff7 auto-git:
[change] main.js
2025-06-01 11:51:43 +02:00
1bb3e06989 Remove unused code from main.js 2025-06-01 11:51:38 +02:00
b21163455b auto-git:
[change] main.js
2025-06-01 11:51:29 +02:00
ac76f3dcd3 auto-git:
[change] main.js
2025-06-01 11:51:14 +02:00
2e1c1a580c auto-git:
[change] main.js
2025-06-01 11:50:49 +02:00
5278c5cd7d auto-git:
[change] main.js
2025-06-01 11:50:14 +02:00
7c0bf17101 auto-git:
[change] main.js
2025-06-01 11:50:06 +02:00
656a850baa Refactor commit message rewording logic in main.js 2025-06-01 11:49:28 +02:00
9a50124b10 Add script to rewrite commit messages and update gitignore 2025-06-01 11:47:01 +02:00
dab6c42e6d Remove unused code from main.js 2025-06-01 11:46:55 +02:00
12cd409616 Refactor and enhance commit logic with error handling and additional logging 2025-06-01 10:52:24 +02:00
37b86a740c Add function to stream README using LLM 2025-06-01 10:50:37 +02:00
73237093d9 Remove unused function streamLLMREADME from main.js 2025-06-01 10:50:25 +02:00
9d57c5f2ac Add cat stream functionality in main.js 2025-06-01 10:50:22 +02:00
b7d1b96598 Remove cat stream logic from main.js 2025-06-01 10:50:14 +02:00
ff9ec031bf auto-git:
[change] main.js
2025-06-01 10:46:45 +02:00
1a6ce43e47 auto-git:
[change] main.js
2025-06-01 10:46:32 +02:00
d0ecf32e81 auto-git:
[change] main.js
2025-06-01 09:46:53 +02:00
8e420cc40b auto-git:
[change] main.js
2025-06-01 09:46:46 +02:00
59ceaa13ae auto-git:
[change] main.js
2025-06-01 09:46:37 +02:00
b45223799f auto-git:
[unlink] modules/constants.js
 [unlink] modules/git.js
 [unlink] modules/ipc-handlers.js
 [unlink] modules/llm.js
 [unlink] modules/readme-gen.js
 [unlink] modules/store.js
 [unlink] modules/tray.js
 [unlink] modules/utils.js
 [unlink] modules/watcher.js
 [unlink] modules/window.js
2025-06-01 09:44:58 +02:00
d640044dc3 auto-git:
[change] main.js
2025-06-01 09:43:47 +02:00
b6ff68e0cd auto-git:
[change] main.js
2025-06-01 09:43:30 +02:00
f21a16d0ba auto-git:
[change] main.js
2025-06-01 09:43:26 +02:00
03778c3e40 auto-git:
[change] main.js
2025-06-01 09:43:23 +02:00
deb3109f91 auto-git:
[change] main.js
2025-06-01 09:43:13 +02:00
1f8fee03fd auto-git:
[change] modules/tray.js
2025-06-01 09:42:54 +02:00
fe0d2a9526 auto-git:
[change] main.js
2025-06-01 09:42:48 +02:00
1c30ab5c8d auto-git:
[change] modules/store.js
2025-06-01 09:42:07 +02:00
091f21453d auto-git:
[change] main.js
2025-06-01 09:41:12 +02:00
e94ba62da0 auto-git:
[change] modules/store.js
2025-06-01 09:41:10 +02:00
f020e295cf auto-git:
[add] modules/constants.js
 [unlink] modules/NewFile.txt
2025-06-01 09:40:06 +02:00
5d95db0632 auto-git:
[add] modules/utils.js
 [unlink] modules/NewFile-1.txt
2025-06-01 09:39:58 +02:00
eb3328d98e auto-git:
[add] modules/NewFile-1.txt
2025-06-01 09:38:38 +02:00
7c880f203e auto-git:
[add] modules/NewFile.txt
2025-06-01 09:38:38 +02:00
86728afa15 auto-git:
[add] modules/ipc-handlers.js
 [unlink] modules/NewFile.txt
2025-06-01 09:38:38 +02:00
e9b63d35bd Add NewFile.txt 2025-06-01 09:38:38 +02:00
aabc8ecee5 Rename NewFile-1.txt to readme-gen.js 2025-06-01 09:38:38 +02:00
21f770bff8 Rename NewFile-2.txt to llm.js 2025-06-01 09:38:38 +02:00
9e329ffd64 Rename NewFile-3.txt to watcher.js 2025-06-01 09:38:38 +02:00
14ef364d5a Rename NewFile-4.txt to git.js 2025-06-01 09:38:38 +02:00
56c111956c Rename NewFile-5.txt to window.js 2025-06-01 09:38:38 +02:00
f468b734e3 Rename NewFile.txt to tray.js 2025-06-01 09:38:38 +02:00
2aef31a423 Add NewFile-5.txt 2025-06-01 09:38:38 +02:00
29a34e5a92 Add NewFile-4.txt 2025-06-01 09:38:38 +02:00
a1e6d5d009 Add NewFile-3.txt 2025-06-01 09:38:38 +02:00
d119dd2086 Add NewFile-2.txt 2025-06-01 09:38:38 +02:00
66ca26639d auto-git:
[add] modules/NewFile-1.txt
2025-06-01 09:37:27 +02:00
e8e41fba22 auto-git:
[add] modules/NewFile.txt
2025-06-01 09:37:25 +02:00
e4cf924cd6 auto-git:
[add] modules/store.js
 [unlink] modules/NewFile.txt
2025-06-01 09:37:23 +02:00
0a177f1cae auto-git:
[add] modules/NewFile.txt
2025-06-01 09:37:17 +02:00
7bdd7344fb auto-git:
[change] README.md
2025-06-01 09:33:39 +02:00
9e509fae9e Add function to get relevant files based on size and gitignore rules 2025-06-01 09:30:19 +02:00
cb1f7aa8fd auto-git:
[change] main.js
2025-06-01 09:30:14 +02:00
85d4f2afb5 Add more new lines in main.js 2025-06-01 09:29:37 +02:00
7421fed020 Add new lines in main.js 2025-06-01 09:29:37 +02:00
cc6869c3d0 Add queue processing logic to main.js 2025-06-01 08:17:05 +02:00
42e823b59f auto-git:
[change] main.js
2025-06-01 08:16:54 +02:00
4571fb003d auto-git:
[change] main.js
2025-06-01 08:16:38 +02:00
386edf80d4 auto-git:
[change] main.js
2025-06-01 08:16:37 +02:00
90a7998596 auto-git:
[change] main.js
2025-06-01 08:16:29 +02:00
ed2da5ba5b auto-git:
[change] main.js
2025-06-01 08:16:13 +02:00
a9870e7198 auto-git:
[change] README.md
2025-06-01 08:15:00 +02:00
c27f3b8bf0 Add IPC handlers for configuration settings 2025-06-01 08:12:13 +02:00
101694e4c6 auto-git:
[change] main.js
2025-06-01 08:12:09 +02:00
7202f24e42 Add IPC handlers for various settings 2025-06-01 08:11:50 +02:00
734139c810 Remove unused IPC handlers in main.js 2025-06-01 08:11:44 +02:00
459ceb89ad Add IPC handlers for configuration settings 2025-06-01 08:11:14 +02:00
3b5d584ed8 auto-git:
[change] main.js
2025-06-01 08:11:09 +02:00
21aced34a1 auto-git:
[change] main.js
2025-06-01 08:10:38 +02:00
f8c68a034b auto-git:
[change] main.js
2025-06-01 08:10:28 +02:00
7173cc4504 auto-git:
[change] main.js
2025-06-01 08:10:03 +02:00
30b67da24d Refactor monitoring logic to use queues and debouncing 2025-06-01 08:08:50 +02:00
8daf1f0fc6 auto-git:
[change] README.md
2025-06-01 07:26:39 +02:00
832a32a490 auto-git:
[change] README.md
2025-06-01 07:26:39 +02:00
6848ec97be Update README.md with new features and improved content structure 2025-06-01 07:26:39 +02:00
ec2512421f Update README.md with new structure and content 2025-06-01 07:20:29 +02:00
4d73330e2f Refactor file handling in main.js to include content and relevance score 2025-06-01 07:17:52 +02:00
8d5c57dcd0 Refactor getFileRelevanceScore function to include content analysis for better relevance scoring 2025-06-01 07:17:43 +02:00
fefd2f4393 auto-git:
[add] README.md
2025-06-01 07:12:00 +02:00
b837c6664f Add 'ignore' package for file filtering in main.js 2025-06-01 07:12:00 +02:00
cbd48f6710 Refactor file relevance scoring and sorting logic in main.js 2025-06-01 07:08:20 +02:00
8d8cf0ff11 Refactor file collection logic to ignore .gitignore rules 2025-06-01 07:06:29 +02:00
8459d0d689 Remove .gitignore from ignored names list in main.js 2025-06-01 07:01:47 +02:00
5445aab3a8 Update .gitignore and refactor auto-commit logic in main.js 2025-06-01 06:57:13 +02:00
35c270490f Update .gitignore and package.json with additional ignored files and dependencies 2025-06-01 06:47:58 +02:00
90bb154620 auto-git:
[change] main.js
2025-06-01 06:46:31 +02:00
357861d3b6 Refactor addMatchingFilesToGitignore function to handle file patterns and update gitignore accordingly 2025-06-01 06:46:22 +02:00
c8f1e53a7a Add placeholder comment for auto-generated code in main.js 2025-06-01 06:46:22 +02:00
228d85738c Add function to ensure files are ignored in .gitignore 2025-06-01 06:45:34 +02:00
178dd49f48 auto-git:
[change] main.js
2025-06-01 06:40:08 +02:00
a1b8881ff6 auto-git:
[change] main.js
2025-06-01 06:38:39 +02:00
3d1f0af17d auto-git:
[change] main.js
2025-06-01 06:32:39 +02:00
8cb03fcecf auto-git:
[change] main.js
2025-06-01 06:31:21 +02:00
6f098b7906 Refactor watcher logic to ignore empty or relative paths 2025-06-01 06:28:22 +02:00
449df51642 Add ignored file patterns for various project types 2025-06-01 06:25:14 +02:00
86704d72fe Add 'ignore' package to main.js 2025-06-01 06:23:37 +02:00
18a243b44a Refactor and enhance auto-git functionality with .gitignore handling 2025-06-01 06:22:14 +02:00
52180fad62 Add unhandled rejection handler in main.js 2025-06-01 06:20:51 +02:00
0d9f97f7f2 auto-git:
[change] main.js
2025-06-01 06:20:10 +02:00
101796d944 auto-git:
[change] main.js
2025-06-01 06:17:39 +02:00
288a5eab06 Add debug functionality to monitor script 2025-06-01 06:15:45 +02:00
875328f16c Revert debug functionality removal 2025-06-01 06:11:33 +02:00
cc419fd8d8 Add debug functionality and ignore module 2025-06-01 06:11:33 +02:00
df0342c3c3 Refactor and enhance gitignore handling in auto-git script 2025-06-01 06:06:18 +02:00
fff9c19736 Remove node_modules and .git from watcher ignore list in main.js 2025-06-01 06:04:24 +02:00
6c456e2da2 Enable README creation and proper initial commit in auto-git 2025-06-01 05:55:38 +02:00
9afbe177d7 auto-git:
[change] main.js
2025-06-01 05:54:38 +02:00
4f6c072dd6 Comment out README.md creation in auto-git script 2025-06-01 05:54:38 +02:00
cbb8df4376 Fix trailing whitespace in main.js 2025-06-01 05:51:52 +02:00
616d67d607 Add comprehensive ignore list and auto-commit functionality with .gitignore updates 2025-06-01 05:50:27 +02:00
b01a9106d6 Refactor streamLLMREADME function to merge with streamLLMCommit 2025-06-01 05:42:38 +02:00
1772e9d53b Increase settings window width and add placeholder code blocks 2025-06-01 05:37:16 +02:00
8530100019 Add multiple empty lines and a comment in main.js 2025-05-31 20:57:35 +02:00
3c1123da19 Remove unnecessary comments from main.js 2025-05-31 20:57:35 +02:00
49a12ee763 Add comment in main.js 2025-05-31 20:57:35 +02:00
824d8edde3 Add comment in main.js 2025-05-31 20:57:35 +02:00
d6b8629fe2 Remove unused code from main.js 2025-05-31 20:57:16 +02:00
c78708c4c2 Add empty lines and comment block at the end of main.js 2025-05-31 20:57:10 +02:00
6608a055a4 Update folder path in repo-updated event 2025-05-31 20:57:10 +02:00
12ae6dab42 Add empty lines in main.js 2025-05-31 20:54:47 +02:00
26575e0616 Comment out unused code in main.js 2025-05-31 20:54:47 +02:00
afdfd71648 Remove redundant code in main.js 2025-05-31 20:54:47 +02:00
d59ea7ac3f Add empty comment block in main.js 2025-05-31 20:53:43 +02:00
460c5d1e79 Add notification on repo update 2025-05-31 20:53:43 +02:00
9c309b8f18 Comment out unused code in main.js 2025-05-31 20:50:12 +02:00
a4956b3488 Remove unused code from main.js 2025-05-31 20:48:53 +02:00
7f50bb9b23 Re-add commented-out code in main.js 2025-05-31 20:48:39 +02:00
0e3888686c Comment out unused code in main.js 2025-05-31 20:48:39 +02:00
628e4efa9f Add event listener for 'repo-updated' in renderer.js 2025-05-31 20:48:39 +02:00
47653d989e Remove commented-out code in preload.js 2025-05-31 20:48:39 +02:00
52cd13a50f Add multiple test comments in main.js 2025-05-31 20:47:13 +02:00
a1280f10b8 Add test comment in main.js 2025-05-31 20:47:13 +02:00
c47888c96e Refactor: Comment out unused code in main.js 2025-05-31 20:46:26 +02:00
6b3d03b593 Add missing newline at the end of renderer.js 2025-05-31 20:44:14 +02:00
81ce25268b Comment out ipcRenderer.on('repo-updated' in preload.js 2025-05-31 20:44:14 +02:00
36cd56404b Comment out watchRepo calls in main.js 2025-05-31 20:44:14 +02:00
a3b1df65db Remove unused event listener in renderer.js 2025-05-31 20:42:46 +02:00
45a9e28e37 auto-git:
[change] main.js
2025-05-31 19:41:57 +02:00
65b7d86595 auto-git:
[change] main.js
2025-05-31 19:38:10 +02:00
344210ee3c auto-git:
[change] main.js
2025-05-31 19:37:44 +02:00
9facff792d auto-git:
[change] main.js
2025-05-31 19:37:11 +02:00
e36e7ee661 auto-git:
[change] main.js
2025-05-31 19:31:57 +02:00
541a3ab4bc auto-git:
[change] main.js
2025-05-31 19:30:50 +02:00
5001f7a098 auto-git:
[change] main.js
2025-05-31 19:29:26 +02:00
07d7ac0cbd Add new function StreamLLMREADME for generating README content using LLM 2025-05-31 19:28:16 +02:00
536c817ec5 auto-git:
[change] main.js
2025-05-31 19:24:35 +02:00
dad4eb36b0 auto-git:
[change] index.html
2025-05-31 19:21:37 +02:00
40e55c1446 Add file size and type filters for directory content retrieval 2025-05-31 19:20:37 +02:00
ed1a8f6209 Add README generation functionality to renderer.js 2025-05-31 19:19:32 +02:00
1a125dc530 Comment out unused import in main.js 2025-05-31 19:18:16 +02:00
a69a632dfe Refactor README generation logic in main.js 2025-05-31 19:16:47 +02:00
724d1d0494 Add auto-generated README functionality 2025-05-31 19:16:34 +02:00
d40973def8 Add IPC handler for checking README existence 2025-05-31 19:16:27 +02:00
9e57545ac7 Add hasReadme and generateReadme methods to preload.js 2025-05-31 19:14:57 +02:00
d53771e89d Refactor README button logic 2025-05-31 19:14:57 +02:00
1275fc73bc Fix path concatenation in renderer.js 2025-05-31 19:13:45 +02:00
6e09f25dd6 Fix path concatenation in renderer.js 2025-05-31 19:13:45 +02:00
f69977de11 auto-git:
[change] renderer.js
2025-05-31 19:11:39 +02:00
34527fc8db auto-git:
[change] renderer.js
2025-05-31 19:11:20 +02:00
0187affedd auto-git:
[change] renderer.js
2025-05-31 19:10:50 +02:00
e922eeb9da Comment out unnecessary code in renderer.js 2025-05-26 22:57:36 +02:00
9ecaa8943f Add README button logic to renderer.js 2025-05-26 22:57:35 +02:00
447d157ed6 Add 'Generate README' button to index.html 2025-05-26 22:55:48 +02:00
cec9b33cd1 Further reduce right margin of .paw-queued class by 10px 2025-05-26 22:26:18 +02:00
1af71dfb95 Reduce right margin of .paw-queued class by 10px 2025-05-26 22:26:18 +02:00
c639d61eac Adjust right margin of .paw-queued class 2025-05-26 22:26:18 +02:00
de4bfe2f99 auto-git:
[change] index.html
2025-05-26 22:25:07 +02:00
a72bc99b36 auto-git:
[change] index.html
2025-05-26 22:24:57 +02:00
42205c9bc2 auto-git:
[change] index.html
2025-05-26 22:24:44 +02:00
aed313eab8 auto-git:
[change] index.html
2025-05-26 22:24:37 +02:00
3fae08bc32 auto-git:
[change] index.html
2025-05-26 22:24:22 +02:00
8191b0b533 auto-git:
[change] index.html
2025-05-26 22:24:14 +02:00
4f707e9db1 auto-git:
[change] index.html
2025-05-26 22:24:06 +02:00
51050d8b9c auto-git:
[change] index.html
2025-05-26 22:23:55 +02:00
a79a6aa154 auto-git:
[change] index.html
2025-05-26 22:23:41 +02:00
ed55b42586 auto-git:
[change] index.html
2025-05-26 22:23:31 +02:00
397170381a Add margin to pagination element in renderer.js 2025-05-26 22:23:26 +02:00
e12115f68e Update margin of border-t in index.html 2025-05-26 22:23:26 +02:00
5b49fdea1e auto-git:
[change] renderer.js
2025-05-26 22:21:40 +02:00
8b9afeed80 Correct typo in pagination class 2025-05-26 22:21:40 +02:00
90a426aede Remove vertical padding from pagination 2025-05-26 22:21:40 +02:00
e674eb5e97 Add padding to pagination 2025-05-26 22:21:40 +02:00
325445f6b0 Increase pagination margin 2025-05-26 22:21:40 +02:00
58e8a1839a Fix pagination class 2025-05-26 22:21:40 +02:00
14e7e051a1 Adjust move threshold for cat interaction 2025-05-26 22:12:20 +02:00
4ea44240bc Refactor pagination logic in renderer.js 2025-05-26 22:08:07 +02:00
f0ce11cef6 Fix text color in renderer.js based on theme 2025-05-26 22:07:12 +02:00
4b2989a3ae Refactor renderer.js to update text colors based on sky mode and time of day 2025-05-26 22:05:43 +02:00
d1df6d2bae Comment out title update interval in renderer.js 2025-05-26 22:01:09 +02:00
e6c24feea9 Fine-tune heart emitter position further in animeCat.js 2025-05-26 21:56:41 +02:00
af2c8f160c Adjust heart emitter position in animeCat.js 2025-05-26 21:56:41 +02:00
4dc2409438 Remove commented-out getCommits method from preload.js 2025-05-26 21:45:41 +02:00
76c9999cee Add getAllCommitHashes method to preload.js 2025-05-26 21:45:41 +02:00
1118af8111 Add new endpoint to retrieve all commit hashes from a Git repository 2025-05-26 21:44:30 +02:00
e0343bdb54 Refactor commit pagination and logic in renderer.js 2025-05-26 21:43:37 +02:00
3e8d1ef293 Fix typo in renderer.js 2025-05-26 21:27:01 +02:00
7f3be380d0 Refactor code to dynamically determine commit page based on HEAD if no specific page is provided 2025-05-26 21:25:01 +02:00
a856b99a74 Comment out unused getCommits function in preload.js 2025-05-26 21:24:38 +02:00
b662ba971e Improve pagination display in renderer.js 2025-05-26 21:14:38 +02:00
3b5d009207 Add function to get commit page for hash and update renderContent call 2025-05-26 21:12:09 +02:00
b7e808adec Fix typo in CSS keyframes declaration 2025-05-26 21:08:31 +02:00
985954e474 auto-git:
[change] preload.js
2025-05-26 21:01:04 +02:00
d81cd8cd50 Revert pagination default page change in renderer.js 2025-05-26 21:00:31 +02:00
5a84b5db02 Fix pagination default page in renderer.js 2025-05-26 21:00:31 +02:00
e7a8d95ff9 Add event listeners for pagination buttons in renderer.js 2025-05-26 20:59:08 +02:00
0d6d663883 Refactor pagination in renderer.js to support page parameter 2025-05-26 20:56:56 +02:00
58b9632fb1 auto-git:
[change] renderer.js
2025-05-26 20:54:56 +02:00
2060f4a7c4 Refactor get-commits handler to support pagination in main.js 2025-05-26 20:52:05 +02:00
258ae92be0 Fix redundant closeDropdown call in renderer.js 2025-05-26 20:52:05 +02:00
67b9850ee7 Revert isIgnored function to original implementation 2025-05-26 20:41:46 +02:00
7bebfafa5a Fix unnecessary parentheses in isIgnored function 2025-05-26 20:41:46 +02:00
ce33c3d8f1 Refactor isIgnored function to use IGNORED_NAMES 2025-05-26 20:41:46 +02:00
3464119588 auto-git:
[change] main.js
2025-05-26 20:37:01 +02:00
90d10fa4cb Update visibility condition for 'Open Folder' menu item 2025-05-26 20:36:52 +02:00
523ce91120 Fix typo in label for copying folder path 2025-05-26 20:36:52 +02:00
41b73d9372 auto-git:
[change] main.js
2025-05-26 20:35:32 +02:00
e5fce2e7d5 Fix issue with dropdown rendering in renderer.js 2025-05-26 20:27:05 +02:00
144b2e89eb Add IPC handler for retrieving selected folder sync data 2025-05-26 20:22:00 +02:00
42595ad74b Add context menu for files in tree view 2025-05-26 20:20:38 +02:00
5e318a1c51 Implement tree context menu functionality in renderer.js 2025-05-26 20:20:22 +02:00
779729d8f9 Add new API methods for context menu and selected item retrieval in preload.js 2025-05-26 20:20:22 +02:00
f48757b510 Add debug log for selected path in renderer.js 2025-05-26 20:11:45 +02:00
73c407669b Fix redundant semicolon in debug log 2025-05-26 20:08:52 +02:00
68014938a7 Add debug log for folder tree 2025-05-26 20:08:52 +02:00
8a079d8e1e Remove commented-out code in main.js 2025-05-26 19:41:38 +02:00
aa189e0956 Remove redundant store set call in main.js 2025-05-26 19:39:45 +02:00
beb5488310 Remove unused rotation logic from renderer.js 2025-05-26 19:37:23 +02:00
8b74c6a575 auto-git:
[change] renderer.js
2025-05-26 12:06:05 +02:00
e776dce19a Adjust paw rotation range in renderer.js 2025-05-26 12:06:05 +02:00
ec5dc20fdf Adjust right position of paw-queued class in index.html 2025-05-26 12:04:22 +02:00
cac328a39c auto-git:
[change] index.html
2025-05-26 12:02:48 +02:00
93d280af5e auto-git:
[change] index.html
2025-05-26 12:02:39 +02:00
a245ef756b auto-git:
[change] index.html
2025-05-26 12:02:20 +02:00
5d4474153c Adjust paw-queued position in index.html 2025-05-26 12:02:20 +02:00
59acfb3966 Update paw-queued class in renderer.js 2025-05-26 12:02:20 +02:00
2b60896072 Fix minor CSS syntax error in index.html 2025-05-26 11:59:54 +02:00
78f20efe2f auto-git:
[change] index.html
2025-05-26 11:58:36 +02:00
d96c9339d2 Remove comment from index.html 2025-05-26 11:58:12 +02:00
c26db47a7f Add paw-queued class for styling 2025-05-26 11:56:26 +02:00
c9fd27f883 auto-git:
[change] index.html
2025-05-26 11:56:17 +02:00
f6ebab9209 auto-git:
[change] index.html
2025-05-26 11:55:41 +02:00
ac7556dcad Update top value for .paw-queued class in index.html 2025-05-26 11:48:28 +02:00
455ca46c90 Add absolute positioning and adjust top value for .paw-queued class 2025-05-26 11:48:28 +02:00
99a274a0b1 Remove redundant padding from .paw-queued class 2025-05-26 11:46:26 +02:00
382e7e3965 Update CSS for .paw-queued class 2025-05-26 11:46:26 +02:00
bacc3bafa3 Replace right and top with padding-right and padding-top in paw-queued class 2025-05-26 11:45:10 +02:00
e0e267b616 Add right and top positioning to paw-queued class 2025-05-26 11:45:10 +02:00
8d9fbdb0ec Remove opacity from paw-queued class 2025-05-26 11:45:10 +02:00
b3cde48c5c Remove paw-queued styles from index.html 2025-05-26 11:43:58 +02:00
9dd07a32a7 Remove paw icon and hover effects from renderer.js 2025-05-26 11:43:58 +02:00
01f3089c8d Refactor commit queue check to use startsWith 2025-05-26 11:43:16 +02:00
8b97b9c2b4 Add debug log for commit hash length 2025-05-26 11:43:16 +02:00
20cf3ca46c Fix minor formatting issue in renderer.js 2025-05-26 11:40:28 +02:00
f1e6288121 auto-git:
[change] renderer.js
2025-05-26 11:39:01 +02:00
dbc36a6475 Add debug log for queued commits in renderer.js 2025-05-26 11:38:57 +02:00
9df94340ce Add position:relative to list item in renderer.js 2025-05-26 11:36:26 +02:00
59403c2952 Fix syntax error in renderer.js 2025-05-26 11:36:26 +02:00
ba357fba7b Fix syntax error in renderer.js 2025-05-26 11:36:26 +02:00
4ce89cbf5a auto-git:
[change] renderer.js
2025-05-26 11:34:46 +02:00
713856eac1 auto-git:
[change] renderer.js
2025-05-26 11:34:08 +02:00
624baf0cc9 Add paw icon for queued items in commit list 2025-05-26 11:32:42 +02:00
e5e5acc012 Reduce chance of salto in joy animation to 20% 2025-05-26 11:24:19 +02:00
f685a45996 Rename and update cat paw image 2025-05-26 11:18:48 +02:00
66256e7834 Add cat paw image 2025-05-26 11:18:48 +02:00
821db5c68c Fix typo in renderer.js 2025-05-26 11:08:17 +02:00
98fd0c66da auto-git:
[change] renderer.js
2025-05-26 11:06:57 +02:00
6b6c12e297 auto-git:
[change] renderer.js
2025-05-26 11:06:47 +02:00
9c20c1688f auto-git:
[change] renderer.js
2025-05-26 11:06:37 +02:00
486240f516 auto-git:
[change] renderer.js
2025-05-26 11:06:29 +02:00
fb75cd58f0 auto-git:
[change] renderer.js
2025-05-26 11:06:17 +02:00
c5ec3bae23 auto-git:
[change] renderer.js
2025-05-26 11:06:11 +02:00
a576c7199e Fix typo and update commit color thresholds in animeCat.js 2025-05-26 11:05:50 +02:00
e5f1a39dbc Adjust commit color thresholds and update commits today count in renderer.js 2025-05-26 11:05:50 +02:00
a3cd970e9c Update commits today count in renderer.js 2025-05-26 11:05:50 +02:00
1e8344416e auto-git:
[change] renderer.js
2025-05-26 11:04:34 +02:00
610b59a070 auto-git:
[change] renderer.js
2025-05-26 11:04:27 +02:00
aaf85e9fd6 Initialize commitsToday variable in renderer.js 2025-05-26 11:04:20 +02:00
e6ded61bb0 Swap order of text-shadow properties in index.html 2025-05-26 11:04:20 +02:00
32d1500dd4 Adjust text-shadow property in index.html 2025-05-26 11:04:20 +02:00
d05aa5674d auto-git:
[change] index.html
2025-05-26 11:03:08 +02:00
28fa20bffc auto-git:
[change] index.html
2025-05-26 11:03:01 +02:00
1b6cb7bd9b auto-git:
[change] index.html
2025-05-26 11:02:50 +02:00
125f07e012 auto-git:
[change] index.html
2025-05-26 11:02:36 +02:00
349b79fe56 auto-git:
[change] index.html
2025-05-26 11:02:31 +02:00
8cb8debca6 Restore original text shadow blur radius 2025-05-26 11:02:27 +02:00
5d29272b23 Minimize text shadow blur radius 2025-05-26 11:02:27 +02:00
45858d36d3 Further reduce text shadow blur radius 2025-05-26 11:02:27 +02:00
a880a743c5 Reduce text shadow blur radius 2025-05-26 11:02:27 +02:00
bea6d82298 Increase text shadow blur radius 2025-05-26 11:02:26 +02:00
71dd20e829 Increase shadow blur radius in .commits-glow 2025-05-26 11:01:32 +02:00
f8685b4225 Reduce shadow blur radius in .commits-glow 2025-05-26 11:01:32 +02:00
b0ac09cff2 auto-git:
[change] index.html
2025-05-26 11:00:11 +02:00
8c217991bf auto-git:
[change] index.html
2025-05-26 11:00:02 +02:00
af42da48ee auto-git:
[change] index.html
2025-05-26 10:59:49 +02:00
18ab465a40 auto-git:
[change] index.html
2025-05-26 10:59:40 +02:00
a3ff91df78 auto-git:
[change] index.html
2025-05-26 10:59:18 +02:00
fb6001548a Fix color calculation in renderer.js 2025-05-26 10:58:15 +02:00
c7bff0d357 Revert color calculation in renderer.js 2025-05-26 10:58:15 +02:00
ba7b437ac4 auto-git:
[change] renderer.js
2025-05-26 10:56:54 +02:00
9d81ab51b3 auto-git:
[change] renderer.js
2025-05-26 10:56:36 +02:00
ae4f6bb2f3 auto-git:
[change] renderer.js
2025-05-26 10:56:15 +02:00
5080f9fd73 auto-git:
[change] renderer.js
2025-05-26 10:56:06 +02:00
d1d1ec0a86 auto-git:
[change] renderer.js
2025-05-26 10:55:58 +02:00
e7ab250e99 auto-git:
[change] animeCat.js
2025-05-26 10:55:10 +02:00
9930aae614 auto-git:
[change] renderer.js
2025-05-26 10:55:01 +02:00
013f2dfbf2 auto-git:
[change] renderer.js
2025-05-26 10:54:52 +02:00
d3bd8e5cb8 auto-git:
[change] renderer.js
2025-05-26 10:54:46 +02:00
42aa123870 auto-git:
[change] renderer.js
2025-05-26 10:54:37 +02:00
28215ada8b auto-git:
[change] renderer.js
2025-05-26 10:54:28 +02:00
c319a68c4c auto-git:
[change] renderer.js
2025-05-26 10:54:19 +02:00
260f46ba10 Set commitsToday color based on commit count in renderer.js 2025-05-26 10:53:02 +02:00
3e327cc345 Update commitsToday color to green in renderer.js 2025-05-26 10:53:02 +02:00
da5ed7f89f Adjust commitsToday color calculation in renderer.js 2025-05-26 10:53:02 +02:00
107a67ad2e Change commit color in renderer.js 2025-05-26 10:53:02 +02:00
de161e14a6 Update commit count for color calculation in renderer.js 2025-05-26 10:51:47 +02:00
8261d55a21 Change commit color calculation in renderer.js 2025-05-26 10:51:47 +02:00
ed844383c3 Revert typo fix in renderer.js 2025-05-26 10:51:47 +02:00
14698a1f99 Fix typo in renderer.js 2025-05-26 10:51:47 +02:00
eb1b384dd5 Add color coding to commitsToday in renderer.js 2025-05-26 10:50:33 +02:00
3d57dfae5a Add commit color calculation function in renderer.js 2025-05-26 10:48:54 +02:00
9e6ebce2da Improve readability of commit and line count messages in index.html 2025-05-26 10:44:32 +02:00
9a601a0ba2 Further increase font weight of interaction bar span 2025-05-26 10:39:55 +02:00
36d6945a02 Increase font weight of interaction bar span 2025-05-26 10:39:55 +02:00
ef6cb89b40 Revert change in font weight of 'Lines until next Rewrite' 2025-05-26 10:38:48 +02:00
f129454b5b Update font weight of 'Lines until next Rewrite' to bold 2025-05-26 10:38:48 +02:00
cd67941391 Change font weight of 'Lines until next Rewrite' 2025-05-26 10:38:48 +02:00
c3db42c8f0 Adjust margin-left of .interaction-bar .flex 2025-05-26 10:38:48 +02:00
d236b9e60c Add margin-left to .interaction-bar .flex 2025-05-26 10:38:48 +02:00
bf756f4221 Update interaction bar styling and structure in index.html 2025-05-26 10:36:55 +02:00
7ee40e3698 Update styles for interaction bar in index.html 2025-05-26 10:36:37 +02:00
109b5b4c39 auto-git:
[change] index.html
2025-05-26 10:36:25 +02:00
b4b3fe7fee Reformat CSS for consistency 2025-05-26 10:36:20 +02:00
80f15645b1 auto-git:
[change] index.html
2025-05-26 10:36:10 +02:00
96809826f8 Decrease font-size in .interaction-bar .font-bold 2025-05-26 10:35:57 +02:00
e323dec3c1 Increase margin-left in .interaction-bar .flex 2025-05-26 10:35:57 +02:00
f0b4d463fd Adjust margin-left in .interaction-bar .flex 2025-05-26 10:35:57 +02:00
42d0308d1d auto-git:
[change] index.html
2025-05-26 10:33:53 +02:00
78618f78f0 Refactor interaction bar styling and structure 2025-05-26 10:33:30 +02:00
344cae7bb3 Add commit button to interaction bar 2025-05-26 10:33:30 +02:00
797698ae3f Refactor updateInteractionBar to call async startLiveCountdown 2025-05-26 10:30:18 +02:00
0058795fb8 Refactor renderer.js to use async function for startLiveCountdown 2025-05-26 10:30:18 +02:00
b90f968aae Add missing code in renderer.js 2025-05-26 10:28:03 +02:00
a55d4621f6 Remove unused code in renderer.js 2025-05-26 10:28:03 +02:00
1daa4f48c6 auto-git:
[change] renderer.js
2025-05-26 10:26:55 +02:00
a535232e3e auto-git:
[change] renderer.js
2025-05-26 10:26:48 +02:00
6667e2ac59 auto-git:
[change] renderer.js
2025-05-26 10:26:40 +02:00
16b7b72987 auto-git:
[change] renderer.js
2025-05-26 10:26:32 +02:00
6df2639c97 auto-git:
[change] renderer.js
2025-05-26 10:26:07 +02:00
97b435005f Fix missing semicolon in renderer.js 2025-05-26 10:25:49 +02:00
c7e3405e63 auto-git:
[change] renderer.js
2025-05-26 10:24:08 +02:00
7345c784a9 Remove redundant interaction bar update call in renderer.js 2025-05-26 10:22:42 +02:00
737dde1cb7 Refactor folder rendering logic in renderer.js 2025-05-26 10:22:42 +02:00
ccd34fabad Refactor folder selection and rendering logic 2025-05-26 10:18:15 +02:00
3e673de031 Add recursive content rendering and interaction update in renderer.js 2025-05-26 10:16:31 +02:00
da5ab820b9 Refactor countdown formatting in renderer.js 2025-05-26 10:14:56 +02:00
f9e937ce42 Implement live countdown functionality for folderObj in renderer.js 2025-05-26 10:14:24 +02:00
193d10123b Add countdown interval initialization in renderer.js 2025-05-26 10:14:24 +02:00
50a36e9c9c Fix typo in debug message 2025-05-26 10:12:00 +02:00
e8237e7692 Fix typo in debug message 2025-05-26 10:12:00 +02:00
deca0adb10 Fix missing newline character in renderer.js 2025-05-26 10:06:15 +02:00
c1a059e59e Update content list to interaction bar in renderer.js 2025-05-26 10:06:15 +02:00
730e7fea42 auto-git:
[change] renderer.js
2025-05-26 10:04:36 +02:00
9c8d686600 auto-git:
[change] index.html
2025-05-26 10:04:12 +02:00
2e1b8f15e9 auto-git:
[change] renderer.js
2025-05-26 10:01:09 +02:00
1434ce1337 Add content list update in renderer.js 2025-05-26 09:57:14 +02:00
8beb47235a Refactor and enhance content list update logic in renderer.js 2025-05-26 09:54:38 +02:00
535d23a5d6 Add countdown function to renderer.js 2025-05-26 09:54:38 +02:00
78ede2c419 Remove commented-out code in renderer.js 2025-05-26 09:38:30 +02:00
5e21fc8cf9 Add theme selection element to settings.html 2025-05-26 09:35:03 +02:00
597e43b008 Remove unused theme option from settings.html 2025-05-26 09:31:43 +02:00
e13763b8ba Add Sky Theme checkbox to settings.html 2025-05-26 09:31:43 +02:00
204589038b auto-git:
[change] main.js
2025-05-26 09:28:37 +02:00
60445daef6 Update settings.html to include theme selection dropdown 2025-05-26 08:18:21 +02:00
87bb4a436f Revert adjustment to position of anime cat image 2025-05-26 08:11:34 +02:00
913a890c4d Adjust position of anime cat image 2025-05-26 08:11:34 +02:00
553241432b Reduce glow animation amplitude 2025-05-26 08:04:30 +02:00
878e34d67b Fine-tune glow animation increment 2025-05-26 08:04:30 +02:00
73beb97d83 Adjust glow animation phase and increment 2025-05-26 08:04:30 +02:00
76173b54ab Reduce amplitude of opacity wave in animation 2025-05-26 08:03:18 +02:00
74db19885b Adjust top position of glow element 2025-05-26 08:03:18 +02:00
d25cb0ef9e Reduce glow opacity in animeCat.js 2025-05-26 08:01:41 +02:00
5164485b5f Update glow dimensions and opacity in animeCat.js 2025-05-26 08:01:41 +02:00
edb33c9fd9 Adjust glow position in animeCat.js 2025-05-26 08:01:41 +02:00
ea97ffca6e Reduce glow animation amplitude 2025-05-26 08:01:16 +02:00
fd7bf1cc1a Increase glow animation speed 2025-05-26 08:01:16 +02:00
e9bcdae593 Adjust glow animation phase 2025-05-26 08:01:16 +02:00
096b64ce18 Increase blur radius of glow effect in animeCat.js 2025-05-26 08:00:03 +02:00
031199816d Further adjust glow position in animeCat.js 2025-05-26 08:00:03 +02:00
4e177c15fd Adjust glow position in animeCat.js 2025-05-26 08:00:03 +02:00
0b06a3acac auto-git:
[change] animeCat.js
2025-05-26 07:58:19 +02:00
0d16827e11 auto-git:
[change] animeCat.js
2025-05-26 07:58:03 +02:00
36e7ad53a3 auto-git:
[change] animeCat.js
2025-05-26 07:57:42 +02:00
f5ef546e2d auto-git:
[change] animeCat.js
2025-05-26 07:57:34 +02:00
994ea02dbe Adjust blur and opacity values for glow effect 2025-05-26 07:56:51 +02:00
2eb9609519 Fix typo in method name 2025-05-26 07:56:51 +02:00
b0bfcfc856 Refactor glow animation logic in animeCat.js 2025-05-26 07:55:35 +02:00
f8259a1913 Refine glow wobble animation logic in animeCat.js 2025-05-26 07:55:22 +02:00
d98bf4d13a Add glow wobble animation to AnimeCat 2025-05-26 07:55:22 +02:00
0ca02f01b8 Fix missing call to startGlowWobble in animeCat.js 2025-05-26 07:53:45 +02:00
98da6160ad Add glow wobble effect to animeCat.js 2025-05-26 07:52:31 +02:00
4972194552 Adjust glow position and style in animeCat.js 2025-05-26 07:52:02 +02:00
3d71cf9504 Refactor glow animation in animeCat.js 2025-05-26 07:52:02 +02:00
e42d08658e Change salto chance to always occur in animeCat.js 2025-05-26 07:47:24 +02:00
5ded847ea1 Add red border to glow element in animeCat.js 2025-05-26 07:47:24 +02:00
c01ec22252 Remove redundant border property 2025-05-26 07:46:07 +02:00
594c97e228 Fix border property formatting 2025-05-26 07:46:07 +02:00
ab18908bff Reduce width of glow element 2025-05-26 07:46:07 +02:00
c52561376e Remove unnecessary left and top properties from glow style 2025-05-26 07:46:07 +02:00
0478094a08 Add red border to animeCat.js for debugging 2025-05-26 07:44:30 +02:00
f1360dc517 Update position of glow effect on anime cat 2025-05-26 07:43:05 +02:00
6d15ada797 auto-git:
[change] animeCat.js
2025-05-26 07:42:02 +02:00
30818725aa Further adjust glow position top value in animeCat.js 2025-05-26 07:42:02 +02:00
017fd1ff38 Adjust glow position top value in animeCat.js 2025-05-26 07:42:02 +02:00
57c780359c Reposition glow element in animeCat.js 2025-05-26 07:40:46 +02:00
cdedd3de1e Adjust bubble margin in animeCat.js 2025-05-26 07:40:46 +02:00
c28bab2726 Adjust cat glow position in animeCat.js 2025-05-26 07:39:12 +02:00
026b24c225 Fix minor formatting issue in animeCat.js 2025-05-26 07:38:41 +02:00
d9de4fdcf9 Improve radial gradient in animeCat.js 2025-05-26 07:38:41 +02:00
5fca786254 Update glow properties for animeCat.js 2025-05-26 07:37:43 +02:00
9dfc651c01 Adjust position of anime cat glow 2025-05-26 07:35:12 +02:00
02fdb7ba2f Reduce size of anime cat icon 2025-05-26 07:35:12 +02:00
2b23e8e9f9 auto-git:
[change] animeCat.js
2025-05-26 07:33:44 +02:00
a474719ea6 auto-git:
[change] animeCat.js
2025-05-26 07:33:25 +02:00
06b3704c86 auto-git:
[change] animeCat.js
2025-05-26 07:32:48 +02:00
13bd5ab566 auto-git:
[change] animeCat.js
2025-05-26 07:32:43 +02:00
292641011e Revert previous adjustment to glow position top value 2025-05-26 07:32:21 +02:00
6ffe1e8ad1 Fine-tune glow position top value 2025-05-26 07:32:21 +02:00
9e1a32d12b Further adjust glow position top value 2025-05-26 07:32:21 +02:00
e3dbbfd0de Adjust glow position top value 2025-05-26 07:32:21 +02:00
f1c20a97a3 Adjust horizontal position of anime cat image 2025-05-26 07:30:38 +02:00
6cc3bf7a93 Decrease vertical position of anime cat image 2025-05-26 07:30:38 +02:00
a2033caf02 Increase vertical position of anime cat image 2025-05-26 07:30:38 +02:00
b4a4ddc66d Further adjust vertical position of anime cat image 2025-05-26 07:30:38 +02:00
600b6c3bd1 Adjust vertical position of anime cat image 2025-05-26 07:30:38 +02:00
1c295cae81 Refactor joy animation logic in animeCat.js 2025-05-26 07:27:11 +02:00
1e358d7230 Refactor bubble positioning logic in animeCat.js 2025-05-26 07:26:53 +02:00
e5334996e5 Refactor animeCat.js to improve layout and structure 2025-05-26 07:26:24 +02:00
d66c385805 auto-git:
[change] animeCat.js
2025-05-26 07:25:59 +02:00
c1127f4d73 auto-git:
[change] animeCat.js
2025-05-26 07:23:17 +02:00
0e3624fbac Remove unused CSS for #cat-glow 2025-05-26 07:22:34 +02:00
09821217a2 Remove unused CSS for #cat-sprite 2025-05-26 07:22:34 +02:00
35ef5dfebd Fix chance of salto in _runJoyAnimation 2025-05-26 07:22:34 +02:00
055121edec Revert chance of salto in _runJoyAnimation 2025-05-26 07:22:34 +02:00
d890b0b254 Refactor animeCat.js to improve glow animation logic and color interpolation 2025-05-26 07:20:13 +02:00
35e695c983 Refactor animeCat.js to improve layout and structure 2025-05-26 07:18:39 +02:00
2cf57ddbe1 Refactor glow animation logic in animeCat.js 2025-05-26 07:16:02 +02:00
3d44f9b4db Refactor glow animation to use lerped colors between green and orange 2025-05-26 07:15:20 +02:00
e3fda7adba Add linear interpolation functions for color and value 2025-05-26 07:15:20 +02:00
aeb5165b2c Add daily commit progress animation to animeCat.js 2025-05-26 07:14:24 +02:00
84a0c0b2c3 Revert glow color change 2025-05-26 07:13:12 +02:00
db5d91825e Reset glow color to default 2025-05-26 07:13:12 +02:00
065f7a5250 Set glow color to fixed value 2025-05-26 07:13:12 +02:00
34c6789c76 Refactor glow color and size calculation in animeCat.js 2025-05-26 07:11:43 +02:00
91c6410a51 Add daily commit progress animation to animeCat.js 2025-05-26 07:09:15 +02:00
e249b734cc auto-git:
[change] animeCat.js
2025-05-26 07:09:08 +02:00
be6f7a6f6c Refactor method name to animateCatGlow in animeCat.js 2025-05-26 07:07:33 +02:00
2f7c22148b Fix alignment and z-index in index.html 2025-05-26 07:07:33 +02:00
b15f32ad01 Add glow effect to animeCat.js 2025-05-26 07:06:05 +02:00
1c74e1f284 Refactor glow animation logic in animeCat.js 2025-05-26 07:04:24 +02:00
985c3aff8e Remove redundant img creation in animeCat.js 2025-05-26 07:04:24 +02:00
0d3b5ec57a Fix typo and condition check in _animateCatGlow method of animeCat.js 2025-05-26 07:03:20 +02:00
23e6ed0c5a Fix glow insertion order in animeCat.js 2025-05-26 07:03:20 +02:00
6bb3e3f8b0 Remove unused glow element creation in animeCat.js 2025-05-26 07:03:19 +02:00
52c0c00d31 Fix indentation and formatting in animeCat.js 2025-05-26 07:01:50 +02:00
1ffb6ec748 Add glow effect to animeCat.js 2025-05-26 07:00:21 +02:00
80cdf0384b Add conditional check for cat glow element in animeCat.js 2025-05-26 06:58:38 +02:00
a5df82d213 Update cat glow style in index.html 2025-05-26 06:58:38 +02:00
d84667f507 Add missing newline in animeCat.js 2025-05-26 06:57:20 +02:00
6bd8abb163 Refactor _animateCatGlow method in animeCat.js 2025-05-26 06:55:21 +02:00
06d371316d Add radial gradient background to #cat-glow in index.html 2025-05-26 06:55:21 +02:00
8d3a71b2d3 Update cat sprite and slot in index.html 2025-05-26 06:55:21 +02:00
1e1be847c0 Refactor and enhance cat glow styling 2025-05-26 06:54:28 +02:00
6e277f0396 Add cat glow div 2025-05-26 06:54:28 +02:00
c8e50e6402 Add log statement for daily commit count in renderer.js 2025-05-26 06:51:24 +02:00
2fba3a40f0 Add debug log for commit count in animeCat.js 2025-05-26 06:49:55 +02:00
d00690d7de Refactor method name in animeCat.js 2025-05-26 06:48:08 +02:00
791dfa8585 Add missing ipcMain handler for 'get-daily-commit-stats' in main.js 2025-05-26 06:45:05 +02:00
206330d9bf Remove unused code in renderer.js 2025-05-26 06:45:05 +02:00
cafab04d2d auto-git:
[change] animeCat.js
2025-05-26 06:43:07 +02:00
ab5ac8a060 auto-git:
[change] renderer.js
2025-05-26 06:42:28 +02:00
342f261cca Refactor animeCat.js to include commit count glow animation 2025-05-26 06:41:04 +02:00
538d88de46 Add glow effect to cat sprite in index.html 2025-05-26 06:41:04 +02:00
d6885f15c3 Remove commented-out code in renderer.js 2025-05-26 06:37:58 +02:00
755dce2788 Add daily commit stats to renderer.js 2025-05-26 06:33:37 +02:00
814cc7818d Add function to fetch daily commit stats in preload.js 2025-05-26 06:32:51 +02:00
29b76be6f0 auto-git:
[change] renderer.js
2025-05-26 06:31:39 +02:00
0a2dd0d5ac auto-git:
[change] main.js
2025-05-26 06:31:18 +02:00
d3c946dd27 Reduce chance of salto 2025-05-26 05:47:48 +02:00
cf28705544 Revert heart emitter X position change 2025-05-26 05:47:48 +02:00
d7c1ec0782 Fine-tune heart emitter X position 2025-05-26 05:47:48 +02:00
151e40139d Adjust heart emitter position 2025-05-26 05:47:48 +02:00
d08c0321d2 auto-git:
[change] animeCat.js
2025-05-26 05:46:17 +02:00
d7900cefe7 Increase chance of Salto in animeCat.js 2025-05-26 05:45:30 +02:00
e54738c538 auto-git:
[change] animeCat.js
2025-05-26 05:43:38 +02:00
b3cce5f043 Refactor and optimize animation logic in animeCat.js 2025-05-26 05:40:44 +02:00
7dd99e504a auto-git:
[change] animeCat.js
2025-05-26 05:38:37 +02:00
c255c29b5f auto-git:
[change] animeCat.js
2025-05-26 05:38:34 +02:00
c483daecf0 Add speech functionality to animeCat.js 2025-05-26 05:37:12 +02:00
aa5c66225f auto-git:
[change] animeCat.js
2025-05-26 05:37:07 +02:00
cec3323814 auto-git:
[change] animeCat.js
2025-05-26 05:37:02 +02:00
a63ee23dbb auto-git:
[change] animeCat.js
2025-05-26 05:36:57 +02:00
2d91ba6f82 auto-git:
[change] animeCat.js
2025-05-26 05:35:44 +02:00
2aa71895b0 Adjust heart offset in animeCat.js 2025-05-26 05:33:33 +02:00
201c2eee02 Adjust heart position calculation in animeCat.js 2025-05-26 05:32:00 +02:00
3ab48eb3e2 Adjust probability of joy animation salto 2025-05-26 05:31:17 +02:00
316aefcfc9 auto-git:
[change] animeCat.js
2025-05-26 05:29:38 +02:00
748d69d26c auto-git:
[change] animeCat.js
2025-05-26 05:29:00 +02:00
c52e360046 Refactor animeCat.js to improve heart and bubble animation handling 2025-05-26 05:27:40 +02:00
b656dfb3f2 Increase chance of joy animation in animeCat.js 2025-05-26 05:27:34 +02:00
1a601a4391 Adjust jump and rotation logic in animeCat.js 2025-05-26 05:23:30 +02:00
2ccfd9fc0f Increase jump chance in animeCat.js 2025-05-26 05:23:30 +02:00
71fd1f54af Refactor and optimize joy animation logic in animeCat.js 2025-05-26 05:22:11 +02:00
ad9c4db36a Reduce chance of salto in joy animation 2025-05-26 05:21:58 +02:00
9a6107f988 Refactor joy animation logic in animeCat.js 2025-05-26 05:20:31 +02:00
c18c2b258a Refactor and enhance cat animation logic with random salto chance and improved heart explosion timing 2025-05-26 05:14:15 +02:00
c001770ef1 Refactor method call in animeCat.js 2025-05-26 05:11:44 +02:00
e3571fd420 Refactor method call in animeCat.js 2025-05-26 05:11:44 +02:00
a48589bcf9 Refactor animeCat.js to consolidate mouse hold logic into a separate method 2025-05-26 05:10:22 +02:00
1a9f413360 Refactor and improve consolation logic in animeCat.js 2025-05-26 05:10:03 +02:00
042fb516c9 Remove redundant code in animeCat.js 2025-05-26 05:09:56 +02:00
816a14b174 Refactor and enhance mouse hold logic in animeCat.js 2025-05-26 05:06:49 +02:00
c7d82d48f4 Refactor and enhance mouth open logic in animeCat.js 2025-05-26 05:06:29 +02:00
7d5280ff2f Add _consolationCount property to AnimeCat class 2025-05-26 05:05:56 +02:00
7839891c31 Add mischievous.png to animeCat.js 2025-05-26 05:05:56 +02:00
092e8df0b0 auto-git:
[change] renderer.js
2025-05-26 05:04:47 +02:00
ff6f50de08 Add mischievous cat asset 2025-05-26 05:02:42 +02:00
881f6ad03c Remove debug log from animeCat.js 2025-05-26 05:01:21 +02:00
5eb1870dcd Ensure minimum mouth open time of 1000ms 2025-05-26 04:59:29 +02:00
f1c27e0364 Fix incorrect mouth open time calculation 2025-05-26 04:59:29 +02:00
bb1c61b010 Add debug log for mouse hold duration and mouth open time 2025-05-26 04:56:46 +02:00
bfa54a2d9e Adjust mouth open time calculation 2025-05-26 04:56:46 +02:00
d4c5069e40 Refactor mouth open time calculation and conditional logic in animeCat.js 2025-05-26 04:55:27 +02:00
8f6def90b1 Adjust mouth open time calculation in animeCat.js 2025-05-26 04:54:11 +02:00
237d08eaf8 Fix syntax error in animeCat.js 2025-05-26 04:52:53 +02:00
fc94b6fdb1 Fix syntax error in animeCat.js 2025-05-26 04:52:53 +02:00
5efcf5053d auto-git:
[change] animeCat.js
2025-05-26 04:49:45 +02:00
4705e7d073 auto-git:
[change] animeCat.js
2025-05-26 04:49:35 +02:00
1a244cda2f auto-git:
[change] animeCat.js
2025-05-26 04:49:22 +02:00
403d751db4 Remove unused cat images from assets 2025-05-26 04:47:42 +02:00
828fdd18a9 auto-git:
[change] animeCat.js
2025-05-26 04:44:15 +02:00
ca5cb02868 auto-git:
[change] renderer.js
2025-05-26 04:44:05 +02:00
4941f61962 auto-git:
[change] renderer.js
2025-05-26 04:43:59 +02:00
01a17f3178 auto-git:
[change] animeCat.js
2025-05-26 04:43:48 +02:00
d9026e7261 auto-git:
[change] assets/cat/blink.png
2025-05-26 04:43:27 +02:00
3379fd8103 auto-git:
[add] assets/cat/blink.png
2025-05-26 04:43:22 +02:00
e905a5f2ae Correct cat slot position in index.html 2025-05-26 04:40:53 +02:00
1b86bee126 Adjust image width in animeCat.js 2025-05-26 04:40:53 +02:00
ac4dfebc4e Swap width and height of anime cat image 2025-05-26 04:39:38 +02:00
c72987b1c8 Adjust height of anime cat image 2025-05-26 04:39:38 +02:00
3999a2ad9b Resize anime cat image dimensions 2025-05-26 04:39:38 +02:00
3404c95320 Fix indentation and remove empty line in index.html 2025-05-26 04:38:54 +02:00
68b5f0caa3 Remove unused CSS for catSlot image 2025-05-26 04:38:54 +02:00
98ed479930 Set cat image width to 10000px and height to 50px 2025-05-26 04:37:39 +02:00
a2fcba4707 Decrease cat image height to 40px 2025-05-26 04:37:39 +02:00
f0507f5a6b Increase cat image width to 80px 2025-05-26 04:37:39 +02:00
ca00196cfe Increase cat image width to 70px and height to 50px 2025-05-26 04:37:39 +02:00
330f3f1898 Add new cat assets: mouth_open.png, eyes_closed.png 2025-05-26 04:36:27 +02:00
d57b9b84b4 Rename mouth_open.png to old/mouth_open.png 2025-05-26 04:36:27 +02:00
5f441be8a5 Rename blush_shy.png to joy.png and remove blush_shy.png 2025-05-26 04:35:14 +02:00
c38bf23a3b Add default cat image 2025-05-26 04:35:14 +02:00
1bce199da5 Rename and move default and joy images to old directory, remove old images 2025-05-26 04:35:14 +02:00
97d1d9871c Add new cat image: blush_shy.png 2025-05-26 04:35:14 +02:00
94568a11e1 Increase move threshold for mouse hold detection in animeCat.js 2025-05-26 04:32:56 +02:00
13696f1f82 Refactor cleanup function in animeCat.js 2025-05-26 04:31:11 +02:00
86e655e94e Refactor mouse hold logic in animeCat.js 2025-05-26 04:27:01 +02:00
87829a9467 Refactor and fix issue with petting state in animeCat.js 2025-05-26 04:25:36 +02:00
2855656030 Refactor and fix issue with petting state in animeCat.js 2025-05-26 04:25:36 +02:00
a424189a83 Fix issue with petting state in animeCat.js 2025-05-26 04:25:36 +02:00
eff8eaf8a3 Fix issue with petting state in animeCat.js 2025-05-26 04:25:36 +02:00
2e261ff1aa Prevent setting default image when petting is active during blinking 2025-05-26 04:24:37 +02:00
8e89dcf0b9 Ensure default image is set only if petting is not active in endSpeech method 2025-05-26 04:24:37 +02:00
00d33e2068 Add petting active flag in animeCat.js 2025-05-26 04:24:37 +02:00
c701e04383 Refactor mouse hold logic in AnimeCat class 2025-05-26 04:23:02 +02:00
abeaaa6e87 Add _pettingActive property to AnimeCat class 2025-05-26 04:23:02 +02:00
c1bb05e62a Fix typo in animeCat.js 2025-05-26 04:21:28 +02:00
afc1a3372e Change 'overflow: none;' to 'overflow: hidden;' in body of index.html 2025-05-26 04:18:29 +02:00
edbb0ed3a7 Add 'overflow: none;' to body in index.html 2025-05-26 04:18:29 +02:00
5e21efdd6e Increase move threshold for mouse hold in animeCat.js 2025-05-26 04:16:42 +02:00
4fcf05844b Refactor and optimize animeCat.js for better performance and readability 2025-05-26 04:14:37 +02:00
0de4e4dd70 Reduce cat tolerance for proximity detection 2025-05-26 04:13:47 +02:00
3906c15cb2 Increase mouse move threshold for cat interaction 2025-05-26 04:13:47 +02:00
8c5bca27fb Adjust move threshold for mouse hold 2025-05-26 04:12:17 +02:00
583ce878df Further increase move threshold for mouse hold 2025-05-26 04:12:17 +02:00
75c8c4d9b7 Increase move threshold for mouse hold 2025-05-26 04:12:17 +02:00
ecb5ddfa09 Refactor mouse hold logic to include movement tracking and joy animation conditions 2025-05-26 04:10:27 +02:00
1c6ce0eec7 Refactor and enhance mouse hold logic in animeCat.js 2025-05-26 04:08:02 +02:00
0d0824111f Increase CAT_TOLERANCE and update event listeners for animeCat.js 2025-05-26 04:05:05 +02:00
f4e4f4e5dc Further reduce CAT_TOLERANCE in animeCat.js 2025-05-26 04:03:28 +02:00
352a09dd97 Reduce CAT_TOLERANCE in animeCat.js 2025-05-26 04:03:28 +02:00
a098c28efd Adjust CAT_TOLERANCE and refactor mouse event handling in animeCat.js 2025-05-26 04:01:51 +02:00
bf113ed28a Increase CAT_TOLERANCE in animeCat.js for better mouse interaction 2025-05-26 04:01:34 +02:00
46f1e821b0 Add tolerance for mouse proximity to cat image during interaction 2025-05-26 04:00:08 +02:00
59a130d1ad Adjust minimum stroke distance for joy animation in animeCat.js 2025-05-26 03:58:52 +02:00
4c4bc41e78 Refactor mouse hold logic in animeCat.js to improve eye closure and joy mode activation 2025-05-26 03:56:43 +02:00
41d4a3be4e Reduce timeout duration in animeCat.js 2025-05-26 03:53:33 +02:00
c77a1d6fb3 auto-git:
[change] animeCat.js
2025-05-26 03:52:08 +02:00
c313b1e848 auto-git:
[change] animeCat.js
2025-05-26 03:51:55 +02:00
b83a71dfa6 auto-git:
[change] animeCat.js
2025-05-26 03:51:50 +02:00
0cd906665d Adjust heart position in animeCat.js 2025-05-26 03:51:30 +02:00
fb1eeb5e44 Move heart emoji left position to 40% 2025-05-26 03:49:57 +02:00
f501ae7077 Move heart emoji left position to 30% 2025-05-26 03:49:57 +02:00
6797891cf8 auto-git:
[change] animeCat.js
2025-05-26 03:48:39 +02:00
26ac46a380 auto-git:
[change] renderer.js
2025-05-26 03:47:48 +02:00
4eb8557d2c Fine-tune wrapper transformation in animeCat.js 2025-05-26 03:47:44 +02:00
c2122bf6c1 Adjust animation timing in animeCat.js 2025-05-26 03:47:44 +02:00
02860b72c7 Increase transition duration for joy-mode animation in animeCat.js 2025-05-26 03:46:19 +02:00
67f56d8520 Remove redundant condition in animeCat.js 2025-05-26 03:45:10 +02:00
8d9f9edda7 Remove unnecessary comment from renderer.js 2025-05-26 03:43:37 +02:00
6b62ab62a4 Add new cat image for joy 2025-05-26 03:43:37 +02:00
d69e9f6e91 Add joy mode with heart animation to animeCat.js 2025-05-26 03:40:18 +02:00
2ba245a20a Add cat initialization with images and begin speech method 2025-05-26 03:34:47 +02:00
280154c537 Remove redundant cat speech event listeners 2025-05-26 03:34:47 +02:00
3aebed1a5f Add AnimeCat class for animated cat with speech bubble 2025-05-26 03:30:43 +02:00
781c992de9 Remove unused animeCat.js script 2025-05-26 03:30:31 +02:00
ec72da29f6 auto-git:
[change] animeCat.js
2025-05-26 03:29:15 +02:00
1d963c2fab Remove unused animeCat.js script 2025-05-26 03:29:15 +02:00
a7379e1a0d Remove redundant display style changes in animeCat.js 2025-05-26 03:27:36 +02:00
e382b63e40 Revert fix for display property of bubblePointer in animeCat.js 2025-05-26 03:25:44 +02:00
ee56965ab6 Fix display property of bubblePointer in animeCat.js 2025-05-26 03:25:44 +02:00
95c9df6261 Shorten speech duration in animeCat.js 2025-05-26 03:21:11 +02:00
2cf7ac9359 Reduce margin-bottom in animeCat.js 2025-05-26 03:21:11 +02:00
524eaaff4d Adjust margin-bottom in animeCat.js 2025-05-26 03:21:11 +02:00
14a3c3c278 Decrease padding in animeCat.js 2025-05-26 03:21:11 +02:00
80778df9ed Increase padding in animeCat.js 2025-05-26 03:21:11 +02:00
810e206e83 auto-git:
[change] animeCat.js
2025-05-26 03:19:55 +02:00
525f2021e2 auto-git:
[change] animeCat.js
2025-05-26 03:19:44 +02:00
c0d4ac4b44 auto-git:
[change] animeCat.js
2025-05-26 03:19:32 +02:00
d5f193d33c auto-git:
[change] animeCat.js
2025-05-26 03:19:13 +02:00
e2ccddf974 auto-git:
[change] animeCat.js
2025-05-26 03:18:56 +02:00
8d25cb3a89 Increase bubble hide delay in animeCat.js 2025-05-26 03:18:14 +02:00
c46b5c211c Refactor animeCat.js to improve structure and readability 2025-05-26 03:15:21 +02:00
6a4622b368 Await autoCommit with 'win' parameter in startMonitoringWatcher 2025-05-26 03:04:19 +02:00
cc2dd069ba Pass 'win' parameter to autoCommit in startMonitoringWatcher 2025-05-26 03:04:19 +02:00
14bd7ccf9c Add parameter 'win' to autoCommit function 2025-05-26 03:04:19 +02:00
40655e4b1c Pass window object to streamLLMCommitMessages in main.js 2025-05-26 03:03:05 +02:00
d0a802798a auto-git:
[change] main.js
2025-05-26 03:00:31 +02:00
abaa0ed838 auto-git:
[change] main.js
2025-05-26 03:00:22 +02:00
06dca69910 auto-git:
[change] main.js
2025-05-26 03:00:15 +02:00
9c26193fa1 auto-git:
[change] main.js
2025-05-26 02:56:50 +02:00
361dab832e auto-git:
[change] main.js
2025-05-26 02:56:21 +02:00
0f511bf881 auto-git:
[change] main.js
2025-05-26 02:56:17 +02:00
54961e19a4 auto-git:
[change] animeCat.js
2025-05-26 02:54:21 +02:00
179b4ff166 auto-git:
[change] preload.js
2025-05-26 02:54:10 +02:00
23a7ead867 auto-git:
[change] renderer.js
2025-05-26 02:53:33 +02:00
d0a9cbca64 auto-git:
[change] animeCat.js
2025-05-26 02:50:55 +02:00
2bc2654908 auto-git:
[change] index.html
2025-05-26 02:50:11 +02:00
cc3be616a9 auto-git:
[change] renderer.js
2025-05-26 02:49:01 +02:00
6bb9d50608 auto-git:
[change] renderer.js
2025-05-26 02:48:39 +02:00
eb7272ab9a auto-git:
[change] renderer.js
2025-05-26 02:48:03 +02:00
f11b739e0a auto-git:
[change] renderer.js
2025-05-26 02:48:02 +02:00
ab3152a6eb auto-git:
[change] renderer.js
2025-05-26 02:47:48 +02:00
adc86f4970 auto-git:
[change] index.html
2025-05-26 02:47:32 +02:00
9fefac7f24 auto-git:
[change] index.html
2025-05-26 02:47:07 +02:00
aaec14a76c auto-git:
[change] renderer.js
2025-05-26 02:40:49 +02:00
a0dfce9b03 auto-git:
[change] renderer.js
2025-05-26 02:38:21 +02:00
9b056c6eea auto-git:
[change] renderer.js
2025-05-26 02:38:10 +02:00
6dbb037474 auto-git:
[change] renderer.js
2025-05-26 02:38:03 +02:00
4878cb18ef Add cat stream events to LLM commit messages 2025-05-26 02:37:52 +02:00
79ffeedbfa Add event listeners for IPC messages in renderer.js 2025-05-26 02:36:26 +02:00
a2fe374b32 Import AnimeCat and initialize it in renderer.js 2025-05-26 02:34:59 +02:00
48ca4c6e90 Comment out unused script in index.html 2025-05-26 02:34:59 +02:00
cf2c2fc7a3 Adjust cat slot left position in index.html 2025-05-26 02:32:37 +02:00
b9eb74b47b Fix cat slot position in index.html 2025-05-26 02:32:37 +02:00
f259bad82a auto-git:
[change] index.html
2025-05-26 02:27:29 +02:00
f05a76aba5 auto-git:
[change] index.html
2025-05-26 02:27:24 +02:00
43e7a22d4c auto-git:
[change] index.html
2025-05-26 02:27:06 +02:00
1d65e6d712 auto-git:
[change] index.html
2025-05-26 02:25:54 +02:00
a82eb42189 auto-git:
[change] index.html
2025-05-26 02:25:35 +02:00
773e9947a8 Reduce cat image size 2025-05-26 02:25:35 +02:00
df139c6db4 Minimize cat slot margin 2025-05-26 02:25:35 +02:00
c8986317e8 Fine-tune cat slot position 2025-05-26 02:25:35 +02:00
eaa319e535 Adjust cat slot position 2025-05-26 02:25:35 +02:00
32bf0fb1a8 Add test comment to handle LLM runs 2025-05-26 00:52:15 +02:00
797f10cc2e Comment out unnecessary code in autoCommit function 2025-05-26 00:46:55 +02:00
1fcad45b97 Update date formatting in autoCommit function 2025-05-26 00:46:55 +02:00
36ed02cc9a Add comment 'test' in main.js 2025-05-25 22:41:30 +02:00
d31cbf339c Add empty line in main.js 2025-05-25 22:41:30 +02:00
7f8749a4af Comment out unused code block in main.js 2025-05-25 22:39:59 +02:00
e53d8ccf0b Add folder update logic in main.js 2025-05-25 22:39:59 +02:00
5a49754626 auto-git:
[change] main.js
2025-05-25 22:34:47 +02:00
9fd99edc12 Add empty line after folderObj processing 2025-05-25 22:34:47 +02:00
5ef4d0e03a Fix typo in debug message formatting 2025-05-25 22:34:47 +02:00
71f41a9cc7 Add condition to run LLM commit rewrite only if needsRelocation is false 2025-05-25 22:29:35 +02:00
9f67d4f95b Remove unnecessary comments in main.js 2025-05-25 22:29:35 +02:00
4205493ace Refactor commit rewrite logic to use folder object 2025-05-25 22:25:07 +02:00
445814aa73 Add folder monitoring for auto-commit 2025-05-25 22:25:07 +02:00
d289554c3a Rename updateMissingFolders to updateFoldersListener and adjust interval 2025-05-25 22:05:01 +02:00
01d211317a Set firstCandidateBirthday when a new LLM candidate is added 2025-05-25 22:05:01 +02:00
6157c544e7 Fix typo in comment for firstCandidateBirthday 2025-05-25 22:05:01 +02:00
26b5cb2856 Add comment to clear firstCandidateBirthday 2025-05-25 22:05:01 +02:00
49bfe0c04f Refactor autoCommit to handle firstCandidateBirthday 2025-05-25 22:02:10 +02:00
991306365a Update folderObj structure in main.js 2025-05-25 22:02:10 +02:00
91ebae3664 Add minutes commit threshold setting 2025-05-25 22:02:10 +02:00
ceffa9ba0a Fix incorrect IPC method calls in preload.js 2025-05-25 21:50:24 +02:00
6647486046 Add IPC handlers for minutes commit threshold 2025-05-25 21:50:24 +02:00
578fdfca1a Add minutesCommitThreshold configuration option 2025-05-25 21:49:35 +02:00
dde9a4d630 Add datetime information to folder object on first commit 2025-05-25 21:49:35 +02:00
2e4f5e95b1 Fix settings.html to handle minutes commit threshold 2025-05-25 21:49:06 +02:00
194dbf336f Fix preload.js to correctly expose minutes commit threshold methods 2025-05-25 21:49:06 +02:00
cf5cae5dde Update preload.js to include minutes commit threshold methods 2025-05-25 21:49:06 +02:00
f28e128e14 Add minutes input to settings.html 2025-05-25 21:49:06 +02:00
cb2cfcbf77 auto-git:
[change] settings.html
2025-05-25 21:47:29 +02:00
a30b217d1b Fix typo in ellapsedMinutesInput variable name in settings.html 2025-05-25 21:47:29 +02:00
0a3cbc49d2 Correct variable name and update input ID in settings.html 2025-05-25 21:47:29 +02:00
b30b4a4909 Add time input for intelligent commit threshold in settings.html 2025-05-25 21:47:29 +02:00
cc12b83b46 Fix label text in settings.html 2025-05-25 21:47:29 +02:00
52a449a782 Refactor and add hack to kill Ollama process on port 11434 in main.js 2025-05-25 20:01:23 +02:00
5396c98f84 auto-git:
[change] main.js
2025-05-25 20:01:23 +02:00
f31215540e auto-git:
[change] main.js
2025-05-25 20:01:23 +02:00
ec06e63b21 auto-git:
[change] main.js
2025-05-25 20:01:23 +02:00
5e303bc1f8 auto-git:
[change] main.js
2025-05-25 20:01:23 +02:00
5bebf61330 Add empty line before async function declaration in main.js 2025-05-25 20:01:23 +02:00
38ca777ee4 auto-git:
[change] main.js
2025-05-25 20:01:23 +02:00
c739c86eb9 Refactor: Increase port wait loop iterations in main.js 2025-05-25 20:01:23 +02:00
cb02a19d1d auto-git:
[change] main.js
2025-05-25 20:01:23 +02:00
99df9c4570 Fix: Remove unnecessary newline in main.js 2025-05-25 20:01:23 +02:00
3eeedc3e3b Add temporary hack to start Ollama if not running 2025-05-25 19:52:12 +02:00
2a1d3d0224 Remove extra blank lines from animeCat.js 2025-05-25 07:29:28 +02:00
00f68d8074 Add comment to animeCat.js 2025-05-25 07:29:28 +02:00
4226d81476 Comment out unused variables in main.js 2025-05-25 07:29:28 +02:00
95b5672a5e Remove unused test code from main.js 2025-05-25 07:01:35 +02:00
a41f76d2fb Add test comments in main.js 2025-05-25 07:01:23 +02:00
91b3b0e658 auto-git:
[change] main.js
2025-05-25 06:58:18 +02:00
67fea4b6f9 auto-git:
[change] main.js
2025-05-25 06:57:53 +02:00
26613a8560 auto-git:
[change] main.js
2025-05-25 06:57:15 +02:00
193243605c auto-git:
[change] main.js
2025-05-25 06:57:09 +02:00
ef7b26dfba auto-git:
[change] main.js
2025-05-25 06:56:50 +02:00
ea4c977fa9 auto-git:
[change] main.js
2025-05-25 06:56:20 +02:00
57ccf25f95 auto-git:
[change] main.js
2025-05-25 06:55:53 +02:00
dbf638f0af Refactor code by removing unnecessary comments and adjusting line changes handling 2025-05-25 06:53:38 +02:00
5cc5548765 Add multiple comments in main.js 2025-05-25 06:52:28 +02:00
6855a72c81 Add comment in main.js 2025-05-25 06:52:28 +02:00
f8deb4d83b Add exclamation marks to comment indicating potential issue 2025-05-25 06:51:47 +02:00
a576aadbc2 Comment out linesChanged and llmCandidates initialization in createTray 2025-05-25 06:51:47 +02:00
57c6ea2f4b Update lastHeadHash for existing folder 2025-05-25 06:51:47 +02:00
257bb9a9c6 auto-git:
[change] main.js
2025-05-25 06:42:43 +02:00
bd8bca0cee Remove unused code for adding and removing folders in main.js 2025-05-25 06:40:20 +02:00
0b95e5240c Refactor folder addition logic and update IPC handlers 2025-05-25 06:39:20 +02:00
a3c0b5e5b0 Add new function to add folder by path 2025-05-25 06:39:20 +02:00
f2efbb23fa Add drag and drop functionality for folders in renderer.js 2025-05-25 06:33:52 +02:00
967e27d1b9 Refactor drag-and-drop functionality in main.js and renderer.js 2025-05-25 06:12:43 +02:00
4b9545d780 auto-git:
[change] main.js
2025-05-25 06:11:59 +02:00
3eb6fca935 Remove redundant code and simplify folder addition logic in main.js 2025-05-25 06:11:35 +02:00
fbfde5d17e Fix code formatting and minor adjustments in main.js 2025-05-25 06:10:55 +02:00
57ce95541a Refactor folder addition logic and add IPC handlers for adding folders 2025-05-25 06:09:11 +02:00
2d13ed9a25 Add function to initialize Git repository 2025-05-25 06:09:11 +02:00
950640152d auto-git:
[change] main.js
2025-05-25 06:05:08 +02:00
fa5fc95356 Enable monitoring toggle only if folder does not need relocation 2025-05-25 06:04:37 +02:00
6d4e3fbf36 Refactor and enhance folder monitoring logic in main.js 2025-05-25 05:58:46 +02:00
ced0223d55 Update styling for relocation warning symbol in index.html 2025-05-25 05:43:38 +02:00
f8f4a21650 Add relocation warning and disable play/pause button if folder needs relocation 2025-05-25 05:43:11 +02:00
9f53c1e256 auto-git:
[change] renderer.js
2025-05-25 05:39:38 +02:00
205be92f54 auto-git:
[change] preload.js
2025-05-25 05:32:44 +02:00
562748952b Remove duplicate folder update event listener in renderer.js 2025-05-25 05:32:44 +02:00
40ca66b930 Remove redundant renderSidebar call in renderer.js 2025-05-25 05:32:44 +02:00
d4e3284cfd Call renderSidebar on folder update in renderer.js 2025-05-25 05:32:44 +02:00
5f54c9a04a Add folder updated event listener in preload.js 2025-05-25 05:32:44 +02:00
3166c4279c auto-git:
[change] main.js
2025-05-25 05:22:58 +02:00
171c9fbf10 Add check for relocation and existence before commit 2025-05-25 05:22:06 +02:00
2d5abf1feb Add check for relocation and existence before snapshot 2025-05-25 05:22:06 +02:00
b84d469960 Fix return value when folder needs relocation or does not exist during checkout 2025-05-25 05:22:06 +02:00
4c1f4f347e Add check for relocation and existence before checkout 2025-05-25 05:22:06 +02:00
95d359a903 Return null instead of undefined when folder needs relocation or does not exist during revert 2025-05-25 05:20:24 +02:00
3859516fe6 Add check for relocation or non-existent folder before performing diff 2025-05-25 05:20:24 +02:00
9ab8a66cb9 Fix return value when folder needs relocation or does not exist 2025-05-25 05:20:24 +02:00
9cc35b38c7 Add check for relocation or non-existent folder before removing .git directory 2025-05-25 05:20:24 +02:00
aaacaa9e2d Refactor 'has-diffs' handler to check for relocation and file existence 2025-05-25 05:18:00 +02:00
2bd9ecb4b7 Revert unnecessary comment in renderer.js 2025-05-25 05:18:00 +02:00
763817a6ee Add comment to clarify hash comparison logic 2025-05-25 05:18:00 +02:00
337aa63ec3 Refactor folder relocation logic by adding hash verification step 2025-05-25 05:11:26 +02:00
fd4460a665 Implement folder relocation logic with Git validation 2025-05-25 05:08:49 +02:00
0253a5c9d6 Add function to check if repo has a specific commit 2025-05-25 05:08:48 +02:00
d4c83d8df5 Add IPC handler to check if commit exists in any branch of the repository 2025-05-25 05:07:21 +02:00
8d7f1c41d6 Add lastHeadHash to folder object 2025-05-25 05:07:21 +02:00
e51694ed40 Add lastHeadHash to folder object when initializing git repo 2025-05-25 05:06:27 +02:00
884778b7ed Expose 'pick-folder' method in main.js using IPC 2025-05-25 04:51:23 +02:00
c893170cd1 Fix comment in preload.js regarding folder picker exposure 2025-05-25 04:51:23 +02:00
819b1789a2 Add new methods to preload.js for Git repository operations 2025-05-25 04:51:23 +02:00
f11ea9ebb5 Add folder relocation logic in renderer.js 2025-05-25 04:50:33 +02:00
e4dcd636a6 Add IPC handlers for git repository checks and folder relocation 2025-05-25 04:49:20 +02:00
3a98d7c78f auto-git:
[change] renderer.js
2025-05-25 04:35:19 +02:00
8bcfd7a9e6 auto-git:
[change] main.js
2025-05-25 04:34:05 +02:00
c5fa94d5be auto-git:
[change] renderer.js
2025-05-25 04:29:09 +02:00
823f9151bf auto-git:
[change] main.js
2025-05-25 04:28:59 +02:00
f9f9c51b9d auto-git:
[change] main.js
2025-05-25 04:23:52 +02:00
4763b66f6c auto-git:
[change] main.js
2025-05-25 04:05:26 +02:00
76c35efd31 Refactor folder location check and event handling in main.js 2025-05-25 03:57:23 +02:00
47ed7c2133 auto-git:
[change] main.js
2025-05-25 03:41:33 +02:00
345e040467 auto-git:
[change] main.js
2025-05-25 03:32:19 +02:00
81e81002b0 auto-git:
[change] renderer.js
2025-05-25 03:30:26 +02:00
1ef1ab772c Remove unnecessary position property from index.html 2025-05-25 03:25:57 +02:00
77066e90ca auto-git:
[change] index.html
2025-05-25 03:25:57 +02:00
baa1f0c779 Refactor folder relocation logic in renderer.js 2025-05-25 03:25:57 +02:00
687e6fe3dc Add styles for needs-relocation and warning-icon classes in settings.html 2025-05-25 03:13:56 +02:00
49e40a72e3 Update selector for folder location updates in renderer.js 2025-05-25 03:13:43 +02:00
7748282bc4 Add data-folder-id attribute to folder list items in renderer.js 2025-05-25 03:13:43 +02:00
d1d6f7ae98 Add empty lines in renderer.js 2025-05-25 03:13:43 +02:00
c8b8ac8dda Add visual indicator for relocated folders and update commit logic to handle missing folders 2025-05-25 03:01:50 +02:00
d78576056c auto-git:
[change] main.js
2025-05-25 01:46:11 +02:00
1dcf3b645b auto-git:
[change] main.js
2025-05-25 01:45:22 +02:00
dceb38b133 Refactor model selection logic and improve HTML structure in settings.html 2025-05-25 01:39:17 +02:00
d8f0be6268 Remove unused close button and alert in settings.html 2025-05-25 01:39:17 +02:00
b47728d601 auto-git:
[change] settings.html
2025-05-25 01:38:09 +02:00
162f759113 auto-git:
[change] settings.html
2025-05-25 01:37:26 +02:00
2ffe1d25d2 Reorganize and update checkbox labels in settings.html 2025-05-25 01:37:14 +02:00
08f3afea17 auto-git:
[change] settings.html
2025-05-25 01:36:24 +02:00
94bc1ac02f Comment out rollback function in settings.html 2025-05-25 01:36:04 +02:00
ab1ea4b6e7 Remove duplicate alert in settings.html 2025-05-25 01:36:04 +02:00
348b529c2f Add alert in settings.html 2025-05-25 01:36:04 +02:00
3b2c60abd7 Restore and reposition alert in settings.html 2025-05-25 01:34:10 +02:00
b0514db4df Re-add missing alert in settings.html 2025-05-25 01:34:10 +02:00
737bdb210c Remove redundant alert in settings.html 2025-05-25 01:34:10 +02:00
819c6ff5bd Fix duplicate alert in settings.html 2025-05-25 01:34:10 +02:00
e0f63b04e0 auto-git:
[change] settings.html
2025-05-25 01:33:21 +02:00
b97ff6e981 Refactor settings.html to improve layout and functionality 2025-05-25 01:32:44 +02:00
b79e584ac2 auto-git:
[change] settings.html
2025-05-25 01:32:22 +02:00
ffb197404a auto-git:
[change] settings.html
2025-05-25 01:32:06 +02:00
c0a529d37b auto-git:
[change] settings.html
2025-05-25 01:31:52 +02:00
70179f6220 auto-git:
[change] settings.html
2025-05-25 01:31:14 +02:00
4d3c853231 auto-git:
[change] settings.html
2025-05-25 01:30:34 +02:00
61337930d7 auto-git:
[change] main.js
2025-05-25 01:22:15 +02:00
c5f975db8c Update styling and layout in settings.html 2025-05-25 01:21:09 +02:00
a832d83674 Refactor commit message generation options in settings.html 2025-05-25 01:20:58 +02:00
551ebee2cb Add missing background property and correct indentation in settings.html 2025-05-25 01:20:58 +02:00
c1ae1e81b9 Fix typo in background color variable name in settings.html 2025-05-25 01:20:58 +02:00
b7a1962413 Update background color in settings.html 2025-05-25 01:20:58 +02:00
ccca8a32cb Set width of dialog to full container in settings.html 2025-05-25 01:16:12 +02:00
2e32537324 Toggle color property between dialog and body in settings.html 2025-05-25 01:16:12 +02:00
3a89708a96 Revert button padding change to original size in settings.html 2025-05-25 01:16:12 +02:00
65f07e3ff2 Reduce padding for smaller buttons in settings.html 2025-05-25 01:16:12 +02:00
764a2c8720 Adjust padding for buttons in settings.html 2025-05-25 01:16:12 +02:00
11e96eb25c Reduce padding of settings container 2025-05-25 01:13:29 +02:00
eb306f3708 Reduce min-width of input/number select elements 2025-05-25 01:13:29 +02:00
82419c6566 Add margin-right to button container 2025-05-25 01:13:29 +02:00
325e947f17 Adjust min-width of input/number select elements 2025-05-25 01:13:29 +02:00
f0add60077 Remove unused border color from focused input/select elements 2025-05-25 01:13:29 +02:00
123c2c5e36 Update border color for focused input/select elements 2025-05-25 01:13:29 +02:00
a248d7151e Adjust input and select element styles in settings.html 2025-05-25 01:10:42 +02:00
d6de3494f5 Remove unnecessary line break in settings.html 2025-05-25 01:10:42 +02:00
dfb6db5b4a Wrap commit message and README model selectors in a div for better layout 2025-05-25 01:10:13 +02:00
ae96c89a66 Change focus border color in settings.html 2025-05-25 01:08:56 +02:00
127f644835 Update button styling in settings.html 2025-05-25 01:08:56 +02:00
82d176ea1a Add flex layout and button styling to settings.html 2025-05-25 01:05:36 +02:00
4d5943325e Remove entire .action-btn styling block 2025-05-25 01:03:49 +02:00
428468c84d Remove unnecessary border-radius from .action-btn 2025-05-25 01:03:49 +02:00
24b3b558df Add styling for action buttons in settings.html 2025-05-25 01:02:57 +02:00
e8ea230e88 Simplify and consolidate styling for buttons in settings.html 2025-05-25 01:02:36 +02:00
2ed263c368 Adjust spacing in settings.html 2025-05-25 01:02:36 +02:00
70ac7638c7 Refactor button styles and classes in settings.html 2025-05-25 01:01:50 +02:00
99118b4eef Update button styles in settings.html for better consistency and visual appeal 2025-05-25 00:59:45 +02:00
26803ba029 Remove sky-mode specific styles from settings.html 2025-05-25 00:59:45 +02:00
4fb377892d auto-git:
[change] settings.html
2025-05-25 00:57:16 +02:00
77bad8ae94 auto-git:
[change] settings.html
2025-05-25 00:56:41 +02:00
6ada1ff295 auto-git:
[change] settings.html
2025-05-25 00:54:46 +02:00
0e8857bbbc auto-git:
[change] settings.html
2025-05-25 00:54:35 +02:00
f5023acfb8 auto-git:
[change] settings.html
2025-05-25 00:52:53 +02:00
83a88dd619 Update settings.html to include SVG icons for buttons 2025-05-25 00:52:40 +02:00
8ba7ab159b auto-git:
[change] settings.html
2025-05-25 00:50:32 +02:00
93d8a88e7f auto-git:
[change] settings.html
2025-05-25 00:50:22 +02:00
7d5e330009 auto-git:
[change] settings.html
2025-05-25 00:50:15 +02:00
03e75e9b7e auto-git:
[change] settings.html
2025-05-25 00:49:50 +02:00
98123a307d auto-git:
[change] settings.html
2025-05-25 00:47:59 +02:00
bef17c8b37 Add gap to input elements in settings.html 2025-05-25 00:47:42 +02:00
e43bfb8471 Remove gap from checkbox in settings.html 2025-05-25 00:47:42 +02:00
e93bde7ccb Add gap to checkbox in settings.html 2025-05-25 00:47:42 +02:00
aae45d8644 Remove close button styles from settings.html 2025-05-25 00:47:42 +02:00
c7eeb48398 auto-git:
[change] settings.html
2025-05-25 00:45:04 +02:00
3e62173553 auto-git:
[change] settings.html
2025-05-25 00:44:35 +02:00
b9c4edcbd3 auto-git:
[change] settings.html
2025-05-25 00:44:14 +02:00
ab4656a044 auto-git:
[change] settings.html
2025-05-25 00:44:03 +02:00
70a159ff0c auto-git:
[change] settings.html
2025-05-25 00:43:18 +02:00
d240778f15 auto-git:
[change] settings.html
2025-05-25 00:42:57 +02:00
6f6611764b auto-git:
[change] settings.html
2025-05-25 00:38:23 +02:00
168628c336 auto-git:
[change] settings.html
2025-05-25 00:37:25 +02:00
86402dbfa0 auto-git:
[change] settings.html
2025-05-25 00:36:48 +02:00
cb9dd491a6 auto-git:
[change] settings.html
2025-05-25 00:35:40 +02:00
9548b73166 auto-git:
[change] settings.html
2025-05-25 00:29:00 +02:00
a4925c5e5f auto-git:
[change] settings.html
2025-05-25 00:28:57 +02:00
984af1e6fc Refactor settings.html to add CSS variables for theme modes 2025-05-25 00:28:26 +02:00
4db387e9bc Add title and content list sections to index.html 2025-05-25 00:28:26 +02:00
96488d5141 Update settings.html to remove night class 2025-05-25 00:28:26 +02:00
609d9f0da5 auto-git:
[change] settings.html
2025-05-25 00:26:50 +02:00
bef8a84543 auto-git:
[change] settings.html
2025-05-25 00:25:28 +02:00
2535369553 auto-git:
[change] settings.html
2025-05-25 00:21:28 +02:00
365c5e15b7 auto-git:
[change] settings.html
2025-05-25 00:21:00 +02:00
bb0407947d auto-git:
[change] settings.html
2025-05-25 00:20:57 +02:00
cfdc130b0d auto-git:
[change] settings.html
2025-05-25 00:20:18 +02:00
fb26a9265d Update styling and structure of settings.html 2025-05-25 00:19:53 +02:00
4730f7ca07 auto-git:
[change] settings.html
2025-05-25 00:19:33 +02:00
725816b225 auto-git:
[change] settings.html
2025-05-25 00:18:40 +02:00
3473b9ea6e auto-git:
[change] settings.html
2025-05-25 00:18:26 +02:00
9944556a64 auto-git:
[change] settings.html
2025-05-25 00:18:06 +02:00
235d210ce5 auto-git:
[change] settings.html
2025-05-25 00:17:52 +02:00
a65dc1d288 auto-git:
[change] settings.html
2025-05-25 00:17:43 +02:00
53b3a05dc9 auto-git:
[change] settings.html
2025-05-25 00:17:34 +02:00
8f897ae4df auto-git:
[change] settings.html
2025-05-25 00:16:54 +02:00
c7b72fc63f auto-git:
[change] settings.html
2025-05-25 00:16:42 +02:00
fe30f44b1a auto-git:
[change] settings.html
2025-05-25 00:15:58 +02:00
6abff6e706 auto-git:
[change] settings.html
2025-05-25 00:15:27 +02:00
3bd35d21fe auto-git:
[change] settings.html
2025-05-25 00:15:09 +02:00
ec398915bd auto-git:
[change] settings.html
2025-05-25 00:14:54 +02:00
a5c7ff83cd auto-git:
[change] settings.html
2025-05-25 00:14:32 +02:00
7d852a5fa9 auto-git:
[change] settings.html
2025-05-25 00:14:06 +02:00
3aa2e9b240 auto-git:
[change] settings.html
2025-05-25 00:13:58 +02:00
4c15a0282a auto-git:
[change] settings.html
2025-05-25 00:13:50 +02:00
83c92c51ff auto-git:
[change] settings.html
2025-05-25 00:13:21 +02:00
e31210d216 Clean up unused CSS in settings.html 2025-05-25 00:12:31 +02:00
4d21ad6a87 Remove unnecessary class from settings.html 2025-05-25 00:12:31 +02:00
41db62c8cb auto-git:
[change] settings.html
2025-05-25 00:10:40 +02:00
54dd481ce0 auto-git:
[change] settings.html
2025-05-25 00:09:55 +02:00
edfd6a7508 auto-git:
[change] settings.html
2025-05-25 00:07:27 +02:00
211b9f8777 auto-git:
[change] settings.html
2025-05-25 00:05:36 +02:00
4772b1a533 auto-git:
[change] preload.js
2025-05-25 00:05:11 +02:00
599a4bb79c auto-git:
[change] preload.js
2025-05-25 00:05:11 +02:00
2affdbdb5b Refactor autostart handling in main.js 2025-05-25 00:04:57 +02:00
863d5ab497 Refactor main.js to clean up on exit and open dev tools in detached mode 2025-05-25 00:03:44 +02:00
84e133ac10 Refactor settings menu and add autostart/close-to-tray options 2025-05-25 00:02:11 +02:00
d72f661548 auto-git:
[change] main.js
2025-05-24 23:52:46 +02:00
9e2dfdd23f auto-git:
[change] main.js
2025-05-24 23:52:41 +02:00
5d6976b061 auto-git:
[change] main.js
2025-05-24 23:52:31 +02:00
b7f47a2d20 Refactor code formatting in main.js 2025-05-24 23:52:11 +02:00
1f44370949 Refactor tray menu options for monitoring actions 2025-05-24 23:51:46 +02:00
1d4307deb2 Update renderer.js to refresh UI on folder changes 2025-05-24 23:50:41 +02:00
aa7fcc297c auto-git:
[change] main.js
2025-05-24 22:31:40 +02:00
0c9a2452e3 Add tray icon functionality for Auto-Git application 2025-05-24 22:31:11 +02:00
0ca0e9df36 Resize tray icon in main.js 2025-05-24 22:29:56 +02:00
43f95084d6 Remove unused Tailwind CSS files 2025-05-24 22:05:32 +02:00
4089ad5943 auto-git:
[add] tailwind.css
2025-05-24 22:04:29 +02:00
76e53bb177 auto-git:
[add] tailwind.config.js
2025-05-24 22:04:14 +02:00
35c88ebc4e Add autoprefixer, postcss, and tailwindcss to devDependencies 2025-05-24 22:03:44 +02:00
1dba713a65 auto-git:
[change] renderer.js
2025-05-24 22:00:38 +02:00
194e5266b2 Refactor renderer.js to use Electron API methods for tray events 2025-05-24 22:00:38 +02:00
338018e1cd Refactor preload.js to expose tray event listeners 2025-05-24 22:00:38 +02:00
114c5a7f2e auto-git:
[change] renderer.js
2025-05-24 21:58:40 +02:00
0bc31a9ec4 auto-git:
[change] preload.js
2025-05-24 21:54:14 +02:00
07d41b3d78 auto-git:
[change] renderer.js
2025-05-24 21:51:43 +02:00
2ff333d211 auto-git:
[change] main.js
2025-05-24 21:50:51 +02:00
bf21220988 auto-git:
[change] main.js
2025-05-24 21:46:40 +02:00
13d82878a0 auto-git:
[change] main.js
2025-05-24 21:46:32 +02:00
a21b28923f Update tray icon path and refactor tray menu construction 2025-05-24 21:42:57 +02:00
d91c87c470 Add Electron IPC event handlers for tray menu interactions 2025-05-24 21:39:36 +02:00
cf33222370 Refactor main.js to include tray functionality 2025-05-24 21:38:39 +02:00
653e74f843 Add tray icon 2025-05-24 21:38:39 +02:00
47f300b5cc Remove commented-out code from main.js 2025-05-24 21:31:45 +02:00
6ea985c377 Add autocommit test in main.js 2025-05-24 21:31:25 +02:00
72480d0eca auto-git:
[change] main.js
2025-05-24 21:28:02 +02:00
cb6b51c52f Update model prompts and simplify logic in main.js 2025-05-24 21:27:48 +02:00
220fa0eb54 Refactor commit message handling and add short hash support 2025-05-24 21:27:17 +02:00
09cd5bbdb5 auto-git:
[change] main.js
2025-05-24 21:15:36 +02:00
0139197429 auto-git:
[change] main.js
2025-05-24 21:12:08 +02:00
ee63928570 Remove setSkipPrompt function call from ok button click event listener in settings.html 2025-05-24 21:10:52 +02:00
061a8785be Add comments to setSkyMode function in settings.html 2025-05-24 21:10:52 +02:00
441ac67c9d Remove alert('OK gedrückt'); from settings.html 2025-05-24 21:10:52 +02:00
ea859d216c Remove commented-out code and refactor comments in main.js 2025-05-24 21:09:27 +02:00
980e4b8b69 Further add placeholder comments in main.js 2025-05-24 21:08:53 +02:00
d049746b73 Add placeholder comments in main.js 2025-05-24 21:08:53 +02:00
1e03822cd6 auto-git:
[change] main.js
2025-05-24 21:08:24 +02:00
125ce72a55 auto-git:
[change] settings.html
2025-05-24 21:04:50 +02:00
48955b7f29 auto-git:
[change] settings.html
2025-05-24 21:04:17 +02:00
c41964b940 auto-git:
[change] main.js
2025-05-24 21:03:31 +02:00
6d98dd602e Refactor and optimize settings.html styles 2025-05-24 21:02:02 +02:00
bc8b9f3ab4 Refactor and enhance settings.html with new styles and features 2025-05-24 20:58:01 +02:00
2347d477ae Remove threshold live save functionality in settings.html 2025-05-24 20:58:01 +02:00
dc0cda88f3 auto-git:
[change] preload.js
2025-05-24 20:49:49 +02:00
02b26d62ad auto-git:
[change] settings.html
2025-05-24 20:49:31 +02:00
84b6c0bfdf auto-git:
[change] settings.html
2025-05-24 20:49:18 +02:00
f3e3b40a3e auto-git:
[change] settings.html
2025-05-24 20:49:03 +02:00
a6fdbc5680 auto-git:
[change] preload.js
2025-05-24 20:48:48 +02:00
e761aea7e7 auto-git:
[change] settings.html
2025-05-24 20:47:57 +02:00
d517f6ba99 auto-git:
[change] settings.html
2025-05-24 20:47:47 +02:00
27230085df auto-git:
[change] settings.html
2025-05-24 20:47:36 +02:00
9984e514e0 auto-git:
[change] settings.html
2025-05-24 20:47:19 +02:00
abdebb6deb auto-git:
[change] settings.html
2025-05-24 20:47:15 +02:00
0d053e8379 auto-git:
[change] settings.html
2025-05-24 20:46:49 +02:00
354d7e0156 auto-git:
[change] settings.html
2025-05-24 20:46:44 +02:00
b4bdef0908 auto-git:
[change] settings.html
2025-05-24 20:46:31 +02:00
d495f553b3 auto-git:
[change] settings.html
2025-05-24 20:46:19 +02:00
9503164738 auto-git:
[change] settings.html
2025-05-24 20:46:06 +02:00
3a20d22b80 auto-git:
[change] main.js
 [change] preload.js
 [change] settings.html
2025-05-24 20:44:27 +02:00
0950bb3216 auto-git:
[change] main.js
2025-05-24 20:42:24 +02:00
c78c4268ca auto-git:
[change] main.js
2025-05-24 20:42:21 +02:00
8253b227f2 auto-git:
[change] main.js
2025-05-24 20:42:07 +02:00
bb8648f1c4 auto-git:
[change] settings.html
2025-05-24 20:40:55 +02:00
d5bdffda70 auto-git:
[change] settings.html
2025-05-24 20:40:29 +02:00
ed52ba94c6 auto-git:
[change] settings.html
2025-05-24 20:39:59 +02:00
abd7eed440 Save commit threshold and model selections in settings.html 2025-05-24 20:38:06 +02:00
21856d702f Add get/set handlers for commit and README models in main.js 2025-05-24 20:38:06 +02:00
850edb0460 Improve error handling and JSON parsing in ollama-list IPC handler, update settings.html 2025-05-24 20:38:06 +02:00
596907ab23 Refactor settings.html to handle Ollama CLI errors and improve model selection 2025-05-24 20:29:03 +02:00
0b28eecb3f Enhance error handling and model parsing in ollama-list IPC handler 2025-05-24 20:29:03 +02:00
8bd5471d73 Remove unnecessary blank lines and ensure newline at end of preload.js 2025-05-24 20:25:26 +02:00
754a4d4808 Restore original structure in preload.js 2025-05-24 20:25:26 +02:00
7c9ccd5485 Remove unnecessary blank lines in preload.js 2025-05-24 20:25:26 +02:00
0f2b5d5325 Clean up extra lines in preload.js 2025-05-24 20:25:26 +02:00
e000828313 Expose Ollama functions in preload.js 2025-05-24 20:25:26 +02:00
d42e3f4ba8 Move Ollama model selector in settings.html 2025-05-24 20:25:26 +02:00
77bb30337d Add Ollama model selection to settings.html 2025-05-24 20:25:26 +02:00
1eda35e334 Add Ollama list and pull handlers in main.js 2025-05-24 20:25:26 +02:00
b6b2d9af13 Remove comment in renderer.js 2025-05-24 20:25:26 +02:00
ef87c5bf57 Add comment in renderer.js 2025-05-24 20:25:26 +02:00
0e2b8dfa2b auto-git:
[change] renderer.js
2025-05-24 20:01:14 +02:00
edf314e964 auto-git:
[change] renderer.js
2025-05-24 19:56:15 +02:00
89d4e97c09 auto-git:
[change] renderer.js
2025-05-24 19:55:56 +02:00
20d7fdb7e3 auto-git:
[change] renderer.js
2025-05-24 19:55:20 +02:00
c638b4dfa9 auto-git:
[change] index.html
2025-05-24 19:54:22 +02:00
4cac7eba28 auto-git:
[change] index.html
2025-05-24 19:54:06 +02:00
a7a91af9a0 auto-git:
[change] settings.html
2025-05-24 19:52:21 +02:00
13599c95e2 auto-git:
[change] settings.html
2025-05-24 19:50:23 +02:00
779f921e49 auto-git:
[change] settings.html
2025-05-24 19:49:54 +02:00
33362613a5 auto-git:
[change] settings.html
2025-05-24 19:49:19 +02:00
0863bea921 auto-git:
[change] main.js
2025-05-24 19:44:31 +02:00
78afce38ae auto-git:
[change] main.js
2025-05-24 19:42:31 +02:00
9899c18c36 Document build script to avoid regressions 2025-05-24 19:34:10 +02:00
fe6f042bdc Revert configuration for consistency 2025-05-24 19:34:10 +02:00
699b7b0c31 Refactor test suite for better performance 2025-05-24 19:34:10 +02:00
edbf735d50 Add error handling to avoid regressions 2025-05-24 19:23:44 +02:00
ca8d1c837b Fix logging to avoid regressions 2025-05-24 19:23:29 +02:00
5a74d235ce Update test suite as per spec 2025-05-24 19:23:08 +02:00
a9b8e60f3c Revert error handling to fix typo 2025-05-24 19:23:04 +02:00
81a6756c01 Revert dependencies to improve readability 2025-05-24 19:23:04 +02:00
c67106b9c2 Fix error handling for better performance 2025-05-24 19:23:04 +02:00
06776628f1 Revert README for consistency 2025-05-24 19:19:22 +02:00
5333b08b4d auto-git:
[change] main.js
2025-05-24 15:13:51 +02:00
b013f6d5ce auto-git:
[change] main.js
2025-05-24 15:13:50 +02:00
3dd703cca9 auto-git:
[change] main.js
2025-05-24 15:13:48 +02:00
a5b15ba33f auto-git:
[change] main.js
2025-05-24 15:13:45 +02:00
162ef35de1 auto-git:
[change] main.js
2025-05-24 15:13:44 +02:00
f35f06d359 auto-git:
[change] main.js
2025-05-24 15:13:39 +02:00
99a603655e auto-git:
[change] main.js
2025-05-24 15:13:37 +02:00
b4c4cd3ce6 auto-git:
[change] main.js
2025-05-24 15:13:28 +02:00
22e4c2afee auto-git:
[change] main.js
2025-05-24 15:09:18 +02:00
c4629c3755 auto-git:
[change] main.js
2025-05-24 15:09:16 +02:00
b15d541bae auto-git:
[change] main.js
2025-05-24 15:09:13 +02:00
879c1603e2 auto-git:
[change] main.js
2025-05-24 15:09:11 +02:00
4923d4bc8a auto-git:
[change] main.js
2025-05-24 15:09:10 +02:00
1c67c1a3dd auto-git:
[change] main.js
2025-05-24 15:09:08 +02:00
b3e05bcc39 auto-git:
[change] main.js
2025-05-24 15:08:20 +02:00
89830b2e78 auto-git:
[change] main.js
2025-05-24 15:07:33 +02:00
d50e535913 auto-git:
[change] main.js
2025-05-24 15:07:29 +02:00
3e96ddca3a auto-git:
[change] main.js
2025-05-24 15:07:27 +02:00
5979b922e7 auto-git:
[change] main.js
2025-05-24 15:07:25 +02:00
fd370d81b8 auto-git:
[change] main.js
2025-05-24 15:07:23 +02:00
f9f4f0f22a auto-git:
[change] main.js
2025-05-24 15:07:21 +02:00
9db554760a auto-git:
[change] main.js
2025-05-24 15:07:19 +02:00
75e82b7558 auto-git:
[change] main.js
2025-05-24 15:06:29 +02:00
0cedc6bd56 auto-git:
[change] main.js
2025-05-24 15:06:19 +02:00
2a2f1523c1 auto-git:
[change] main.js
2025-05-24 15:06:18 +02:00
93fd9adb54 auto-git:
[change] main.js
2025-05-24 15:06:17 +02:00
4185cef43c auto-git:
[change] main.js
2025-05-24 15:06:09 +02:00
dcdbdc717e auto-git:
[change] main.js
2025-05-24 15:05:14 +02:00
5861cc2659 auto-git:
[change] main.js
2025-05-24 15:05:11 +02:00
40dcc00e3b auto-git:
[change] main.js
2025-05-24 15:05:10 +02:00
0e379c8485 auto-git:
[change] main.js
2025-05-24 15:05:07 +02:00
cd23e41001 auto-git:
[change] main.js
2025-05-24 15:05:05 +02:00
74b867a03b auto-git:
[change] main.js
2025-05-24 15:05:03 +02:00
f14d8a3d7e auto-git:
[change] main.js
2025-05-24 15:05:02 +02:00
4fe1a2278a auto-git:
[change] main.js
2025-05-24 15:04:55 +02:00
ffc259f5bf Add initial Electron setup and Auto-Git functionality 2025-05-24 15:04:41 +02:00
24b4a8e6f0 auto-git:
[change] main.js
2025-05-24 15:04:04 +02:00
cc96dd3d14 Removed main.js content 2025-05-24 15:03:40 +02:00
af08fcfcef Refactored folder monitoring logic and added intelligent commit functionality 2025-05-24 15:02:29 +02:00
d204ab1a54 auto-git:
[change] main.js
2025-05-24 15:00:39 +02:00
8702240615 auto-git:
[change] main.js
2025-05-24 14:59:29 +02:00
7ec70c6cfd auto-git:
[change] main.js
2025-05-24 14:59:05 +02:00
2257897092 auto-git:
[change] main.js
2025-05-24 14:57:19 +02:00
07258856e4 auto-git:
[change] main.js
2025-05-24 14:56:37 +02:00
7e2fecc032 auto-git:
[change] main.js
2025-05-24 14:53:06 +02:00
11e3dd1425 auto-git:
[change] main.js
2025-05-24 14:53:02 +02:00
f2dd1a039e auto-git:
[change] main.js
2025-05-24 14:52:59 +02:00
3572377dda auto-git:
[change] main.js
2025-05-24 14:52:58 +02:00
72f6d2b514 auto-git:
[change] main.js
2025-05-24 14:52:54 +02:00
43f25591ed auto-git:
[change] main.js
2025-05-24 14:52:52 +02:00
372aae08db auto-git:
[change] main.js
2025-05-24 14:52:47 +02:00
70bec1d806 auto-git:
[change] main.js
2025-05-24 14:52:45 +02:00
c4b2905823 Refactor and clean up IPC handlers for folder management and monitoring functionalities. 2025-05-24 14:51:29 +02:00
6801df61f9 auto-git:
[change] main.js
2025-05-24 14:50:18 +02:00
cc0748d9e4 auto-git:
[change] main.js
2025-05-24 14:50:03 +02:00
3c58583b29 auto-git:
[change] main.js
2025-05-24 14:49:35 +02:00
d0829f8c33 auto-git:
[change] main.js
2025-05-24 14:48:58 +02:00
6e1ee7efde auto-git:
[change] main.js
2025-05-24 14:48:38 +02:00
92d0de8205 auto-git:
[change] main.js
2025-05-24 14:48:14 +02:00
ca82c5ad1f auto-git:
[change] main.js
2025-05-24 14:33:14 +02:00
30d8171455 auto-git:
[change] main.js
2025-05-24 14:29:50 +02:00
62da5899de auto-git:
[change] main.js
2025-05-24 14:27:33 +02:00
074af00d8b auto-git:
[change] main.js
2025-05-24 14:25:17 +02:00
b3ba3d55ee auto-git:
[change] main.js
2025-05-24 14:24:17 +02:00
2448be3f33 auto-git:
[change] main.js
2025-05-24 14:22:32 +02:00
e71145e7a8 auto-git:
[change] main.js
2025-05-24 14:21:48 +02:00
760bbee6a2 auto-git:
[change] main.js
2025-05-24 14:21:19 +02:00
7cb578b406 auto-git:
[change] main.js
2025-05-24 14:19:06 +02:00
c6fc182198 auto-git:
[change] main.js
2025-05-24 14:18:35 +02:00
a7dfb2b0ea auto-git:
[change] main.js
2025-05-24 14:18:03 +02:00
0e8aec9713 auto-git:
[change] main.js
2025-05-24 14:16:52 +02:00
31b0b2b233 auto-git:
[change] main.js
2025-05-24 14:16:25 +02:00
c6ee27c50a auto-git:
[change] main.js
2025-05-24 14:16:15 +02:00
13aaa35a31 auto-git:
[change] main.js
2025-05-24 14:15:31 +02:00
8930745fde auto-git:
[change] main.js
2025-05-24 14:06:33 +02:00
5768b5f959 auto-git:
[change] main.js
2025-05-24 14:05:33 +02:00
60147d16da Add LLM commit message rewrite functionality and update package.json 2025-05-24 11:29:16 +02:00
f14b387627 auto-git:
[change] main.js
2025-05-24 09:36:35 +02:00
ecd043d94c auto-git:
[change] index.html
 [change] main.js
 [change] preload.js
 [change] renderer.js
 [change] settings.html
2025-05-24 08:46:46 +02:00
d6eacb4541 auto-git:
[change] index.html
2025-05-24 06:32:08 +02:00
db000ea5f7 auto-git:
[change] index.html
2025-05-24 06:31:50 +02:00
f8e1944cf8 auto-git:
[change] index.html
2025-05-24 06:31:44 +02:00
bf3297a264 auto-git:
[change] index.html
2025-05-24 06:31:31 +02:00
add869d0e3 auto-git:
[change] index.html
2025-05-24 06:31:25 +02:00
9ae4f066ad auto-git:
[change] index.html
2025-05-24 06:31:13 +02:00
a6f9c176c6 auto-git:
[change] index.html
2025-05-24 06:30:45 +02:00
fb84cd681f auto-git:
[change] renderer.js
2025-05-24 06:29:44 +02:00
4d264fa4f3 auto-git:
[change] renderer.js
2025-05-24 06:28:51 +02:00
2e8e0799a9 auto-git:
[change] renderer.js
2025-05-24 06:28:36 +02:00
b81106a32c auto-git:
[change] renderer.js
2025-05-24 06:28:15 +02:00
d5ec3dcf22 auto-git:
[change] renderer.js
2025-05-24 06:27:36 +02:00
15ade6fbed auto-git:
[change] renderer.js
2025-05-24 06:27:11 +02:00
eb3c18d475 auto-git:
[change] renderer.js
2025-05-24 06:26:50 +02:00
70ea4ba2d7 auto-git:
[change] renderer.js
2025-05-24 06:26:42 +02:00
b289f2f4f9 auto-git:
[change] renderer.js
2025-05-24 06:26:37 +02:00
820bf92eca auto-git:
[change] renderer.js
2025-05-24 06:26:25 +02:00
06e95185ee auto-git:
[change] renderer.js
2025-05-24 06:26:02 +02:00
5e03416752 auto-git:
[change] index.html
2025-05-24 06:17:26 +02:00
6192861a4a auto-git:
[change] main.js
2025-05-24 06:15:10 +02:00
eb2b7e0bf3 auto-git:
[change] renderer.js
2025-05-24 06:14:50 +02:00
bd4fc3aa62 auto-git:
[change] index.html
2025-05-24 06:06:48 +02:00
0efa05f546 auto-git:
[change] renderer.js
2025-05-24 06:06:10 +02:00
abc1ba77b3 auto-git:
[change] main.js
 [change] preload.js
 [change] renderer.js
2025-05-24 06:05:52 +02:00
18ba00205d auto-git:
[change] settings.html
2025-05-24 05:50:40 +02:00
e5add84869 auto-git:
[change] settings.html
2025-05-24 05:50:37 +02:00
7f0f73fade auto-git:
[change] settings.html
2025-05-24 05:50:18 +02:00
aee6eb5e70 auto-git:
[change] index.html
2025-05-24 05:48:56 +02:00
15a0b705a0 auto-git:
[change] index.html
2025-05-24 05:48:48 +02:00
2bd2fdf5ac auto-git:
[change] index.html
2025-05-24 05:47:37 +02:00
a40665a264 auto-git:
[change] main.js
2025-05-24 05:43:23 +02:00
42077ef949 auto-git:
[change] main.js
2025-05-24 05:40:49 +02:00
9f15da7f24 auto-git:
[change] main.js
2025-05-24 00:00:06 +02:00
cb3f35bd21 auto-git:
[change] main.js
2025-05-23 23:59:47 +02:00
4c506aab34 auto-git:
[unlink] README.md
2025-05-23 23:58:00 +02:00
02f7c16935 auto-git:
[change] renderer.js
2025-05-23 23:53:03 +02:00
378f286758 auto-git:
[change] renderer.js
2025-05-23 23:49:11 +02:00
2abd177390 auto-git:
[change] renderer.js
2025-05-23 23:49:01 +02:00
1e844a56e5 auto-git:
[change] renderer.js
2025-05-23 23:48:26 +02:00
a0546beef3 auto-git:
[change] renderer.js
2025-05-23 23:48:15 +02:00
29cc0fcc1a auto-git:
[change] renderer.js
2025-05-23 23:48:13 +02:00
c46175c81a auto-git:
[change] renderer.js
2025-05-23 23:48:08 +02:00
487aa49e60 auto-git:
[change] renderer.js
2025-05-23 23:47:57 +02:00
80ae948e54 auto-git:
[change] renderer.js
2025-05-23 23:47:44 +02:00
c3e8d99171 auto-git:
[change] renderer.js
2025-05-23 23:47:30 +02:00
0d219183ad auto-git:
[change] renderer.js
2025-05-23 23:46:38 +02:00
04a802d47b auto-git:
[change] renderer.js
2025-05-23 23:44:45 +02:00
60466877f6 auto-git:
[change] renderer.js
2025-05-23 23:44:05 +02:00
e7316d6e11 auto-git:
[change] renderer.js
2025-05-23 23:43:59 +02:00
05a4c7b0bd auto-git:
[change] renderer.js
2025-05-23 23:40:10 +02:00
2d7c08ba5a auto-git:
[change] renderer.js
2025-05-23 23:38:57 +02:00
7a4e945d72 auto-git:
[change] renderer.js
2025-05-23 23:38:44 +02:00
fdbd3d08d3 auto-git:
[change] renderer.js
2025-05-23 23:38:37 +02:00
f5693fb8de auto-git:
[change] renderer.js
2025-05-23 23:38:15 +02:00
9c39cbd612 auto-git:
[change] main.js
2025-05-23 23:34:26 +02:00
479c2e1457 auto-git:
[change] main.js
2025-05-23 23:34:06 +02:00
d69b17a76d auto-git:
[change] main.js
2025-05-23 23:33:55 +02:00
6615e13c9b auto-git:
[change] main.js
2025-05-23 23:32:47 +02:00
79ac51f8ff auto-git:
[change] main.js
2025-05-23 23:29:11 +02:00
07b97d3bac auto-git:
[change] main.js
2025-05-23 23:29:03 +02:00
c3a3a74962 auto-git:
[change] main.js
2025-05-23 23:23:49 +02:00
99a12afc43 auto-git:
[change] main.js
2025-05-23 23:23:34 +02:00
02f418753c auto-git:
[change] main.js
2025-05-23 23:23:21 +02:00
55eca1dbaf auto-git:
[change] main.js
2025-05-23 23:23:10 +02:00
09f09ad3da auto-git:
[change] main.js
2025-05-23 23:20:44 +02:00
ddf97f2b6b auto-git:
[change] main.js
2025-05-23 23:20:22 +02:00
18585d4858 auto-git:
[change] main.js
2025-05-23 23:15:04 +02:00
566070caa1 auto-git:
[change] main.js
2025-05-23 23:14:54 +02:00
74645537e6 auto-git:
[change] main.js
2025-05-23 23:14:23 +02:00
6becab39fa auto-git:
[change] main.js
2025-05-23 23:14:21 +02:00
59bcd94605 [auto]
[change] main.js
2025-05-23 23:14:14 +02:00
790ceb3386 [auto]
[change] main.js
2025-05-23 23:14:12 +02:00
76da58bd21 [auto]
[unlink] animeCat Kopie 2.js
 [unlink] animeCat Kopie.js
2025-05-23 23:13:18 +02:00
bc3b12850c [auto]
[change] main.js
2025-05-23 23:13:02 +02:00
60c6da953f [auto]
[add] animeCat Kopie 2.js
2025-05-23 23:12:45 +02:00
66a89dee68 [auto]
[add] animeCat Kopie.js
2025-05-23 23:12:39 +02:00
1c4423a0b6 [auto]
[change] main.js
2025-05-23 23:12:31 +02:00
53fe412618 [auto] initial monitor:
[change] main.js
2025-05-23 23:12:12 +02:00
cb87dd71ff [auto]
[change] main.js
2025-05-23 23:12:04 +02:00
d1997624f6 [auto]
[change] main.js
2025-05-23 23:12:00 +02:00
bdbf3ee562 [change] main.js 2025-05-23 23:11:51 +02:00
f6110a802e [unlink] test.js 2025-05-23 23:05:24 +02:00
35c192a1e9 add test.js
unlink animeCat.js
2025-05-23 23:05:16 +02:00
25e9be5219 [change] main.js 2025-05-23 23:01:12 +02:00
21014fad4f [change] main.js 2025-05-23 23:00:56 +02:00
3a9b0a6a6d [change] main.js 2025-05-23 23:00:53 +02:00
f20e0d2010 [auto] change main.js 2025-05-23 23:00:45 +02:00
c5e6a6d299 [auto] unlink schlischla.js 2025-05-23 22:59:33 +02:00
b510b3cfcd [auto] [add] schlischla.js
[delete] animeCat.js
2025-05-23 22:59:03 +02:00
9c67cafd53 [auto] unlink schlischla.js 2025-05-23 22:58:43 +02:00
cea6c2bfc5 [auto] unlink animeCat.js 2025-05-23 22:58:34 +02:00
af9b5655b9 [auto] change main.js 2025-05-23 22:58:22 +02:00
dcee3094a1 [auto] change main.js 2025-05-23 22:58:17 +02:00
7fd2d4effd [auto] change main.js 2025-05-23 22:58:09 +02:00
b2b164ca46 [auto] unlink animeCat Kopie.js 2025-05-23 22:57:58 +02:00
14b2746754 [auto] add animeCat Kopie.js 2025-05-23 22:57:53 +02:00
698f5585e5 [auto] change main.js 2025-05-23 22:57:48 +02:00
14ece8580b [auto] change main.js 2025-05-23 22:57:35 +02:00
85b9cfe067 [auto] change main.js 2025-05-23 22:57:27 +02:00
8ebda93701 [auto] - [modify] main.js 2025-05-23 22:56:01 +02:00
8208b5e095 [auto] change main.js 2025-05-23 22:55:48 +02:00
3c9d7f82b9 [auto] initial monitor:
- [modify] main.js
2025-05-23 22:55:26 +02:00
464a153b48 [auto] change main.js 2025-05-23 22:55:16 +02:00
db136fcd5e [auto] change main.js 2025-05-23 22:55:05 +02:00
cb0e6267cb [auto] change main.js 2025-05-23 22:52:09 +02:00
7ae3ce111b [auto] startup 2025-05-23 22:52:05 +02:00
89cebfe37f [auto] change main.js 2025-05-23 22:51:57 +02:00
8f5a9860a4 [auto] change main.js 2025-05-23 22:50:08 +02:00
972c7365bb [auto] startup 2025-05-23 22:49:53 +02:00
550e032aba [auto] change main.js 2025-05-23 22:49:42 +02:00
d9e51d9821 [auto] change main.js 2025-05-23 22:48:32 +02:00
b9cb27f8a4 [auto] initial commit upon monitoring start 2025-05-23 22:47:36 +02:00
3634920fde [auto] change main.js 2025-05-23 22:47:20 +02:00
4806ec0b69 [auto] change main.js 2025-05-23 22:45:35 +02:00
64e23d0029 [auto] initial commit upon monitoring start 2025-05-23 22:45:25 +02:00
f448132521 [auto] change main.js 2025-05-23 22:44:47 +02:00
b41740568b test 2025-05-23 22:42:01 +02:00
18 changed files with 3817 additions and 541 deletions

15
.gitignore vendored
View File

@@ -1,3 +1,16 @@
node_modules
package-lock.json
dist
dist.DS_Store
.git
.gitignore
.DS_Store
*.iml
yarn.lock
*.lock
Makefile
*.exe
tsconfig.tsbuildinfo
*.dll
*.pdb
*.py[cod]
*.dylib

View File

@@ -1 +1,79 @@
# Projekt in auto-git-gui-initial
# auto-git-gui
**Author:** Unknown
> ⚠️ **This README.md has been automatically generated using AI and might contain hallucinations or inaccuracies. Please proceed with caution!**
# Repo Monitor
## Description
Repo Monitor is a desktop application designed to help developers keep track of their Git repositories. It provides features such as monitoring repository activity, taking snapshots of commits, and managing multiple repositories efficiently.
## Features
- **Repository Monitoring**: Automatically monitors selected Git repositories for changes.
- **Snapshot Commits**: Save the state of a commit to a file for later reference.
- **Checkout Commits**: Switch between different commits in your repository.
- **Commit Diff Viewer**: View differences between commits directly within the application.
- **Multiple Repositories**: Manage and switch between multiple Git repositories easily.
- **Tray Integration**: Access quick actions via system tray menu.
- **Cat Assistant**: An interactive cat assistant that provides feedback based on commit activity.
## Installation
1. Download the latest release from the [Releases](https://github.com/yourusername/repo-monitor/releases) page.
2. Extract the downloaded archive.
3. Run the application executable (`RepoMonitor.exe` for Windows, `RepoMonitor.app` for macOS, or `RepoMonitor` for Linux).
## Usage
1. **Add a Repository**: Click the "Add Folder" button to add a Git repository to be monitored.
2. **Select a Repository**: Click on a repository in the sidebar to view its commits.
3. **View Commits**: Navigate through commits using pagination and view commit details, including diffs.
4. **Take Snapshots**: Use the snapshot button to save the state of a specific commit.
5. **Checkout Commits**: Switch to a different commit by clicking the checkout button.
## Contributing
Contributions are welcome! Please read the [CONTRIBUTING.md](CONTRIBUTING.md) file for guidelines on how to contribute to the project.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Contact
For any questions or support, please contact us at [support@repomonitor.com](mailto:support@repomonitor.com).
---
**Repo Monitor**
*Effortlessly manage your Git repositories.*
![Cat Assistant](assets/cat/assistant.png)
---
MIT License
Copyright (c) 2023 Your Name
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,5 +1,4 @@
// animeCat.js
export class AnimeCat {
window.AnimeCat = class AnimeCat {
/**
* @param {HTMLElement} container
* @param {Object} [options]
@@ -9,76 +8,259 @@ export class AnimeCat {
this.images = Object.assign({
default: 'default.png',
eyesClosed: 'eyes_closed.png',
mouthOpen: 'mouth_open.png'
blink: 'blink.png',
mouthOpen: 'mouth_open.png',
joy: 'joy.png',
mischievous: 'mischievous.png'
}, options.images);
this.blinkMin = options.blinkMin ?? 5000;
this.blinkMax = options.blinkMax ?? 15000;
this.blinkDuration = options.blinkDuration?? 175;
this.talkInterval = options.talkInterval ?? 300;
this.blinkMin = options.blinkMin ?? 5000;
this.blinkMax = options.blinkMax ?? 15000;
this.blinkDuration = options.blinkDuration ?? 175;
this.talkInterval = options.talkInterval ?? 300;
this._consolationCount = 0;
this._isSpeaking = false;
this._blinkTimeout = null;
this._talkIntervalId = null;
this._speechTimeout = null;
this._mouthOpen = false;
this._pettingActive = false;
this._createElements();
this._bindMouseHold();
this._startBlinking();
this._startGlowWobble();
}
_createElements() {
// Outer Wrapper für Flex-Layout
this.wrapper = document.createElement('div');
this.wrapper.style.position = 'relative';
this.wrapper.style.display = 'inline-block';
Object.assign(this.wrapper.style, {
position: 'relative',
display: 'flex',
flexDirection: 'row',
alignItems: 'flex-end',
minHeight: '80px',
minWidth: '180px',
zIndex: 1
});
// cat image
// Innerer Container für Glow + Katze (Stack!)
this.catContainer = document.createElement('div');
Object.assign(this.catContainer.style, {
position: 'relative',
width: '90px',
height: '70px',
minWidth: '90px',
minHeight: '70px',
zIndex: 2
});
// Glow (hinter der Katze)
this.glow = document.createElement('div');
this.glow.id = 'cat-glow';
Object.assign(this.glow.style, {
position: 'absolute',
left: '40%',
top: '73%',
transform: 'translate(-50%, -50%)',
borderRadius: '50%',
width: '70px', // ODER: Teste 54, 70, 80 – wie es dir am besten gefällt!
height: '52px',
pointerEvents: 'none',
zIndex: 1,
filter: 'blur(4px)', // ruhig auch 14px für weichen Rand!
opacity: '0.85', // Wieviel du willst!
transition: 'background 0.4s, opacity 0.3s'
});
this.catContainer.appendChild(this.glow);
// Cat image (über dem Glow, mittig im catContainer)
this.img = document.createElement('img');
this.img.src = this.images.default;
// disable drag & selection
Object.assign(this.img.style, {
position: 'absolute',
left: '40%',
top: '66%',
transform: 'translate(-50%, -50%)',
width: '62px',
height: '50px',
zIndex: 2,
userSelect: 'none',
webkitUserSelect: 'none',
MozUserSelect: 'none',
msUserSelect: 'none',
webkitUserDrag: 'none',
pointerEvents: 'auto'
});
this.img.draggable = false;
this.img.style.userSelect = 'none';
this.img.style.webkitUserSelect = 'none';
this.img.style.MozUserSelect = 'none';
this.img.style.msUserSelect = 'none';
// some browsers need this to stop the default drag ghost
this.img.style.webkitUserDrag = 'none';
this.catContainer.appendChild(this.img);
this.wrapper.appendChild(this.img);
// speech bubble
// Sprechblase (direkt im wrapper)
this.bubble = document.createElement('div');
Object.assign(this.bubble.style, {
position: 'absolute',
bottom: '100%',
left: '50%',
transform: 'translateX(-50%)',
padding: '8px 12px',
position: 'relative',
marginLeft: '4px', // vorher 14px
marginBottom: '1px', // vorher 11px
padding: '10px 16px',
background: 'white',
border: '1px solid #ccc',
borderRadius: '4px',
boxShadow: '0 2px 6px rgba(0,0,0,0.2)',
borderRadius: '16px',
boxShadow: '0 2px 8px rgba(0,0,0,0.18)',
opacity: '0',
transition: 'opacity 0.3s',
maxWidth: '200px',
wordWrap: 'break-word',
maxWidth: '240px',
wordBreak: 'break-word',
fontFamily: 'sans-serif',
fontSize: '14px',
fontSize: '15px',
color: '#333',
pointerEvents: 'none'
pointerEvents: 'none',
minHeight: '30px',
zIndex: 10,
overflowWrap: 'anywhere',
display: 'flex',
alignItems: 'center'
});
this.wrapper.appendChild(this.bubble);
// Bubble Tail
this.bubblePointer = document.createElement('div');
Object.assign(this.bubblePointer.style, {
position: 'absolute',
left: '-13px',
bottom: '14px',
width: '0',
height: '0',
borderTop: '8px solid transparent',
borderBottom: '8px solid transparent',
borderRight: '13px solid #fff',
filter: 'drop-shadow(-2px 1px 2px rgba(0,0,0,0.10))',
zIndex: 11
});
this.bubble.appendChild(this.bubblePointer);
// Zusammenbauen
this.wrapper.appendChild(this.catContainer); // LINKS (Stack: Glow, Katze)
this.wrapper.appendChild(this.bubble); // RECHTS
this.container.appendChild(this.wrapper);
// Herz-Emitter, bleibt wie gehabt
this.heartEmitter = document.createElement('div');
Object.assign(this.heartEmitter.style, {
position: 'absolute',
left: '90px',
bottom: '50px',
pointerEvents: 'none',
width: '1px',
height: '1px',
zIndex: 20
});
this.container.appendChild(this.heartEmitter);
}
_startGlowWobble() {
let t = 0;
const loop = () => {
// Sanfte Wellen-Animation der Opazität
const phase = 0.92 + 0.1 * Math.sin(t);
this.glow.style.opacity = phase.toFixed(2);
// Wenn du magst: this.glow.style.filter = `blur(${10 + 2*Math.sin(t/2)}px)`;
t += 0.03;
this._glowWobbleId = requestAnimationFrame(loop);
};
loop();
}
stopGlowWobble() {
if (this._glowWobbleId) cancelAnimationFrame(this._glowWobbleId);
}
// Hilfsfunktionen zur Farbinterpolation
_lerp(a, b, t) { return a + (b - a) * t; }
_lerpColor(a, b, t) {
return [
Math.round(this._lerp(a[0], b[0], t)),
Math.round(this._lerp(a[1], b[1], t)),
Math.round(this._lerp(a[2], b[2], t)),
];
}
// Animiert den Glow je nach Commit-Anzahl
animateCatGlow(commitCount) {
const glow = this.glow;
if (!glow) return;
// Farbverlauf – nur Farbe wechseln!
const stops = [
{ c: 0, color: [157, 157, 157] },
{ c: 5, color: [255, 255, 255] },
{ c: 15, color: [30, 255, 0] },
{ c: 50, color: [0, 112, 221] },
{ c: 100, color: [163, 53, 238] },
{ c: 500, color: [255, 128, 0] }
];
let lower = stops[0], upper = stops[stops.length-1];
for (let i=0; i<stops.length-1; ++i) {
if (commitCount >= stops[i].c && commitCount < stops[i+1].c) {
lower = stops[i]; upper = stops[i+1]; break;
}
}
const range = upper.c - lower.c || 1;
const t = Math.min(Math.max((commitCount - lower.c) / range, 0), 1);
const [r,g,b] = this._lerpColor(lower.color, upper.color, t);
this.glow.style.background = `radial-gradient(
ellipse at 50% 50%,
rgba(${r},${g},${b},0.97) 0%,
rgba(${r},${g},${b},0.24) 70%,
rgba(0,0,0,0) 100%
)`;
}
// Bubble für Animation absolut an Position der Katze anheften
_positionBubbleDetached() {
// Katzen-Bild in catContainer suchen!
const catRect = this.catContainer.getBoundingClientRect();
const contRect = this.container.getBoundingClientRect();
// Position: leicht rechts, minimal nach oben (bei Bedarf feintunen)
const left = (catRect.right - contRect.left) + 2; // vorher +12, jetzt +2
const bottom = (contRect.bottom - catRect.bottom) - 2; // vorher +8, jetzt -2
Object.assign(this.bubble.style, {
position: 'absolute',
left: `${left}px`,
bottom: `${bottom}px`,
marginLeft: '0',
marginBottom: '0'
});
// Tail am linken Rand
this.bubblePointer.style.left = '-13px';
this.bubblePointer.style.bottom = '14px';
}
// Zurück zum Flex-Layout
_resetBubbleAttach() {
Object.assign(this.bubble.style, {
position: 'relative',
left: '',
bottom: '',
marginLeft: '12px',
marginBottom:'16px'
});
this.bubblePointer.style.left = '-13px';
this.bubblePointer.style.bottom = '14px';
}
_startBlinking() {
const delay = this.blinkMin + Math.random() * (this.blinkMax - this.blinkMin);
this._blinkTimeout = setTimeout(() => {
if (!this._isSpeaking) {
this.img.src = this.images.eyesClosed;
this.img.src = this.images.blink;
setTimeout(() => {
this.img.src = this.images.default;
if (!this._pettingActive) {
this.img.src = this.images.default;
}
this._startBlinking();
}, this.blinkDuration);
} else {
@@ -89,29 +271,257 @@ export class AnimeCat {
_bindMouseHold() {
let holdTimer = null;
let joyActive = false;
let mouseDown = false;
let mouseDownAt = null;
let lastPos = null;
let moveDist = 0;
const closeEyes = () => {
clearTimeout(holdTimer);
this.img.src = this.images.eyesClosed;
const CAT_TOLERANCE = 15;
const MOVE_THRESHOLD = 200;
const isMouseNearCat = (e) => {
const rect = this.img.getBoundingClientRect();
return (
e.clientX >= rect.left - CAT_TOLERANCE &&
e.clientX <= rect.right + CAT_TOLERANCE &&
e.clientY >= rect.top - CAT_TOLERANCE &&
e.clientY <= rect.bottom + CAT_TOLERANCE
);
};
const closeEyes = () => { this.img.src = this.images.eyesClosed; };
const reopenEyes = () => {
clearTimeout(holdTimer);
if (!this._isSpeaking) {
this.img.src = this.images.default;
}
if (!joyActive && !this._isSpeaking && !this._pettingActive) this.img.src = this.images.default;
};
this.img.addEventListener('mousedown', () => {
// if currently talking, ignore hold-to-close
if (this._isSpeaking) return;
this.img.addEventListener('mousedown', (e) => {
if (this._isSpeaking || joyActive) return;
if (!isMouseNearCat(e)) return;
this._pettingActive = true;
mouseDown = true;
mouseDownAt = Date.now();
lastPos = { x: e.clientX, y: e.clientY };
moveDist = 0;
closeEyes();
// force reopen after max 5s
holdTimer = setTimeout(reopenEyes, 4000);
clearTimeout(this._blinkTimeout); // Blinzeln pausieren
function onMove(ev) {
if (!mouseDown) return;
if (!isMouseNearCat(ev)) {
cleanup();
reopenEyes();
mouseDown = false;
this._startBlinking();
return;
}
if (lastPos) {
const dx = ev.clientX - lastPos.x;
const dy = ev.clientY - lastPos.y;
moveDist += Math.sqrt(dx * dx + dy * dy);
lastPos = { x: ev.clientX, y: ev.clientY };
}
}
const onMoveBound = onMove.bind(this);
holdTimer = setTimeout(() => {
if (!mouseDown) return; // Schon abgebrochen
if (moveDist >= MOVE_THRESHOLD) {
cleanup();
joyActive = true;
this._runJoyAnimation(() => {
joyActive = false;
reopenEyes();
this._startBlinking();
});
mouseDown = false;
} else {
this._consolation(mouseDownAt);
mouseDown = false;
}
}, 4000);
function onUp() {
if (!mouseDown) return;
cleanup();
const heldFor = Date.now() - mouseDownAt;
if (heldFor >= 4000) return; // already handled by timer above
if (heldFor >= 4000 && moveDist >= MOVE_THRESHOLD) {
joyActive = true;
this._runJoyAnimation(() => {
joyActive = false;
reopenEyes();
this._startBlinking();
});
} else if (heldFor > 1000) {
this._consolation(mouseDownAt);
} else {
reopenEyes();
this._startBlinking();
}
mouseDown = false;
}
const onUpBound = onUp.bind(this);
const cleanup = () => {
window.removeEventListener('mousemove', onMoveBound);
window.removeEventListener('mouseup', onUpBound);
if (holdTimer) clearTimeout(holdTimer);
holdTimer = null;
this._pettingActive = false;
};
window.addEventListener('mousemove', onMoveBound);
window.addEventListener('mouseup', onUpBound);
});
}
_consolation(mouseDownAt) {
// Trostpreis: Augen auf, dann mouth_open oder mischievous
this._pettingActive = false;
this.img.src = this.images.default;
const heldFor = Date.now() - mouseDownAt;
if (heldFor > 1000) {
const mouthOpenTime = Math.max(heldFor - 1000, 1000);
let imgToShow = this.images.mouthOpen || this.images.default;
if (this._consolationCount >= 3) {
if (
this._consolationCount === 3 ||
Math.random() < 0.2
) {
imgToShow = this.images.mischievous || imgToShow;
}
}
this.img.src = imgToShow;
this._consolationCount++;
this._startBlinking();
setTimeout(() => {
if (!this._isSpeaking && !this._pettingActive) {
this.img.src = this.images.default;
}
}, mouthOpenTime);
} else {
this._startBlinking();
}
}
_runJoyAnimation(onFinish) {
const img = this.img;
const catBox = this.catContainer;
const origCatTransition = catBox.style.transition;
const origCatTransform = catBox.style.transform;
img.src = this.images.joy || this.images.default;
// 20% Chance auf Salto!
const salto = Math.random() < 0.2;
// Bubble abkoppeln
this.container.appendChild(this.bubble);
this._positionBubbleDetached();
// Herz-Emitter anpassen
const catRect = this.catContainer.getBoundingClientRect();
const contRect = this.container.getBoundingClientRect();
const emitterX = catRect.right - contRect.left + 12;
const emitterY = contRect.bottom - catRect.bottom + 34;
this.heartEmitter.style.left = emitterX + 'px';
this.heartEmitter.style.bottom = emitterY + 'px';
const spawnHearts = () => this._spawnHearts(12);
if (salto) {
// Salto: gesamter Container springt & dreht
catBox.style.transition = 'transform 1.2s cubic-bezier(.19,1,.22,1)';
catBox.style.transform = 'translateY(-40px) rotate(360deg)';
spawnHearts();
setTimeout(() => {
catBox.style.transition = 'transform 0.8s cubic-bezier(.19,1,.22,1)';
catBox.style.transform = 'translateY(0) rotate(360deg)';
img.src = this.images.mouthOpen || this.images.default;
setTimeout(() => {
if (!this._pettingActive) img.src = this.images.default;
setTimeout(() => {
catBox.style.transition = origCatTransition || '';
catBox.style.transform = origCatTransform || '';
this.wrapper.appendChild(this.bubble);
this._resetBubbleAttach();
if (typeof onFinish === 'function') onFinish();
}, 700);
}, 2000);
}, 1200);
} else {
// Normaler Joy-Jump
catBox.style.transition = 'transform 0.6s cubic-bezier(.19,1,.22,1)';
catBox.style.transform = 'translateY(-40px) rotate(12deg)';
setTimeout(() => {
spawnHearts();
setTimeout(() => {
catBox.style.transition = 'transform 0.8s cubic-bezier(.19,1,.22,1)';
catBox.style.transform = 'translateY(0) rotate(0deg)';
img.src = this.images.mouthOpen || this.images.default;
setTimeout(() => {
if (!this._pettingActive) img.src = this.images.default;
setTimeout(() => {
catBox.style.transition = origCatTransition || '';
catBox.style.transform = origCatTransform || '';
this.wrapper.appendChild(this.bubble);
this._resetBubbleAttach();
if (typeof onFinish === 'function') onFinish();
}, 700);
}, 2000);
}, 2200);
}, 400);
}
}
_spawnHearts(count = 10) {
for (let i = 0; i < count; ++i) {
setTimeout(() => this._makeHeart(), Math.random() * 300);
}
}
_makeHeart() {
const emoji = Math.random() < 0.7 ? '❤️' : '💕';
const heart = document.createElement('span');
heart.textContent = emoji;
heart.style.position = 'absolute';
heart.style.left = '0%';
heart.style.bottom= '0%';
heart.style.fontSize = `${16 + Math.random() * 14}px`;
heart.style.pointerEvents = 'none';
heart.style.opacity = '0.9';
heart.style.zIndex = 100;
// Start/End-Pos, Flugwinkel
const angle = (Math.random() * Math.PI) - (Math.PI/2); // spread -90° to 90°
const distance = 60 + Math.random() * 45;
const dx = Math.cos(angle) * distance;
const dy = Math.sin(angle) * distance;
heart.animate([
{
transform: 'translate(-50%, 0) scale(1)',
opacity: 0.95
},
{
transform: `translate(calc(-50% + ${dx}px), ${-dy}px) scale(${1.3 + Math.random()*0.4}) rotate(${Math.random()*60-30}deg)`,
opacity: 0.3
}
], {
duration: 1100 + Math.random()*800,
easing: 'cubic-bezier(.28,1.01,.57,.99)'
});
['mouseup', 'mouseleave'].forEach(evt =>
this.img.addEventListener(evt, reopenEyes)
);
// Remove after animation
setTimeout(() => heart.remove(), 1600);
// Im Herzen-Emitter platzieren!
this.heartEmitter.appendChild(heart);
}
/** Call when streaming text begins */
@@ -123,7 +533,12 @@ export class AnimeCat {
this._mouthOpen = false;
this.img.src = this.images.default;
this.bubble.style.opacity = '1';
this.bubble.textContent = '';
this.bubble.style.visibility = 'visible';
Array.from(this.bubble.childNodes).forEach(node => {
if (node !== this.bubblePointer) node.remove();
});
this._bubbleTextNode = document.createTextNode('');
this.bubble.appendChild(this._bubbleTextNode);
this._talkIntervalId = setInterval(() => {
this._mouthOpen = !this._mouthOpen;
@@ -133,26 +548,27 @@ export class AnimeCat {
}, this.talkInterval / 2);
}
/** Append a chunk of streamed text */
appendSpeech(chunk) {
this.bubble.textContent += chunk;
if (this._bubbleTextNode)
this._bubbleTextNode.textContent += chunk;
}
/** Call when the stream ends */
endSpeech() {
clearInterval(this._talkIntervalId);
this.img.src = this.images.default;
if (!this._pettingActive) {
this.img.src = this.images.default;
}
this._speechTimeout = setTimeout(() => {
this.bubble.style.opacity = '0';
this._isSpeaking = false;
}, 3000);
}, 6000);
}
/** Clean up timers & DOM */
destroy() {
clearTimeout(this._blinkTimeout);
clearInterval(this._talkIntervalId);
clearTimeout(this._speechTimeout);
this.wrapper.remove();
this.heartEmitter.remove();
}
}

BIN
assets/cat/blink.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 109 KiB

BIN
assets/cat/mischievous.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 110 KiB

BIN
assets/cat/paw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
assets/icon/trayicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

13
editor-reword.js Normal file
View File

@@ -0,0 +1,13 @@
// editor-reword.js
const fs = require('fs');
const map = JSON.parse(process.env.REBASE_COMMIT_MAP);
const msgFile = process.argv[2];
const origMsg = fs.readFileSync(msgFile, 'utf-8');
// Hash suchen
const hashMatch = origMsg.match(/commit\\s+([a-f0-9]{7,40})/i);
const hash = hashMatch ? hashMatch[1] : null;
if (hash && map[hash]) {
fs.writeFileSync(msgFile, map[hash] + '\n');
}
process.exit(0);

View File

@@ -22,11 +22,7 @@
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#catSlot img {
width: 120px;
height: 120px;
overflow: hidden;
}
/* Außenschale für den Diff: overflow + max-height */
@@ -71,7 +67,7 @@
background-color: transparent;
}
@keyframes glow {
@keyframes glow {
0%, 100% { box-shadow: 0 0 4px gold; }
50% { box-shadow: 0 0 12px gold; }
}
@@ -84,6 +80,20 @@
border-style: solid !important;
border-color: gold !important;
}
.needs-relocation {
opacity: 0.5;
filter: grayscale(1);
pointer-events: auto !important; /* Damit Buttons weiter gehen */
}
.relocation-warning-symbol {
color: #e11d48;
font-weight: bold;
font-size: 1.2em;
margin-right: 2px;
display: flex;
align-items: center;
justify-content: center;
}
#currentTitle {
/* erlauben, dass der Text umbricht */
@@ -140,12 +150,65 @@
.diff-container pre {
padding-top: 0 !important;
}
.sidebar, .interaction-bar, .content-area button {
-webkit-user-select: none;
user-select: none;
}
#folderHierarchyDropdown.open {
display: block;
}
#folderTitleArrow.open {
transform: rotate(90deg);
}
.interaction-bar {
min-height: 3.5rem; /* = h-16 (56px, wie jetzt schon) */
padding-top: 0 !important;
padding-bottom: 0 !important;
font-size: 0.95rem;
}
.interaction-bar .flex {
line-height: 1.2; /* wenig Zeilenabstand */
height: 100%; /* volle Höhe ausnutzen, vertikal zentrieren */
margin-left: 90px;
}
.interaction-bar span {
font-size: inherit !important; /* gleiche Größe wie restlicher Text */
font-weight: 800;
}
.interaction-bar div > div {
margin-bottom: 0.1em; /* nur minimal Abstand */
}
.interaction-bar div > div:last-child {
margin-bottom: 0;
}
.commits-glow {
text-shadow:
1px 1px 2px rgba(0,0,0,0.25),
0px 1px 1px color-mix(in srgb, currentColor 40%, black);
}
.paw-queued {
position: absolute;
top: 33px; /* so weit nach unten */
right: 40px; /* nur ganz am Rand, feintune hier! */
width: 2rem;
height: 2rem;
filter: drop-shadow(0 2px 2px rgba(0,0,0,0.10));
pointer-events: none;
z-index: 10;
}
}
</style>
</head>
<body class="flex h-screen bg-white">
<!-- Sidebar -->
<aside class="w-64 border-r flex flex-col"
<aside class="w-64 border-r flex flex-col sidebar"
style="background: var(--bg-sidebar); border-color: var(--border)">
<h2 class="px-4 py-3 text-lg font-semibold"
style="color: var(--accent)">
@@ -169,30 +232,65 @@
<!-- Main panel: wieder p-4 wie gehabt -->
<main class="relative flex flex-col flex-1" style="background: var(--bg-main)">
<div class="flex-1 p-4 overflow-y-auto">
<h3 id="currentTitle" class="text-xl font-semibold mb-2"
style="color: var(--accent)">
No folder selected
</h3>
<div class="border-t mb-4" style="border-color: var(--border)"></div>
<!-- Content-Area -->
<div class="flex-1 p-4 overflow-y-auto content-area">
<!-- Title -->
<div id="folderTitleDrop"
class="relative flex items-baseline space-x-1 cursor-pointer select-none group pb-2">
<svg id="folderTitleArrow"
class="h-4 w-6 flex-none transition-transform"
viewBox="0 0 24 24">
<path stroke="currentColor" stroke-width="2" fill="none"
stroke-linecap="round" stroke-linejoin="round"
d="M9 5l7 7-7 7"/>
</svg>
<span id="currentTitle" class="font-semibold text-xl truncate"></span>
</div>
<pre id="folderHierarchyDropdown"
class="hidden text-sm font-mono select-text leading-snug mb-2 mt-1 max-h-80 overflow-auto"
style="background: none; border: none; color: inherit; padding: 0;"></pre>
<div class="border-t mb-2" style="border-color: var(--border)"></div>
<!-- Content List -->
<ul id="contentList" class="space-y-1"></ul>
</div>
<div id="catSlot" class="absolute bottom-12 right-2"></div>
<!-- Cat -->
<!--<div id="cat-glow"></div>
<img id="cat-sprite" src="assets/cat/default.png">-->
<div id="catSlot" class="absolute bottom-2 left-2"></div>
<!-- Interaction Bar -->
<div class="w-full h-16 flex items-center p-4"
<div class="w-full h-16 flex items-center interaction-bar"
style="background: var(--bg-sidebar); border-top: 1px solid var(--border)">
<button id="commitBtn"
<div class="flex flex-col justify-center ml-10 text-[var(--accent)] font-medium text-sm leading-tight h-full">
<div><span id="commitsToday" class="font-medium commits-glow"></span> commits today</div>
<div><span id="linesUntilRewrite" class="font-bold"></span> lines until rewrite</div>
<div><span id="countdown" class="font-medium"></span> until rewrite</div>
</div>
<!--<button id="commitBtn"
class="ml-auto px-4 py-2 border rounded font-semibold"
style="background: var(--accent); color: #fff; border-color: var(--border)">
Commit
</button>
</button>-->
<button id="readmeBtn"
class="ml-4 px-4 py-2 border rounded font-semibold"
style="background: var(--accent); color: #fff; border-color: var(--border)">
Generate README
</button>
<button id="pushBtn"
class="ml-2 px-4 py-2 border rounded font-semibold"
style="background: var(--accent); color: #fff; border-color: var(--border)">
Push to Gitea
</button>
</div>
<script src="renderer.js"></script>
<script src="animeCat.js"></script>
<script type="module">
import { AnimeCat } from './animeCat.js';
/*import { AnimeCat } from './animeCat.js';
document.addEventListener('DOMContentLoaded', () => {
const slot = document.getElementById('catSlot');
const cat = new AnimeCat(slot, {
@@ -211,7 +309,7 @@
cat.endSpeech();
}
simulateStream("Hi there! I'm your friendly assistant 👋");
});
});*/
</script>
</main>
</body>

2270
main.js

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@
"dist": "electron-builder"
},
"build": {
"appId": "com.deinname.auto-git",
"appId": "com.victorgiers.auto-git",
"productName": "Auto-Git",
"files": [
"**/*"
@@ -31,11 +31,17 @@
"dependencies": {
"chokidar": "^4.0.3",
"electron-store": "^8.2.0",
"ignore": "^7.0.4",
"micromatch": "^4.0.8",
"node-fetch": "^3.3.2",
"simple-git": "^3.20.0",
"suncalc": "^1.9.0"
},
"devDependencies": {
"autoprefixer": "^10.4.21",
"electron": "^25.0.0",
"electron-builder": "^26.0.12"
"electron-builder": "^26.0.12",
"postcss": "^8.5.3",
"tailwindcss": "^4.1.7"
}
}

View File

@@ -4,29 +4,65 @@ contextBridge.exposeInMainWorld('settingsAPI', {
getSkyMode: () => ipcRenderer.invoke('get-skymode'),
setSkyMode: val => ipcRenderer.invoke('set-skymode', val),
getSkipPrompt: () => ipcRenderer.invoke('get-skip-git-prompt'),
setSkipPrompt: val => ipcRenderer.invoke('set-skip-git-prompt', val)
setSkipPrompt: val => ipcRenderer.invoke('set-skip-git-prompt', val),
getIntelligentCommitThreshold: () => ipcRenderer.invoke('get-intelligent-commit-threshold'),
setIntelligentCommitThreshold: value => ipcRenderer.invoke('set-intelligent-commit-threshold', value),
getMinutesCommitThreshold: () => ipcRenderer.invoke('get-minutes-commit-threshold'),
setMinutesCommitThreshold: value => ipcRenderer.invoke('set-minutes-commit-threshold', value),
getCommitModel: () => ipcRenderer.invoke('get-commit-model'),
setCommitModel: (model) => ipcRenderer.invoke('set-commit-model', model),
getReadmeModel: () => ipcRenderer.invoke('get-readme-model'),
setReadmeModel: (model) => ipcRenderer.invoke('set-readme-model', model),
close: () => ipcRenderer.send('close-settings'),
getAutostart: () => ipcRenderer.invoke('get-autostart'),
setAutostart: val => ipcRenderer.invoke('set-autostart', val),
getCloseToTray: () => ipcRenderer.invoke('get-close-to-tray'),
setCloseToTray: val => ipcRenderer.invoke('set-close-to-tray', val),
});
contextBridge.exposeInMainWorld('electronAPI', {
getFolders: () => ipcRenderer.invoke('get-folders'),
addFolder: () => ipcRenderer.invoke('add-folder'),
removeFolder: folder => ipcRenderer.invoke('remove-folder', folder),
removeFolder: folderObj=> ipcRenderer.invoke('remove-folder', folderObj),
getSelected: () => ipcRenderer.invoke('get-selected'),
setSelected: folder => ipcRenderer.invoke('set-selected', folder),
listFolder: folder => ipcRenderer.invoke('list-folder', folder),
getCommits: folder => ipcRenderer.invoke('get-commits', folder),
diffCommit: (folder, hash) => ipcRenderer.invoke('diff-commit', folder, hash),
revertCommit: (folder, hash) => ipcRenderer.invoke('revert-commit', folder, hash),
snapshotCommit: (folder, hash) => ipcRenderer.invoke('snapshot-commit', folder, hash),
checkoutCommit: (folder, hash) => ipcRenderer.invoke('checkout-commit', folder, hash),
getCommitCount: folder => ipcRenderer.invoke('get-commit-count', folder),
hasDiffs: folder => ipcRenderer.invoke('has-diffs', folder),
removeGitFolder: folder => ipcRenderer.invoke('remove-git-folder', folder),
getSkipPrompt: () => ipcRenderer.invoke('get-skip-git-prompt'),
setSkipPrompt: val => ipcRenderer.invoke('set-skip-git-prompt', val),
showFolderContextMenu: folderPath => ipcRenderer.send('show-folder-context-menu', folderPath),
commitCurrentFolder: (folder, message) => ipcRenderer.invoke('commit-current-folder', folder, message),
setSelected: folderObj=> ipcRenderer.invoke('set-selected', folderObj),
getCommits: (folderObj, page, pageSize) => ipcRenderer.invoke('get-commits', folderObj, page, pageSize),
getAllCommitHashes: (folderObj) => ipcRenderer.invoke('get-all-commit-hashes', folderObj),
diffCommit: (folderObj, hash) => ipcRenderer.invoke('diff-commit', folderObj, hash),
revertCommit: (folderObj, hash) => ipcRenderer.invoke('revert-commit', folderObj, hash),
snapshotCommit: (folderObj, hash) => ipcRenderer.invoke('snapshot-commit', folderObj, hash),
checkoutCommit: (folderObj, hash) => ipcRenderer.invoke('checkout-commit', folderObj, hash),
getCommitCount: folderObj=> ipcRenderer.invoke('get-commit-count', folderObj),
hasDiffs: folderObj=> ipcRenderer.invoke('has-diffs', folderObj),
removeGitFolder:folderObj=> ipcRenderer.invoke('remove-git-folder', folderObj),
commitCurrentFolder: (folderObj, message) => ipcRenderer.invoke('commit-current-folder', folderObj, message),
showFolderContextMenu: folderPath => ipcRenderer.send('show-folder-context-menu', folderPath),
setMonitoring: (folderObj, monitoring) => ipcRenderer.invoke('set-monitoring', folderObj.path, monitoring),
getFolderTree: (folderPath) => ipcRenderer.invoke('get-folder-tree', folderPath),
showTreeContextMenu: (info) => ipcRenderer.send('show-tree-context-menu', info),
getSelectedSync: () => ipcRenderer.sendSync('get-selected-sync'),
getIntelligentCommitThreshold: () => ipcRenderer.invoke('get-intelligent-commit-threshold'),
setIntelligentCommitThreshold: value => ipcRenderer.invoke('set-minutes-commit-threshold', value),
getMinutesCommitThreshold: () => ipcRenderer.invoke('get-minutes-commit-threshold'),
setMinutesCommitThreshold: value => ipcRenderer.invoke('set-intelligent-commit-threshold', value),
ollamaList: () => ipcRenderer.invoke('ollama-list'),
ollamaPull: (model) => ipcRenderer.invoke('ollama-pull', model),
onTrayToggleMonitoring: (callback) => ipcRenderer.on('tray-toggle-monitoring', callback),
onTrayRemoveFolder: (callback) => ipcRenderer.on('tray-remove-folder', callback),
onTrayAddFolder: (callback) => ipcRenderer.on('tray-add-folder', callback),
onFoldersLocationUpdated: (callback) => ipcRenderer.on('folders-location-updated', (e, folderObj) => callback(folderObj)),
isGitRepo: (path) => ipcRenderer.invoke('is-git-repo', path),
relocateFolder: (oldPath, newPath) => ipcRenderer.invoke('relocate-folder', oldPath, newPath),
pickFolder: () => ipcRenderer.invoke('pick-folder'),
repoHasCommit: (repoPath, commitHash) => ipcRenderer.invoke('repo-has-commit', repoPath, commitHash),
addFolderByPath: (folderPath) => ipcRenderer.invoke('add-folder-by-path', folderPath),
onCatBegin: (cb) => ipcRenderer.on('cat-begin', cb),
onCatChunk: (cb) => ipcRenderer.on('cat-chunk', cb),
onCatEnd: (cb) => ipcRenderer.on('cat-end', cb),
getDailyCommitStats: () => ipcRenderer.invoke('get-daily-commit-stats'),
hasReadme: (folderPath) => ipcRenderer.invoke('has-readme', folderPath),
generateReadme: (folderPath) => ipcRenderer.invoke('generate-readme', folderPath),
pushToGitea: (folderPath) => ipcRenderer.invoke('push-to-gitea', folderPath),
});
ipcRenderer.on('repo-updated', (_e, folder) => {

View File

@@ -1,25 +1,103 @@
// renderer.js
window.addEventListener('DOMContentLoaded', async () => {
// Elemente holen
const folderList = document.getElementById('folderList');
const addBtn = document.getElementById('addFolderBtn');
const titleEl = document.getElementById('currentTitle');
const treeviewEl = document.getElementById('folderHierarchyDropdown');
const titleArrow = document.getElementById('folderTitleArrow');
const contentList = document.getElementById('contentList');
const readmeBtn = document.getElementById('readmeBtn');
const pushBtn = document.getElementById('pushBtn');
const panel = document.querySelector('.flex-1.p-4.overflow-y-auto');
const PAGE_SIZE = 50;
const paginationEl = document.createElement('div');
paginationEl.className = 'pagination flex justify-center items-center my-2 space-x-2';
contentList.parentElement.insertBefore(paginationEl, contentList);
let lastFolderPath = null;
let lastPage = null;
const slot = document.getElementById('catSlot');
window.cat = new window.AnimeCat(slot, {
images: {
default: 'assets/cat/default.png',
eyesClosed: 'assets/cat/eyes_closed.png',
blink: 'assets/cat/blink.png',
mouthOpen: 'assets/cat/mouth_open.png',
joy: 'assets/cat/joy.png',
mischievous: 'assets/cat/mischievous.png'
}
});
// Readme-Button nur einmal binden
readmeBtn.addEventListener('click', async () => {
const selected = await window.electronAPI.getSelected();
if (!selected) return alert('No folder selected!');
readmeBtn.disabled = true;
readmeBtn.textContent = 'Generating...';
try {
const output = await window.electronAPI.generateReadme(selected.path);
alert('README.md was generated!\n\n' + output.slice(0, 500) + '…');
} catch (e) {
alert('Error generating README:\n' + (e.message || e));
}
readmeBtn.disabled = false;
const hasReadme = await window.electronAPI.hasReadme(selected.path);
readmeBtn.textContent = hasReadme ? 'Update README' : 'Generate README';
});
pushBtn.addEventListener('click', async () => {
const selected = await window.electronAPI.getSelected();
if (!selected || !selected.path) {
return alert('No folder selected to push!');
}
pushBtn.disabled = true;
pushBtn.textContent = 'Pushing…';
try {
// send the folder‐path to main via a new IPC channel 'push-to-gitea'
const result = await window.electronAPI.pushToGitea(selected.path);
if (result.success) {
alert('✔ Pushed successfully to Gitea: ' + result.repoUrl);
} else {
alert('❌ Push failed:\n' + result.error);
}
} catch (err) {
alert('❌ Unexpected error:\n' + (err.message || err));
} finally {
pushBtn.disabled = false;
pushBtn.textContent = 'Push to Gitea';
}
});
// Drag and Drop
document.body.addEventListener('dragover', e => {
e.preventDefault();
e.dataTransfer.dropEffect = 'copy';
});
document.body.addEventListener('drop', async e => {
e.preventDefault();
const files = [...e.dataTransfer.files];
if (!files.length) return;
for (let f of files) {
if (f.type === "") {
await window.electronAPI.addFolderByPath(f.path);
await renderSidebar();
const sel = await window.electronAPI.getSelected();
if (sel) await renderContent(sel);
}
}
});
// 1) Baby-Blau und Nacht-Blau als RGB-Arrays
// Sky-Mode Setup
const DAY_COLOR = [173, 216, 230];
const NIGHT_COLOR = [0, 0, 50];
// 2) Linearer Interpolator
function lerpColor(c1, c2, t) {
return c1.map((v, i) => Math.round(v + t * (c2[i] - v)));
}
// 3) Entscheider für den Zeit-Factor
function getTimeFactor() {
const now = new Date();
const md = now.getHours() * 60 + now.getMinutes();
@@ -29,245 +107,486 @@ window.addEventListener('DOMContentLoaded', async () => {
if (md < 20 * 60) return 1 - ((md - 16*60) / (4*60));
return 0;
}
// 4) setzt die Hintergrundfarbe
function updateBackground() {
const factor = getTimeFactor();
const [r,g,b] = lerpColor(NIGHT_COLOR, DAY_COLOR, factor);
panel.style.backgroundColor = `rgb(${r}, ${g}, ${b})`;
}
// 5) applySkyMode-Funktion
let skyIntervalId, titleIntervalId;
function applySkyMode(enabled) {
document.body.classList.toggle('sky-mode', enabled);
// alte Intervalle löschen
clearInterval(skyIntervalId);
clearInterval(titleIntervalId);
if (enabled) {
// Hintergrund updaten
updateBackground();
skyIntervalId = setInterval(updateBackground, 60_000);
// Titel-Farbe je nach Uhrzeit
function updateTitleColor() {
const hour = new Date().getHours();
if (hour >= 18 || hour < 6) {
titleEl.style.color = '#fff';
} else {
titleEl.style.color = '';
}
}
updateTitleColor();
titleIntervalId = setInterval(updateTitleColor, 60_000);
function updateAllTextColors() { setTextColor('sky'); }
updateAllTextColors();
titleIntervalId = setInterval(updateAllTextColors, 60_000);
} else {
// Sky-Mode aus → zurücksetzen
panel.style.backgroundColor = '';
titleEl.style.color = '';
setTextColor('default');
}
}
// 6) initial anwenden und auf Event lauschen
const initialSky = await window.settingsAPI.getSkyMode();
applySkyMode(initialSky);
window.addEventListener('skymode-changed', e => applySkyMode(e.detail));
// … restliches Rendering wie gehabt …
function setTextColor(mode) {
let textColor = '#111';
if (mode === 'sky') {
const hour = new Date().getHours();
textColor = (hour >= 18 || hour < 6) ? '#fff' : '#111';
}
titleEl.style.color = textColor;
treeviewEl.style.color = textColor;
titleArrow.style.color = textColor;
paginationEl.style.color = textColor;
if (treeviewEl.querySelectorAll) {
treeviewEl.querySelectorAll('.tree-file, .tree-dir').forEach(el => el.style.color = textColor);
}
}
function basename(fullPath) {
return fullPath.replace(/.*[\\/]/, '');
}
async function getFolderObjByPath(path) {
const folders = await window.electronAPI.getFolders();
return folders.find(f => f.path === path) || null;
}
async function renderSidebar() {
const folders = await window.electronAPI.getFolders();
const selected = await window.electronAPI.getSelected();
folderList.innerHTML = '';
async function renderSidebar() {
const folders = await window.electronAPI.getFolders();
const selected = await window.electronAPI.getSelected();
folderList.innerHTML = '';
folders.forEach(folder => {
// 1) li anlegen, selected-Klasse statt bg-[#fecdd3]
const li = document.createElement('li');
li.className = [
'flex items-center justify-between px-3 py-2 rounded cursor-pointer',
folder === selected ? 'selected' : ''
].join(' ');
for (const folderObj of folders) {
const folder = folderObj.path;
const isMonitoring = folderObj.monitoring;
const li = document.createElement('li');
li.setAttribute('data-folder-id', encodeURIComponent(folder));
li.className = [
'flex items-center justify-between px-3 py-2 rounded cursor-pointer',
selected && folder === selected.path ? 'selected' : '',
folderObj.needsRelocation ? 'needs-relocation' : ''
].join(' ');
// 2) inneres Markup, ohne Hard-Coded-Farben
li.innerHTML = `
<div class="flex items-center space-x-2 overflow-hidden">
<svg xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5 flex-shrink-0"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M3 7a2 2 0 012-2h4l2 2h6a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7"/>
</svg>
<span class="truncate text-sm font-medium">${basename(folder)}</span>
</div>
<button class="remove-btn">
<svg xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
`;
li.innerHTML = `
<div class="flex items-center space-x-2 overflow-hidden">
<svg xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5 flex-shrink-0"
fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M3 7a2 2 0 012-2h4l2 2h6a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V7"/>
</svg>
<span class="truncate text-sm font-medium">${basename(folder)}</span>
</div>
<div class="flex items-center space-x-2">
${
folderObj.needsRelocation
? `<span class="relocation-warning-symbol" title="Ordner fehlt / verschoben">!</span>`
: ''
}
<button class="pause-play-btn p-1 rounded${folderObj.needsRelocation ? ' disabled' : ''}"
title="${isMonitoring ? 'Monitoring pausieren' : 'Monitoring starten'}"
${folderObj.needsRelocation ? 'disabled' : ''}>
${isMonitoring
? `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<rect x="6" y="5" width="4" height="14" rx="1" fill="currentColor"/>
<rect x="14" y="5" width="4" height="14" rx="1" fill="currentColor"/>
</svg>`
: `<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<polygon points="7,5 19,12 7,19" fill="currentColor"/>
</svg>`
}
</button>
<button class="remove-btn p-1 rounded" title="Ordner entfernen">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</div>
`;
// rechter Mausklick in der Sidebar
li.addEventListener('contextmenu', e => {
e.preventDefault();
window.electronAPI.showFolderContextMenu(folder);
});
// Folder-Klick (inkl. Relocation-Logik)
li.addEventListener('click', async e => {
if (e.target.closest('.pause-play-btn, .remove-btn')) return;
// 3) Klick auf li (Select)
li.addEventListener('click', async e => {
if (e.target.closest('.remove-btn')) return;
await window.electronAPI.setSelected(folder);
await renderSidebar();
await renderContent(folder);
});
if (folderObj.needsRelocation) {
const paths = await window.electronAPI.pickFolder();
const newPath = paths && paths[0];
if (!newPath) return;
// 4) Remove-Button
li.querySelector('.remove-btn').addEventListener('click', async e => {
e.stopPropagation();
// Commit-Count / Diffs / SkipPrompt-Logik wie gehabt
const count = await window.electronAPI.getCommitCount(folder);
const hasUnstaged= await window.electronAPI.hasDiffs(folder);
const skipPrompt = await window.settingsAPI.getSkipPrompt();
if (count === 1 && !hasUnstaged) {
if (skipPrompt) {
await window.electronAPI.removeGitFolder(folder);
} else {
const ok = confirm(
'Dieser Ordner hat nur einen Initial-Commit und keine Änderungen.\n' +
'Möchtest du das gesamte Git-Repository (den .git-Ordner) löschen?'
);
if (ok) {
await window.electronAPI.removeGitFolder(folder);
} else {
const isGit = await window.electronAPI.isGitRepo(newPath);
if (!isGit) {
alert('Das ist kein gültiges Git-Repository.');
return;
}
const lastKnownHash = folderObj.lastHeadHash;
if (!lastKnownHash) {
alert('Kein gespeicherter Hash – Vergleich nicht möglich.');
return;
}
const isMatch = await window.electronAPI.repoHasCommit(newPath, lastKnownHash);
if (!isMatch) {
alert('Das ist nicht das ursprüngliche Repo (Commit-Hash fehlt).');
return;
}
await window.electronAPI.relocateFolder(folderObj.path, newPath);
await renderSidebar();
const newFolderObj = (await window.electronAPI.getFolders())
.find(f => f.path === newPath);
if (newFolderObj) {
await window.electronAPI.setSelected(newFolderObj);
await renderContent(newFolderObj);
}
return;
}
}
// 5) aus Sidebar/Store entfernen
await window.electronAPI.removeFolder(folder);
await renderSidebar();
// 6) neue Selektion
const all = await window.electronAPI.getFolders();
if (all.length === 0) {
titleEl.textContent = 'No folder selected';
contentList.innerHTML = '';
} else {
// entfernten Index vorher merken, dann neuen auswählen
const idxOld = folders.indexOf(folder);
let idxNew = Math.max(0, idxOld - 1);
const pick = all[idxNew];
await window.electronAPI.setSelected(pick);
await window.electronAPI.setSelected(folderObj);
await renderSidebar();
await renderContent(pick);
await renderContent(folderObj);
});
// Monitoring-Button
const pauseBtn = li.querySelector('.pause-play-btn');
pauseBtn.addEventListener('click', async e => {
e.stopPropagation();
await window.electronAPI.setMonitoring(folderObj, !isMonitoring);
await renderSidebar();
});
// Remove-Button
const removeBtn = li.querySelector('.remove-btn');
removeBtn.addEventListener('click', async e => {
e.stopPropagation();
const count = await window.electronAPI.getCommitCount(folderObj);
const hasUnstaged= await window.electronAPI.hasDiffs(folderObj);
const skipPrompt = await window.settingsAPI.getSkipPrompt();
if (count === 1 && !hasUnstaged) {
if (skipPrompt) {
await window.electronAPI.removeGitFolder(folderObj);
} else {
const ok = confirm(
'Dieser Ordner hat nur einen Initial-Commit und keine Änderungen.\n' +
'Möchtest du das gesamte Git-Repository (den .git-Ordner) löschen?'
);
if (ok) {
await window.electronAPI.removeGitFolder(folderObj);
} else {
return;
}
}
}
await window.electronAPI.removeFolder(folderObj);
await renderSidebar();
const all = await window.electronAPI.getFolders();
if (all.length === 0) {
titleEl.textContent = 'No folder selected';
contentList.innerHTML = '';
} else {
const idxOld = folders.findIndex(f => f.path === folderObj.path);
let idxNew = Math.max(0, idxOld - 1);
const pick = all[idxNew];
await window.electronAPI.setSelected(pick);
await renderSidebar();
await renderContent(pick);
}
});
// Kontextmenü
li.addEventListener('contextmenu', e => {
e.preventDefault();
window.electronAPI.showFolderContextMenu(folderObj.path);
});
folderList.appendChild(li);
}
}
let countdownInterval = null;
function getCommitColor(commitCount) {
const stops = [
{ c: 0, color: [157, 157, 157] },
{ c: 5, color: [255, 255, 255] },
{ c: 15, color: [30, 255, 0] },
{ c: 50, color: [0, 112, 221] },
{ c: 100, color: [163, 53, 238] },
{ c: 500, color: [255, 128, 0] }
];
function lerp(a, b, t) { return a + (b - a) * t; }
function lerpColor(a, b, t) {
return [
Math.round(lerp(a[0], b[0], t)),
Math.round(lerp(a[1], b[1], t)),
Math.round(lerp(a[2], b[2], t))
];
}
let lower = stops[0], upper = stops[stops.length-1];
for (let i = 0; i < stops.length - 1; ++i) {
if (commitCount >= stops[i].c && commitCount < stops[i+1].c) {
lower = stops[i]; upper = stops[i+1]; break;
}
}
const range = upper.c - lower.c || 1;
const t = Math.min(Math.max((commitCount - lower.c) / range, 0), 1);
return lerpColor(lower.color, upper.color, t);
}
function formatCountdown(ms) {
if (!ms || ms <= 0) return '00:00';
const s = Math.floor(ms / 1000);
const m = Math.floor(s / 60).toString().padStart(2, '0');
const sec = (s % 60).toString().padStart(2, '0');
return `${m}:${sec}`;
}
async function updateInteractionBar(folderObj) {
const stats = await window.electronAPI.getDailyCommitStats();
const today = new Date().toISOString().slice(0, 10);
const commitsToday = stats[today] || 0;
const intelligentCommitThreshold = await window.electronAPI.getIntelligentCommitThreshold?.() || 20;
const minutesCommitThreshold = await window.electronAPI.getMinutesCommitThreshold?.() || 5;
const linesChanged = folderObj?.linesChanged || 0;
const linesUntilRewrite = Math.max(0, intelligentCommitThreshold - linesChanged);
let countdown = "00:00";
let msLeft = 0;
if (folderObj?.firstCandidateBirthday) {
const msThreshold = minutesCommitThreshold * 60 * 1000;
const endTime = new Date(folderObj.firstCandidateBirthday).getTime() + msThreshold;
msLeft = Math.max(0, endTime - Date.now());
countdown = formatCountdown(msLeft);
}
const [r, g, b] = getCommitColor(commitsToday);
document.getElementById('commitsToday').textContent = commitsToday;
document.getElementById('commitsToday').style.color = `rgb(${r},${g},${b})`;
document.getElementById('linesUntilRewrite').textContent = linesUntilRewrite;
document.getElementById('countdown').textContent = countdown;
startLiveCountdown(folderObj, msLeft);
}
async function startLiveCountdown(folderObj, msLeft) {
if (countdownInterval) clearInterval(countdownInterval);
if (!folderObj?.firstCandidateBirthday || msLeft <= 0) {
document.getElementById('countdown').textContent = "00:00";
return;
}
const minutesCommitThreshold = await window.electronAPI.getMinutesCommitThreshold?.() || 5;
const msThreshold = minutesCommitThreshold * 60 * 1000;
const endTime = new Date(folderObj.firstCandidateBirthday).getTime() + msThreshold;
countdownInterval = setInterval(() => {
const msL = Math.max(0, endTime - Date.now());
document.getElementById('countdown').textContent = formatCountdown(msL);
if (msL <= 0) clearInterval(countdownInterval);
}, 1000);
}
const folderTitleDrop = document.getElementById('folderTitleDrop');
const folderTitleArrow = document.getElementById('folderTitleArrow');
const folderHierarchyDropdown = document.getElementById('folderHierarchyDropdown');
let isDropdownOpen = false;
folderTitleDrop.addEventListener('click', async () => {
if (isDropdownOpen) { closeDropdown(); return; }
const selected = await window.electronAPI.getSelected();
if (!selected || !selected.path) return;
folderHierarchyDropdown.textContent = 'Lade Verzeichnis…';
folderHierarchyDropdown.classList.remove('hidden');
folderTitleArrow.classList.add('open');
isDropdownOpen = true;
const tree = await window.electronAPI.getFolderTree(selected.path);
folderHierarchyDropdown.innerHTML = renderFolderTreeAscii(tree, '.', '');
setTextColor(document.body.classList.contains('sky-mode') ? 'sky' : 'default');
});
folderHierarchyDropdown.addEventListener('contextmenu', function(e) {
const el = e.target.closest('.tree-file, .tree-dir');
if (!el) return;
e.preventDefault();
const relPath = el.getAttribute('data-path');
const type = el.getAttribute('data-type');
const selected = window.electronAPI.getSelectedSync?.() || (window.currentSelectedFolderObj || {});
const absPath = selected.path + '/' + relPath;
window.electronAPI.showTreeContextMenu({ absPath, relPath, root: selected.path, type });
});
function closeDropdown() {
folderHierarchyDropdown.classList.add('hidden');
folderTitleArrow.classList.remove('open');
isDropdownOpen = false;
}
function renderFolderTreeAscii(tree, prefix = '', indent = '', relPath = '.') {
if (!Array.isArray(tree)) return '';
let result = '';
const lastIdx = tree.length - 1;
tree.forEach((node, i) => {
const isLast = i === lastIdx;
const pointer = isLast ? '└── ' : '├── ';
const thisRelPath = relPath === '.' ? node.name : relPath + '/' + node.name;
if (node.type === 'dir') {
result += `<span class="tree-dir" data-path="${thisRelPath}" data-type="dir">${indent}${pointer}${node.name}/</span>\n`;
const newIndent = indent + (isLast ? ' ' : '│ ');
result += renderFolderTreeAscii(node.children, '', newIndent, thisRelPath);
} else {
result += `<span class="tree-file" data-path="${thisRelPath}" data-type="file">${indent}${pointer}${node.name}</span>\n`;
}
});
return result;
}
folderList.appendChild(li);
});
}
async function getCommitPageForHash(folderObj, hash, pageSize = PAGE_SIZE) {
const { commits } = await window.electronAPI.getCommits(folderObj, 1, 100000);
const idx = commits.findIndex(c => c.hash === hash || hash.startsWith(c.hash));
if (idx === -1) return 1;
return Math.floor(idx / pageSize) + 1;
}
async function renderContent(folder) {
const currentFolder = folder;
async function renderContent(folderObj, page) {
closeDropdown();
const folder = folderObj.path;
await updateInteractionBar(folderObj);
titleEl.textContent = folder;
const { head, commits } = await window.electronAPI.getCommits(folder);
setTextColor(document.body.classList.contains('sky-mode') ? 'sky' : 'default');
// Jetzt erst den Readme-Button-Text aktualisieren:
const hasReadme = await window.electronAPI.hasReadme(folder);
readmeBtn.textContent = hasReadme ? 'Update README' : 'Generate README';
contentList.innerHTML = commits.map(c => `
<li class="w-full p-3 mb-2 bg-white border border-gray-200 rounded shadow-sm
${c.hash === head ? 'current-commit' : ''}">
<div class="flex justify-between text-sm text-gray-600 mb-1">
<span>${c.hash}</span>
<span>${new Date(c.date).toLocaleString()}</span>
</div>
<div class="text-gray-800 mb-2">${c.message}</div>
<div class="flex space-x-2 mb-2">
<!-- Changes-Button -->
<button class="diff-btn flex items-center px-2 py-1 text-xs border rounded hover:bg-gray-100" data-hash="${c.hash}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1 rotate" viewBox="0 0 24 24"
stroke="currentColor" fill="none">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M9 5l7 7-7 7"/>
</svg>
Changes
</button>
<!-- Snapshot-Button -->
<button class="snapshot-btn flex items-center px-2 py-1 text-xs border rounded hover:bg-gray-100" data-hash="${c.hash}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0l-4 4m4-4v12"/>
</svg>
Snapshot
</button>
<!-- Checkout-Button -->
<button
class="checkout-btn flex items-center px-2 py-1 text-xs border rounded ${c.hash === head ? 'disabled' : 'hover:bg-gray-100'}"
data-hash="${c.hash}"
${c.hash === head ? 'disabled' : ''}
>
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 12H3m12 0l-4-4m4 4l-4 4"/>
</svg>
Jump Here
</button>
<!-- Revert-Button -->
<!--<button class="revert-btn flex items-center px-2 py-1 text-xs border rounded hover:bg-gray-100" data-hash="${c.hash}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 12H3m12 0l-4-4m4 4l-4 4"/>
</svg>
Revert
</button>-->
</div>
<div class="diff-container relative">
<!-- copy-Button oben rechts -->
<button class="copy-diff-btn absolute top-1 right-1 p-1 border rounded hover:bg-gray-100 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<!-- Copy-Icon: -->
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h6a2 2 0 012 2v2m0 4h2a2 2 0 002-2v-6a2 2 0 00-2-2h-6a2 2 0 00-2 2v2" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M16 16h2a2 2 0 002-2v-2m0 0V8a2 2 0 00-2-2h-2m0 4v6m0 0H8m8 0h2" />
</svg>
</button>
<pre class="m-0"></pre>
</div>
</li>
`).join('');
let usePage = page;
if (!usePage || folder !== lastFolderPath) {
const { head } = await window.electronAPI.getCommits(folderObj, 1, 1);
usePage = await getCommitPageForHash(folderObj, head, PAGE_SIZE);
}
lastFolderPath = folder;
lastPage = usePage;
// Erst mal alle Diff-Buttons prüfen und ggf. deaktivieren
const { head, commits, total, page: currentPage, pageSize, pages } =
await window.electronAPI.getCommits(folderObj, usePage, PAGE_SIZE);
if (!commits || !commits.length) {
contentList.innerHTML = '<div class="p-6 text-gray-500">No commits found.</div>';
paginationEl.innerHTML = '';
return;
}
contentList.innerHTML = commits.map(c => {
const isQueued = folderObj.llmCandidates && folderObj.llmCandidates.some(fullHash =>
fullHash.startsWith(c.hash)
);
return `
<li style="position:relative;" class="w-full p-3 mb-2 bg-white border border-gray-200 rounded shadow-sm
${c.hash === head ? 'current-commit' : ''}">
<div class="flex justify-between text-sm text-gray-600 mb-1">
<span>${c.hash}</span>
<span>${new Date(c.date).toLocaleString()}</span>
</div>
<div class="text-gray-800 mb-2">${c.message}</div>
<div class="flex space-x-2 mb-2">
<button class="diff-btn flex items-center px-2 py-1 text-xs border rounded hover:bg-gray-100" data-hash="${c.hash}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1 rotate" viewBox="0 0 24 24"
stroke="currentColor" fill="none">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M9 5l7 7-7 7"/>
</svg>
Changes
</button>
<button class="snapshot-btn flex items-center px-2 py-1 text-xs border rounded hover:bg-gray-100" data-hash="${c.hash}">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0l-4 4m4-4v12"/>
</svg>
Snapshot
</button>
<button
class="checkout-btn flex items-center px-2 py-1 text-xs border rounded ${c.hash === head ? 'disabled' : 'hover:bg-gray-100'}"
data-hash="${c.hash}"
${c.hash === head ? 'disabled' : ''}>
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 12H3m12 0l-4-4m4 4l-4 4"/>
</svg>
Jump Here
</button>
</div>
<div class="diff-container relative">
<button class="copy-diff-btn absolute top-1 right-1 p-1 border rounded hover:bg-gray-100 flex items-center justify-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h6a2 2 0 012 2v2m0 4h2a2 2 0 002-2v-6a2 2 0 00-2-2h-6a2 2 0 00-2 2v2" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M16 16h2a2 2 0 002-2v-2m0 0V8a2 2 0 00-2-2h-2m0 4v6m0 0H8m8 0h2" />
</svg>
</button>
<pre class="m-0"></pre>
</div>
${
isQueued
? `<img src="assets/cat/paw.png"
alt="In Rewrite Queue"
title="In Rewrite Queue"
class="paw-queued"
style="pointer-events: none; z-index:10;">`
: ''
}
</li>`;
}).join('');
// Pagination
if (pages > 1) {
paginationEl.innerHTML = `
<button id="page-prev" class="px-2 py-1 border rounded" ${currentPage === 1 ? 'disabled' : ''}>«</button>
<span class="mx-2 text-sm">Seite ${currentPage} / ${pages}</span>
<button id="page-next" class="px-2 py-1 border rounded" ${currentPage === pages ? 'disabled' : ''}>»</button>
`;
paginationEl.querySelector('#page-prev').onclick = () => renderContent(folderObj, currentPage - 1);
paginationEl.querySelector('#page-next').onclick = () => renderContent(folderObj, currentPage + 1);
paginationEl.style.display = 'flex';
} else {
paginationEl.innerHTML = '';
paginationEl.style.display = 'none';
}
// Diff-Buttons überprüfen
contentList.querySelectorAll('.diff-btn').forEach(async btn => {
const hash = btn.dataset.hash;
const diffText = await window.electronAPI.diffCommit(folder, hash);
const hash = btn.dataset.hash;
const diffText = await window.electronAPI.diffCommit(folderObj, hash);
if (!diffText.trim()) {
btn.disabled = true;
btn.classList.add('disabled');
}
});
// Diff-Toggle & Highlighting
// Diff-Toggle & Hervorhebung
contentList.querySelectorAll('.diff-btn').forEach(btn => {
btn.addEventListener('click', async () => {
const li = btn.closest('li');
const hash = btn.dataset.hash;
const svg = btn.querySelector('svg');
const li = btn.closest('li');
const hash = btn.dataset.hash;
const svg = btn.querySelector('svg');
const container = li.querySelector('.diff-container');
const pre = container.querySelector('pre');
const pre = container.querySelector('pre');
if (!pre.innerHTML.trim()) {
// fetch und HTML-Snippet bauen
const diff = await window.electronAPI.diffCommit(folder, hash);
const diff = await window.electronAPI.diffCommit(folderObj, hash);
const escaped = diff
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
@@ -286,7 +605,7 @@ async function renderSidebar() {
}
const isOpen = container.classList.toggle('open');
if (isOpen) {
if (isOpen) {
container.style.maxHeight = container.scrollHeight + 'px';
} else {
container.style.maxHeight = '0';
@@ -300,8 +619,7 @@ async function renderSidebar() {
btn.addEventListener('click', async () => {
const hash = btn.dataset.hash;
try {
// verwende jetzt currentFolder statt einer undefinierten Variable
const savedPath = await window.electronAPI.snapshotCommit(currentFolder, hash);
const savedPath = await window.electronAPI.snapshotCommit(folderObj, hash);
if (savedPath) {
alert(`Snapshot gespeichert unter:\n${savedPath}`);
}
@@ -312,37 +630,21 @@ async function renderSidebar() {
});
});
// Revert-Button
contentList.querySelectorAll('.revert-btn').forEach(btn => {
btn.addEventListener('click', async () => {
const hash = btn.dataset.hash;
if (confirm(`Commit ${hash} wirklich revertieren?`)) {
await window.electronAPI.revertCommit(folder, hash);
await renderContent(folder);
}
});
});
// Checkout-Button
contentList.querySelectorAll('.checkout-btn').forEach(btn => {
btn.addEventListener('click', async () => {
const hash = btn.dataset.hash;
//if (!confirm(`Jump here? Ungestagte Änderungen werden verworfen.`)) return;
// currentFolder hast du oben in renderContent gespeichert
await window.electronAPI.checkoutCommit(currentFolder, hash);
await renderContent(currentFolder);
await window.electronAPI.checkoutCommit(folderObj, hash);
const page = await getCommitPageForHash(folderObj, hash, PAGE_SIZE);
await renderContent(folderObj, page);
});
});
const currentEl = contentList.querySelector('li.current-commit');
// Copy-Diff-Button
contentList.querySelectorAll('.diff-container').forEach(container => {
const btn = container.querySelector('.copy-diff-btn');
const pre = container.querySelector('pre');
// speicher die ursprüngliche SVG
const originalSVG = btn.innerHTML;
// erstelle die Checkmark-SVG
const checkSVG = `
<svg xmlns="http://www.w3.org/2000/svg"
class="h-4 w-4 text-green-600"
@@ -351,13 +653,10 @@ async function renderSidebar() {
d="M5 13l4 4L19 7"/>
</svg>
`;
btn.addEventListener('click', () => {
navigator.clipboard.writeText(pre.textContent)
.then(() => {
// Icon tauschen
btn.innerHTML = checkSVG;
// nach 1s wieder zurück
setTimeout(() => {
btn.innerHTML = originalSVG;
}, 1000);
@@ -368,8 +667,8 @@ async function renderSidebar() {
});
});
const currentEl = contentList.querySelector('li.current-commit');
if (currentEl) {
// weich scrollen und zentriert in den Viewport bringen
currentEl.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
}
@@ -378,7 +677,6 @@ async function renderSidebar() {
const initial = await window.electronAPI.getSelected();
if (initial) await renderContent(initial);
// Add-Folder
addBtn.addEventListener('click', async () => {
await window.electronAPI.addFolder();
await renderSidebar();
@@ -386,10 +684,19 @@ async function renderSidebar() {
if (sel) await renderContent(sel);
});
// repo-updated, contextmenus usw.
window.addEventListener('repo-updated', e => {
if (titleEl.textContent === e.detail) renderContent(e.detail);
window.addEventListener('repo-updated', async e => {
closeDropdown();
const obj = await getFolderObjByPath(e.detail);
if (!obj) return;
const selected = await window.electronAPI.getSelected();
if (!selected || selected.path !== obj.path) {
await window.electronAPI.setSelected(obj);
await renderSidebar();
}
await renderContent(obj);
});
titleEl.addEventListener('contextmenu', e => {
e.preventDefault();
if (titleEl.textContent !== 'No folder selected') {
@@ -397,40 +704,81 @@ async function renderSidebar() {
}
});
const commitBtn = document.getElementById('commitBtn');
commitBtn.addEventListener('click', async () => {
// 1) Welcher Ordner ist gerade ausgewählt?
const folder = await window.electronAPI.getSelected();
if (!folder) {
alert('Kein Ordner ausgewählt!');
return;
window.electronAPI.onTrayToggleMonitoring(async (_e, folderPath) => {
const folders = await window.electronAPI.getFolders();
const folder = folders.find(f => f.path === folderPath);
if (folder) {
await window.electronAPI.setMonitoring(folder, !folder.monitoring);
await renderSidebar();
const selected = await window.electronAPI.getSelected();
if (selected && selected.path === folderPath) {
await renderContent(folder);
}
}
// 2) Nachricht abfragen
const message = 'test'
alert('Commit-Button geklickt!');
// 3) UI blockieren
commitBtn.disabled = true;
commitBtn.textContent = 'Committing…';
// 4) IPC‐Aufruf
const result = await window.electronAPI.commitCurrentFolder(folder, message);
console.log('[renderer] commit result:', result);
// 5) Ergebnis anzeigen und Liste neu laden
if (result.success) {
alert('Commit erfolgreich!');
await renderContent(folder);
} else {
alert('Commit fehlgeschlagen:\n' + result.error);
}
// 6) UI wieder freigeben
commitBtn.disabled = false;
commitBtn.textContent = 'Commit';
});
window.electronAPI.onTrayRemoveFolder(async (_e, folderPath) => {
const folders = await window.electronAPI.getFolders();
const folder = folders.find(f => f.path === folderPath);
if (folder) {
await window.electronAPI.removeFolder(folder);
await renderSidebar();
const all = await window.electronAPI.getFolders();
if (all.length === 0) {
titleEl.textContent = 'No folder selected';
contentList.innerHTML = '';
} else {
await window.electronAPI.setSelected(all[0]);
await renderContent(all[0]);
}
}
});
window.electronAPI.onTrayAddFolder(async () => {
await window.electronAPI.addFolder();
await renderSidebar();
const sel = await window.electronAPI.getSelected();
if (sel) await renderContent(sel);
});
window.electronAPI.onFoldersLocationUpdated(folderObj => {
const selector = `[data-folder-id="${encodeURIComponent(folderObj.path)}"]`;
const li = document.querySelector(selector);
if (li) {
if (folderObj.needsRelocation) {
li.classList.add('needs-relocation');
li.setAttribute('disabled', '');
} else {
li.classList.remove('needs-relocation');
}
renderSidebar();
}
});
window.electronAPI.onCatBegin(() => window.cat && window.cat.beginSpeech());
window.electronAPI.onCatChunk((_e, chunk) => window.cat && window.cat.appendSpeech(chunk));
window.electronAPI.onCatEnd(() => window.cat && window.cat.endSpeech());
const speakToCat = msg => {
window.cat.beginSpeech();
let i = 0;
function nextChar() {
if (i < msg.length) {
window.cat.appendSpeech(msg[i++]);
setTimeout(nextChar, 50);
} else {
window.cat.endSpeech();
}
}
nextChar();
};
window.electronAPI.getDailyCommitStats().then(stats => {
const today = new Date().toISOString().slice(0, 10);
const todayCount = stats[today] || 0;
window.updateCatGlow(todayCount);
});
window.updateCatGlow = function(commitCount) {
if (window.cat) window.cat.animateCatGlow(commitCount);
};
});

View File

@@ -4,119 +4,353 @@
<meta charset="UTF-8">
<title>Einstellungen</title>
<style>
/* Grund-Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
/* Default-Modus: Weißes Panel mit Rosa-Akzenten */
--bg-main: #ffe4e6; /* Hintergrund Content */
--bg-sidebar: #fff1f2; /* Sidebar */
--accent: #9f1239; /* Rosa */
--border: #fff;
}
body.sky-mode {
/* Sky-Mode: Himmelshintergrund und passende Akzente */
--bg-main: rgb(173,216,230); /* sanftes Baby-Blau */
--bg-sidebar: rgb(200,220,240); /* etwas dunkleres Blau */
--accent: rgb(20,60,100); /* dunkles Marine-Blau als Akzent */
--border: rgb(180,200,220);
background: var(--border);
}
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden; /* keine Scrollbars */
width: 100%; height: 100%;
overflow-x: hidden;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
display: flex;
align-items: center; /* vertikal zentrieren */
justify-content: center; /* horizontal zentrieren */
background: rgba(0,0,0,0.1);/* halbtransparenter Untergrund */
font-family: sans-serif;
justify-content: center;
align-items: center;
transition: background 0.5s ease;
}
/* Sky-Mode Hintergrund */
body {
background: var(--bg-main);
}
/* Dialog-Box */
.dialog {
border: 2px solid #fbcfe8;
border-radius: 8px;
padding: 1rem;
width: 100%; /* 90% der Fensterbreite */
height: 100%;
box-sizing: border-box;
background: white;
position: relative;
z-index: 10;
width: 100%;
color: var(--accent);
background: rgba(255,255,255,0.93);
border-radius: 5px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
padding: 1.8rem 1.8rem;
display: flex; flex-direction: column; gap: 1.2rem;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
/* Optionen */
.options { display: flex; flex-direction: column; gap: 1.0rem; }
label {
display: flex; align-items: center; font-size: 0.9rem;
color: #1e293b;
}
.header h1 {
font-size: 1.25rem;
margin: 0;
label.option input[type="checkbox"] {
margin-right: 0.8rem;
width: 1.3em;
height: 1.3em;
accent-color: var(--accent);
flex-shrink: 0; /* <-- das ist wichtig! */
}
.close-btn {
background: transparent;
border: none;
font-size: 1.25rem;
cursor: pointer;
color: #9f1239;
.row {
display: flex; align-items: center; justify-content: space-between;
}
.options {
display: flex;
flex-direction: column;
gap: 0.5rem;
.row > span {
flex: 1;
color: #1e293b;
font-weight: 600;
}
.option {
display: flex;
align-items: center;
.row > input,
.row > select {
/* wenn Du es schmaler willst: */
min-width: 80px;
max-width: 180px;
padding: 0.4em 0.4em;
border: 1.2px solid #cbd5e1;
border-radius: 6px;
background: #f8fafc;
color: #334155;
font-size: 0.9rem;
transition: border-color 0.2s, box-shadow 0.2s;
}
.option input[type="checkbox"] {
margin-left: 1.5rem;
margin-right: 0.5rem;
.row > input:focus,
.row > select:focus {
box-shadow: 0 0 0 2px rgba(56,189,248,0.3);
outline: none;
}
select, input[type="number"] {
min-width: 30px;
max-width: 100%;
padding: 0.4em 0.6em;
border: 1.2px solid #cbd5e1;
border-radius: 6px;
font-size: 1rem;
color: #334155;
background: #f8fafc;
margin-left: 0.8rem;
margin-right: 0.8rem;
}
/* Buttons */
.buttons {
margin-top: 1rem;
display: flex;
justify-content: flex-end;
gap: 0.5rem;
gap: 0.5em;
}
button {
padding: 0.4rem 0.8rem;
border-radius: 4px;
border: 1px solid #ccc;
background: white;
button{
border-radius: 8px;
padding: 0.5em 1.2em;
display: flex;
align-items: center;
border: none;
cursor: pointer;
background: var(--bg-sidebar);
color: var(--accent);
}
button:hover{
background: var(--bg-border);
}
/* Infotext */
#ollama-model-selectors label {
display: flex;
align-items: center;
gap: 0.6em;
margin-bottom: 0.3em;
}
#ollama-model-selectors select {
min-width: 100px;
max-width: 180px;
padding: 0.35em 0.5em;
border-radius: 6px;
font-size: 1rem;
border: 1.2px solid #cbd5e1;
background: #f8fafc;
color: #334155;
}
.needs-relocation {
opacity: 0.4;
filter: grayscale(0.8);
/* oder: color: #aaa; oder wie du magst */
}
.warning-icon {
margin-left: 8px;
color: #eab308; /* schönes gelb/orange */
font-size: 1.2em;
vertical-align: middle;
}
button:hover { background: #f3f4f6; }
</style>
<script>
window.addEventListener('DOMContentLoaded', async () => {
const cbSky = document.getElementById('skymode');
const cbSkip = document.getElementById('skipPrompt');
const ok = document.getElementById('okBtn');
const cancel = document.getElementById('cancelBtn');
const close = document.getElementById('closeBtn');
window.addEventListener('DOMContentLoaded', async () => {
const isSky = await window.settingsAPI.getSkyMode();
document.body.classList.toggle('sky-mode', isSky);
const [initialSky, initialSkip] = await Promise.all([
window.settingsAPI.getSkyMode(),
window.settingsAPI.getSkipPrompt()
]);
// Elemente holen
const themeSelect = document.getElementById('themeSelect');
const cbSky = document.getElementById('skymode');
const cbSkip = document.getElementById('skipPrompt');
const thresholdInput = document.getElementById('intelligentCommitThresholdInput');
const minutesInput = document.getElementById('intelligentCommitMinutesInput');
const ok = document.getElementById('okBtn');
const cancel = document.getElementById('cancelBtn');
const cbAutostart = document.getElementById('autostart');
const cbCloseToTray= document.getElementById('closeToTray');
cbSky.checked = initialSky;
cbSkip.checked = initialSkip;
const [initialAutostart, initialCloseToTray] = await Promise.all([
window.settingsAPI.getAutostart(),
window.settingsAPI.getCloseToTray()
]);
cbAutostart.checked = initialAutostart;
cbCloseToTray.checked = initialCloseToTray;
ok.addEventListener('click', async () => {
await window.settingsAPI.setSkyMode(cbSky.checked);
await window.settingsAPI.setSkipPrompt(cbSkip.checked);
window.close();
});
cancel.addEventListener('click', () => window.close());
close.addEventListener('click', () => window.close());
// Initialwerte parallel laden
const [initialSky, initialSkip, initialThreshold, initialMinutes] = await Promise.all([
window.settingsAPI.getSkyMode(),
window.settingsAPI.getSkipPrompt(),
window.electronAPI.getIntelligentCommitThreshold(),
window.electronAPI.getMinutesCommitThreshold()
]);
// Inputs setzen
cbSky.checked = initialSky;
cbSkip.checked = initialSkip;
thresholdInput.value = initialThreshold;
minutesInput.value = initialMinutes;
// **Vorschau**: Sky-Mode sofort übernehmen
cbSky.addEventListener('change', async () => {
await window.settingsAPI.setSkyMode(cbSky.checked);
document.body.classList.toggle('sky-mode', cbSky.checked);
});
</script>
// OK: alles final speichern
ok.addEventListener('click', async () => {
await window.settingsAPI.setSkipPrompt(cbSkip.checked);
await window.settingsAPI.setAutostart(cbAutostart.checked);
await window.settingsAPI.setCloseToTray(cbCloseToTray.checked);
// SkyMode haben wir ja schon beim Change gesetzt
// Threshold speichern (immer Wert aus Feld nehmen!)
let threshold = parseInt(thresholdInput.value, 10);
if (isNaN(threshold)) threshold = 10;
if (threshold < 1) threshold = 1;
if (threshold > 1000) threshold = 1000;
await window.settingsAPI.setIntelligentCommitThreshold(threshold);
let minutes = parseInt(minutesInput.value, 10);
if (isNaN(minutes)) minutes = 10;
if (minutes < 1) minutes = 1;
if (minutes > 1000) minutes = 60;
await window.settingsAPI.setMinutesCommitThreshold(minutes);
// Dropdowns speichern
const commitSel = document.getElementById('commitModelSelect');
const readmeSel = document.getElementById('readmeModelSelect');
if (commitSel) await window.settingsAPI.setCommitModel(commitSel.value);
if (readmeSel) await window.settingsAPI.setReadmeModel(readmeSel.value);
window.settingsAPI.close();
});
// Cancel / Close: SkyMode zurücksetzen, dann schließen
const rollback = async () => {
await window.settingsAPI.setSkyMode(initialSky);
window.settingsAPI.close();
};
cancel.addEventListener('click', rollback);
const container = document.getElementById('ollama-model-selectors');
const res = await window.electronAPI.ollamaList();
if (res.status === 'no-cli') {
container.innerHTML = `
<div style="color:red;font-weight:bold;margin:1em 0;">
!! You need to install Ollama to use intelligent message & README generation !!
</div>`;
return;
}
if (res.status === 'error') {
container.innerHTML = `<div style="color:orange">Error fetching models: ${res.msg}</div>`;
return;
}
// Liste der Modell-Namen extrahieren
const names = res.models.map(m => m.name || m.model).filter(Boolean);
const qwen = names.filter(n => /^qwen2\.5-coder(:[\w\-.]+)?$/.test(n));
if (!qwen.length) {
// keine qwen2.5-coder → Pull-Buttons
container.innerHTML = `
<button id="pullCommitModelBtn" style="margin-bottom:8px;">
ollama pull qwen2.5-coder:7b
</button><br>
<button id="pullReadmeModelBtn">
ollama pull qwen2.5-coder:32b
</button>`;
document.getElementById('pullCommitModelBtn').onclick = async () => {
await window.electronAPI.ollamaPull('qwen2.5-coder:7b');
location.reload();
};
document.getElementById('pullReadmeModelBtn').onclick = async () => {
await window.electronAPI.ollamaPull('qwen2.5-coder:32b');
location.reload();
};
return;
}
// Dropdowns aufbauen
const makeOpts = (arr, sel) =>
arr.map(m => `<option ${m===sel?'selected':''}>${m}</option>`).join('');
// Default-Auswahl aus Settings (oder erstes gefundenes)
const commitDefault = qwen.find(m=>m.includes('7b'))||qwen[0];
const readmeDefault= qwen.find(m=>m.includes('32b'))||qwen[0];
const currentCommit = await window.settingsAPI.getCommitModel?.() || commitDefault;
const currentReadme= await window.settingsAPI.getReadmeModel?.() || readmeDefault;
container.innerHTML = `
<div class="row">
<label>Model for commit message generation:
<select id="commitModelSelect">
${makeOpts(qwen, currentCommit)}
</select>
</label>
<label>Model for README generation:
<select id="readmeModelSelect">
${makeOpts(qwen, currentReadme)}
</select>
</label>
</div>`;
});
</script>
</head>
<body>
<div class="dialog">
<div class="header">
<h1>Einstellungen</h1>
<button class="close-btn" id="closeBtn">✕</button>
</div>
<div class="options">
<label class="option">
<input type="checkbox" id="skymode" />
Sky Mode aktivieren
<input type="checkbox" id="autostart" />
Launch on System start
</label>
<label class="option">
<input type="checkbox" id="skipPrompt" />
<input type="checkbox" id="closeToTray" checked />
Close to Tray
</label>
<label class="option">
<input type="checkbox" id="skymode" />
Sky Theme
</label>
<label class="option" style="align-items:center;">
Theme:
<select id="themeSelect" style="margin-left:1em;">
<option value="default">Cits Favorite</option>
<option value="sky">Sky</option>
<option value="epic">Epic</option>
<option value="yinyang" disabled>Yin/Yang (coming soon)</option>
</select>
</label>
<label class="option">
<input type="checkbox" id="skipPrompt" class="flex-none" />
Skip prompt asking to remove .git folder if it has only one commit and no changes
</label>
<label class="block mb-2 font-semibold">
Rewrite commits after
<input type="number" id="intelligentCommitThresholdInput" min="1" max="1000" value="10" step="1" class="border rounded px-2 py-1 w-20 mx-1" class="flex-none">
lines of diff or
<input type="number" id="intelligentCommitMinutesInput" min="1" max="1000" value="10" step="1" class="border rounded px-2 py-1 w-20 mx-1" class="flex-none">
minutes have passed
</label>
<div class="options">
<!-- Hier kommt das Model-Selector-HTML rein -->
<div id="ollama-model-selectors"></div>
</div>
<!-- Weitere Optionen in Zukunft hier hinzufügen -->
</div>
<div class="buttons">
<button id="cancelBtn">Abbrechen</button>
<button id="okBtn">OK</button>
<button id="cancelBtn" class="text-sm font-medium">
<svg width="18" height="18" viewBox="0 0 20 20" fill="none" class="icon-left">
<path d="M6 6l8 8M6 14L14 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
</button>
<button id="okBtn" class="text-sm font-medium">
<svg width="18" height="18" viewBox="0 0 20 20" fill="none" class="icon-left">
<path d="M5 11l4 4L15 7" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
</button>
</div>
</div>
</body>