dfsdgdsgsdg
- -dfsdgdsgsdg
-dfsdgdsgsdg
-dfsdgdsgsdg
-dfsdgdsgsdg
-dfsdgdsgsdg
dfsdgdsgsdg
-dfsdgdsgsdg
-dfsdgdsgsdg
-dfsdgdsgsdg
-dfsdgdsgsdg
-dfsdgdsgsdg
dfsdgdsgsdg
-dfsdgdsgsdg
-dfsdgdsgsdg
-dfsdgdsgsdg
- - - - - - - diff --git a/jambotron-ui/src/app/components/home.component/home.component.ts b/jambotron-ui/src/app/components/home.component/home.component.ts deleted file mode 100644 index 9b001f7..0000000 --- a/jambotron-ui/src/app/components/home.component/home.component.ts +++ /dev/null @@ -1,76 +0,0 @@ -import {Component, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; -import {MatFormField, MatInput, MatLabel} from '@angular/material/input'; -import {AngularImageViewerModule, CustomImageEvent, ImageViewerConfig} from '@hreimer/angular-image-viewer'; - -import {ZhipuaiImageService} from '../../services/zhipuai-image.service'; -import {MatButton} from '@angular/material/button'; - - -import {FormsModule} from '@angular/forms'; -import {CommonModule} from '@angular/common'; -import {BrowserModule} from '@angular/platform-browser'; -import {MatCard, MatCardActions, MatCardContent, MatCardHeader} from '@angular/material/card'; -import {Image} from '../../models/image'; - -@Component({ - selector: 'app-home.component', - imports: [ - - AngularImageViewerModule, - FormsModule - ], - templateUrl: './home.component.html', - styleUrl: './home.component.scss', - schemas :[CUSTOM_ELEMENTS_SCHEMA] -}) - -export class HomeComponent { - - query : string = ''; - - images = []; - image: Image = { - url: '' - }; - imageIndexOne = 0; - - config: ImageViewerConfig = { customBtns: [{ name: 'print', icon: { - classes: 'fas fa-paperclip', - text: 'link' - } }, { name: 'link', icon: { - classes: 'fas fa-paperclip', - text: 'link' - } }] }; - - submitted: boolean = false; - - constructor(private zhipuaiImageService: ZhipuaiImageService) { - - } - - handleEvent(event: CustomImageEvent) { - console.log(`${event.name} has been click on img ${event.imageIndex + 1}`); - - switch (event.name) { - case 'print': - console.log('run print logic'); - break; - } - } - generateImage(){ - this.zhipuaiImageService.generate(this.query).subscribe( - data => { - this.image = data; - // @ts-ignore - this.images = [this.image.url]; - - - console.log(data); - }, - error => { - console.log(error); - } - ) - } - -} diff --git a/jambotron-ui/src/app/components/login/login.component.html b/jambotron-ui/src/app/components/login/login.component.html deleted file mode 100644 index a4d4501..0000000 --- a/jambotron-ui/src/app/components/login/login.component.html +++ /dev/null @@ -1,75 +0,0 @@ -- Token: - {{ currentUser.accessToken.substring(0, 20) }} ... - {{ currentUser.accessToken.substr(currentUser.accessToken.length - 20) }} -
-- Email: - {{ currentUser.email }} -
- Roles: -ai-welcome.component works!
diff --git a/jambotron-ui/src/app/components/profile/profile.component.scss b/jambotron-ui/src/app/modules/ai-module/ai-welcome.component/ai-welcome.component.scss similarity index 100% rename from jambotron-ui/src/app/components/profile/profile.component.scss rename to jambotron-ui/src/app/modules/ai-module/ai-welcome.component/ai-welcome.component.scss diff --git a/jambotron-ui/src/app/components/login/login.component.spec.ts b/jambotron-ui/src/app/modules/ai-module/ai-welcome.component/ai-welcome.component.spec.ts similarity index 53% rename from jambotron-ui/src/app/components/login/login.component.spec.ts rename to jambotron-ui/src/app/modules/ai-module/ai-welcome.component/ai-welcome.component.spec.ts index d2c0e6c..b90e25f 100644 --- a/jambotron-ui/src/app/components/login/login.component.spec.ts +++ b/jambotron-ui/src/app/modules/ai-module/ai-welcome.component/ai-welcome.component.spec.ts @@ -1,20 +1,18 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { LoginComponent } from './login.component'; +import { AiWelcomeComponent } from './ai-welcome.component'; -describe('LoginComponent', () => { - let component: LoginComponent; - let fixture: ComponentFixturetutorials-welcome.component works!
diff --git a/jambotron-ui/src/app/user-module/ai-models.component/ai-models.component.scss b/jambotron-ui/src/app/modules/tutorials-module/tutorials-welcome.component/tutorials-welcome.component.scss similarity index 100% rename from jambotron-ui/src/app/user-module/ai-models.component/ai-models.component.scss rename to jambotron-ui/src/app/modules/tutorials-module/tutorials-welcome.component/tutorials-welcome.component.scss diff --git a/jambotron-ui/src/app/modules/tutorials-module/tutorials-welcome.component/tutorials-welcome.component.spec.ts b/jambotron-ui/src/app/modules/tutorials-module/tutorials-welcome.component/tutorials-welcome.component.spec.ts new file mode 100644 index 0000000..47c5c99 --- /dev/null +++ b/jambotron-ui/src/app/modules/tutorials-module/tutorials-welcome.component/tutorials-welcome.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TutorialsWelcomeComponent } from './tutorials-welcome.component'; + +describe('TutorialsWelcomeComponent', () => { + let component: TutorialsWelcomeComponent; + let fixture: ComponentFixtureimages.component works!
+ +