Restructure; use DaisyUI

This commit is contained in:
Geomitron
2023-11-28 19:50:45 -06:00
parent 49c3f38f99
commit 2eef4d0bee
727 changed files with 1283 additions and 298840 deletions

View File

@@ -1,6 +1,7 @@
import { AfterViewInit, Component, ViewChild } from '@angular/core'
import { Component, ViewChild } from '@angular/core'
import { SearchService } from 'src-angular/app/core/services/search.service'
import { SearchService } from 'src/app/core/services/search.service'
import { ChartSidebarComponent } from './chart-sidebar/chart-sidebar.component'
import { ResultTableComponent } from './result-table/result-table.component'
import { StatusBarComponent } from './status-bar/status-bar.component'
@@ -10,7 +11,7 @@ import { StatusBarComponent } from './status-bar/status-bar.component'
templateUrl: './browse.component.html',
styleUrls: ['./browse.component.scss'],
})
export class BrowseComponent implements AfterViewInit {
export class BrowseComponent {
@ViewChild('resultTable', { static: true }) resultTable: ResultTableComponent
@ViewChild('chartSidebar', { static: true }) chartSidebar: ChartSidebarComponent
@@ -18,18 +19,19 @@ export class BrowseComponent implements AfterViewInit {
constructor(private searchService: SearchService) { }
ngAfterViewInit() {
const $tableColumn = $('#table-column')
$tableColumn.on('scroll', () => {
const pos = $tableColumn[0].scrollTop + $tableColumn[0].offsetHeight
const max = $tableColumn[0].scrollHeight
if (pos >= max - 5) {
this.searchService.updateScroll()
}
})
// TODO
// ngAfterViewInit() {
// const $tableColumn = $('#table-column')
// $tableColumn.on('scroll', () => {
// const pos = $tableColumn[0].scrollTop + $tableColumn[0].offsetHeight
// const max = $tableColumn[0].scrollHeight
// if (pos >= max - 5) {
// this.searchService.updateScroll()
// }
// })
this.searchService.onNewSearch(() => {
$tableColumn.scrollTop(0)
})
}
// this.searchService.onNewSearch(() => {
// $tableColumn.scrollTop(0)
// })
// }
}