You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f64fb92
Browse filesBrowse the repository at this point in the historyBrowse files
-**Generate code dialog:****Test in browser** (only when JavaScript is selected): confirmation explains valid JS in free lines; opens a temporary **HTML** preview via the system browser (`</script>` in user code is escaped).
29
+
30
+
Full notes: [`release-notes/v1.0.8.md`](release-notes/v1.0.8.md).
31
+
25
32
## Changes in 1.0.7 (summary)
26
33
27
34
-**Code generator:****Delphi/Pascal** removed; **Python** added (**3.10+**, `match` / `case` for multi-way branches); dialog is **localized**; target language stored in **`visustruct.properties`** as **`celanguage`**: `0` = Java, `1` = Python.
@@ -78,7 +85,7 @@ This release aligns **branding and technical identity** with **VisuStruct**. **`
78
85
-**Java 17** target (build and run with JDK 17+).
79
86
-**FlatLaf** light/dark themes; **JDOM2**; no legacy AppleJavaExtensions.
80
87
-**Motif** look-and-feel removed; **Metal** and FlatLaf available.
81
-
- Current fat JAR name follows **`pom.xml`****`version`** (e.g. **`visustruct-1.0.7.jar`**).
88
+
- Current fat JAR name follows **`pom.xml`****`version`** (e.g. **`visustruct-1.0.8.jar`**).
82
89
83
90
---
84
91
@@ -102,7 +109,7 @@ On **Windows**, double-click often works if `.jar` is associated with Java.
102
109
103
110
All releases: [github.com/code4teaching/VisuStruct/releases](https://github.com/code4teaching/VisuStruct/releases)
104
111
105
-
**Maintainers:** To ship a new version, create a GitHub **Release** with a tag such as **`v1.0.7`**. Workflow [`.github/workflows/release-assets.yml`](.github/workflows/release-assets.yml) builds the JARs and attaches **`visustruct.jar`** (stable download URL above).
112
+
**Maintainers:** To ship a new version, create a GitHub **Release** with a tag such as **`v1.0.8`**. Workflow [`.github/workflows/release-assets.yml`](.github/workflows/release-assets.yml) builds the JARs and attaches **`visustruct.jar`** (stable download URL above).
106
113
107
114
---
108
115
@@ -131,13 +138,13 @@ chmod +x mvnw
131
138
Output (version from `pom.xml`):
132
139
133
140
```text
134
-
target/visustruct-1.0.7.jar
141
+
target/visustruct-1.0.8.jar
135
142
```
136
143
137
144
## Run
138
145
139
146
```bash
140
-
java -jar target/visustruct-1.0.7.jar
147
+
java -jar target/visustruct-1.0.8.jar
141
148
```
142
149
143
150
Double-click may work if `.jar` is associated with Java.
-**Generate code** dialog: **Test in browser** (only when JavaScript is selected): confirmation explains that free diagram lines must be valid JS; opens a temporary **HTML** preview in the default browser (`</script>` in user code is escaped).
8
+
-**Browser preview page:** short hint (localized) on how to open the **developer console** (Safari, Firefox, Chrome, Edge).
9
+
10
+
### Build
11
+
12
+
-**Maven:****`de.visustruct:visustruct:1.0.8`**, artifact **`visustruct-1.0.8.jar`**, release also ships **`visustruct.jar`**.
dialog.codeInvalidInput.message=Please enter whole numbers in the fields.
77
77
78
78
dialog.codeGen.targetJava=Java
79
-
dialog.codeGen.targetPython=Python (3.10+)
79
+
dialog.codeGen.targetPython=Python
80
+
dialog.codeGen.targetJavaScript=JavaScript
80
81
dialog.codeGen.emitComments=Emit structure chart text as comments
81
82
dialog.codeGen.indentFirstLine=Indentation of the first line (spaces):
82
83
dialog.codeGen.spacesPerLevel=Spaces per indentation level:
83
84
dialog.codeGen.generate=Generate
84
85
dialog.codeGen.close=Close
86
+
dialog.codeGen.openInBrowser=Test in browser…
87
+
dialog.codeGen.jsBrowserHint.title=Run JavaScript in the browser
88
+
dialog.codeGen.jsBrowserHint.message=Instructions you entered in the chart are copied unchanged into the script.\n\nTo run it you need valid JavaScript (e.g. let x = 5; or const MAX = 10;).\n\nPseudocode (e.g. “whole number …”) is not translated and may cause errors.
89
+
dialog.codeGen.jsBrowserEmpty.title=No code
90
+
dialog.codeGen.jsBrowserEmpty.message=Generate JavaScript first, or paste code into the text area.
91
+
dialog.codeGen.jsBrowserNoDesktop.title=Cannot open browser
92
+
dialog.codeGen.jsBrowserNoDesktop.message=Opening a browser is not supported in this environment.
dialog.codeGen.jsBrowserIoError.message=The preview file could not be created or opened:\n{0}
95
+
dialog.codeGen.jsBrowserPageTitle=VisuStruct
96
+
dialog.codeGen.jsBrowserConsoleHint=Output from console.log appears in the developer console.\n\nSafari: Safari → Settings → Advanced → enable “Show Develop menu in menu bar”; then Develop → Show JavaScript Console (macOS: ⌥⌘C).\n\nFirefox: Open Web Developer Tools, “Console” tab (macOS: ⌥⌘K; Windows: Ctrl+Shift+K).\n\nChrome: Open Developer Tools, “Console” tab (macOS: ⌥⌘I; Windows: F12 or Ctrl+Shift+J).\n\nMicrosoft Edge: Open Developer Tools, “Console” tab (Windows: F12 or Ctrl+Shift+J).
0 commit comments