From 537246a94df19f1f7ae41d4fd1b9f94d10806071 Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Mon, 31 Oct 2022 10:28:05 -0400 Subject: [PATCH] linting --- public-scss/style.scss | 6 +++--- public-typescript/reportSearch.d.ts | 1 - public-typescript/reportSearch.js | 3 --- public-typescript/reportSearch.ts | 4 ---- public/javascripts/reportSearch.min.js | 2 +- views/print/pdf/style.css | 2 +- 6 files changed, 5 insertions(+), 13 deletions(-) diff --git a/public-scss/style.scss b/public-scss/style.scss index 50fa950d..618fdecd 100644 --- a/public-scss/style.scss +++ b/public-scss/style.scss @@ -33,7 +33,7 @@ fieldset:enabled .is-hidden-enabled { pointer-events: none; } -// to fix page titles inside level components, set on .level-left +/* to fix page titles inside level components, set on .level-left */ .has-flex-shrink-1 { flex-shrink: 1; @@ -174,12 +174,12 @@ span.button.is-static { background-color: transparent !important; } - // fix left icon + /* fix left icon */ .datetimepicker-dummy-wrapper .datetimepicker-dummy-input:first-child { text-indent: 2rem; } - // center the button + /* center the button */ .datetimepicker-clear-button { transform: none; margin-right: 0.25rem; diff --git a/public-typescript/reportSearch.d.ts b/public-typescript/reportSearch.d.ts index cb0ff5c3..e69de29b 100644 --- a/public-typescript/reportSearch.d.ts +++ b/public-typescript/reportSearch.d.ts @@ -1 +0,0 @@ -export {}; diff --git a/public-typescript/reportSearch.js b/public-typescript/reportSearch.js index 97aab01d..135ec1a1 100644 --- a/public-typescript/reportSearch.js +++ b/public-typescript/reportSearch.js @@ -1,7 +1,4 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); (() => { - const los = exports.los; const menuTabElements = document.querySelectorAll(".menu a"); const tabContainerElements = document.querySelectorAll(".tabs-container > div"); const selectTab = (clickEvent) => { diff --git a/public-typescript/reportSearch.ts b/public-typescript/reportSearch.ts index 2f75162b..baf7ae0c 100644 --- a/public-typescript/reportSearch.ts +++ b/public-typescript/reportSearch.ts @@ -1,10 +1,6 @@ /* eslint-disable unicorn/prefer-module */ -import type * as globalTypes from "../types/globalTypes"; - (() => { - const los = exports.los as globalTypes.LOS; - const menuTabElements = document.querySelectorAll(".menu a") as NodeListOf; const tabContainerElements = document.querySelectorAll( ".tabs-container > div" diff --git a/public/javascripts/reportSearch.min.js b/public/javascripts/reportSearch.min.js index 7aa739af..d9442f63 100644 --- a/public/javascripts/reportSearch.min.js +++ b/public/javascripts/reportSearch.min.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),(()=>{exports.los;const e=document.querySelectorAll(".menu a"),s=document.querySelectorAll(".tabs-container > div"),t=t=>{t.preventDefault();for(const s of e)s.classList.remove("is-active");const o=t.currentTarget;o.classList.add("is-active");const c=o.href.slice(Math.max(0,o.href.indexOf("#")+1));for(const e of s)e.id===c?e.classList.remove("is-hidden"):e.classList.add("is-hidden")};for(const s of e)s.addEventListener("click",t)})(); \ No newline at end of file +(()=>{const e=document.querySelectorAll(".menu a"),s=document.querySelectorAll(".tabs-container > div"),t=t=>{t.preventDefault();for(const s of e)s.classList.remove("is-active");const c=t.currentTarget;c.classList.add("is-active");const i=c.href.slice(Math.max(0,c.href.indexOf("#")+1));for(const e of s)e.id===i?e.classList.remove("is-hidden"):e.classList.add("is-hidden")};for(const s of e)s.addEventListener("click",t)})(); \ No newline at end of file diff --git a/views/print/pdf/style.css b/views/print/pdf/style.css index 5c607016..7de610a2 100644 --- a/views/print/pdf/style.css +++ b/views/print/pdf/style.css @@ -165,4 +165,4 @@ td.has-border-bottom { .has-text-nowrap { white-space: nowrap; -} \ No newline at end of file +}