From 937a11ec3c8c274b4faf129d9058955297dc2ace Mon Sep 17 00:00:00 2001 From: Samuel Imolorhe Date: Sat, 17 Feb 2024 01:46:29 +0100 Subject: [PATCH] Implement import/export of environments --- .../environment-manager.component.html | 17 ++- .../environment-manager.component.ts | 2 + .../fancy-input-marker.component.spec.ts | 7 +- .../x-input/x-input.component.spec.ts | 6 + .../containers/altair/altair.component.html | 2 + .../altair/altair.component.spec.ts | 8 ++ .../containers/altair/altair.component.ts | 43 ++++-- .../app/modules/altair/interfaces/shared.ts | 2 + .../app/modules/altair/modules/icons/icons.ts | 2 + .../environment/environment.service.spec.ts | 6 + .../environment/environment.service.ts | 54 ++++++- .../services/files/files.service.spec.ts | 45 ++++++ .../altair/services/files/files.service.ts | 132 ++++++++++++++++++ .../modules/altair/services/files/types.ts | 23 +++ .../src/app/modules/altair/services/index.ts | 1 + .../modules/altair/services/window.service.ts | 2 + .../store/environments/environments.action.ts | 6 +- .../environments/environments.reducer.ts | 9 +- .../src/app/modules/altair/utils/index.ts | 5 +- .../altair-app/src/assets/i18n/default.json | 1 + packages/altair-app/src/scss/_buttons.scss | 4 + .../types/state/environments.interfaces.ts | 6 +- packages/altair-electron/electron-builder.yml | 3 + 23 files changed, 363 insertions(+), 23 deletions(-) create mode 100644 packages/altair-app/src/app/modules/altair/services/files/files.service.spec.ts create mode 100644 packages/altair-app/src/app/modules/altair/services/files/files.service.ts create mode 100644 packages/altair-app/src/app/modules/altair/services/files/types.ts diff --git a/packages/altair-app/src/app/modules/altair/components/environment-manager/environment-manager.component.html b/packages/altair-app/src/app/modules/altair/components/environment-manager/environment-manager.component.html index b69cea6939..4b9920fce1 100644 --- a/packages/altair-app/src/app/modules/altair/components/environment-manager/environment-manager.component.html +++ b/packages/altair-app/src/app/modules/altair/components/environment-manager/environment-manager.component.html @@ -67,10 +67,18 @@
+
@@ -91,6 +99,13 @@ />
+