diff --git a/build.gradle b/build.gradle
index abbfed1..b5d91fe 100644
--- a/build.gradle
+++ b/build.gradle
@@ -38,6 +38,10 @@ dependencies {
implementation 'org.springframework.ai:spring-ai-zhipuai-spring-boot-starter:1.0.0-M6'
implementation 'org.springframework:spring-mock:2.0.8'
+
+ implementation 'com.google.guava:guava:33.4.8-jre'
+ implementation 'io.micrometer:micrometer-core:1.12.0'
+ implementation 'org.springframework.boot:spring-boot-starter-actuator'
}
apply plugin: 'io.spring.dependency-management'
@@ -49,6 +53,7 @@ apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
+
tasks.register("bootRun_Dev") {
group = "_jambotron_build"
description = "Runs the Spring Boot application with the dev profile"
diff --git a/jambotron-ui/src/app/modules/admin-module/components/json-dump.component/json-dump.component.html b/jambotron-ui/src/app/modules/admin-module/components/json-dump.component/json-dump.component.html
index 86111ea..ffa49c7 100644
--- a/jambotron-ui/src/app/modules/admin-module/components/json-dump.component/json-dump.component.html
+++ b/jambotron-ui/src/app/modules/admin-module/components/json-dump.component/json-dump.component.html
@@ -2,7 +2,7 @@
JSON Dump Management
-
+
+
+ @for (entity of entityTypes; track entity) {
+
+ {{ entity | titlecase }}
+
+
+
+
+
+ }
+
Available JSON Files
diff --git a/jambotron-ui/src/app/modules/admin-module/components/json-dump.component/json-dump.component.ts b/jambotron-ui/src/app/modules/admin-module/components/json-dump.component/json-dump.component.ts
index 11a1d0c..0cce18d 100644
--- a/jambotron-ui/src/app/modules/admin-module/components/json-dump.component/json-dump.component.ts
+++ b/jambotron-ui/src/app/modules/admin-module/components/json-dump.component/json-dump.component.ts
@@ -17,6 +17,8 @@ import {MatProgressSpinner} from '@angular/material/progress-spinner';
import {MatIcon} from '@angular/material/icon';
import {MatTooltip} from '@angular/material/tooltip';
import {ArchivesResponse, FileInfo, FilesResponse, JsonDumpService} from '../../json-dump.service';
+import {MatToolbar, MatToolbarRow} from '@angular/material/toolbar';
+import {MatLabel} from '@angular/material/input';
@Component({
selector: 'app-json-dump',
@@ -40,7 +42,10 @@ import {ArchivesResponse, FileInfo, FilesResponse, JsonDumpService} from '../../
MatTable,
TitleCasePipe,
NgIf,
- NgForOf
+ NgForOf,
+ MatToolbar,
+ MatToolbarRow,
+ MatLabel
],
styleUrls: ['./json-dump.component.scss'],
schemas:[CUSTOM_ELEMENTS_SCHEMA]
@@ -99,7 +104,9 @@ export class JsonDumpComponent implements OnInit {
importEntity(entity: string, file: File): void {
this.jsonDumpService.importEntity(entity, file).subscribe({
- next: () => this.showMessage(`Imported ${entity} successfully`),
+ next: () => {
+ this.showMessage(`Imported ${entity} successfully`)
+ },
error: (err: { message: any; }) => this.showMessage(`Import ${entity} failed: ${err.message}`)
});
}
@@ -132,4 +139,8 @@ export class JsonDumpComponent implements OnInit {
private showMessage(msg: string): void {
this.snackBar.open(msg, 'Close', { duration: 3000 });
}
+
+ restore(fileName: string) {
+
+ }
}
diff --git a/jambotron-ui/src/app/modules/admin-module/json-dump.service.ts b/jambotron-ui/src/app/modules/admin-module/json-dump.service.ts
index 10db41f..82cbaec 100644
--- a/jambotron-ui/src/app/modules/admin-module/json-dump.service.ts
+++ b/jambotron-ui/src/app/modules/admin-module/json-dump.service.ts
@@ -58,7 +58,7 @@ export class JsonDumpService {
importEntity(entity: string, file: File) {
const formData = new FormData();
formData.append('file', file);
- return this.http.post(`${this.baseUrl}/import/${entity}`, formData);
+ return this.http.post(`${this.baseUrl}/import/${entity}/file`, formData);
}
// ==================== EXPORT METHODS ====================
diff --git a/jambotron-ui/src/styles.scss b/jambotron-ui/src/styles.scss
index 32972ed..79ff90e 100644
--- a/jambotron-ui/src/styles.scss
+++ b/jambotron-ui/src/styles.scss
@@ -1,4 +1,4 @@
-@use '@angular/material' as mat;
+@use 'node_modules/@angular/material' as mat;
//markdown styles
@import 'bootstrap/dist/css/bootstrap.min.css';
@@ -58,11 +58,22 @@ body {
background: #fafafbb3;
}
-html {
- color-scheme: light dark;
- @include mat.theme((
- color: mat.$azure-palette,
- typography: Jersey 20 Charted,
- density: 0
- ));
-}
+//// Include the common styles for Angular Material
+//@include mat.core();
+//
+//// Define your custom palette
+//$my-primary: mat.define-palette(mat.$blue-palette, 700);
+//$my-accent: mat.define-palette(mat.$orange-palette, A200, A100, A400);
+//$my-warn: mat.define-palette(mat.$red-palette);
+//
+//// Create the theme
+//$my-theme: mat.define-light-theme((
+// color: (
+// primary: $my-primary,
+// accent: $my-accent,
+// warn: $my-warn,
+// )
+//));
+//
+//// Include theme styles for core and each component used in your app
+//@include mat.all-component-themes($my-theme);
diff --git a/src/main/java/com/jambotronGroup/jambotron/controllers/JsonDumpController.java b/src/main/java/com/jambotronGroup/jambotron/controllers/JsonDumpController.java
index 6dab15f..6e4855b 100644
--- a/src/main/java/com/jambotronGroup/jambotron/controllers/JsonDumpController.java
+++ b/src/main/java/com/jambotronGroup/jambotron/controllers/JsonDumpController.java
@@ -74,27 +74,27 @@ public class JsonDumpController {
// ==================== IMPORT ENDPOINTS ====================
- @PostMapping("/initData/users")
- public ResponseEntity