-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
173 lines (161 loc) · 9.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<!-- Font Awesome //-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous"/>
<!-- Bootstrap CSS //-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"/>
<!-- Codemirror CSS //-->
<link rel="stylesheet" href="vendor/codemirror/codemirror.css"/>
<link rel="stylesheet" href="vendor/codemirror/theme/material.css"/>
<link rel="stylesheet" href="vendor/codemirror/addon/hint/show-hint.css"/>
<!-- custom CSS //-->
<link rel="stylesheet" href="css/main.css"/>
<title>TextChart - Mobile optimized PlantUML (text based UML) diagram editor</title>
</head>
<body>
<div class="container-fluid ht-100">
<div class="row ht-100">
<div class="col-xs-6 col-sm-5 ht-100">
<h4>
<!-- <span class="d-inline d-sm-inline d-md-none d-lg-inline">TextChart</span> //-->
<span>TextChart</span>
<div class="btn-group float-right" role="group" aria-label="Informational Links">
<!--
<button type="button" class="btn btn-outline-info btn-sm" data-toggle="modal" data-target="#linkModal"><i class="fas fa-share"></i></button>
//-->
<button type="button" class="btn btn-outline-info btn-sm" data-toggle="tooltip" title="Revert to last saved version" id="revert-btn"><i class="fas fa-undo"></i></button>
<button type="button" class="btn btn-outline-info btn-sm" data-toggle="tooltip" title="Save to server" id="save-btn"><i class="fas fa-save"></i></button>
<button type="button" class="btn btn-outline-info btn-sm" data-toggle="modal" data-target="#infoModal"><i class="fas fa-info-circle"></i></button>
</div>
</h4>
<div class="card d-block">
<div class="card-body">
<p>
<strong>TextChart</strong> is a mobile optimized text based UML diagram editor.
Edit the <a href="http://plantuml.com" target="_blank">PlantUML</a>
below to begin.
</p>
<p>
Examples:
<select id="samples_dropdown" class="form-select" aria-label="Select a Sample UML">
<option disabled selected></option>
</select>
</p>
</div>
</div>
<textarea
id="code" name="code"
class="form-control collapse show"
aria-label="With textarea">
</textarea>
</div>
<div class="col-xs-6 col-sm-7 ht-100">
<h4>Diagram
<div class="btn-toolbar float-right" role="group" aria-label="Diagram Links">
<a role="button" class="btn btn-info btn-sm mx-2" id="png_link" target="_blank" data-toggle="tooltip" title="View an PNG version of the diagram">View PNG</a>
<a role="button" class="btn btn-info btn-sm" id="uml_link" target="_blank" data-toggle="tooltip" title="View an ASCII text version of the diagram">View ASCII</a>
</div>
</h4>
<div class="card">
<div class="card-body" role="alert">
<img id="uml_img" class="mw-100"/>
</div>
</div>
</div>
</div>
</div>
<!-- Info Modal -->
<div class="modal fade" id="infoModal" tabindex="-2" role="dialog" aria-labelledby="infoModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="infoModalLabel">Info</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>
This website authored by <a href="https://khilnani.org" target="_blank">Nik Khilnani</a> allows a user to use the <a href="http://plantuml.com" target="_blank">PlantUML</a>
text based UML definition format to generate UML diagrams. Thanks to the <a href="http://plantuml.com" target="_blank">PlantUML</a>
folks for making their code available!
</p>
<p>
Useful PlantUML Links:
<ul style="list-style-type:disc;">
<li><a href="http://plantuml.com/sitemap-language-specification" target="_blank">Language Reference</a></li>
<li><a href="https://the-lum.github.io/puml-themes-gallery/" target="_blank">Theme Gallery</a></li>
<li><a href="https://github.com/plantuml/plantuml/tree/master/themes" target="_blank">Theme Code</a></li>
<li><a href="http://plantuml.com/skinparam" target="_blank">Skin/Theme Parameters</a></li>
<li><a href="http://plantuml.com/color" target="_blank">Colors Names</a></li>
<li><a href="http://plantuml.com/openiconic" target="_blank">Built-in Icons</a></li>
<li><a href="https://plantuml-documentation.readthedocs.io/en/latest/formatting/all-skin-params.html#" target="_blank"> Ashley’s PlantUML Documentation</a></li>
<li><a href="https://crashedmind.github.io/PlantUMLHitchhikersGuide/" target="_blank">The Hitchhiker’s Guide to PlantUML</a></li>
<li><a href="https://www.iconfinder.com" target="_blank">IconFinder.com</a></li>
<li><a href="https://thenounproject.com" target="_blank">The Noun Project Icons</a></li>
</ul>
</p>
<p>
<em>The source code for this website is located at <a href="https://github.com/khilnani/textchart.com" target="_blank">http://github.com/khilnani/textchart.com</a>. Feel free to suggest improvements or report bugs.</em>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Short Link Modal -->
<div class="modal fade" id="linkModal" tabindex="-1" role="dialog" aria-labelledby="linkModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="linkModalLabel">Share Link</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Right click or copy the short link below to return to the website with current UML code pre-filled.
</p>
<div class="alert alert-secondary" role="alert">
<pre><a id="page_link" class="alert-link" href="javascript:void(0);" target="_blank"></a></pre>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Loading Modal //-->
<div id="loadingModal" class="modal" data-backdrop="static" data-keyboard="false" tabindex="-1">
<div class="modal-dialog modal-sm">
<div class="modal-content" style="width: 48px">
<span class="fas fa-spinner fa-spin fa-3x"></span>
</div>
</div>
</ div>
<!-- CDN - jquery, popper, then bootstrap //-->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<!-- hosted vendor //-->
<script src="vendor/uuidv4.js" integrity="sha384-zqmTTGa3Ye+YgunY8nlQr/zFUC8OnY+3khXxRdTCXhNqQSOOmBFxmFk8PYA58ztY" crossorigin="anonymous"></script>
<script src="vendor/rawdeflate.js" integrity="sha384-OCZV0rMg/hZ5ZgqImGzkghZdQOnuhHdBVX3BPRS9a8EM8c/6Q7Ge2sZ9lH9vLLPs" crossorigin="anonymous"></script>
<script src="vendor/codemirror/codemirror.js" integrity="sha384-x1QKAzaJ+REY7xvp6SmcWnnyQdLJJaudAcV2KGSzDytetEOxiaYyaZ5PFLzBuvwR" crossorigin="anonymous"></script>
<script src="vendor/codemirror/mode/yaml/yaml.js" integrity="sha384-l48K/HCYZSMTlkax7ehvElLseRlv9WLwXO1OI3/P+zY386PPTtgxwJfHp6qEAOzz" crossorigin="anonymous"></script>
<script src="vendor/codemirror/addon/hint/show-hint.js" integrity="sha384-qH3VQu2iED065AnqCGEygvfLauVG4rZRQHCcYcGSjnvZX6+ZQb52SjkZhYT+28Cc" crossorigin="anonymous"></script>
<script src="vendor/codemirror/addon/hint/anyword-hint.js" integrity="sha384-bCRrCOs+eQO+9b7CJDcv0nfu6l+0VWgcUXXHvHaGYcCh/epjRhSKu4Appq2tu6Sa" crossorigin="anonymous"></script>
<script src="vendor/bootbox.min.js" integrity="sha384-H6Mr24zzDo2xH7wBB9QKo5jhTBUbx0POPzlOFq9E1uP/LIGdvWbcXrEN5jFciUTg" crossorigin="anonymous"></script>
<!-- custom //-->
<script src="js/utils.js"></script>
<script src="js/plantuml.js"></script>
<script src="js/main.js"></script>
</body>
</html>