Add basic csv view inside a table loaded through duckdb
This commit is contained in:
@@ -1,12 +1,36 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { Component, signal, viewChild } from '@angular/core';
|
||||
import { ButtonModule } from 'primeng/button';
|
||||
import { SplitterModule } from 'primeng/splitter';
|
||||
import { TabsModule } from 'primeng/tabs';
|
||||
import { ToolbarModule } from 'primeng/toolbar';
|
||||
import { IconField } from 'primeng/iconfield';
|
||||
import { InputIcon } from 'primeng/inputicon';
|
||||
import { SplitButtonModule } from 'primeng/splitbutton';
|
||||
import { InputTextModule } from 'primeng/inputtext';
|
||||
import { TableLazyLoadEvent, TableModule } from 'primeng/table';
|
||||
import { Skeleton } from 'primeng/skeleton';
|
||||
import { FileTreeComponent } from './file-tree/file-tree.component';
|
||||
import { FileViewerComponent } from './file-viewer/file-viewer.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
imports: [RouterOutlet],
|
||||
imports: [
|
||||
ButtonModule,
|
||||
SplitterModule,
|
||||
TabsModule,
|
||||
ToolbarModule,
|
||||
IconField,
|
||||
InputIcon,
|
||||
InputTextModule,
|
||||
SplitButtonModule,
|
||||
FileTreeComponent,
|
||||
FileViewerComponent,
|
||||
],
|
||||
templateUrl: './app.component.html',
|
||||
styleUrl: './app.component.scss'
|
||||
styleUrl: './app.component.scss',
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'ingey-eager';
|
||||
// TODO: When a file is selected, we add a new sheet with that file as the current file?
|
||||
// For now we'll just store the current file only
|
||||
selectedFile = signal<File | undefined>(undefined);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user