WIP: use es-modules

This commit is contained in:
j 2026-02-16 22:16:19 +01:00
commit f70967f9bc
144 changed files with 741 additions and 57 deletions

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
/*@
Ox.API <f> Remote API controller

View file

@ -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
}
};
}

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
/*@
Ox.Clipboard <o> Basic clipboard handler

View file

@ -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,

View file

@ -1,3 +1,5 @@
import Ox from './../../../Ox/js/Namespace.js';
Ox.Cookies = function() {
var name, value, cookies;
if (arguments.length == 1) {

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
(function(_) {
var noTooltipEvents = {};

View file

@ -1,3 +1,5 @@
import Ox from './../../../Ox/js/Namespace.js';
(function() {
var chars = {

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
/*@
Ox.Focus <o> Basic focus controller

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
/*@
Ox.Fullscreen <o> Fullscreen controller

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
/*@
Ox.GarbageCollection <f> GarbageCollection

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
Ox.History = function(options) {

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
/*@
Ox.LoadingIcon <f> Loading Icon Element

View file

@ -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;
};
};

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
/*@
Ox.Request <o> Basic request controller

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
/*@
Ox.Theme <f> get/set theme

View file

@ -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 = {

View file

@ -1,4 +1,5 @@
'use strict';
import Ox from './../../../Ox/js/Namespace.js';
/*@
Ox.URL <f> URL controller