Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto formatters used #317

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,37 +52,37 @@
<input type="button" id="removetable" />
<input type="button" id="aligntables" />
<input type="button" id="cleartables" />

<hr/>

<input type="button" id="addrow" />
<input type="button" id="editrow" />
<input type="button" id="uprow" class="small" /><input type="button" id="downrow" class="small"/>
<input type="button" id="foreigncreate" />
<input type="button" id="foreignconnect" />
<input type="button" id="foreigndisconnect" />
<input type="button" id="removerow" />

<hr/>

<input type="button" id="options" />
<a href="https://github.com/ondras/wwwsqldesigner/wiki" target="_blank"><input type="button" id="docs" value="" /></a>
</div>

<div id="rubberband"></div>

<div id="minimap"></div>

<div id="background"></div>

<div id="window">
<div id="windowtitle"><img id="throbber" src="images/throbber.gif" alt="" title=""/></div>
<div id="windowcontent"></div>
<input type="button" id="windowok" />
<input type="button" id="windowcancel" />
</div>
</div> <!-- #controls -->

<div id="opts">
<table>
<tbody>
Expand All @@ -96,15 +96,15 @@
</tr>
<tr>
<td>
* <label id="db" for="optiondb"></label>
* <label id="db" for="optiondb"></label>
</td>
<td>
<select id="optiondb"><option></option></select>
</td>
</tr>
<tr>
<td>
<label id="snap" for="optionsnap"></label>
<label id="snap" for="optionsnap"></label>
</td>
<td>
<input type="text" size="4" id="optionsnap" />
Expand All @@ -113,7 +113,7 @@
</tr>
<tr>
<td>
<label id="pattern" for="optionpattern"></label>
<label id="pattern" for="optionpattern"></label>
</td>
<td>
<input type="text" size="6" id="optionpattern" />
Expand All @@ -130,31 +130,31 @@
</tr>
<tr>
<td>
<label id="hide" for="optionhide"></label>
<label id="hide" for="optionhide"></label>
</td>
<td>
<input type="checkbox" id="optionhide" />
</td>
</tr>
<tr>
<td>
* <label id="vector" for="optionvector"></label>
* <label id="vector" for="optionvector"></label>
</td>
<td>
<input type="checkbox" id="optionvector" />
</td>
</tr>
<tr>
<td>
* <label id="showsize" for="optionshowsize"></label>
* <label id="showsize" for="optionshowsize"></label>
</td>
<td>
<input type="checkbox" id="optionshowsize" />
</td>
</tr>
<tr>
<td>
* <label id="showtype" for="optionshowtype"></label>
* <label id="showtype" for="optionshowtype"></label>
</td>
<td>
<input type="checkbox" id="optionshowtype" />
Expand All @@ -167,7 +167,7 @@

* <span class="small" id="optionsnotice"></span>
</div>

<div id="io">
<table>
<tbody>
Expand All @@ -176,7 +176,7 @@
<fieldset>
<legend id="client"></legend>
<div id="singlerow">
<input type="button" id="clientsave" />
<input type="button" id="clientsave" />
<input type="button" id="clientload" />
</div>
<div id="singlerow">
Expand All @@ -198,11 +198,11 @@
<legend id="server"></legend>
<label for="backend" id="backendlabel"></label> <select id="backend"><option></option></select>
<hr/>
<input type="button" id="serversave" />
<input type="button" id="quicksave" />
<input type="button" id="serverload" />
<input type="button" id="serverlist" />
<input type="button" id="serverimport" />
<input type="button" id="serversave" />
<input type="button" id="quicksave" />
<input type="button" id="serverload" />
<input type="button" id="serverlist" />
<input type="button" id="serverimport" />
</fieldset>
</td>
</tr>
Expand All @@ -217,10 +217,10 @@
</tbody>
</table>
</div>

<div id="keys">
<fieldset>
<legend id="keyslistlabel"></legend>
<legend id="keyslistlabel"></legend>
<select id="keyslist"><option></option></select>
<input type="button" id="keyadd" />
<input type="button" id="keyremove" />
Expand Down Expand Up @@ -261,7 +261,7 @@
</table>
</fieldset>
</div>

<div id="table">
<table>
<tbody>
Expand All @@ -275,7 +275,7 @@
</tr>
<tr>
<td>
<label id="tablecommentlabel" for="tablecomment"></label>
<label id="tablecommentlabel" for="tablecomment"></label>
</td>
<td>
<textarea rows="5" cols="40" id="tablecomment"></textarea>
Expand All @@ -284,7 +284,7 @@
</tbody>
</table>
</div>

<script type="text/javascript">
var d = new SQL.Designer();
// d.setXhrHeaders({"Authorization": "Bearer xxx"});
Expand Down
122 changes: 92 additions & 30 deletions js/config.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,98 @@
var CONFIG = {
AVAILABLE_DBS: ["mysql", "sqlite", "web2py", "mssql", "postgresql", "oracle", "sqlalchemy", "vfp9", "cubrid", "web2py"],
DEFAULT_DB: "mysql",
AVAILABLE_DBS: [
"mysql",
"sqlite",
"web2py",
"mssql",
"postgresql",
"oracle",
"sqlalchemy",
"vfp9",
"cubrid",
"web2py",
],
DEFAULT_DB: "mysql",

AVAILABLE_LOCALES: ["ar", "cs", "de", "el", "en", "eo", "es", "fr", "hu", "it", "ja", "ko", "nl", "pl", "pt_BR", "ro", "ru", "sv", "tr", "zh"],
DEFAULT_LOCALE: "en",

AVAILABLE_BACKENDS: ["php-mysql", "php-s3", "php-blank", "php-file", "php-sqlite", "php-mysql+file", "php-postgresql", "php-pdo", "perl-file", "php-cubrid", "asp-file", "web2py"],
DEFAULT_BACKEND: ["php-mysql"],
AVAILABLE_LOCALES: [
"ar",
"cs",
"de",
"el",
"en",
"eo",
"es",
"fr",
"hu",
"it",
"ja",
"ko",
"nl",
"pl",
"pt_BR",
"ro",
"ru",
"sv",
"tr",
"zh",
],
DEFAULT_LOCALE: "en",

RELATION_THICKNESS: 2,
RELATION_SPACING: 15,
RELATION_COLORS: ["#000", "#800", "#080", "#008", "#088", "#808", "#088"],
AVAILABLE_BACKENDS: [
"php-mysql",
"php-s3",
"php-blank",
"php-file",
"php-sqlite",
"php-mysql+file",
"php-postgresql",
"php-pdo",
"perl-file",
"php-cubrid",
"asp-file",
"web2py",
],
DEFAULT_BACKEND: ["php-mysql"],

RELATION_HIGHLIGHTED_COLOR: "#FF0000",
RELATION_HIGHLIGHTED_THICKNESS: 5,

STYLES: ["material-inspired", "original"],
MATERIAL_RELATION_COLORS: ["#323232", "#F44336", "#E91E63", "#9C27B0", "#3F51B5", "#673AB7", "#2196F3", "#03A9F4", "#00BCD4", "#009688", "#4CAF50", "#8BC34A", "#CDDC39", "#FFC107", "#FF5722", "#795548", "#607D8B"],

STATIC_PATH: "",
XHR_PATH: "",
RELATION_THICKNESS: 2,
RELATION_SPACING: 15,
RELATION_COLORS: ["#000", "#800", "#080", "#008", "#088", "#808", "#088"],

/*
* The key below needs to be set individually by you if you want to use the Dropbox load/save feature.
* To do that, first sign up with Dropbox (may require a specific developer / SDK sign-up), go to
* https://www.dropbox.com/developers/apps and use "Create app" to add a new "Dropbox API app".
* Limit the app to its own folder. Call it, for instance, "wwwsqldesigner".
* Under "OAuth 2", "Redirect URIs", add the URL to the "dropbox-oauth-receiver.html" file on your server.
* E.g, if you install wwwsqldesigner on your local web server under "http://localhost/sqldesigner/", then add
* http://localhost/sqldesigner/dropbox-oauth-receiver.html as a Redirection URI.
* Copy the shown "App key" and paste it here below instead of the null value:
*/
DROPBOX_KEY: null // such as: "d6stdscwewhl6sa"
RELATION_HIGHLIGHTED_COLOR: "#FF0000",
RELATION_HIGHLIGHTED_THICKNESS: 5,

}
STYLES: ["material-inspired", "original"],
MATERIAL_RELATION_COLORS: [
"#323232",
"#F44336",
"#E91E63",
"#9C27B0",
"#3F51B5",
"#673AB7",
"#2196F3",
"#03A9F4",
"#00BCD4",
"#009688",
"#4CAF50",
"#8BC34A",
"#CDDC39",
"#FFC107",
"#FF5722",
"#795548",
"#607D8B",
],

STATIC_PATH: "",
XHR_PATH: "",

/*
* The key below needs to be set individually by you if you want to use the Dropbox load/save feature.
* To do that, first sign up with Dropbox (may require a specific developer / SDK sign-up), go to
* https://www.dropbox.com/developers/apps and use "Create app" to add a new "Dropbox API app".
* Limit the app to its own folder. Call it, for instance, "wwwsqldesigner".
* Under "OAuth 2", "Redirect URIs", add the URL to the "dropbox-oauth-receiver.html" file on your server.
* E.g, if you install wwwsqldesigner on your local web server under "http://localhost/sqldesigner/", then add
* http://localhost/sqldesigner/dropbox-oauth-receiver.html as a Redirection URI.
* Copy the shown "App key" and paste it here below instead of the null value:
*/
DROPBOX_KEY: null, // such as: "d6stdscwewhl6sa"
};
Loading