fix: trash duplicate path, journal tabs, today undefined, mouse back, inbox search
- Trash: removed duplicate fsPath display, folders/files open by clicking icon/name - Trash: removed separate 'Open' button, only restore/delete right-aligned - Trash: added ReadTrashFileContent binding + preview for files - Trash: breadcrumb path under title, compact date display - Journal: split into 'Предложения' + 'Журнал работы' tabs - Journal: suggestions tab opens by default - Today: fixed undefined in feed (null-guard on eventType/title) - Today: improved event type label readability (blue badge style) - Today: folder_deleted clicks navigate to trash - Mouse Back: added mouseup fallback for Wails compat, handle button 3/4 - SearchNodes: case-insensitive with LOWER() - Inbox assign: added search hint placeholder
This commit is contained in:
@@ -298,6 +298,21 @@ func listTrashEntries(trashPath string) ([]TrashEntryDTO, error) {
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (a *App) ReadTrashFileContent(nodeID string) (string, error) {
|
||||
if err := a.requireVault(); err != nil {
|
||||
return "", err
|
||||
}
|
||||
path, err := a.findTrashEntryForNode(nodeID)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
data, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return string(data), nil
|
||||
}
|
||||
|
||||
func (a *App) OpenTrashFolder() error {
|
||||
if err := a.requireVault(); err != nil {
|
||||
return err
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -19,8 +19,8 @@
|
||||
background: #13131f;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/assets/main-CtkslTth.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/main--SNK_nBk.css">
|
||||
<script type="module" crossorigin src="/assets/main-PQ2CZjSe.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/main-Bomne4X7.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user