This commit is contained in:
liosha84
2025-08-23 15:04:40 +03:00
parent fac4e2d4df
commit 9073f43b82
22 changed files with 416 additions and 114 deletions
@@ -0,0 +1,3 @@
<app-file-browser-with-tree-component
[baseUrl]="baseUrl"
></app-file-browser-with-tree-component>
@@ -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();
});
});
@@ -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),