1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-06-10 12:12:26 +00:00
Commit Graph

53 Commits

Author SHA1 Message Date
Florian
6ca582fcb7 add import and export diagram
- export diagram
  * add a diagram export dialog where you can choose the file name
    and download type (code, png, pdf, ...)
  * set default download type to code
  * open file save dialog via menu or Ctrl+S (or Meta+S for Mac)
- import diagram
  * similar to [draw.io](https://app.diagrams.net)
  * open a PlantUML diagram image, use metat data to get diagram code
    and load this diagram (Note: meta data is currently only supported
    by PNG and SVG diagram files)
  * support drag&drop
  * add diagram import dialog
- since three are now multiple options/action -> create a little
  editor menu
- add documentation (including gif examples)
2023-05-14 11:22:44 +02:00
Florian
ec7b9f9b1a Add metadata Servlet
- add new servlet to get meta data from PlantUML diagram
- meta data get not only be requested as text but also as json if you set the `Accept`-header to json
- add `metadata` servlet tests
- GET: like the Proxy where you can pass a URL which the servlet will use to fetch the diagram image
- POST: file upload
2023-05-11 21:34:32 +02:00
Florian
09517cca92 add emoji auto completion (suggestion)
- typing `<:` will start the emoji auto complition inside the plantuml editor
- for the sake of simplicity the emoji preview of the completion documentation will fetch the image from the original github repository (not plantuml). The reason is that the images (SVGs) inside plantuml have sometimes removed their svg tag, hence it's difficult to set the correct rendering size.
- expand auto completion (suggestion) documentation by default
- add emoji example GIF and documentation
- set charset to utf-8 for each website
- refactor JSON creation inside UI Helper
2023-05-10 22:10:58 +02:00
Florian
f0d78a146b fix mobile view
- add viewport to header (otherwise smartphones will render the desktop version)
- set focus to the code editor after loading the page
- fix some android dark mode theme issues by settings clear default for the light theme as well
2023-05-09 09:33:57 +02:00
Florian
e6566b58bd revert missing tests + small fixes
- revert the 4 missing tests, e.g. proxy test from commit 20468f5
- add virtual host name `test.localhost` to embedded jetty server
  (JUnit Tests) since localhost and IP-Addresses are no longer
  supported by the proxy and use this address inside proxy `src`
- add `test-localhost` support for the docker tests. To support
  this the docker hostname need to be set to test.localhost by:
  `--hostname=test.localhost` (only for the docker tests)
- proxy: add file format support for PDF
- proxy: add error messages on "bad request" response
- proxy: remove dead code
- old proxy: add error messages on "bad request" response
- fix incorrect README link to docs
- add `HTTP_PROXY_READ_TIMEOUT` option -- close #240
2023-05-04 18:30:58 -04:00
Florian
f727c6dd13 frontend 2.0: initial version
- auto refresh function
- light and dark theme
- monaco editor (vscode) with "apex" as syntax highlighting language
  * apex seems to work quite fine (better than no highlighting)
  * future possibility: own plantuml language syntax support
  * future possibility: autocomplete (to much work but maybe partial)
    - implemented example for `!theme ...`
    - implemented example for `<&icon>`
  * future possibility: code validation
    - implemented example for `@start...` and `@end...`:
      * should be the first or last command
      * should be of the some type (e.g. `@startyaml` and @endyaml)
      * should be used exactly once per document/diagram
- editor and preview is splitable into two windows like the
  "Extract window" functionality on
  (plantuml.com)[https://www.plantuml.com/plantuml]
- multi index / multi paging diagram support
- diagram can be displayed/rended as PNG, SVG, ASCII Art or PDF
- Ctrl+s download the PlantUML Code as code file (diagram.puml)
- Ctrl+, opens the settings and Esc closes the settings
2023-05-03 13:23:47 -04:00
Florian
763976abdd add servlet to encode and decode diagrams
.
2023-04-18 23:07:59 +02:00
Florian Heinrich
638724925e Refactoring relative paths PR#209.
- use html `base` tag containing the context path once instead inside
every single URL/link.
- update and enhance `nginx-contextpath` example
- export javascript code into separated file
- Add TODO note to javascript clipboard check (from PR#250) since
Firefox and Safari do not support the current implementation
2023-03-21 14:14:09 +01:00
Florian
99f85c0c9b Use relative paths as far as possible.
Switch from absolute paths `hostpath` to relative paths `contextpath`.
Unfortunately, for the url input javascript is necessary to resolve the
relative url.
Also see Issue #205.
2023-02-24 09:26:48 +01:00
Joel Pearson
4a5e204e16 Adding PDF support #130 2023-02-17 19:43:59 +01:00
Arnaud Roques
f62ba44e7d Restore https://github.com/plantuml/plantuml-server/pull/250 2023-01-15 18:08:07 +01:00
Arnaud Roques
494dfba063 textarea improvement 2022-01-22 13:03:15 +01:00
Florian
3763ee737e Improve multipage (index) handling 2021-10-18 15:40:40 +02:00
Florian
9cb9cec6ca update jetty and tomcat to latest version 2021-10-17 18:46:03 +02:00
Mingmin Xu
b1b7dfb84b enable vertical resize for input text area 2021-10-13 23:54:06 +02:00
Florian
deda3c2256 update + restructure pom and add missing javadoc 2021-10-13 12:25:18 +02:00
Florian
098e630a28 update and fix checkstyle and javadoc plugins 2021-10-11 19:22:18 +02:00
Florian
8d5be87f03 update junit test classes and there dependencies 2021-10-11 18:43:18 +02:00
Florian Heinrich
6cb587e156 Use hostpath consistently. 2021-06-01 11:43:47 +02:00
Carlo Sciolla
887a5055f2
New servlet to expose the language tokens of the PlantUML engine
Same as `java -jar plantum.jar -language`, a new servlet is added to
expose the tokens supported by the current version of the PlantUML engine.
Useful to support tools relying on a running PlantUML server to support
syntax highlight.
2019-05-20 15:06:38 +02:00
Tri Nguyen
18d461a38a Set compiler version for jsp servlet to 1.7 2019-03-14 15:04:11 -04:00
Arnaud Roques
813500c549 fix link 2019-02-09 16:34:05 +01:00
Arnaud Roques
7ad8b8033d Add Base64 support 2018-03-19 22:28:19 +01:00
Jesse Tan
7f6a69ccbd Register eps servlets 2017-06-28 12:58:46 +02:00
Arnaud Roques
bfb5f3ad15 Temporary suppression of map 2017-06-18 21:21:31 +02:00
Marcel Huber
bd927863fe Use x-forwarded-proto as scheme value if available
allows transparent usage behind reverse proxy
2017-02-24 10:24:51 +01:00
Jerry Wang
d1f1d0b176 fixed the codemirror resource loading issue. 2017-01-18 19:52:09 -05:00
Arnaud Roques
94fb4cd383 HTTP redirect after POST 2016-05-18 22:45:58 +02:00
maximesinclair
b6f9ff848a [BUGFIX#8] Broken url generated in HTTPS context 2014-05-14 23:49:51 +02:00
maximesinclair
712c8128ef [FEATURE] Addition of the Fork Me ribbon 2014-03-03 23:17:31 +01:00
maximesinclair
cce71525b8 [TASK] Polish 2014-03-03 22:39:33 +01:00
maximesinclair
e01e0fdb6e [FEATURE] Style update required by CodeMirror 2014-02-28 23:21:58 +01:00
maximesinclair
69fbe5d2b8 [FEATURE] CodeMirror first basic implementation 2014-02-19 23:37:33 +01:00
maximesinclair
9ca32c8d22 [FEATURE] Draft of the Check Syntax service 2014-02-15 19:20:34 +01:00
maximesinclair
77b9c2f0bd [FIX] Empty social buttons page fragments are missing 2014-02-04 23:23:35 +01:00
Maxime Sinclair
e9e99019d7 Revert "[TASK] Demo purpose"
This reverts commit 8b5d926c60.
2014-01-31 12:51:38 +01:00
Maxime Sinclair
8b5d926c60 [TASK] Demo purpose
Will not be pushed on master
2014-01-09 16:54:14 +01:00
Maxime Sinclair
567a92f158 [FEATURE] Test of configuration for the social buttons 2014-01-09 16:52:35 +01:00
maximesinclair
ae9558062f [FEATURE] First implementation of the configuration 2014-01-07 00:06:14 +01:00
Maxime Sinclair
f0493c581c [FEATURE] PNG added to the url format
The old URL format http://server/plantuml/img/... is now relaced by
http://server/plantuml/png/...
2013-12-18 19:17:47 +01:00
Maxime Sinclair
e8920c230d [TASK] Test cleanup 2013-11-27 11:54:20 +01:00
maximesinclair
7c8f361826 [FEATURE] Proxy redesign, first step 2013-11-25 22:35:58 +01:00
maximesinclair
76ad7acd21 [TASK] Port number 80 removed in URLs 2013-11-23 23:55:22 +01:00
Maxime Sinclair
dc7bc3e179 [TASK] Scriptlet replaced by EL 2013-10-17 16:45:16 +02:00
Maxime Sinclair
ccc71e7cd4 [TASK] Better usage of JSTL
Old core_rt reference deleted
2013-10-17 16:45:16 +02:00
Maxime Sinclair
45eb47839d [TASK] JEE 5 upgrade
JEE5 Servlet2.5 JSP2.1 JSTL1.2
2013-10-17 16:45:15 +02:00
Maxime Sinclair
bde4d652dd [FEATURE] Map link added if a map is available 2013-09-19 15:40:15 +02:00
Maxime Sinclair
7d7bdca930 [FEATURE] Map usage integrated in the interactive servlet
JSTL (without EL) added
2013-08-22 14:31:05 +02:00
Maxime Sinclair
97f00051f0 [FEATURE] Stub implementation of the new map service 2013-07-17 10:11:03 +02:00
Maxime Sinclair
d7ecaaa992 Refactoring of the Proxy service 2013-07-09 15:44:36 +02:00