diff --git a/app/ayanova/src/utils/initialize.js b/app/ayanova/src/utils/initialize.js index 63bd0f79..8d4fe05b 100644 --- a/app/ayanova/src/utils/initialize.js +++ b/app/ayanova/src/utils/initialize.js @@ -1,4 +1,5 @@ -/* eslint-disable */ +/* xeslint-disable */ +import logger from "./logit"; import store from "../store"; import roles from "./roles"; import lt from "../api/locale"; @@ -15,13 +16,11 @@ function addNavItem(title, icon, route) { // Initialize the app // on change of authentication status export default function initialize() { - console.log("initialize called"); //clear the nav items either way store.state.navItems = []; //clear the locale text cache lt.ClearCache(); if (store.state.authenticated) { - console.log("initialize about to call fetch"); //fetch the required localized text keys into the cache lt.Fetch([ "Home", @@ -35,9 +34,6 @@ export default function initialize() { "Logout" ]) .then(function() { - console.log( - "initialize back from fetch call, about to use the keys supposedly fetched now" - ); //put nav items into store //Everyone has a home addNavItem(lt.Get("Home"), "home", "/"); @@ -92,87 +88,7 @@ export default function initialize() { addNavItem(lt.Get("Logout"), "sign-out-alt", "/login"); }) .catch(function(error) { - // oops, mom don't buy it - console.log(error.message); - // output: 'mom is not happy' + logger.log("Initialize::() -> error", error); }); } } -/* - - - fa-home - - - Home - - - - - fa-toolbox - - - Service - - - - - fa-shipping-fast - - - Dispatch - - - - - fa-dolly - - - Inventory - - - - - fa-file-invoice-dollar - - - Accounting - - - - - fa-user-tie - - - Administration - - - - - fa-cogs - - - Operations - - - - - fa-info-circle - - - About - - - - - fa-sign-out-alt - - - Log off - - -*/ diff --git a/app/ayanova/src/views/login.vue b/app/ayanova/src/views/login.vue index c5edbb46..e5e5b0f2 100644 --- a/app/ayanova/src/views/login.vue +++ b/app/ayanova/src/views/login.vue @@ -2,7 +2,12 @@ -

Login

+
diff --git a/devdocs/todo.txt b/devdocs/todo.txt index d652d4cc..4d6781f1 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -33,7 +33,7 @@ WEEK OF 2018-11-12 - RAVEN shell start work. YAY! NEXT UP / CURRENTLY WORKING ON: - Clean up the login form to use graphics and no text - + - lookup naming guidelines for javascript functions (capitalized?) and fixup the code and stick to it. - Look over the (now two) api calls and look for optimization and code shrinkage / de-duplication - Move on to the next thing (build and post?)