diff --git a/.editorconfig b/.editorconfig index e22b8fb..825dc27 100644 --- a/.editorconfig +++ b/.editorconfig @@ -20,3 +20,6 @@ insert_final_newline = false [{Dockerfile,Dockerfile.*}] indent_size = 4 + +[.vscode/*.json] +indent_size = 4 diff --git a/.vscode/settings.json b/.vscode/settings.json index 691fda1..7242021 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,6 +12,7 @@ "Lalloni", "monaco", "plantuml", + "puml", "Roques", "servlet", "servlets", @@ -20,5 +21,6 @@ "undock", "utxt" ], - "cSpell.allowCompoundWords": true -} \ No newline at end of file + "cSpell.allowCompoundWords": true, + "svg.preview.background": "transparent" +} diff --git a/docs/WebUI/gifs/diagram-export.gif b/docs/WebUI/gifs/diagram-export.gif new file mode 100644 index 0000000..5c79c01 Binary files /dev/null and b/docs/WebUI/gifs/diagram-export.gif differ diff --git a/docs/WebUI/gifs/diagram-import.gif b/docs/WebUI/gifs/diagram-import.gif new file mode 100644 index 0000000..1749cb5 Binary files /dev/null and b/docs/WebUI/gifs/diagram-import.gif differ diff --git a/docs/WebUI/import-export.md b/docs/WebUI/import-export.md new file mode 100644 index 0000000..a5d3fb0 --- /dev/null +++ b/docs/WebUI/import-export.md @@ -0,0 +1,21 @@ +# Import and Export editable PlantUML Diagrams + +Similar to [draw.io](https://app.diagrams.net) it is possible to load and continue editing PlantUML diagram images. + + +# Export a diagram + +Via the editor menu or Ctrl+S (or Meta+S in the case of a Mac) you can open the file save dialog. +Here you can edit the file name, choose a file/diagram type and download the diagram. +The default is to download the PlantUML code. + +![export](https://raw.githubusercontent.com/plantuml/plantuml-server/master/docs/WebUI/gifs/diagram-export.gif) + + +# Import a diagram + +This feature is based on the PlantUML meta data which currently **support only PNG and SVG** diagrams. +Besides a diagram image, you can of course also load a diagram code file. +Moreover, because it is so nice and convenient, we also added a drag-and-drop feature. + +![import](https://raw.githubusercontent.com/plantuml/plantuml-server/master/docs/WebUI/gifs/diagram-import.gif) diff --git a/src/main/webapp/assets/copy.svg b/src/main/webapp/assets/actions/copy.svg similarity index 100% rename from src/main/webapp/assets/copy.svg rename to src/main/webapp/assets/actions/copy.svg diff --git a/src/main/webapp/assets/dock.svg b/src/main/webapp/assets/actions/dock.svg similarity index 100% rename from src/main/webapp/assets/dock.svg rename to src/main/webapp/assets/actions/dock.svg diff --git a/src/main/webapp/assets/actions/download.svg b/src/main/webapp/assets/actions/download.svg new file mode 100644 index 0000000..8729bb7 --- /dev/null +++ b/src/main/webapp/assets/actions/download.svg @@ -0,0 +1 @@ + diff --git a/src/main/webapp/assets/settings.svg b/src/main/webapp/assets/actions/settings.svg similarity index 100% rename from src/main/webapp/assets/settings.svg rename to src/main/webapp/assets/actions/settings.svg diff --git a/src/main/webapp/assets/undock.svg b/src/main/webapp/assets/actions/undock.svg similarity index 100% rename from src/main/webapp/assets/undock.svg rename to src/main/webapp/assets/actions/undock.svg diff --git a/src/main/webapp/assets/actions/upload.svg b/src/main/webapp/assets/actions/upload.svg new file mode 100644 index 0000000..50c7222 --- /dev/null +++ b/src/main/webapp/assets/actions/upload.svg @@ -0,0 +1 @@ + diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 265c90a..7732650 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -36,13 +36,26 @@