fix
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
<app-file-browser-with-tree-component
|
||||
[baseUrl]="baseUrl"
|
||||
></app-file-browser-with-tree-component>
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FilesBrowserComponent } from './files-browser.component';
|
||||
|
||||
describe('FilesBrowserComponent', () => {
|
||||
let component: FilesBrowserComponent;
|
||||
let fixture: ComponentFixture<FilesBrowserComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [FilesBrowserComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(FilesBrowserComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {
|
||||
FileBrowserWithTreeComponent
|
||||
} from '../../../components/file-browser-with-tree-component/file-browser-with-tree-component';
|
||||
import {GlobalConstants} from '../../../global-constants';
|
||||
|
||||
@Component({
|
||||
selector: 'app-files-browser.component',
|
||||
imports: [
|
||||
FileBrowserWithTreeComponent
|
||||
],
|
||||
templateUrl: './files-browser.component.html',
|
||||
styleUrl: './files-browser.component.scss'
|
||||
})
|
||||
export class FilesBrowserComponent implements OnInit{
|
||||
baseUrl: string ='';
|
||||
ngOnInit(): void {
|
||||
this.baseUrl= `${GlobalConstants.API_URL}/user/file-browser-tree`;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -31,6 +31,11 @@ export const USER_ROUTS: Routes = [
|
||||
loadComponent: () => import('../user-module/tutorial-edit.component/tutorial-edit.component').then((c) => c.TutorialEditComponent),
|
||||
data:{title: 'Edit Tutorial'}
|
||||
},
|
||||
{
|
||||
path: 'files-browser',
|
||||
loadComponent: ()=>import('../user-module/files-browser.component/files-browser.component').then((c)=>c.FilesBrowserComponent),
|
||||
data:{title: 'Files Browser', icon:'folder_data', nav:true}
|
||||
},
|
||||
{
|
||||
path: 'ai-models',
|
||||
loadComponent: () => import('../user-module/ai-models.component/ai-models.component').then((c) => c.AiModelsComponent),
|
||||
|
||||
Reference in New Issue
Block a user