From 444009ba250cd328ae4c4050f63a62cca58157a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Vogel?= Date: Mon, 26 Oct 2026 00:43:39 +0100 Subject: [PATCH] =?UTF-8?q?Bump=20glpython-editor=20to=20v0.1.12;=20=C2=AB?= =?UTF-8?q?Python=20neu=20starten=C2=BB=20by=20the=20reset=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v0.1.12 (glpython-edu/glpython-editor#31): Run, Tests and Visualize always import the current project files - a removed or renamed file can't be imported under its old name anymore; and the reset command restarts Python. «Python neu starten» now sends that command instead of mounting the workspace anew, so the editor stays as it is. Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/App.tsx | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f82611e..5736f05 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ The IDE looks like the LiaScript embed, only larger: under development tools: delete the local project, with a confirmation). There is no Zurücksetzen in the bar: ▶ already starts with a fresh namespace and an empty console, ■ stops a hung program, and «Python neu starten» (a new - workspace, as the embed's Reset; the code stays) is in ⋮. + Python and an empty console, as the embed's Reset; the code stays) is in ⋮. - **Left edge:** **Dateien** (a drawer over the editor: the project name, its files, new, rename, delete) and **Python-Referenz**, labelled in their tooltips. Every file is also a tab above the editor. diff --git a/package-lock.json b/package-lock.json index 3273ece..e13aff8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0", "dependencies": { "@azure/msal-browser": "^5.22.0", - "glpython-editor": "git+https://github.com/glpython-edu/glpython-editor.git#v0.1.11", + "glpython-editor": "git+https://github.com/glpython-edu/glpython-editor.git#v0.1.12", "jszip": "^3.10.2", "lucide-react": "^1.47.0", "lz-string": "^1.5.0", @@ -803,7 +803,7 @@ }, "node_modules/glpython-editor": { "version": "0.1.0", - "resolved": "git+ssh://git@github.com/glpython-edu/glpython-editor.git#7f593b183ae3a12f0ef0157976b5db33f00f7b9c", + "resolved": "git+ssh://git@github.com/glpython-edu/glpython-editor.git#15157d72b02446128ae71e875cd6c8ea257329cf", "peerDependencies": { "@monaco-editor/react": "^4.7.0", "lucide-react": "^1.47.0", diff --git a/package.json b/package.json index 1358a94..56f2fff 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@azure/msal-browser": "^5.22.0", - "glpython-editor": "git+https://github.com/glpython-edu/glpython-editor.git#v0.1.11", + "glpython-editor": "git+https://github.com/glpython-edu/glpython-editor.git#v0.1.12", "jszip": "^3.10.2", "lucide-react": "^1.47.0", "lz-string": "^1.5.0", diff --git a/src/App.tsx b/src/App.tsx index dcdac3e..792df5d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState, type KeyboardEvent as ReactKeyboardEvent } from 'react' import { BookOpen, CircleHelp, Download, EllipsisVertical, FileCode2, Folder, FolderOpen, Link2, Pencil, Plus, RotateCcw, Sparkles, Trash2, Upload, X } from 'lucide-react' import { GlPythonWorkspace, addProjectFile, deleteProjectFile, initialProject, renameProjectFile, updateProjectFile } from 'glpython-editor' -import type { ProjectFileKind } from 'glpython-editor' +import type { ProjectFileKind, WorkspaceCommand } from 'glpython-editor' import 'glpython-editor/style.css' import { initializeAuth } from './auth' import { clearLocalProject, exportProjectZip, importProjectFolder, importProjectZip, loadLocalProject, saveLocalProject } from './projectStorage' @@ -55,9 +55,9 @@ function App() { const [isDrawerOpen, setIsDrawerOpen] = useState(false) const [isMenuOpen, setIsMenuOpen] = useState(false) const [shareCopied, setShareCopied] = useState(false) - // «Python neu starten» mounts the workspace anew: a new Python, an empty - // console - as the embed's Reset. The code is the IDE's and stays. - const [workspaceGeneration, setWorkspaceGeneration] = useState(0) + // «Python neu starten»: the workspace's reset command - a new Python and an + // empty console, as the embed's Reset; the code is the IDE's and stays. + const [workspaceCommand, setWorkspaceCommand] = useState(null) const zipInputRef = useRef(null) const drawerRef = useRef(null) const filesButtonRef = useRef(null) @@ -199,7 +199,7 @@ function App() {
{isMenuOpen &&
{ if (event.key === 'Escape') { event.preventDefault(); closeMenu() } else if (event.key === 'Tab') setIsMenuOpen(false); else moveMenuFocus(event, menuRef.current) }}> - +
@@ -244,7 +244,6 @@ function App() {
{authErrorMessage &&
{authErrorMessage}
}