je-editor 0.0.221__py3-none-any.whl → 0.0.222__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of je-editor might be problematic. Click here for more details.
- je_editor/code_scan/ruff_thread.py +33 -6
- je_editor/code_scan/watchdog_implement.py +42 -20
- je_editor/code_scan/watchdog_thread.py +54 -9
- je_editor/git_client/commit_graph.py +32 -43
- je_editor/git_client/{git.py → git_action.py} +1 -1
- je_editor/git_client/git_cli.py +4 -4
- je_editor/git_client/github.py +36 -5
- je_editor/pyside_ui/browser/browser_download_window.py +41 -5
- je_editor/pyside_ui/browser/browser_serach_lineedit.py +25 -1
- je_editor/pyside_ui/browser/browser_view.py +42 -1
- je_editor/pyside_ui/browser/browser_widget.py +43 -14
- je_editor/pyside_ui/git_ui/code_diff_compare/__init__.py +0 -0
- je_editor/pyside_ui/git_ui/code_diff_compare/code_diff_viewer_widget.py +90 -0
- je_editor/pyside_ui/git_ui/code_diff_compare/line_number_code_viewer.py +141 -0
- je_editor/pyside_ui/git_ui/code_diff_compare/multi_file_diff_viewer.py +88 -0
- je_editor/pyside_ui/git_ui/code_diff_compare/side_by_side_diff_widget.py +271 -0
- je_editor/pyside_ui/git_ui/git_client/__init__.py +0 -0
- je_editor/pyside_ui/git_ui/{git_branch_tree_widget.py → git_client/git_branch_tree_widget.py} +17 -14
- je_editor/pyside_ui/git_ui/git_client/git_client_gui.py +734 -0
- je_editor/pyside_ui/main_ui/ai_widget/langchain_interface.py +1 -1
- je_editor/pyside_ui/main_ui/main_editor.py +0 -3
- je_editor/pyside_ui/main_ui/menu/dock_menu/build_dock_menu.py +14 -3
- je_editor/pyside_ui/main_ui/menu/tab_menu/build_tab_menu.py +19 -4
- je_editor/utils/multi_language/english.py +2 -1
- je_editor/utils/multi_language/traditional_chinese.py +2 -2
- {je_editor-0.0.221.dist-info → je_editor-0.0.222.dist-info}/METADATA +3 -3
- {je_editor-0.0.221.dist-info → je_editor-0.0.222.dist-info}/RECORD +32 -26
- je_editor/pyside_ui/git_ui/git_client_gui.py +0 -291
- /je_editor/pyside_ui/git_ui/{commit_table.py → git_client/commit_table.py} +0 -0
- /je_editor/pyside_ui/git_ui/{graph_view.py → git_client/graph_view.py} +0 -0
- {je_editor-0.0.221.dist-info → je_editor-0.0.222.dist-info}/WHEEL +0 -0
- {je_editor-0.0.221.dist-info → je_editor-0.0.222.dist-info}/licenses/LICENSE +0 -0
- {je_editor-0.0.221.dist-info → je_editor-0.0.222.dist-info}/top_level.txt +0 -0
|
File without changes
|
je_editor/pyside_ui/git_ui/{git_branch_tree_widget.py → git_client/git_branch_tree_widget.py}
RENAMED
|
@@ -10,8 +10,8 @@ from PySide6.QtWidgets import (
|
|
|
10
10
|
|
|
11
11
|
from je_editor.git_client.commit_graph import CommitGraph
|
|
12
12
|
from je_editor.git_client.git_cli import GitCLI
|
|
13
|
-
from je_editor.pyside_ui.git_ui.commit_table import CommitTable
|
|
14
|
-
from je_editor.pyside_ui.git_ui.graph_view import CommitGraphView
|
|
13
|
+
from je_editor.pyside_ui.git_ui.git_client.commit_table import CommitTable
|
|
14
|
+
from je_editor.pyside_ui.git_ui.git_client.graph_view import CommitGraphView
|
|
15
15
|
from je_editor.utils.multi_language.multi_language_wrapper import language_wrapper
|
|
16
16
|
|
|
17
17
|
logging.basicConfig(level=logging.INFO)
|
|
@@ -24,20 +24,20 @@ class GitTreeViewGUI(QWidget):
|
|
|
24
24
|
self.language_wrapper_get = language_wrapper.language_word_dict.get
|
|
25
25
|
self.setWindowTitle(self.language_wrapper_get("git_graph_title"))
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
git_treeview_main_layout = QVBoxLayout(self)
|
|
28
|
+
git_treeview_main_layout.setContentsMargins(0, 0, 0, 0)
|
|
29
|
+
git_treeview_main_layout.setSpacing(0)
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
git_treeview_toolbar = QToolBar()
|
|
32
|
+
open_repo_action = QAction(self.language_wrapper_get("git_graph_toolbar_open"), self)
|
|
33
|
+
open_repo_action.triggered.connect(self.open_repo)
|
|
34
|
+
git_treeview_toolbar.addAction(open_repo_action)
|
|
35
35
|
|
|
36
36
|
act_refresh = QAction(self.language_wrapper_get("git_graph_toolbar_refresh"), self)
|
|
37
37
|
act_refresh.triggered.connect(self.refresh_graph)
|
|
38
|
-
|
|
38
|
+
git_treeview_toolbar.addAction(act_refresh)
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
git_treeview_main_layout.addWidget(git_treeview_toolbar)
|
|
41
41
|
|
|
42
42
|
splitter = QSplitter(Qt.Orientation.Horizontal)
|
|
43
43
|
self.graph_view = CommitGraphView()
|
|
@@ -45,10 +45,10 @@ class GitTreeViewGUI(QWidget):
|
|
|
45
45
|
splitter.addWidget(self.graph_view)
|
|
46
46
|
splitter.addWidget(self.commit_table)
|
|
47
47
|
splitter.setSizes([600, 400])
|
|
48
|
-
|
|
48
|
+
git_treeview_main_layout.addWidget(splitter, 1) # 1 表示可伸縮
|
|
49
49
|
|
|
50
50
|
self.status = QStatusBar()
|
|
51
|
-
|
|
51
|
+
git_treeview_main_layout.addWidget(self.status)
|
|
52
52
|
|
|
53
53
|
self.repo_path = None
|
|
54
54
|
self.git = None
|
|
@@ -70,6 +70,7 @@ class GitTreeViewGUI(QWidget):
|
|
|
70
70
|
self.graph_view.focus_row(row)
|
|
71
71
|
|
|
72
72
|
def open_repo(self):
|
|
73
|
+
# Open repo and set up the graph.
|
|
73
74
|
path = QFileDialog.getExistingDirectory(self, self.language_wrapper_get("git_graph_menu_open_repo"))
|
|
74
75
|
if not path:
|
|
75
76
|
return
|
|
@@ -100,10 +101,12 @@ class GitTreeViewGUI(QWidget):
|
|
|
100
101
|
if refs_dir.exists():
|
|
101
102
|
self.watcher.addPath(str(refs_dir))
|
|
102
103
|
|
|
103
|
-
def _on_git_changed(self
|
|
104
|
+
def _on_git_changed(self):
|
|
105
|
+
# Refresh git tree timer
|
|
104
106
|
self.refresh_timer.start(500)
|
|
105
107
|
|
|
106
108
|
def refresh_graph(self):
|
|
109
|
+
# Refresh git tree
|
|
107
110
|
if not self.git:
|
|
108
111
|
return
|
|
109
112
|
try:
|