Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Commit

Permalink
add:Add Editor (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-tessier committed Jul 10, 2020
1 parent e638499 commit c72ef91
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# generated diagrams
web/static/diagrams/*
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ web_1 | * Debugger PIN: 830-873-016
then open your browser http://0.0.0.0:5000/

and start coding!

[Screenshot](web/static/screenshot_example3.png)
3 changes: 3 additions & 0 deletions web/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def builder():

diagrams_data = request.form.get('diagrams_data')
if diagrams_data:
# dir may not exist
if not os.path.exists(diag_folder):
os.makedirs(diag_folder)
# clean the directory
_, _, filenames = next(os.walk(diag_folder))
for one_file in filenames:
Expand Down
Binary file added web/static/screenshot_example3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c72ef91

Please sign in to comment.