diff --git a/dropbox-oauth-receiver.html b/dropbox-oauth-receiver.html new file mode 100755 index 0000000..fd16bad --- /dev/null +++ b/dropbox-oauth-receiver.html @@ -0,0 +1,14 @@ + + + + + + + +

Dropbox sign-in successful

+ +

Please close this window.

+ + \ No newline at end of file diff --git a/index.html b/index.html old mode 100644 new mode 100755 index a956b10..6d8ffa6 --- a/index.html +++ b/index.html @@ -15,6 +15,7 @@ + @@ -146,19 +147,28 @@ - -
+
+
+
+
+
+
+ + + +

+
diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js old mode 100644 new mode 100755 index 7e0394d..235e1ad --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -1,8 +1,31 @@ +/* -------------------- configuration -------------------- */ + +/* + * 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 app. Call it, for instance, + * "wwwsqldesigner", and give it the "App Folder" permission. Unter "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: + */ +var dropboxAppKey = null; // "your app key"; + + +/* -------------------- globals -------------------- */ + function _(str) { /* getText */ if (!(str in window.LOCALE)) { return str; } return window.LOCALE[str]; } +if (typeof String.prototype.endsWith !== 'function') { + String.prototype.endsWith = function(suffix) { + return this.indexOf(suffix, this.length - suffix.length) !== -1; + }; +} + var DATATYPES = false; var LOCALE = {}; var SQL = {}; @@ -1249,12 +1272,14 @@ SQL.IO = OZ.Class(); SQL.IO.prototype.init = function(owner) { this.owner = owner; - this._name = ""; /* last used keyword */ + this._name = ""; /* last used name with server load/save */ + this.lastUsedName = ""; /* last used name with local storage or dropbox load/save */ this.dom = { container:OZ.$("io") }; var ids = ["saveload","clientlocalsave", "clientsave", "clientlocalload", "clientlocallist","clientload", "clientsql", + "dropboxsave", "dropboxload", "dropboxlist", "quicksave", "serversave", "serverload", "serverlist", "serverimport"]; for (var i=0;iEinstellungen Sprache Datenbank für neue Diagramme - Einige Optionen werden erst nach einem erneutem Seitenaufruf wirksam. Cookies müssen aktiviert sein. + Einige Optionen werden erst nach einem erneutem Seitenaufruf wirksam. Cookies müssen erlaubt sein. Tabellen Ausrichtungsabstand in Pixel, 0 = einrasten deaktivieren Format für die Namen der Fremdschlüssel %T = Primärtabelle, %R = Primärschlüssel, %t = Fremdtabelle Verstecke Verbindungslinien beim bewegen von Tabellen? - Zeichne gegrümmte Verbindungslinien (Browser abhängig)? + Zeichne gegrümmte Verbindungslinien (Browser-abhängig)? diff --git a/locale/en.xml b/locale/en.xml old mode 100644 new mode 100755 index f489dac..51c42b6 --- a/locale/en.xml +++ b/locale/en.xml @@ -78,6 +78,9 @@ Save in Browser Load from Browser List from Browser + Save to Dropbox + Load from Dropbox + List from Dropbox Generate SQL Server backend: Save diff --git a/styles/style.css b/styles/style.css index 2a3c7f5..4a8f8e0 100644 --- a/styles/style.css +++ b/styles/style.css @@ -3,7 +3,7 @@ body { font-size: small; padding: 0px; margin: 0px; - background: #FFF; + background: #FFF; visibility: hidden; -moz-user-select: -moz-none; -khtml-user-select: none; @@ -211,8 +211,8 @@ body { } #textarea { - width: 600px; - height: 100px; + width: 650px; + height: 200px; } #opts {