move FA consts into builder function to resolve load order

This commit is contained in:
Stewart Allen 2022-04-20 20:34:21 -04:00
commit 06b380d472
2 changed files with 173 additions and 4 deletions

View file

@ -11,10 +11,6 @@ const { broker } = gapp;
const { mesh } = root;
const { api, util } = mesh;
const trash = FontAwesome.icon({ prefix: "fas", iconName: "trash" }).html[0];
const eye_open = FontAwesome.icon({ prefix: "fas", iconName: "eye" }).html[0];
const eye_closed = FontAwesome.icon({ prefix: "fas", iconName: "eye-slash" }).html[0];
let call = broker.send;
let rad = 180 / Math.PI;
let und = undefined;
@ -290,6 +286,10 @@ api.settings = function() {
// create html elements
function ui_build() {
const trash = FontAwesome.icon({ prefix: "fas", iconName: "trash" }).html[0];
const eye_open = FontAwesome.icon({ prefix: "fas", iconName: "eye" }).html[0];
const eye_closed = FontAwesome.icon({ prefix: "fas", iconName: "eye-slash" }).html[0];
// set app version
$h('app-name', "Mesh:Tool");
$h('app-vers', 'beta' /* gapp.version */);