This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathindex.html
100 lines (95 loc) · 5.03 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
<!DOCTYPE html>
<html>
<!--
* @brief: App to create database models from scratch.
* @author: Prahlad Yeri
* @copyright: GPLv3
* @date: 26-04-2015
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Visual Alchemist</title>
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
<link rel='stylesheet' href='css/bootstrap.min-3.3.5.css'/>
<link rel="icon" href="img/thumb.png"/>
<link type="text/css" href="lib/prettify/prettify.css" rel="stylesheet" />
<link rel='stylesheet' href='css/app.css'/>
<script type="text/javascript" src="lib/prettify/prettify.js"></script>
<script src='lib/jquery.min.js'></script>
<script src='lib/bootstrap.min.js'></script>
<script src="lib/jsPlumb-2.1.2-min.js"></script>
<!--<script src="lib/jsplumb-2.4.2.min.js"></script>-->
<script src='js/classes.js'></script>
<script src="js/utils.js"></script>
<script src='js/app.js'></script>
<script src='js/addTableDialog.js'></script>
<script src='js/codeGenerator.js'></script>
</head>
<body>
<nav class="header navbar navbar-inverse" role="navigation" style="margin-bottom:2px;">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><img style="padding:0px;margin-top:-10px;border-radius:10px" class='img-responsive' src="img/thumb.png"></img></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="javascript:" onclick="javascript:showAddTableDialog();"><span class="glyphicon glyphicon-plus"></span> New Table</a></li>
<li><a href="javascript:" onclick="eraseCanvasState();"><span class="glyphicon glyphicon-remove"></span> Clear All</a></li>
<li><a href="javascript:" onclick="showResultsDialog();"><span class="glyphicon glyphicon-list"></span> Code</a></li>
<!-- TODO: Fix this so that it uses a separate method or is invisible in mobile size -->
<li><a href="javascript:" onclick="exportCanvas();"><span class="glyphicon glyphicon-export"></span> Export Canvas</a></li>
<li><a href="javascript:" class="btn-file"><form action="#" onchange="importCanvas();"><input id="inputCanvasFile" type="file"><span class="glyphicon glyphicon-import"></span> Import Canvas</input></form></a></li>-->
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a id="lnkHelp" onclick="bshelp();" href="javascript:"><span class="glyphicon glyphicon-question-sign"></span> Help</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Links <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="https://github.com/prahladyeri/valchemist">Github Project</a></li>
<li class="divider"></li>
<li><a href="https://github.com/prahladyeri/valchemist/issues">Bug Tracker</a></li>
<li><a href="https://www.reddit.com/r/VisualAlchemist">Discussion Room</a></li>
<li><a href="#" onclick="javascript:bsabout();">About</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="container-fluid">
<div class="row">
<div id="theCanvas" class="col-md-12 canvas">
<div class="hidden mainAlert col-md-push-3 col-md-6 alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<strong>How to:</strong> Just click the <a class="alert-link" href="javascript:" onclick="javascript:showAddTableDialog();">New Table</a> link above to start creating tables.
Once done, simply click the <strong>Code</strong> button to get the python code for the sqlalchemy models!
<br>
<br>
To create relationships, drag the orange dots (primary-keys) and connect them to blue dots (candidate foreign-keys).
</div>
</div>
</div>
</div>
<div id="holder"></div>
<div id="holderResults"></div>
<nav class="navbar navbar-inverse navbar-fixed-bottom footer" style="min-height:30px;max-height:30px;" role="navigation">
<div class="container">
<div class="row">
<div class="col-md-12" >
<p style="color:white;">© Prahlad Yeri <span id='theyear'></span>. Code licensed under <a href="https://github.com/prahladyeri/valchemist/blob/master/LICENSE">GPLv3</a>.
</p>
</div>
</div>
</div>
</nav>
</body>
</html>