This commit is contained in:
Devon22 2025-08-16 00:36:35 +08:00
parent 03969129e5
commit 9b1906af0f
8 changed files with 1015 additions and 289 deletions

View file

@ -1,7 +1,7 @@
{
"id": "gridexplorer",
"name": "GridExplorer",
"version": "2.9.3",
"version": "2.9.4",
"minAppVersion": "1.1.0",
"description": "Browse note files in a grid view.",
"author": "Devon22",

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "gridexplorer",
"version": "2.9.3",
"version": "2.9.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "gridexplorer",
"version": "2.9.3",
"version": "2.9.4",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",

View file

@ -1,6 +1,6 @@
{
"name": "gridexplorer",
"version": "2.9.3",
"version": "2.9.4",
"description": "Browse note files in a grid view.",
"main": "main.js",
"scripts": {

File diff suppressed because it is too large Load diff

View file

@ -466,7 +466,9 @@ export function renderModePath(gridView: GridView) {
}
}
menu.showAtMouseEvent(event);
if (gridView.sourcePath !== '/') {
menu.showAtMouseEvent(event);
}
});
}
}

View file

@ -313,6 +313,11 @@ export const TRANSLATIONS: Translations = {
'use_quick_access_mode': '使用快速存取模式',
'open_quick_access_folder': '開啟快速存取資料夾',
'open_quick_access_mode': '開啟快速存取模式',
// Explorer Stash
'stash': '暫存區',
'drop_files_here': '拖曳檔案到此暫存',
'clear': '清空',
'save_stash_as_markdown': '將暫存區存為 Markdown',
},
'en': {
// Notifications
@ -607,6 +612,11 @@ export const TRANSLATIONS: Translations = {
'use_quick_access_mode': 'Use quick access mode',
'open_quick_access_folder': 'Open quick access folder',
'open_quick_access_mode': 'Open quick access mode',
// Explorer Stash
'stash': 'Stash',
'drop_files_here': 'Drop files here to stash',
'clear': 'Clear',
'save_stash_as_markdown': 'Save stash as Markdown',
},
'zh': {
// 通知信息
@ -899,6 +909,11 @@ export const TRANSLATIONS: Translations = {
'use_quick_access_mode': '使用快速访问模式',
'open_quick_access_folder': '打开快速访问文件夹',
'open_quick_access_mode': '打开快速访问模式',
// Explorer Stash
'stash': '暂存区',
'drop_files_here': '拖曳文件到此暂存',
'clear': '清空',
'save_stash_as_markdown': '将暂存区保存为 Markdown',
},
'ja': {
// 通知メッジ
@ -1192,6 +1207,11 @@ export const TRANSLATIONS: Translations = {
'use_quick_access_mode': 'クイックアクセスモードを使用する',
'open_quick_access_folder': 'クイックアクセス フォルダーを開く',
'open_quick_access_mode': 'クイックアクセスモードを開く',
// Explorer Stash
'stash': '一時保存',
'drop_files_here': 'ここにドラッグして一時保存',
'clear': 'クリア',
'save_stash_as_markdown': '一時保存をMarkdownとして保存',
},
'ru': {
// Notifications
@ -1484,6 +1504,11 @@ export const TRANSLATIONS: Translations = {
'use_quick_access_mode': 'Использовать режим быстрого доступа',
'open_quick_access_folder': 'Открыть папку быстрого доступа',
'open_quick_access_mode': 'Открыть быстрый доступ по режиму',
// Explorer Stash
'stash': 'Буфер',
'drop_files_here': 'Перетащите файлы сюда, чтобы сохранить',
'clear': 'Очистить',
'save_stash_as_markdown': 'Сохранить буфер как Markdown',
},
'uk': {
// Notifications
@ -1776,5 +1801,10 @@ export const TRANSLATIONS: Translations = {
'use_quick_access_mode': 'Використовувати режим швидкого доступу',
'open_quick_access_folder': 'Відкрити папку швидкого доступу',
'open_quick_access_mode': 'Відкрити швидкий доступ за режимом',
// Explorer Stash
'stash': 'Тимчасове сховище',
'drop_files_here': 'Перетягніть файли сюди для збереження',
'clear': 'Очистити',
'save_stash_as_markdown': 'Зберегти сховище як Markdown',
}
}

View file

@ -2070,6 +2070,43 @@ a.ge-current-folder:hover {
display: none;
}
/* ExplorerView - Mobile spacing & touch targets */
.is-mobile .ge-explorer-folder-header,
.is-mobile .ge-explorer-mode-item {
padding: 8px 10px; /* ↑ from 4px 6px */
gap: 10px; /* ↑ from 6px */
min-height: 36px; /* 提升最小點擊高度,可視需要調整到 4044px */
border-radius: var(--radius-s);
}
/* 頂層根節點 header 的外距在手機放大一點,避免項目太擠 */
.is-mobile .ge-explorer-view-container > .ge-explorer-folder-node > .ge-explorer-folder-header {
margin: 8px 10px; /* ↑ from 6px 8px */
}
/* 讓切換箭頭與圖示在手機更好點 */
.is-mobile .ge-explorer-folder-toggle,
.is-mobile .ge-explorer-folder-icon {
width: 20px; /* ↑ from 16px */
height: 20px; /* ↑ from 16px */
}
/* 模式子項的縮排在手機視覺可略加(可選) */
.is-mobile .ge-explorer-mode-item {
padding-left: 32px; /* ↑ from 28px */
}
/* 列與列之間多一點空隙(可選,避免過度擁擠) */
.is-mobile .ge-explorer-folder-header {
margin-bottom: 5px; /* ↑ from 3px */
}
/* 降低手機點擊的藍色高亮痕跡(可選) */
.is-mobile .ge-explorer-folder-header,
.is-mobile .ge-explorer-mode-item {
-webkit-tap-highlight-color: transparent;
}
/* --------------------------------------------------------------------------- */
/* 統一三個根節點(自訂模式/模式/Folder的上下間距與外觀 */
/* 頂層根節點 header統一外距與圓角自訂模式/模式/Folder */
@ -2188,3 +2225,82 @@ a.ge-current-folder:hover {
background-color: var(--background-modifier-hover);
box-shadow: 0 0 0 2px var(--interactive-accent);
}
/* --------------------------------------------------------------------------- */
/* ExplorerView Stash Group */
.ge-explorer-stash-dropzone {
padding-left: 28px; /* 與 .ge-explorer-mode-item 一致的縮排 */
border: 1px dashed var(--background-modifier-border);
border-radius: var(--radius-s);
margin: 4px 0px 4px -1px;
color: var(--text-muted);
}
.ge-explorer-stash-dropzone:hover,
.ge-explorer-stash-dropzone.ge-dragover {
background-color: var(--background-modifier-hover);
border-color: var(--interactive-accent);
color: var(--text-normal);
}
/* 整個暫存區作為拖曳區塊時的高亮(避免版面位移,使用 inset box-shadow */
.ge-explorer-stash-node.ge-dragover {
background-color: var(--background-modifier-hover);
box-shadow: inset 0 0 0 1px var(--interactive-accent);
border-radius: var(--radius-s);
}
/* 在整區拖曳高亮時,隱藏空暫存 dropzone 的邊框/背景,避免覆蓋底部邊線效果 */
.ge-explorer-stash-node.ge-dragover .ge-explorer-stash-dropzone {
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
/* dropzone 僅作為展示,不攔截事件(避免影響整區拖曳與點擊) */
.ge-explorer-stash-dropzone {
pointer-events: none;
}
.ge-explorer-stash-item {
padding-left: 28px; /* 與 .ge-explorer-mode-item 一致的縮排 */
position: relative; /* 供插入指示線定位 */
}
/* 暫存區內部排序時的 hover 樣式 */
.ge-explorer-stash-item.ge-dragover {
background-color: var(--background-modifier-hover);
outline: 1px dashed var(--interactive-accent);
}
/* 暫存區拖曳排序:插入指示線(上方) */
.ge-explorer-stash-item.ge-stash-insert-before::before {
content: "";
position: absolute;
left: 20px; /* 與內容縮排對齊,略小於 28px 以避開圖示 */
right: 8px;
top: -1px;
height: 0;
border-top: 2px solid var(--interactive-accent);
pointer-events: none;
}
/* 暫存區拖曳排序:插入指示線(下方) */
.ge-explorer-stash-item.ge-stash-insert-after::after {
content: "";
position: absolute;
left: 20px;
right: 8px;
bottom: -1px;
height: 0;
border-bottom: 2px solid var(--interactive-accent);
pointer-events: none;
}
/* 讓 stash item 的圖示可沿用 grid 的色票類別 */
.ge-explorer-stash-item .ge-explorer-folder-icon.ge-img { color: var(--color-blue); }
.ge-explorer-stash-item .ge-explorer-folder-icon.ge-video { color: var(--color-red); }
.ge-explorer-stash-item .ge-explorer-folder-icon.ge-audio { color: var(--color-purple); }
.ge-explorer-stash-item .ge-explorer-folder-icon.ge-pdf { color: var(--color-orange); }
.ge-explorer-stash-item .ge-explorer-folder-icon.ge-canvas { color: var(--color-green); }
.ge-explorer-stash-item .ge-explorer-folder-icon.ge-base { color: var(--color-cyan); }

View file

@ -1,3 +1,3 @@
{
"2.9.3": "1.1.0"
"2.9.4": "1.1.0"
}