Compare commits

..
Author SHA1 Message Date
Typosaurus 32314fc6d6 ticket #68 attempt 1 2026-07-19 20:15:39 +00:00
7 changed files with 9 additions and 10 deletions
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -7,12 +7,12 @@ from devplacepy.cli._shared import _audit_cli
def _remove_zip_artifacts(job):
import shutil
from pathlib import Path
from devplacepy.services.jobs.zip_service import STAGING_DIR
from devplacepy.config import ZIP_STAGING_DIR
local_path = (job.get("result") or {}).get("local_path")
if local_path:
Path(local_path).unlink(missing_ok=True)
shutil.rmtree(STAGING_DIR / job["uid"], ignore_errors=True)
shutil.rmtree(ZIP_STAGING_DIR / job["uid"], ignore_errors=True)
def cmd_zips_prune(args):
-1
View File
@@ -685,7 +685,6 @@ def import_from_dir(project_uid: str, src_dir, user: dict, *, skip_names=None) -
def export_to_dir(project_uid: str, subpath: str, dest_dir) -> int:
_guard_writable(project_uid)
dest = Path(dest_dir).resolve()
dest.mkdir(parents=True, exist_ok=True)
if subpath:
+1
View File
@@ -115,6 +115,7 @@ devii-terminal.devii-state-fullscreen .devii-window {
}
devii-terminal.devii-state-normal .devii-window {
resize: both;
}
devii-terminal.devii-state-normal .devii-titlebar {
cursor: move;
-1
View File
@@ -86,7 +86,6 @@ export class DeviiTerminal {
}
_canOpenOnGesture() {
if (this.element && this.element.state !== "closed") return false;
if (document.querySelector(".modal-overlay.visible")) return false;
if (document.querySelector(".dialog-overlay.visible")) return false;
if (document.querySelector(".context-menu.visible")) return false;
@@ -297,8 +297,8 @@ export default class FloatingWindow extends Component {
if (!this.geometry) return;
const g = this.geometry;
const safeHeight = this._safeViewport.height;
g.width = Math.max(320, Math.min(g.width, window.innerWidth - 16));
g.height = Math.max(220, Math.min(g.height, safeHeight - 16));
g.width = Math.min(g.width, window.innerWidth - 16);
g.height = Math.min(g.height, safeHeight - 16);
g.left = Math.max(8, Math.min(g.left, window.innerWidth - g.width - 8));
g.top = Math.max(8, Math.min(g.top, safeHeight - g.height - 8));
}
@@ -409,8 +409,8 @@ export default class FloatingWindow extends Component {
this._ro = new ResizeObserver(() => {
if (this.state === "normal" && this.geometry && !this._drag) {
const rect = this.win.getBoundingClientRect();
this.geometry.width = Math.max(320, Math.round(rect.width));
this.geometry.height = Math.max(220, Math.round(rect.height));
this.geometry.width = Math.round(rect.width);
this.geometry.height = Math.round(rect.height);
this._persistGeometry();
}
this._syncControls();
+1 -1
View File
@@ -16,7 +16,7 @@ def _init_db_fork_jobs():
@pytest.fixture
def fork_env(tmp_path, monkeypatch):
monkeypatch.setattr(
"devplacepy.services.jobs.fork_service.STAGING_DIR", tmp_path / "staging"
"devplacepy.services.jobs.fork_service.FORK_STAGING_DIR", tmp_path / "staging"
)
monkeypatch.setattr("devplacepy.project_files.PROJECT_FILES_DIR", tmp_path / "pf")
yield tmp_path