terrier-engine 4.13.4 → 4.13.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,8 @@ import {TerrierApp} from "../terrier/app"
3
3
  import {RouterPart} from "tuff-core/routing"
4
4
  import {routes} from "./dd-routes"
5
5
  import {DiveListPage} from "./dives/dive-list"
6
- import {Logger} from "tuff-core/logging"
7
6
  import DdSession from "./dd-session"
8
7
 
9
- Logger.level = 'debug'
10
-
11
8
  class ContentRouterPart extends RouterPart {
12
9
  get defaultPart() {
13
10
  return DiveListPage
@@ -247,7 +247,7 @@ export class ColumnsEditorModal extends ModalPart<ColumnsEditorState> {
247
247
  tbody.tr(tr => {
248
248
  tr.td('.name').text(colDef.name)
249
249
  tr.td('.description').text(colDef.metadata?.description || '')
250
- tr.td().a('.add-column.tt-button.secondary.circle.inline', a => {
250
+ tr.td().a('.add-column.tt-button.secondary.circle.compact.inline', a => {
251
251
  a.i('.glyp-plus')
252
252
  }).emitClick(addSingleKey, {name: colDef.name})
253
253
  })
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "files": [
5
5
  "*"
6
6
  ],
7
- "version": "4.13.4",
7
+ "version": "4.13.6",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Terrier-Tech/terrier-engine"
package/terrier/app.ts CHANGED
@@ -14,7 +14,6 @@ import Sheets, {AlertSheetState, ConfirmSheetState, Sheet, SheetState} from "./s
14
14
 
15
15
 
16
16
  const log = new Logger('App')
17
- Logger.level = 'info'
18
17
 
19
18
  /**
20
19
  * Main application part that renders the entire page.
@@ -41,7 +40,6 @@ export abstract class TerrierApp<TState> extends TerrierPart<TState> {
41
40
  }
42
41
 
43
42
  update(root: HTMLElement) {
44
- log.info(`Update`, root)
45
43
  Tooltips.init(root)
46
44
  Lightbox.init(root, this, 'body-content')
47
45
  }
@@ -16,7 +16,7 @@ const log = new Logger('Lightbox')
16
16
  * @param containerClass
17
17
  */
18
18
  function init(root: HTMLElement, app: TerrierApp<any>, containerClass: string) {
19
- log.info("Init", root)
19
+ log.debug("Init", root)
20
20
  root.addEventListener("click", evt => {
21
21
  if (!(evt.target instanceof HTMLElement) || evt.target.tagName != 'IMG') {
22
22
  return
@@ -6,7 +6,6 @@ import {PageBreakpoints} from "./parts/page-part"
6
6
  import { parseQueryParams } from "tuff-core/urls"
7
7
 
8
8
  const log = new Logger('List Viewer')
9
- Logger.level = 'debug'
10
9
 
11
10
  /**
12
11
  * All list items should have an `listId` value so that we can distinguish them.
@@ -3,7 +3,6 @@ import Html from "tuff-core/html"
3
3
  import Overlays from "./overlays"
4
4
 
5
5
  const log = new Logger('Tooltips')
6
- Logger.level = 'info'
7
6
 
8
7
  let container: HTMLElement | null = null
9
8
 
@@ -39,10 +38,10 @@ function onLeave(target: HTMLElement) {
39
38
  * @param root the root of the DOM over which tooltips listeners should be handled
40
39
  */
41
40
  function init(root: HTMLElement) {
42
- log.info("Init", root)
41
+ log.debug("Init", root)
43
42
  root.addEventListener("click", evt => {
44
43
  if (container && container.classList.contains('show')) {
45
- log.info("Hiding tooltip", evt)
44
+ log.debug("Hiding tooltip", evt)
46
45
  container.classList.remove('show')
47
46
  }
48
47
  }, {capture: true})