Skip to content

Commit

Permalink
Make the rest standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
cremertim committed Nov 29, 2024
1 parent 1e24b87 commit 7276758
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ import { PostContentValidationPattern } from 'app/shared/metis/metis.util';
import { PostingCreateEditDirective } from 'app/shared/metis/posting-create-edit.directive';
import { LocalStorageService } from 'ngx-webstorage';
import { ConversationDTO } from 'app/entities/metis/conversation/conversation.model';
import { PostingButtonComponent } from 'app/shared/metis/posting-button/posting-button.component';
import { ArtemisSharedModule } from 'app/shared/shared.module';
import { PostingMarkdownEditorComponent } from 'app/shared/metis/posting-markdown-editor/posting-markdown-editor.component';

@Component({
selector: 'jhi-message-reply-inline-input',
templateUrl: './message-reply-inline-input.component.html',
styleUrls: ['./message-reply-inline-input.component.scss'],
encapsulation: ViewEncapsulation.None,
standalone: true,
imports: [PostingButtonComponent, ArtemisSharedModule, PostingMarkdownEditorComponent],
})
export class MessageReplyInlineInputComponent extends PostingCreateEditDirective<AnswerPost> implements OnInit, OnChanges {
warningDismissed = false;
Expand Down
4 changes: 3 additions & 1 deletion src/main/webapp/app/shared/metis/metis.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ import { ProfilePictureComponent } from 'app/shared/profile-picture/profile-pict
AnswerPostHeaderComponent,
PostingButtonComponent,
HtmlForPostingMarkdownPipe,
PostingThreadComponent,
EnlargeSlideImageComponent,
MessageReplyInlineInputComponent,
],
declarations: [PostingThreadComponent, EnlargeSlideImageComponent, MessageReplyInlineInputComponent],
exports: [
PostingThreadComponent,
PostHeaderComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface DialogData {

@Component({
templateUrl: './enlarge-slide-image.component.html',
standalone: true,
})
export class EnlargeSlideImageComponent {
constructor(@Inject(MAT_DIALOG_DATA) public data: DialogData) {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, inject } from '@angular/core';
import { Post } from 'app/entities/metis/post.model';
import dayjs from 'dayjs/esm';
import { PostComponent } from 'app/shared/metis/post/post.component';

@Component({
selector: 'jhi-posting-thread',
templateUrl: './posting-thread.component.html',
styleUrls: ['../metis.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: true,
imports: [PostComponent],
})
export class PostingThreadComponent {
@Input() lastReadDate?: dayjs.Dayjs;
Expand Down

0 comments on commit 7276758

Please sign in to comment.