feat: vault core/CLI/workbench, vaultd token path, filetree view-state cleanup
Land password-vault dedicated workbench and mnote-vault-core/CLI, agent token read path design, vault transport split, and retire obsolete filetree smokes. Ignore local vault reimport scripts that trip secret scanners.
This commit is contained in:
@@ -186,12 +186,29 @@ export const createSidebarPageTreeRuntime = (dependencies = {}) => {
|
||||
function clearPageDropFeedback() {
|
||||
if (activePageDropRow instanceof HTMLElement) {
|
||||
activePageDropRow.setAttribute('data-drop-feedback', 'false');
|
||||
activePageDropRow.setAttribute('data-drop-target', 'false');
|
||||
activePageDropRow.removeAttribute('data-drop-position');
|
||||
}
|
||||
activePageDropRow = null;
|
||||
}
|
||||
|
||||
function setActivePageDropRow(row) {
|
||||
activePageDropRow = row instanceof HTMLElement ? row : null;
|
||||
function setActivePageDropRow(row, position) {
|
||||
if (!(row instanceof HTMLElement)) {
|
||||
clearPageDropFeedback();
|
||||
return;
|
||||
}
|
||||
if (activePageDropRow && activePageDropRow !== row) {
|
||||
clearPageDropFeedback();
|
||||
}
|
||||
activePageDropRow = row;
|
||||
activePageDropRow.setAttribute('data-drop-feedback', 'true');
|
||||
activePageDropRow.setAttribute('data-drop-target', 'true');
|
||||
// Always refresh position so before↔after on the same row updates the edge line.
|
||||
if (position) {
|
||||
activePageDropRow.setAttribute('data-drop-position', position);
|
||||
} else {
|
||||
activePageDropRow.removeAttribute('data-drop-position');
|
||||
}
|
||||
}
|
||||
|
||||
function clearPageDragState() {
|
||||
|
||||
Reference in New Issue
Block a user