WIP: use es-modules
This commit is contained in:
parent
ec5b050496
commit
f70967f9bc
144 changed files with 741 additions and 57 deletions
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.API <f> Remote API controller
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.App <f> Basic application instance that communicates with a JSON API
|
||||
|
|
@ -75,12 +76,12 @@ Ox.App = function(options) {
|
|||
screen: screen,
|
||||
time: (+new Date() - self.time) / 1000,
|
||||
window: {
|
||||
innerHeight: window.innerHeight,
|
||||
innerWidth: window.innerWidth,
|
||||
outerHeight: window.outerHeight,
|
||||
outerWidth: window.outerWidth,
|
||||
screenLeft: window.screenLeft,
|
||||
screenTop: window.screenTop
|
||||
innerHeight: globalThis.innerHeight,
|
||||
innerWidth: globalThis.innerWidth,
|
||||
outerHeight: globalThis.outerHeight,
|
||||
outerWidth: globalThis.outerWidth,
|
||||
screenLeft: globalThis.screenLeft,
|
||||
screenTop: globalThis.screenTop
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.Clipboard <o> Basic clipboard handler
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
// fixme: wouldn't it be better to let the elements be,
|
||||
// rather then $element, $content, and potentially others,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
Ox.Cookies = function() {
|
||||
var name, value, cookies;
|
||||
if (arguments.length == 1) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
(function(_) {
|
||||
var noTooltipEvents = {};
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
(function() {
|
||||
|
||||
var chars = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.Focus <o> Basic focus controller
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.Fullscreen <o> Fullscreen controller
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.GarbageCollection <f> GarbageCollection
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
Ox.History = function(options) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.LoadingIcon <f> Loading Icon Element
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.LoadingScreen <f> Simple loading screen
|
||||
|
|
@ -79,4 +80,4 @@ Ox.LoadingScreen = function(options, self) {
|
|||
|
||||
return that;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.Request <o> Basic request controller
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.Theme <f> get/set theme
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
Ox.UI = Ox.UI || {};
|
||||
console.log("Ox", Ox, Ox.UI)
|
||||
|
||||
Ox.documentReady(function() {
|
||||
// FIXME: use Ox.$foo everywhere!
|
||||
|
|
@ -16,10 +20,11 @@ Ox.documentReady(function() {
|
|||
Ox.$elements = {};
|
||||
|
||||
//@ Ox.UI.DIMENSIONS <o> Names of horizontal and vertical dimensions
|
||||
Ox.DIMENSIONS = Ox.UI.DIMENSIONS = {
|
||||
Ox.UI.DIMENSIONS = {
|
||||
horizontal: ['width', 'height'],
|
||||
vertical: ['height', 'width']
|
||||
};
|
||||
Ox.DIMENSIONS = Ox.UI.DIMENSIONS;
|
||||
|
||||
//@ Ox.UI.EDGES <o> Names of horizontal and vertical edges
|
||||
Ox.EDGES = Ox.UI.EDGES = {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
'use strict';
|
||||
import Ox from './../../../Ox/js/Namespace.js';
|
||||
|
||||
/*@
|
||||
Ox.URL <f> URL controller
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue