diff --git a/.tmp/scripts/templates/active-server.js b/.tmp/scripts/templates/active-server.js new file mode 100644 index 0000000..edcf65c --- /dev/null +++ b/.tmp/scripts/templates/active-server.js @@ -0,0 +1,72 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var i, len, ref, server; + + _print(_safe('\n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/add-user.js b/.tmp/scripts/templates/add-user.js new file mode 100644 index 0000000..1b01b74 --- /dev/null +++ b/.tmp/scripts/templates/add-user.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
\n\n
Grant a user access to this\n corpus
\n\n
\n\n
\n\n \n\n
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/alert-dialog.js b/.tmp/scripts/templates/alert-dialog.js new file mode 100644 index 0000000..c9b5bdf --- /dev/null +++ b/.tmp/scripts/templates/alert-dialog.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
\n\n
\n Hello from the alert dialog!\n
\n\n \n\n
\n\n
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/app.js b/.tmp/scripts/templates/app.js new file mode 100644 index 0000000..acf6b38 --- /dev/null +++ b/.tmp/scripts/templates/app.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/application-settings-edit.js b/.tmp/scripts/templates/application-settings-edit.js new file mode 100644 index 0000000..e6ff2ce --- /dev/null +++ b/.tmp/scripts/templates/application-settings-edit.js @@ -0,0 +1,119 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var activeServer, corpus, i, j, k, len, len1, len2, ref, ref1, ref2, s, server; + + _print(_safe('
\n
    \n\n ')); + + activeServer = ((function() { + var i, len, ref, results; + ref = this.servers; + results = []; + for (i = 0, len = ref.length; i < len; i++) { + s = ref[i]; + if (s.url === this.activeServer) { + results.push(s); + } + } + return results; + }).call(this))[0]; + + _print(_safe('\n\n
  • \n \n \n
  • \n\n
  • \n \n \n
  • \n\n \n\n
\n\n
\n\n
\n\n
Servers
\n\n \n \n \n\n
\n\n
\n\n
\n\n
    \n\n
  • \n ')); + + ref2 = this.servers; + for (k = 0, len2 = ref2.length; k < len2; k++) { + server = ref2[k]; + _print(_safe('\n
      \n
    • \n \n \n
    • \n
    • \n \n \n
    • \n
    • \n \n \n
    • \n
    \n ')); + } + + _print(_safe('\n
  • \n
\n
\n
\n\n
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/application-settings-header.js b/.tmp/scripts/templates/application-settings-header.js new file mode 100644 index 0000000..3323f72 --- /dev/null +++ b/.tmp/scripts/templates/application-settings-header.js @@ -0,0 +1,109 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var activeServer, corpus, i, j, len, len1, ref, ref1, s, server; + + _print(_safe('
\n
')); + + _print(this.headerTitle); + + _print(_safe('
\n
\n
\n
\n
\n\n\n\n
\n
    \n\n ')); + + activeServer = ((function() { + var i, len, ref, results; + ref = this.servers; + results = []; + for (i = 0, len = ref.length; i < len; i++) { + s = ref[i]; + if (s.url === this.activeServer) { + results.push(s); + } + } + return results; + }).call(this))[0]; + + _print(_safe('\n\n
  • \n \n \n
  • \n\n
  • \n \n \n
  • \n\n \n\n
\n\n\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n
\n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/application-settings-view.js b/.tmp/scripts/templates/application-settings-view.js new file mode 100644 index 0000000..41d01bc --- /dev/null +++ b/.tmp/scripts/templates/application-settings-view.js @@ -0,0 +1,68 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
\n
    \n\n
  • \n \n
    ')); + + _print(this.serverType); + + _print(_safe('
    \n
  • \n\n
  • \n \n
    ')); + + _print(this.corpus || 'no corpus selected'); + + _print(_safe('
    \n
  • \n\n
  • \n \n
    ')); + + _print(this.serverURL); + + _print(_safe('
    \n
  • \n\n
  • \n \n
    ')); + + _print(this.serverPort); + + _print(_safe('
    \n
  • \n\n
  • \n \n
    ')); + + _print(this.loggedIn); + + _print(_safe('
    \n
  • \n\n
  • \n \n
    ')); + + _print(this.username); + + _print(_safe('
    \n
  • \n\n
  • \n \n
  • \n\n
\n
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/application-settings.js b/.tmp/scripts/templates/application-settings.js new file mode 100644 index 0000000..f8cb34f --- /dev/null +++ b/.tmp/scripts/templates/application-settings.js @@ -0,0 +1,104 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var i, j, len, len1, ref, ref1, ref2, ref3, themeName, themeNameHumanReadable; + + _print(_safe('
\n\n
\n \n
\n\n
')); + + _print(this.headerTitle); + + _print(_safe('
\n\n
\n\n \n\n
\n\n
\n\n
\n\n
\n\n
Servers
\n
\n \n
\n
\n\n ')); + + if (this.loggedIn === true) { + _print(_safe('\n\n
Server Settings
\n
\n \n \n
\n
\n\n
Input Validation
\n
\n \n \n
\n
\n\n
Keyboard Preferences
\n
\n \n
\n
\n\n ')); + } + + _print(_safe('\n\n
Appearance
\n
\n \n
\n
\n\n
\n\n
\n\n
\n
\n
\n
\n\n
\n\n ')); + + ref = this.jQueryUIThemes; + for (i = 0, len = ref.length; i < len; i++) { + ref1 = ref[i], themeName = ref1[0], themeNameHumanReadable = ref1[1]; + _print(_safe('\n ')); + if (themeName === this.activeJQueryUITheme) { + _print(_safe('\n
\n ')); + } else { + _print(_safe('\n
\n ')); + } + _print(_safe('\n
')); + _print(themeNameHumanReadable); + _print(_safe('
\n \n
\n ')); + } + + _print(_safe('\n\n
\n\n
\n\n
\n\n
\n\n
\n\n \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/basepage.js b/.tmp/scripts/templates/basepage.js new file mode 100644 index 0000000..825bd63 --- /dev/null +++ b/.tmp/scripts/templates/basepage.js @@ -0,0 +1,48 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
\n
')); + + _print(this.headerTitle); + + _print(_safe('
\n
\n
\n
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/button-control.js b/.tmp/scripts/templates/button-control.js new file mode 100644 index 0000000..676e527 --- /dev/null +++ b/.tmp/scripts/templates/button-control.js @@ -0,0 +1,72 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('')); + + _print(_safe(this.buttonText)); + + _print(_safe('\n
')); + + _print(_safe(this.controlSummary)); + + _print(_safe('
\n
')); + + _print(this.controlResults); + + _print(_safe('
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/collection-contents-input.js b/.tmp/scripts/templates/collection-contents-input.js new file mode 100644 index 0000000..af71d7d --- /dev/null +++ b/.tmp/scripts/templates/collection-contents-input.js @@ -0,0 +1,74 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var attribute, ref, value; + + _print(_safe('
\n\n
\n\n \n\n \n\n
\n\n ')); + + _print(this.value); + + _print(_safe('\n\n \n\n
\n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/comment-representation.js b/.tmp/scripts/templates/comment-representation.js new file mode 100644 index 0000000..49a9e7e --- /dev/null +++ b/.tmp/scripts/templates/comment-representation.js @@ -0,0 +1,76 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('')); + + _print(this.textValue); + + _print(_safe('\n (By\n ')); + + _print(this.usernameValue); + + _print(_safe('\n ')); + + _print(this.timeSince(this.timestampValue)); + + _print(_safe(')
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/controls.js b/.tmp/scripts/templates/controls.js new file mode 100644 index 0000000..67b8fb4 --- /dev/null +++ b/.tmp/scripts/templates/controls.js @@ -0,0 +1,56 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
\n\n
')); + + _print(this.headerTitle); + + _print(_safe('
\n\n
\n\n \n\n
\n\n
\n\n \n\n \n\n
\n\n
\n\n
\n\n
\n\n
\n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/corpora.js b/.tmp/scripts/templates/corpora.js new file mode 100644 index 0000000..001e177 --- /dev/null +++ b/.tmp/scripts/templates/corpora.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
\n\n
Corpora
\n
\n\n \n\n \n\n \n\n
\n\n
\n\n
\n\n
\n
\n\n
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/corpus.js b/.tmp/scripts/templates/corpus.js new file mode 100644 index 0000000..6f1f2bb --- /dev/null +++ b/.tmp/scripts/templates/corpus.js @@ -0,0 +1,66 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var activeIndicator; + + _print(_safe('\n
\n\n ')); + + activeIndicator = this.isActive ? '(active)' : ''; + + _print(_safe('\n
\n ')); + + _print(this.title); + + _print(_safe('\n ')); + + _print(activeIndicator); + + _print(_safe('\n
\n\n
\n\n \n\n \n\n \n\n \n\n
\n\n
\n\n ')); + + if (this.isActive) { + _print(_safe('\n
\n ')); + } else { + _print(_safe('\n
\n ')); + } + + _print(_safe('\n\n
\n\n
\n\n
\n\n
\n
Admins
\n
\n\n
\n There are no admins for this corpus.\n
\n
\n\n
\n
\n
Writers
\n
\n
\n There are no writers for this corpus.\n
\n
\n\n
\n
\n
Readers
\n
\n
\n There are no readers for this corpus.\n
\n
\n\n
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/create-corpus.js b/.tmp/scripts/templates/create-corpus.js new file mode 100644 index 0000000..0bfca4d --- /dev/null +++ b/.tmp/scripts/templates/create-corpus.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
\n\n
Create a new corpus
\n\n
\n\n
\n\n
    \n\n
  • \n \n \n
    \n \n
    \n
  • \n\n
  • \n \n \n \n \n
  • \n\n
\n\n
\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/csv-import-header.js b/.tmp/scripts/templates/csv-import-header.js new file mode 100644 index 0000000..2fb6eff --- /dev/null +++ b/.tmp/scripts/templates/csv-import-header.js @@ -0,0 +1,82 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var formAttribute, i, j, label, len, len1, ref, ref1; + + _print(_safe('
\n\n
\n\n \n\n \n\n
\n\n')); + + ref = this.columnLabels; + for (i = 0, len = ref.length; i < len; i++) { + label = ref[i]; + _print(_safe('\n\n
\n\n \n \n ')); + ref1 = this.sortedFormAttributes; + for (j = 0, len1 = ref1.length; j < len1; j++) { + formAttribute = ref1[j]; + _print(_safe('\n ')); + if (formAttribute === label) { + _print(_safe('\n \n ')); + } else { + _print(_safe('\n \n ')); + } + _print(_safe('\n ')); + } + _print(_safe('\n \n\n ')); + if (label) { + _print(_safe('\n \n ')); + } else { + _print(_safe('\n \n ')); + } + _print(_safe('\n\n
\n\n')); + } + + _print(_safe('\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/csv-import-row.js b/.tmp/scripts/templates/csv-import-row.js new file mode 100644 index 0000000..2ee9159 --- /dev/null +++ b/.tmp/scripts/templates/csv-import-row.js @@ -0,0 +1,80 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var i, index, len, ref, value; + + _print(_safe('\n\n
\n
\n ')); + + _print(this.rowIndex + 1); + + _print(_safe('\n
\n\n
\n\n ')); + + if (this.selected) { + _print(_safe('\n \n ')); + } else { + _print(_safe('\n \n ')); + } + + _print(_safe('\n\n \n\n \n\n ')); + + if (this.valid === null) { + _print(_safe('\n \n ')); + } else if (this.valid === true) { + _print(_safe('\n \n ')); + } else if (this.valid === false) { + _print(_safe('\n \n ')); + } + + _print(_safe('\n\n
\n\n ')); + + ref = this.line; + for (index = i = 0, len = ref.length; i < len; index = ++i) { + value = ref[index]; + _print(_safe('\n
')); + _print(value); + _print(_safe('
\n ')); + } + + _print(_safe('\n\n
\n\n
\n
    \n
    \n\n
    \n
      \n
      \n\n
      \n\n
      \n\n
      \n\n
      \n\n
    • \n
      \n \n Warning: \n
      \n \n
    • \n\n
    • \n
      \n \n Error: \n
      \n \n
    • \n\n
      \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/csv-import.js b/.tmp/scripts/templates/csv-import.js new file mode 100644 index 0000000..5af03b9 --- /dev/null +++ b/.tmp/scripts/templates/csv-import.js @@ -0,0 +1,78 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var data, ref, type; + + _print(_safe('
      \n\n
      Import Forms
      \n\n
      \n\n \n\n
      \n\n
      \n\n \n\n \n\n
      \n\n
      \n\n\n
      \n\n
      \n\n
      \n\n
        \n\n
      • \n
        \n
        \n
        \n Choose file\n \n \n \n
        \n
      \n \n\n \n
    • \n \n
    • \n \n \n ')); + + ref = this.importTypes; + for (type in ref) { + data = ref[type]; + _print(_safe('\n \n ')); + } + + _print(_safe('\n
      \n \n\n \n\n
      \n\n
      \n
      \n\n Import Selected\n\n Stop Importing\n\n Preview Selected\n\n Validate Selected\n\n Options ...\n\n
      \n\n
      \n\n
        \n\n
      • \n ')); + + if (this.parseTranslations) { + _print(_safe('\n \n ')); + } else { + _print(_safe('\n \n ')); + } + + _print(_safe('\n parse translations
      • \n\n
      • \n ')); + + if (this.identifyTranslationCompatibilities) { + _print(_safe('\n \n ')); + } else { + _print(_safe('\n \n ')); + } + + _print(_safe('\n identify compatibility prefixes in translations
      • \n\n
      • \n \n translation delimiter
      • \n\n
      \n\n
      \n\n
      \n\n
      \n \n 0 successful imports\n
      \n\n
      \n \n 0 failed imports\n
      \n\n
      \n \n 0 aborted imports\n
      \n\n
      \n\n\n
      \n\n

      Errors

      \n\n \n\n

      No Errors

      \n\n
      \n
        \n
        \n
        \n\n
        \n\n

        Warnings\n

        \n\n \n\n \n\n

        No Warnings

        \n\n
        \n
          \n
          \n
          \n\n
          \n
          \n
          \n
          \n
          \n
          \n
          \n\n
          \n\n\n
          \n\n
        • \n
          \n \n Warning: \n
          \n \n
        • \n\n
        • \n
          \n \n Error: \n
          \n \n
        • \n\n
          \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/date-input.js b/.tmp/scripts/templates/date-input.js new file mode 100644 index 0000000..8260054 --- /dev/null +++ b/.tmp/scripts/templates/date-input.js @@ -0,0 +1,60 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/div-input.js b/.tmp/scripts/templates/div-input.js new file mode 100644 index 0000000..fc6dc95 --- /dev/null +++ b/.tmp/scripts/templates/div-input.js @@ -0,0 +1,48 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
          \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/edit-corpus.js b/.tmp/scripts/templates/edit-corpus.js new file mode 100644 index 0000000..033e47b --- /dev/null +++ b/.tmp/scripts/templates/edit-corpus.js @@ -0,0 +1,52 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
          \n\n
          Edit the details of this\n corpus
          \n\n
          \n\n
          \n\n
            \n\n
          • \n \n \n
            \n \n
            \n
          • \n\n
          • \n \n \n
            \n \n
            \n
          • \n\n
          • \n \n \n
          • \n\n

            WARNing: Corpus metadata update currently\n deactivated in Dative.

            \n\n
          \n\n
          \n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/exporter-dialog.js b/.tmp/scripts/templates/exporter-dialog.js new file mode 100644 index 0000000..4562cfd --- /dev/null +++ b/.tmp/scripts/templates/exporter-dialog.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
          \n
          \n\n
          \n\n
          \n\n
          \n
          \n\n
          \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/exporter.js b/.tmp/scripts/templates/exporter.js new file mode 100644 index 0000000..2c9a98a --- /dev/null +++ b/.tmp/scripts/templates/exporter.js @@ -0,0 +1,58 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
          \n\n
          \n\n
          \n

          ')); + + _print(this.title); + + _print(_safe('

          \n
          ')); + + _print(_safe(this.description)); + + _print(_safe('
          \n
          \n\n
          \n ')); + + if (this.hasSettings) { + _print(_safe('\n \n ')); + } + + _print(_safe('\n \n
          \n\n
          \n\n
          \n\n
          \n\n
          \n
          \n
          \n\n
          \n\n
          \n\n
          \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/field-display.js b/.tmp/scripts/templates/field-display.js new file mode 100644 index 0000000..43434c6 --- /dev/null +++ b/.tmp/scripts/templates/field-display.js @@ -0,0 +1,52 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
          \n
          \n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/field-suggestible-warnings.js b/.tmp/scripts/templates/field-suggestible-warnings.js new file mode 100644 index 0000000..76b02fc --- /dev/null +++ b/.tmp/scripts/templates/field-suggestible-warnings.js @@ -0,0 +1,56 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
          \n \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n
          \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/field-suggestible.js b/.tmp/scripts/templates/field-suggestible.js new file mode 100644 index 0000000..bc1c56b --- /dev/null +++ b/.tmp/scripts/templates/field-suggestible.js @@ -0,0 +1,56 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
          \n \n
          \n
          \n
          \n
          \n
          \n
          \n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/field.js b/.tmp/scripts/templates/field.js new file mode 100644 index 0000000..4aa7b5f --- /dev/null +++ b/.tmp/scripts/templates/field.js @@ -0,0 +1,52 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
          \n
          \n
          \n
          \n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/file-data-upload-input.js b/.tmp/scripts/templates/file-data-upload-input.js new file mode 100644 index 0000000..b490a99 --- /dev/null +++ b/.tmp/scripts/templates/file-data-upload-input.js @@ -0,0 +1,52 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('Choose file\n\n
          \n
          Uploading file data ...
          \n
          \n
          \n\n\n\n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/file-data.js b/.tmp/scripts/templates/file-data.js new file mode 100644 index 0000000..54be6bb --- /dev/null +++ b/.tmp/scripts/templates/file-data.js @@ -0,0 +1,152 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var object, ref, verb; + + _print(_safe('
          \n\n ')); + + if (this.parentFile) { + _print(_safe('\n
          ')); + _print(this.headerTitle); + _print(_safe('
          \n ')); + } else { + _print(_safe('\n
          ')); + _print(this.headerTitle); + _print(_safe('
          \n ')); + } + + _print(_safe('\n\n
          \n\n ')); + + if (this.parentFile) { + _print(_safe('\n \n ')); + } else { + _print(_safe('\n \n ')); + } + + _print(_safe('\n\n
          \n\n
          \n\n \n\n ')); + + if (this.parentFile) { + _print(_safe('\n\n 0s\n\n \n\n \n\n ')); + } else { + _print(_safe('\n\n ')); + if (this.undownloadable) { + _print(_safe('\n \n \n \n ')); + } else { + _print(_safe('\n \n \n \n ')); + } + _print(_safe('\n\n \n\n ')); + } + + _print(_safe('\n\n
          \n\n
          \n\n
          \n\n ')); + + if (this.MIMEType === 'application/pdf') { + _print(_safe('\n ')); + _print(this.name); + _print(_safe('\n ')); + } else if (this.type === 'audio') { + _print(_safe('\n \n ')); + } else if (this.type === 'video' && this.canPlayVideo) { + _print(_safe('\n \n ')); + } else if (this.type === 'image') { + _print(_safe('\n \n ')); + } else if (this.embedCode) { + _print(_safe('\n ')); + _print(_safe(this.embedCode)); + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + object = this.name ? "the file " + this.name : "this file"; + _print(_safe('\n ')); + verb = (ref = this.type) === 'audio' || ref === 'video' ? 'play' : 'display'; + _print(_safe('\n
          Sorry, ')); + _print(object); + _print(_safe(' cannot be\n ')); + _print(verb); + _print(_safe('ed.
          \n ')); + } + + _print(_safe('\n\n
          \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/filter-expression.js b/.tmp/scripts/templates/filter-expression.js new file mode 100644 index 0000000..acf49e4 --- /dev/null +++ b/.tmp/scripts/templates/filter-expression.js @@ -0,0 +1,184 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var attribute, buttonText, i, j, k, len, len1, len2, myAttribute, myModel, myRelation, mySubattribute, myValue, operandClass, ref, ref1, ref2, ref3, ref4, ref5, ref6, relation; + + _print(_safe('\n \n\n ')); + + if ((ref = this.filterExpression[0]) === 'and' || ref === 'or' || ref === 'not') { + _print(_safe('\n ')); + buttonText = this.filterExpression[0]; + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + buttonText = ''; + _print(_safe('\n ')); + } + + _print(_safe('\n\n \n\n \n\n \n
          \n
          \n \n\n
          \n
          \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n
          \n
          \n
          \n
          \n ')); + + if ((ref1 = this.filterExpression[0]) === 'and' || ref1 === 'or') { + _print(_safe('\n ')); + operandClass = 'filter-expression-operand filter-expression-operand-array'; + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + operandClass = 'filter-expression-operand'; + _print(_safe('\n ')); + } + + _print(_safe('\n\n
          \n\n ')); + + if (this.filterExpression.length > 3) { + _print(_safe('\n\n ')); + if (this.filterExpression.length === 5) { + _print(_safe('\n ')); + ref2 = this.filterExpression, myModel = ref2[0], myAttribute = ref2[1], mySubattribute = ref2[2], myRelation = ref2[3], myValue = ref2[4]; + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + ref3 = this.filterExpression, myModel = ref3[0], myAttribute = ref3[1], myRelation = ref3[2], myValue = ref3[3]; + _print(_safe('\n ')); + if (myValue === null) { + _print(_safe('\n ')); + if (myRelation === '=') { + _print(_safe('\n ')); + myRelation = 'is null'; + _print(_safe('\n ')); + } else if (myRelation === '!=') { + _print(_safe('\n ')); + myRelation = 'is not null'; + _print(_safe('\n ')); + } + _print(_safe('\n ')); + } + _print(_safe('\n ')); + } + _print(_safe('\n\n \n\n ')); + if (this.filterExpression.length === 5) { + _print(_safe('\n \n ')); + } + _print(_safe('\n ')); + if (this.filterExpression.length === 5) { + _print(_safe('\n ')); + ref5 = this.subattributes[myAttribute].sort() || []; + for (j = 0, len1 = ref5.length; j < len1; j++) { + attribute = ref5[j]; + _print(_safe('\n ')); + if (attribute === mySubattribute) { + _print(_safe('\n \n ')); + } else { + _print(_safe('\n \n ')); + } + _print(_safe('\n ')); + } + _print(_safe('\n ')); + } + _print(_safe('\n \n\n \n\n \n ')); + } + + _print(_safe('\n\n
          \n\n
          \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/form-add-widget-backup.js b/.tmp/scripts/templates/form-add-widget-backup.js new file mode 100644 index 0000000..5c95847 --- /dev/null +++ b/.tmp/scripts/templates/form-add-widget-backup.js @@ -0,0 +1,257 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var attribute, category, class_, elicitationMethod, grammaticality, i, id, index, inputGenerator, j, k, l, len, len1, len10, len11, len12, len13, len2, len3, len4, len5, len6, len7, len8, len9, m, n, o, p, q, r, ref, ref1, ref10, ref11, ref12, ref13, ref14, ref15, ref16, ref17, ref18, ref19, ref2, ref20, ref3, ref4, ref5, ref6, ref7, ref8, ref9, s, source, speaker, t, tag, translation, u, user, v; + + _print(_safe('
          \n\n
          ')); + + _print(this.headerTitle); + + _print(_safe('
          \n\n
          \n\n \n\n \n\n
          \n\n
          \n\n \n\n
          \n\n
          \n\n
          \n\n ')); + + if (this.activeServerType === 'OLD') { + _print(_safe('\n ')); + class_ = ' old'; + _print(_safe('\n ')); + } else if (this.activeServerType === 'FieldDB') { + _print(_safe('\n ')); + class_ = ' fielddb'; + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + class_ = ''; + _print(_safe('\n ')); + } + + _print(_safe('\n
          \n\n
            \n\n ')); + + if (this.activeServerType === 'OLD') { + _print(_safe('\n\n
          • \n\n \n\n \n\n \n\n
          • \n\n
          • \n\n \n\n \n\n
          • \n\n
          • \n\n \n\n \n\n
          • \n\n ')); + if (this.translations.length) { + _print(_safe('\n\n ')); + ref1 = this.translations; + for (index = j = 0, len1 = ref1.length; j < len1; index = ++j) { + translation = ref1[index]; + _print(_safe('\n\n
          • \n\n \n\n \n\n \n\n ')); + if (index === 0) { + _print(_safe('\n \n ')); + } else { + _print(_safe('\n \n ')); + } + _print(_safe('\n\n
          • \n\n ')); + } + _print(_safe('\n\n ')); + } else { + _print(_safe('\n\n
          • \n\n \n\n \n\n \n\n \n\n
          • \n\n ')); + } + _print(_safe('\n\n ')); + _print(_safe('\n\n ')); + } else if (this.activeServerType === 'FieldDB') { + _print(_safe('\n\n ')); + _print(_safe('\n\n ')); + ref4 = this.h.fieldDB.igtAttributes; + for (m = 0, len4 = ref4.length; m < len4; m++) { + attribute = ref4[m]; + _print(_safe('\n
          • \n ')); + _print(_safe(this.h.fieldDB.inputGenerator(attribute)(attribute, this))); + _print(_safe('\n
          • \n ')); + } + _print(_safe('\n\n ')); + ref5 = this.h.fieldDB.translationAttributes; + for (n = 0, len5 = ref5.length; n < len5; n++) { + attribute = ref5[n]; + _print(_safe('\n
          • \n ')); + _print(_safe(this.h.fieldDB.inputGenerator(attribute)(attribute, this))); + _print(_safe('\n
          • \n ')); + } + _print(_safe('\n\n ')); + } + + _print(_safe('\n\n
          \n\n\n ')); + + _print(_safe('\n\n
          \n\n
            \n\n ')); + + if (this.activeServerType === 'OLD') { + _print(_safe('\n\n
          • \n \n \n
          • \n\n
          • \n \n \n
          • \n\n
          • \n \n \n
          • \n\n
          • \n
            \n \n \n
            \n
          • \n\n
          • \n \n \n
          • \n\n
          \n\n
            \n\n
          • \n \n \n
          • \n\n
          • \n \n \n
          • \n\n
          • \n \n \n
          • \n\n
          • \n \n \n
          • \n\n
          • \n \n \n
          • \n\n ')); + _print(_safe('\n ')); + } else if (this.activeServerType === 'FieldDB') { + _print(_safe('\n\n ')); + ref20 = this.h.fieldDB.secondaryAttributes; + for (v = 0, len13 = ref20.length; v < len13; v++) { + attribute = ref20[v]; + _print(_safe('\n
          • \n ')); + inputGenerator = this.h.fieldDB.inputGenerator(attribute); + _print(_safe('\n ')); + _print(_safe(inputGenerator(attribute, this))); + _print(_safe('\n
          • \n ')); + } + _print(_safe('\n\n ')); + } + + _print(_safe('\n\n
          \n\n
          ')); + + _print(_safe('\n\n
            \n
          • \n \n
          • \n\n
          • \n The Blargon of Blargonia.\n
          • \n\n
          \n\n
          \n\n
          \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/form-add-widget.js b/.tmp/scripts/templates/form-add-widget.js new file mode 100644 index 0000000..958f1b4 --- /dev/null +++ b/.tmp/scripts/templates/form-add-widget.js @@ -0,0 +1,78 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
          \n\n
          ')); + + _print(this.headerTitle); + + _print(_safe('
          \n\n
          \n\n \n\n \n\n
          \n\n
          \n\n \n\n \n\n ')); + + if (this.addUpdateType === 'update') { + _print(_safe('\n \n ')); + } + + _print(_safe('\n\n \n\n
          \n\n
          \n\n
          \n\n
          \n\n
            \n
              \n\n
                \n\n
              • \n Save\n\n \n \n\n
              • \n\n
              \n\n
              \n\n
              \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/form-add.js b/.tmp/scripts/templates/form-add.js new file mode 100644 index 0000000..be6c2bb --- /dev/null +++ b/.tmp/scripts/templates/form-add.js @@ -0,0 +1,82 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
              \n
              ')); + + _print(this.headerTitle); + + _print(_safe('
              \n \n
              \n\n
              \n\n
              \n\n
                \n\n
              • \n \n \n \n
              • \n\n
              • \n \n \n
              • \n\n
              • \n \n \n
              • \n\n
              • \n \n \n \n ')); + } else { + _print(_safe('\n >\n ')); + } + + _print(_safe('\n \n
              • \n\n
              \n\n
                \n
              • \n \n \n
              • \n
              • \n \n \n
              • \n
              • \n \n \n
              • \n
              • \n
                \n \n \n
                \n
              • \n
              • \n \n \n
              • \n
              \n\n
                \n
              • \n \n \n
              • \n
              • \n \n \n
              • \n
              • \n \n \n
              • \n
              • \n \n \n
              • \n
              • \n \n \n
              • \n
              \n\n
                \n
              • \n \n
              • \n
              \n
              \n
              \n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/form.js b/.tmp/scripts/templates/form.js new file mode 100644 index 0000000..ca2d811 --- /dev/null +++ b/.tmp/scripts/templates/form.js @@ -0,0 +1,70 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
              \n\n
              \n\n ')); + + if (this.addUpdateType === 'add') { + _print(_safe('\n \n ')); + } else { + _print(_safe('\n \n ')); + } + + _print(_safe('\n\n \n\n \n\n
              \n\n
              ')); + + _print(this.headerTitle || ''); + + _print(_safe('
              \n\n
              \n\n \n\n \n\n \n\n ')); + + if (this.addUpdateType === 'update') { + _print(_safe('\n\n \n\n \n\n \n\n \n\n ')); + } + + _print(_safe('\n\n
              \n\n
              \n\n\n
              \n\n
              \n\n
              \n
              \n
              \n
              \n\n
              \n\n
              \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/forms-search.js b/.tmp/scripts/templates/forms-search.js new file mode 100644 index 0000000..647a392 --- /dev/null +++ b/.tmp/scripts/templates/forms-search.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
              \n\n
              Search Forms
              \n\n
              \n\n
              \n

              The GUI for searching forms should go here

              \n
              \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/forms.js b/.tmp/scripts/templates/forms.js new file mode 100644 index 0000000..89df75f --- /dev/null +++ b/.tmp/scripts/templates/forms.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
              \n\n
              \n\n
              \n\n
              \n
              \n There are no forms to display\n
              \n
              \n Browsing\n \n of\n \n (page\n \n of\n )\n
              \n
              \n\n
              \n\n \n\n \n\n \n\n
              \n\n
              \n\n \n\n \n\n
              \n\n
              \n\n
              \n\n
              \n\n
              \n\n
              \n\n
              \n\n
              \n\n
              \n\n
              \n\n
              \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/generate-and-compile-control.js b/.tmp/scripts/templates/generate-and-compile-control.js new file mode 100644 index 0000000..21c315f --- /dev/null +++ b/.tmp/scripts/templates/generate-and-compile-control.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('Generate & Compile\n
              \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/get-probabilities-control.js b/.tmp/scripts/templates/get-probabilities-control.js new file mode 100644 index 0000000..7598d36 --- /dev/null +++ b/.tmp/scripts/templates/get-probabilities-control.js @@ -0,0 +1,72 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('\n')); + + _print(this.rareDelimiter); + + _print(_safe('\n')); + + _print(this.buttonText); + + _print(_safe('\n
              \n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/grammaticality-value-representation.js b/.tmp/scripts/templates/grammaticality-value-representation.js new file mode 100644 index 0000000..6b67640 --- /dev/null +++ b/.tmp/scripts/templates/grammaticality-value-representation.js @@ -0,0 +1,60 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('')); + + _print(this.grammaticalityValue); + + _print(_safe('')); + + _print(this.value); + + _print(_safe('\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/help-dialog.js b/.tmp/scripts/templates/help-dialog.js new file mode 100644 index 0000000..7c597f0 --- /dev/null +++ b/.tmp/scripts/templates/help-dialog.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
              \n\n
              \n\n \n\n \n\n
              \n\n
              \n\n
              \n
              \n
              \n\n
              \n\n
              \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/home.js b/.tmp/scripts/templates/home.js new file mode 100644 index 0000000..56ed767 --- /dev/null +++ b/.tmp/scripts/templates/home.js @@ -0,0 +1,64 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
              \n\n ')); + + if (this.header) { + _print(_safe('\n
              ')); + _print(this.header); + _print(_safe('
              \n ')); + } else { + _print(_safe('\n
              Dative Home Page
              \n ')); + } + + _print(_safe('\n\n
              \n\n
              \n ')); + + if (this.html) { + _print(_safe('\n
              \n ')); + _print(_safe(this.html)); + _print(_safe('\n
              \n ')); + } else { + _print(_safe('\n

              Welcome to Dative, an\n application for linguistic fieldwork.

              \n ')); + } + + _print(_safe('\n
              \n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/html-snippet-representation.js b/.tmp/scripts/templates/html-snippet-representation.js new file mode 100644 index 0000000..160d4d0 --- /dev/null +++ b/.tmp/scripts/templates/html-snippet-representation.js @@ -0,0 +1,52 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('
              \n ')); + + _print(_safe(this.valueFormatter(this.value))); + + _print(_safe('
              \n
              \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/importer-dialog.js b/.tmp/scripts/templates/importer-dialog.js new file mode 100644 index 0000000..79208bf --- /dev/null +++ b/.tmp/scripts/templates/importer-dialog.js @@ -0,0 +1,58 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var data, ref, type; + + _print(_safe('
              \n
              \n\n
              \n\n \n\n
                \n\n
              • \n
                \n
                \n
                \n Choose file\n \n
                \n
                Uploading file data ...
                \n
                \n
                \n \n
                \n
              \n \n\n
            • \n \n
            • \n \n \n ')); + + ref = this.importTypes; + for (type in ref) { + data = ref[type]; + _print(_safe('\n \n ')); + } + + _print(_safe('\n
              \n \n\n \n\n
              \n\n
              \n
              \n Import Selected\n View Selected\n Validate Selected\n
              \n\n
              \n

              Errors

              \n
              \n
              \n\n
              \n

              Warnings

              \n
              \n
              \n\n
              \n
              \n
              \n
              \n
              \n\n \n\n\n
              \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/input-textarea-input.js b/.tmp/scripts/templates/input-textarea-input.js new file mode 100644 index 0000000..d396a1c --- /dev/null +++ b/.tmp/scripts/templates/input-textarea-input.js @@ -0,0 +1,76 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('\n\n')); + + _print(this.textareaValue); + + _print(_safe('\n\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/keyboard-input.js b/.tmp/scripts/templates/keyboard-input.js new file mode 100644 index 0000000..ff7f44e --- /dev/null +++ b/.tmp/scripts/templates/keyboard-input.js @@ -0,0 +1,298 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + var colIndex, coord, dim, editable, fontSize, height, i, j, k, keyCount, l, label, len, len1, len2, meta, mode, ref, ref1, ref2, ref3, ref4, ref5, ref6, repr, rowIndex, spacerHeight, style, subIndex, subcoord, subdim, title, width; + + _print(_safe('
              \n')); + + ref = this.keyboardLayout.rows; + for (rowIndex = i = 0, len = ref.length; i < len; rowIndex = ++i) { + keyCount = ref[rowIndex]; + _print(_safe('\n
              \n\n ')); + for (colIndex = j = 0, ref1 = keyCount; 0 <= ref1 ? j < ref1 : j > ref1; colIndex = 0 <= ref1 ? ++j : --j) { + _print(_safe('\n ')); + coord = rowIndex + "-" + colIndex; + _print(_safe('\n ')); + meta = this.keyboardLayout.coord2meta[coord]; + _print(_safe('\n ')); + ref2 = [meta != null ? meta.editable : void 0, meta != null ? meta.repr : void 0], editable = ref2[0], repr = ref2[1]; + _print(_safe('\n ')); + dim = this.keyboardLayout.dimensions[coord]; + _print(_safe('\n\n ')); + if (dim) { + _print(_safe('\n\n \n ')); + if (dim.length) { + _print(_safe('\n
              \n ')); + for (subIndex = k = 0, len1 = dim.length; k < len1; subIndex = ++k) { + subdim = dim[subIndex]; + _print(_safe('\n ')); + subcoord = coord + "-" + subIndex; + _print(_safe('\n ')); + meta = this.keyboardLayout.coord2meta[subcoord]; + _print(_safe('\n ')); + ref3 = [meta != null ? meta.editable : void 0, meta != null ? meta.repr : void 0], editable = ref3[0], repr = ref3[1]; + _print(_safe('\n ')); + width = subdim.width * this.keyboardLayout.ppi; + _print(_safe('\n ')); + height = subdim.height * this.keyboardLayout.ppi; + _print(_safe('\n ')); + if (height > 25) { + spacerHeight = 0.4 * height; + } else { + spacerHeight = 0; + } + _print(_safe('\n ')); + if (editable) { + _print(_safe('\n ')); + if (this.editable) { + _print(_safe('\n ')); + title = meta.unicodeMetadata[0] + ". Double-click to edit."; + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + title = meta.unicodeMetadata[0] + "."; + _print(_safe('\n ')); + } + _print(_safe('\n
              \n
              \n
              ')); + _print(repr[0]); + _print(_safe('
              \n
              ')); + _print(repr[1]); + _print(_safe('
              \n
              ')); + _print(repr[2]); + _print(_safe('
              \n
              ')); + _print(repr[3]); + _print(_safe('
              \n
              \n ')); + } + _print(_safe('\n
              \n\n \n ')); + } else { + _print(_safe('\n ')); + width = dim.width * this.keyboardLayout.ppi; + _print(_safe('\n ')); + height = dim.height * this.keyboardLayout.ppi; + _print(_safe('\n ')); + if (!repr[1] && height > 25) { + style = ' style=\'margin-top: 1em;\''; + } else { + style = ''; + } + _print(_safe('\n ')); + if (((ref4 = repr[0]) != null ? ref4.length : void 0) > 5) { + fontSize = ' font-size: 75%;'; + } else { + fontSize = ''; + } + _print(_safe('\n ')); + if (height > 25) { + spacerHeight = 0.4 * height; + } else { + spacerHeight = 0; + } + _print(_safe('\n ')); + if (editable) { + _print(_safe('\n ')); + if (this.editable) { + _print(_safe('\n ')); + title = meta.unicodeMetadata[0] + ". Double-click to edit."; + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + title = meta.unicodeMetadata[0] + "."; + _print(_safe('\n ')); + } + _print(_safe('\n
              \n
              \n
              ')); + _print(repr[0]); + _print(_safe('
              \n
              ')); + _print(repr[1]); + _print(_safe('
              \n
              ')); + _print(repr[2]); + _print(_safe('
              \n
              ')); + _print(repr[3]); + _print(_safe('
              \n
              \n ')); + } + _print(_safe('\n\n \n ')); + } else { + _print(_safe('\n ')); + width = this.keyboardLayout.defaultDimensions.width * this.keyboardLayout.ppi; + _print(_safe('\n ')); + height = this.keyboardLayout.defaultDimensions.height * this.keyboardLayout.ppi; + _print(_safe('\n ')); + if (((ref5 = repr[0]) != null ? ref5.length : void 0) > 5) { + fontSize = ' font-size: 75%;'; + } else { + fontSize = ''; + } + _print(_safe('\n ')); + if (height > 25) { + spacerHeight = 0.4 * height; + } else { + spacerHeight = 0; + } + _print(_safe('\n ')); + if (editable) { + _print(_safe('\n ')); + if (this.editable) { + _print(_safe('\n ')); + title = meta.unicodeMetadata[0] + ". Double-click to edit."; + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + title = meta.unicodeMetadata[0] + "."; + _print(_safe('\n ')); + } + _print(_safe('\n
              \n
              \n
              ')); + _print(repr[0]); + _print(_safe('
              \n
              ')); + _print(repr[1]); + _print(_safe('
              \n
              ')); + _print(repr[2]); + _print(_safe('
              \n
              ')); + _print(repr[3]); + _print(_safe('
              \n
              \n ')); + } + _print(_safe('\n\n ')); + } + _print(_safe('\n\n
              \n')); + } + + _print(_safe('\n
              \n\n
              \n \n
              \n\n
              \n\n
              \n
              \n
              \n Key #\n
              \n
              \n \n
              \n
              \n
              \n ')); + + ref6 = ['default', 'shift', 'alt', 'altshift']; + for (l = 0, len2 = ref6.length; l < len2; l++) { + mode = ref6[l]; + _print(_safe('\n ')); + if (mode === 'altshift') { + _print(_safe('\n ')); + label = 'alt+shift'; + title = ' and the alt and shift keys are being held down.'; + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + label = mode; + _print(_safe('\n ')); + if (mode === 'alt') { + _print(_safe('\n ')); + title = ' and the alt key is being held down.'; + _print(_safe('\n ')); + } else if (mode === 'shift') { + _print(_safe('\n ')); + title = ' and the shift key is being held down.'; + _print(_safe('\n ')); + } else { + _print(_safe('\n ')); + title = '.'; + _print(_safe('\n ')); + } + _print(_safe('\n ')); + } + _print(_safe('\n
              \n
              \n \n
              \n \n
              \n ')); + } + + _print(_safe('\n
              \n
              \n\n
              \n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/label.js b/.tmp/scripts/templates/label.js new file mode 100644 index 0000000..9932908 --- /dev/null +++ b/.tmp/scripts/templates/label.js @@ -0,0 +1,56 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('')); + + _print(this.label); + + _print(_safe('\n\n')); + + }).call(this); + + return __out.join(''); + }).call((function() { + var obj = { + escape: function(value) { + return ('' + value) + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"'); + }, + safe: _safe + }, key; + for (key in __obj) obj[key] = __obj[key]; + return obj; + })()); +}; + return template; +}); diff --git a/.tmp/scripts/templates/login-dialog.js b/.tmp/scripts/templates/login-dialog.js new file mode 100644 index 0000000..97cd0da --- /dev/null +++ b/.tmp/scripts/templates/login-dialog.js @@ -0,0 +1,44 @@ +define(function(){ + var template = function(__obj) { + var _safe = function(value) { + if (typeof value === 'undefined' && value == null) + value = ''; + var result = new String(value); + result.ecoSafe = true; + return result; + }; + return (function() { + var __out = [], __self = this, _print = function(value) { + if (typeof value !== 'undefined' && value != null) + __out.push(value.ecoSafe ? value : __self.escape(value)); + }, _capture = function(callback) { + var out = __out, result; + __out = []; + callback.call(this); + result = __out.join(''); + __out = out; + return _safe(result); + }; + (function() { + _print(_safe('\n\n