grid-apps-cmms/src/moto/license.js

27 lines
820 B
JavaScript
Raw Normal View History

2020-06-03 22:39:30 -04:00
(function() {
const is_self = typeof(self) !== 'undefined';
2020-06-03 22:39:30 -04:00
let terms = {
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
LICENSE: "See the license.md file included with the source distribution",
2022-10-11 23:21:32 -04:00
VERSION: (is_self ? self : this).debug_version || "3.6.D2"
2020-06-03 22:39:30 -04:00
};
if (typeof(module) === 'object') {
module.exports = terms;
2021-08-28 09:45:56 -04:00
}
2021-12-26 13:59:02 -05:00
2021-12-29 10:37:17 -05:00
// allow license to be required() by app without gapp
if (is_self && self.gapp) {
2021-12-26 13:59:02 -05:00
let app = self.gapp;
app.license = terms.LICENSE;
app.version = terms.VERSION;
app.copyright = terms.COPYRIGHT;
// satisfy resolver
gapp.register('moto.license');
2021-12-26 13:59:02 -05:00
// for earcut and other modules
(self.module = self.module || {}).exports = terms;
2020-06-03 22:39:30 -04:00
}
})();