From 17bf23f87a9880ba5fbae42981c8e850346e2edb Mon Sep 17 00:00:00 2001 From: McNaBry Date: Thu, 14 Nov 2024 01:50:07 +0800 Subject: [PATCH] Conver history panel to primeNG sidebar --- .../src/app/history/history.component.html | 20 +++++++++---------- frontend/src/app/history/history.component.ts | 3 ++- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/frontend/src/app/history/history.component.html b/frontend/src/app/history/history.component.html index 9087e6a91a..b445bc2e8d 100644 --- a/frontend/src/app/history/history.component.html +++ b/frontend/src/app/history/history.component.html @@ -63,21 +63,21 @@

Matching History

-
-
+ +

{{ panelHistory?.question?.title }}

- -
+

{{ panelHistory?.question?.description }}

Submitted Solution

-
+ diff --git a/frontend/src/app/history/history.component.ts b/frontend/src/app/history/history.component.ts index 50b36e54f6..ce4c496af7 100644 --- a/frontend/src/app/history/history.component.ts +++ b/frontend/src/app/history/history.component.ts @@ -13,11 +13,12 @@ import { EditorState, Extension } from '@codemirror/state'; import { EditorView, basicSetup } from 'codemirror'; import { languageMap } from '../collaboration/editor/languages'; import { ToastModule } from 'primeng/toast'; +import { SidebarModule } from 'primeng/sidebar'; import { Router } from '@angular/router'; @Component({ standalone: true, - imports: [TableModule, CommonModule, InputTextModule, ButtonModule, IconFieldModule, InputIconModule, ToastModule], + imports: [SidebarModule, TableModule, CommonModule, InputTextModule, ButtonModule, IconFieldModule, InputIconModule, ToastModule], providers: [MessageService, DatePipe], templateUrl: './history.component.html', styleUrl: './history.component.css',