You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2026/06/03 08:27:21 UTC
(streampipes) branch 4523-enable-typescript-eslintno-unused-vars-in-the-ui updated: chore(#4523): enable unused vars lint rule
This is an automated email from the ASF dual-hosted git repository.
tenthe pushed a commit to branch 4523-enable-typescript-eslintno-unused-vars-in-the-ui
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/4523-enable-typescript-eslintno-unused-vars-in-the-ui by this push:
new 2f8252e27c chore(#4523): enable unused vars lint rule
2f8252e27c is described below
commit 2f8252e27c97bbf5f409b99f527592787e9876d8
Author: Philipp Zehnder <te...@users.noreply.github.com>
AuthorDate: Wed Jun 3 08:25:38 2026 +0000
chore(#4523): enable unused vars lint rule
---
.../fixtures/fixtureGeneration/assetResources.ts | 12 ----
.../support/utils/DataDownloadDialogUtils.ts | 1 -
.../support/utils/ThirdPartyIntegrationUtils.ts | 1 -
.../tests/assetManagement/assetFilterTest.spec.ts | 72 ----------------------
.../assetManagement/generalAssetTest.smoke.spec.ts | 1 -
.../tests/chart/addAssetToDashboard.smoke.spec.ts | 1 -
ui/cypress/tests/connect/adapterWithAssets.spec.ts | 1 -
.../connect/machineDataSimulator.smoke.spec.ts | 1 -
ui/cypress/tests/pipeline/pipelineAsset.spec.ts | 1 -
ui/eslint.config.mjs | 11 +++-
.../src/lib/apis/datalake-rest.service.ts | 2 +-
.../asset-browser/asset-browser.service.ts | 3 +-
.../pipeline-element-runtime-info.component.ts | 2 +-
.../lib/components/sp-label/sp-label.component.ts | 2 +-
.../object-permission-dialog.component.ts | 4 +-
.../edit-asset/asset-details.component.ts | 2 +-
.../view-assset-basics.component.ts | 2 +-
.../asset-link-table-additional-data.component.ts | 2 +-
.../asset-link-table/asset-link-table.component.ts | 4 +-
.../asset-overview/asset-overview.component.ts | 25 ++++----
.../chart-container/chart-container.component.ts | 6 +-
.../charts/base/echarts-widget.component.ts | 2 +-
.../charts/image/image-widget.component.ts | 4 +-
.../components/charts/map/map-widget.component.ts | 4 +-
.../charts/status/status-widget.component.ts | 2 +-
.../traffic-light-widget.component.ts | 2 +-
.../base-single-field-echarts-renderer.ts | 4 +-
.../chart-shared/services/field-update.service.ts | 2 +-
.../chart-overview/chart-overview.component.ts | 2 +-
.../components/chart-view/chart-view.component.ts | 2 +-
.../manage-site/manage-site-dialog.component.ts | 2 +-
.../email-configuration.component.ts | 2 +-
.../import-dialog/data-import-dialog.component.ts | 4 +-
.../files/file-overview/file-overview.component.ts | 2 +-
.../general-configuration.component.ts | 2 +-
.../role-configuration.component.ts | 2 +-
.../user-group-configuration.component.ts | 8 ++-
.../abstract-adapter-details.directive.ts | 2 +-
.../existing-adapters.component.ts | 2 +-
.../delete-adapter-dialog.component.ts | 2 +-
...mation-script-documentation-dialog.component.ts | 1 -
.../services/static-value-transform.service.ts | 1 -
.../pipeline-element-template-config.component.ts | 2 +-
.../static-code-input.component.ts | 4 +-
.../add-to-collection.component.ts | 2 +-
.../static-collection.component.ts | 4 +-
.../static-color-picker.component.ts | 2 +-
.../static-file-input.component.ts | 4 +-
.../static-free-input.component.ts | 2 +-
.../static-mapping-nary.component.ts | 6 +-
.../static-mapping-unary.component.ts | 2 +-
.../static-runtime-resolvable-group.component.ts | 2 +-
.../base-runtime-resolvable-input.ts | 1 -
.../static-secret-input.component.ts | 2 +-
.../static-slide-toggle.component.ts | 2 +-
.../auth/guards/page-auth.can-activate.guard.ts | 2 +-
.../guards/base-configured.can-activate.guard.ts | 6 +-
.../registration-allowed.can-activate.guard.ts | 4 +-
.../restore-password-allowed.can-activate.guard.ts | 4 +-
.../components/kiosk/dashboard-kiosk.component.ts | 2 +-
.../grid-view/dashboard-grid-view.component.ts | 2 +-
.../overview/dashboard-overview.component.ts | 2 +-
.../components/panel/dashboard-panel.component.ts | 2 +-
.../datalake-configuration-entry.ts | 1 -
.../data-retention-dialog.component.ts | 8 +--
.../data-retention-now-dialog.component.ts | 2 +-
.../delete-datalake-index-dialog.component.ts | 4 +-
.../delete-export-provider-dialog.component.ts | 2 +-
.../export-provider-dialog.component.ts | 2 +-
.../custom-output-strategy.component.ts | 2 +-
.../property-selection.component.ts | 2 +-
.../pipeline-assembly-options.component.ts | 2 +-
.../pipeline-element-icon-stand-row.component.ts | 2 +-
.../pipeline-element-icon-stand.component.ts | 2 +-
.../compatible-elements.component.ts | 2 +-
.../editor/dialog/customize/customize.component.ts | 6 +-
.../pipeline-element-discovery.component.ts | 2 +-
.../save-pipeline/save-pipeline.component.ts | 2 +-
.../asset-table/home-asset-table.component.ts | 2 +-
.../dialog/welcome-tour/welcome-tour.component.ts | 2 +-
.../activate-account/activate-account.component.ts | 4 +-
.../app/login/components/login/login.component.ts | 2 +-
.../components/register/register.component.ts | 2 +-
.../restore-password/restore-password.component.ts | 4 +-
.../set-new-password/set-new-password.component.ts | 8 +--
.../pipeline-details/pipeline-details.component.ts | 4 +-
.../delete-pipeline-dialog.component.ts | 6 +-
.../pipeline-notifications.component.ts | 2 +-
.../pipeline-status-dialog.component.ts | 6 +-
.../start-all-pipelines-dialog.component.ts | 4 +-
ui/src/app/pipelines/pipelines.component.ts | 2 +-
.../services/pipeline-operations.service.ts | 4 +-
.../general/general-profile-settings.component.ts | 2 +-
.../token/token-management-settings.component.ts | 2 +-
.../change-email/change-email-dialog.component.ts | 2 +-
.../change-password-dialog.component.ts | 2 +-
ui/src/app/services/auth.service.ts | 2 +-
.../app/services/editor-autocompletion.service.ts | 2 +-
ui/src/main.ts | 3 +-
99 files changed, 144 insertions(+), 233 deletions(-)
diff --git a/ui/cypress/fixtures/fixtureGeneration/assetResources.ts b/ui/cypress/fixtures/fixtureGeneration/assetResources.ts
index be4d1ec52f..c2c2fe5f8d 100644
--- a/ui/cypress/fixtures/fixtureGeneration/assetResources.ts
+++ b/ui/cypress/fixtures/fixtureGeneration/assetResources.ts
@@ -42,16 +42,6 @@ describe('Test asset filters', () => {
const adapter3 = 'adapter-3_0';
const adapter3_1 = 'adapter-3_1';
const adapter3_2 = 'adapter-3_2';
- const pipeline1 = 'Persist ' + adapter1;
- const pipeline1_1 = 'Persist ' + adapter1_1;
- const pipeline1_2 = 'Persist ' + adapter1_2;
- const pipeline2 = 'Persist ' + adapter2;
- const pipeline2_1 = 'Persist ' + adapter2_1;
- const pipeline2_2 = 'Persist ' + adapter2_2;
- const pipeline3 = 'Persist ' + adapter3;
- const pipeline3_1 = 'Persist ' + adapter3_1;
- const pipeline3_2 = 'Persist ' + adapter3_2;
-
const asset1 = AssetBuilder.create('asset-1_0')
.addLabel(label1)
.setSite(site1)
@@ -107,8 +97,6 @@ describe('Test asset filters', () => {
.build();
beforeEach('Setup Test', () => {
- const assetResourceFixtureDirectory = 'assetResources';
-
cy.initStreamPipesTest();
prepareLabels();
prepareSites();
diff --git a/ui/cypress/support/utils/DataDownloadDialogUtils.ts b/ui/cypress/support/utils/DataDownloadDialogUtils.ts
index a6a7a10569..f97d5813df 100644
--- a/ui/cypress/support/utils/DataDownloadDialogUtils.ts
+++ b/ui/cypress/support/utils/DataDownloadDialogUtils.ts
@@ -20,7 +20,6 @@ import { ExportConfig } from '../../../projects/streampipes/shared-ui/src/lib/di
import { ChartUtils } from './chart/ChartUtils';
import { FileNameService } from '../../../projects/streampipes/shared-ui/src/lib/dialog/data-download-dialog/services/file-name.service';
import { CsvFormatExportConfig } from '../../../projects/streampipes/shared-ui/src/lib/dialog/data-download-dialog/model/format-export-config.model';
-import { GeneralUtils } from './GeneralUtils';
export class DataDownloadDialogUtils {
public static testDownload(
diff --git a/ui/cypress/support/utils/ThirdPartyIntegrationUtils.ts b/ui/cypress/support/utils/ThirdPartyIntegrationUtils.ts
index 6ee2350c51..108103d5ef 100644
--- a/ui/cypress/support/utils/ThirdPartyIntegrationUtils.ts
+++ b/ui/cypress/support/utils/ThirdPartyIntegrationUtils.ts
@@ -21,7 +21,6 @@ import { PipelineBuilder } from '../builder/PipelineBuilder';
import { PipelineUtils } from './pipeline/PipelineUtils';
import { PipelineElementInput } from '../model/PipelineElementInput';
import { AdapterInput } from '../model/AdapterInput';
-import { AdapterBuilder } from '../builder/AdapterBuilder';
export class ThirdPartyIntegrationUtils {
public static runTest(sink: PipelineElementInput, adapter: AdapterInput) {
diff --git a/ui/cypress/tests/assetManagement/assetFilterTest.spec.ts b/ui/cypress/tests/assetManagement/assetFilterTest.spec.ts
index 61c6df8708..b0b0a48ffb 100644
--- a/ui/cypress/tests/assetManagement/assetFilterTest.spec.ts
+++ b/ui/cypress/tests/assetManagement/assetFilterTest.spec.ts
@@ -16,29 +16,19 @@
*
*/
-import { AssetUtils } from '../../support/utils/asset/AssetUtils';
import { DashboardUtils } from '../../support/utils/DashboardUtils';
-import { AssetBuilder } from '../../support/builder/AssetBuilder';
import { FilterUtils } from '../../support/utils/filter/FilterUtils';
import { ConnectUtils } from '../../support/utils/connect/ConnectUtils';
import { PipelineUtils } from '../../support/utils/pipeline/PipelineUtils';
import { DatasetUtils } from '../../support/utils/dataset/DatasetUtils';
describe('Test asset filters', () => {
- const label1 = 'label1';
- const label2 = 'label2';
- const label3 = 'label3';
-
- const site1 = 'site1';
- const site2 = 'site2';
- const site3 = 'site3';
const adapter1 = 'adapter-1_0';
const adapter1_1 = 'adapter-1_1';
const adapter1_2 = 'adapter-1_2';
const adapter2 = 'adapter-2_0';
const adapter2_1 = 'adapter-2_1';
const adapter2_2 = 'adapter-2_2';
- const adapter3 = 'adapter-3_0';
const adapter3_1 = 'adapter-3_1';
const adapter3_2 = 'adapter-3_2';
const pipeline1 = 'Persist ' + adapter1;
@@ -47,64 +37,9 @@ describe('Test asset filters', () => {
const pipeline2 = 'Persist ' + adapter2;
const pipeline2_1 = 'Persist ' + adapter2_1;
const pipeline2_2 = 'Persist ' + adapter2_2;
- const pipeline3 = 'Persist ' + adapter3;
const pipeline3_1 = 'Persist ' + adapter3_1;
const pipeline3_2 = 'Persist ' + adapter3_2;
- const asset1 = AssetBuilder.create('asset-1_0')
- .addLabel(label1)
- .setSite(site1)
- .setAssetType('PRODUCTION_LINE')
- .addSubAsset(
- AssetBuilder.create('asset-1_1')
- .addLabel(label2)
- .setAssetType('WORK_CELL')
- .build(),
- )
- .addSubAsset(
- AssetBuilder.create('asset-1_2')
- .addLabel(label3)
- .setAssetType('WORK_CELL')
- .build(),
- )
- .build();
-
- const asset2 = AssetBuilder.create('asset-2_0')
- .addLabel(label1)
- .setSite(site2)
- .setAssetType('PRODUCTION_LINE')
- .addSubAsset(
- AssetBuilder.create('asset-2_1')
- .addLabel(label2)
- .setAssetType('WORK_CELL')
- .build(),
- )
- .addSubAsset(
- AssetBuilder.create('asset-2_2')
- .addLabel(label3)
- .setAssetType('WORK_CELL')
- .build(),
- )
- .build();
-
- const asset3 = AssetBuilder.create('asset-3_0')
- .addLabel(label1)
- .setSite(site3)
- .setAssetType('PRODUCTION_LINE')
- .addSubAsset(
- AssetBuilder.create('asset-3_1')
- .addLabel(label2)
- .setAssetType('WORK_CELL')
- .build(),
- )
- .addSubAsset(
- AssetBuilder.create('asset-3_2')
- .addLabel(label3)
- .setAssetType('WORK_CELL')
- .build(),
- )
- .build();
-
beforeEach('Setup Test', () => {
cy.initStreamPipesTest();
cy.importAssetResources();
@@ -451,13 +386,6 @@ describe('Test asset filters', () => {
checkTableResources('datalake-settings', [adapter1_1]);
});
- function prepareAssets() {
- AssetUtils.goToAssets();
- AssetUtils.addAndSaveAsset(asset1);
- AssetUtils.addAndSaveAsset(asset2);
- AssetUtils.addAndSaveAsset(asset3);
- }
-
function checkTableResources(tableDataCy: string, resources: string[]) {
cy.get(`[data-cy="${tableDataCy}"] tbody tr`, {
timeout: 10000,
diff --git a/ui/cypress/tests/assetManagement/generalAssetTest.smoke.spec.ts b/ui/cypress/tests/assetManagement/generalAssetTest.smoke.spec.ts
index c77d0902cb..5a753692db 100644
--- a/ui/cypress/tests/assetManagement/generalAssetTest.smoke.spec.ts
+++ b/ui/cypress/tests/assetManagement/generalAssetTest.smoke.spec.ts
@@ -18,7 +18,6 @@
import { AssetUtils } from '../../support/utils/asset/AssetUtils';
import { DashboardUtils } from '../../support/utils/DashboardUtils';
-import { AssetBtns } from '../../support/utils/asset/AssetBtns';
describe('Creates a new adapter, add to assets', () => {
beforeEach('Setup Test', () => {
diff --git a/ui/cypress/tests/chart/addAssetToDashboard.smoke.spec.ts b/ui/cypress/tests/chart/addAssetToDashboard.smoke.spec.ts
index 31888e5990..f77875dbdb 100644
--- a/ui/cypress/tests/chart/addAssetToDashboard.smoke.spec.ts
+++ b/ui/cypress/tests/chart/addAssetToDashboard.smoke.spec.ts
@@ -15,7 +15,6 @@
* limitations under the License.
*
*/
-import { AssetBtns } from '../../support/utils/asset/AssetBtns';
import { AssetUtils } from '../../support/utils/asset/AssetUtils';
import { ChartUtils } from '../../support/utils/chart/ChartUtils';
import { AssetBuilder } from '../../support/builder/AssetBuilder';
diff --git a/ui/cypress/tests/connect/adapterWithAssets.spec.ts b/ui/cypress/tests/connect/adapterWithAssets.spec.ts
index bc1665c554..ed12a5e409 100644
--- a/ui/cypress/tests/connect/adapterWithAssets.spec.ts
+++ b/ui/cypress/tests/connect/adapterWithAssets.spec.ts
@@ -20,7 +20,6 @@ import { ConnectUtils } from '../../support/utils/connect/ConnectUtils';
import { AdapterBuilder } from '../../support/builder/AdapterBuilder';
import { AssetUtils } from '../../support/utils/asset/AssetUtils';
import { ConnectBtns } from '../../support/utils/connect/ConnectBtns';
-import { AssetBtns } from '../../support/utils/asset/AssetBtns';
import { AssetBuilder } from '../../support/builder/AssetBuilder';
describe('Creates a new adapter with a linked asset', () => {
diff --git a/ui/cypress/tests/connect/machineDataSimulator.smoke.spec.ts b/ui/cypress/tests/connect/machineDataSimulator.smoke.spec.ts
index a72e765fae..9d9916f41e 100644
--- a/ui/cypress/tests/connect/machineDataSimulator.smoke.spec.ts
+++ b/ui/cypress/tests/connect/machineDataSimulator.smoke.spec.ts
@@ -17,7 +17,6 @@
*/
import { ConnectUtils } from '../../support/utils/connect/ConnectUtils';
-import { AdapterBuilder } from '../../support/builder/AdapterBuilder';
describe('Test Machine Data Simulator Adapter', () => {
beforeEach('Setup Test', () => {
diff --git a/ui/cypress/tests/pipeline/pipelineAsset.spec.ts b/ui/cypress/tests/pipeline/pipelineAsset.spec.ts
index 7fa81b9bf4..f9aa31fb11 100644
--- a/ui/cypress/tests/pipeline/pipelineAsset.spec.ts
+++ b/ui/cypress/tests/pipeline/pipelineAsset.spec.ts
@@ -21,7 +21,6 @@ import { AssetUtils } from '../../support/utils/asset/AssetUtils';
import { ConnectUtils } from '../../support/utils/connect/ConnectUtils';
import { PipelineBuilder } from '../../support/builder/PipelineBuilder';
import { PipelineElementBuilder } from '../../support/builder/PipelineElementBuilder';
-import { AssetBtns } from '../../support/utils/asset/AssetBtns';
import { AssetBuilder } from '../../support/builder/AssetBuilder';
describe('Test Saving Pipeline with Asset Link', () => {
diff --git a/ui/eslint.config.mjs b/ui/eslint.config.mjs
index b34dc3ba90..0e4436b3bc 100644
--- a/ui/eslint.config.mjs
+++ b/ui/eslint.config.mjs
@@ -59,7 +59,16 @@ export default defineConfig([
rules: {
'@typescript-eslint/no-explicit-any': 'off',
- '@typescript-eslint/no-unused-vars': 'off',
+ '@typescript-eslint/no-unused-vars': [
+ 'error',
+ {
+ argsIgnorePattern: '^_',
+ varsIgnorePattern: '^_',
+ caughtErrorsIgnorePattern: '^_',
+ destructuredArrayIgnorePattern: '^_',
+ ignoreRestSiblings: true,
+ },
+ ],
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/ban-types': 'off',
diff --git a/ui/projects/streampipes/platform-services/src/lib/apis/datalake-rest.service.ts b/ui/projects/streampipes/platform-services/src/lib/apis/datalake-rest.service.ts
index 0c60d56eb2..3011e492b0 100644
--- a/ui/projects/streampipes/platform-services/src/lib/apis/datalake-rest.service.ts
+++ b/ui/projects/streampipes/platform-services/src/lib/apis/datalake-rest.service.ts
@@ -233,7 +233,7 @@ export class DatalakeRestService {
store(
measureName: string,
spQueryResult: SpQueryResult,
- ignoreSchemaMismatch = true,
+ _ignoreSchemaMismatch = true,
): Observable<void> {
return this.http.post<void>(
`${this.dataLakeUrl}/measurements/${encodeURIComponent(measureName)}`,
diff --git a/ui/projects/streampipes/shared-ui/src/lib/components/asset-browser/asset-browser.service.ts b/ui/projects/streampipes/shared-ui/src/lib/components/asset-browser/asset-browser.service.ts
index e58dbce681..35c17fe55c 100644
--- a/ui/projects/streampipes/shared-ui/src/lib/components/asset-browser/asset-browser.service.ts
+++ b/ui/projects/streampipes/shared-ui/src/lib/components/asset-browser/asset-browser.service.ts
@@ -273,7 +273,6 @@ export class SpAssetBrowserService {
private filterLabels(
asset: SpAsset,
selectedLabels: SpLabel[],
- recursionStep: boolean = false,
previousMatchesSelf: boolean = false,
): SpAsset | null {
const labelIds = asset.labelIds || [];
@@ -302,7 +301,7 @@ export class SpAssetBrowserService {
filteredChildren = asset.assets
.map(child => ({ ...child }))
.map(child =>
- this.filterLabels(child, selectedLabels, true, matchesSelf),
+ this.filterLabels(child, selectedLabels, matchesSelf),
)
.filter(child => child !== null)
.map(child => child as SpAsset);
diff --git a/ui/projects/streampipes/shared-ui/src/lib/components/pipeline-element-runtime-info/pipeline-element-runtime-info.component.ts b/ui/projects/streampipes/shared-ui/src/lib/components/pipeline-element-runtime-info/pipeline-element-runtime-info.component.ts
index 376025096b..dec8bcb716 100644
--- a/ui/projects/streampipes/shared-ui/src/lib/components/pipeline-element-runtime-info/pipeline-element-runtime-info.component.ts
+++ b/ui/projects/streampipes/shared-ui/src/lib/components/pipeline-element-runtime-info/pipeline-element-runtime-info.component.ts
@@ -105,7 +105,7 @@ export class PipelineElementRuntimeInfoComponent implements OnInit, OnDestroy {
r.value = json[r.runtimeName];
r.valueChanged = r.value !== previousValue;
});
- } catch (error) {
+ } catch (_error) {
this.runtimeDataError = true;
this.runtimeData = [];
}
diff --git a/ui/projects/streampipes/shared-ui/src/lib/components/sp-label/sp-label.component.ts b/ui/projects/streampipes/shared-ui/src/lib/components/sp-label/sp-label.component.ts
index 86c0c16c7e..0d47926996 100644
--- a/ui/projects/streampipes/shared-ui/src/lib/components/sp-label/sp-label.component.ts
+++ b/ui/projects/streampipes/shared-ui/src/lib/components/sp-label/sp-label.component.ts
@@ -89,7 +89,7 @@ export class SpLabelComponent implements OnChanges {
neutral: 'var(--color-neutral)',
};
- ngOnChanges(changes: SimpleChanges) {
+ ngOnChanges(_changes: SimpleChanges) {
this.hostVariant = this.variant;
this.hostSize = this.size;
this.hostShape = this.shape;
diff --git a/ui/projects/streampipes/shared-ui/src/lib/dialog/object-permission-dialog/object-permission-dialog.component.ts b/ui/projects/streampipes/shared-ui/src/lib/dialog/object-permission-dialog/object-permission-dialog.component.ts
index 51f6f380e8..984205efaa 100644
--- a/ui/projects/streampipes/shared-ui/src/lib/dialog/object-permission-dialog/object-permission-dialog.component.ts
+++ b/ui/projects/streampipes/shared-ui/src/lib/dialog/object-permission-dialog/object-permission-dialog.component.ts
@@ -178,7 +178,7 @@ export class ObjectPermissionDialogComponent implements OnInit {
this.permissionDenied = false;
this.loading = false;
},
- error => {
+ _error => {
this.permissionDenied = true;
this.loading = false;
},
@@ -276,7 +276,7 @@ export class ObjectPermissionDialogComponent implements OnInit {
);
this.permissionsService
.updatePermission(this.permission)
- .subscribe(result => {
+ .subscribe(_result => {
this.dialogRef.close(true);
});
}
diff --git a/ui/src/app/assets/components/asset-details/edit-asset/asset-details.component.ts b/ui/src/app/assets/components/asset-details/edit-asset/asset-details.component.ts
index 6f7c027475..6f7ea67db3 100644
--- a/ui/src/app/assets/components/asset-details/edit-asset/asset-details.component.ts
+++ b/ui/src/app/assets/components/asset-details/edit-asset/asset-details.component.ts
@@ -53,7 +53,7 @@ export class SpAssetDetailsComponent extends BaseAssetDetailsDirective {
saveAsset() {
this.cleanupEmpty();
- this.assetService.updateAsset(this.asset).subscribe(res => {
+ this.assetService.updateAsset(this.asset).subscribe(_res => {
this.assetBrowserService.refreshBrowserAssetData();
this.router.navigate(['assets']);
});
diff --git a/ui/src/app/assets/components/asset-details/view-asset/view-asset-basics/view-assset-basics.component.ts b/ui/src/app/assets/components/asset-details/view-asset/view-asset-basics/view-assset-basics.component.ts
index da150b43f3..878d0e3d1d 100644
--- a/ui/src/app/assets/components/asset-details/view-asset/view-asset-basics/view-assset-basics.component.ts
+++ b/ui/src/app/assets/components/asset-details/view-asset/view-asset-basics/view-assset-basics.component.ts
@@ -59,7 +59,7 @@ export class ViewAssetBasicsComponent implements OnChanges {
selectedAssetType: string;
- ngOnChanges(changes: SimpleChanges) {
+ ngOnChanges(_changes: SimpleChanges) {
this.selectedAssetType =
this.isa95TypeService.toLabel(
this.selectedAsset.assetType.isa95AssetType,
diff --git a/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table-additional-data/asset-link-table-additional-data.component.ts b/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table-additional-data/asset-link-table-additional-data.component.ts
index d0ce134a8d..eebd8b91eb 100644
--- a/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table-additional-data/asset-link-table-additional-data.component.ts
+++ b/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table-additional-data/asset-link-table-additional-data.component.ts
@@ -51,7 +51,7 @@ export class AssetLinkTableAdditionalDataComponent implements OnChanges {
private dialogService = inject(DialogService);
private translateService = inject(TranslateService);
- ngOnChanges(changes: SimpleChanges) {
+ ngOnChanges(_changes: SimpleChanges) {
this.findAssociatedCertificates();
}
diff --git a/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table.component.ts b/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table.component.ts
index f6900cf02d..8507749a56 100644
--- a/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table.component.ts
+++ b/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table.component.ts
@@ -131,7 +131,7 @@ export class AssetLinkTableComponent
private featureCardService = inject(FeatureCardService);
ngOnInit() {
- this.user$ = this.currentUserService.user$.subscribe(user => {
+ this.user$ = this.currentUserService.user$.subscribe(_user => {
this.isAdminUser = this.authService.hasRole(UserRole.ROLE_ADMIN);
if (this.isAdminUser) {
this.certificateService
@@ -149,7 +149,7 @@ export class AssetLinkTableComponent
};
}
- ngOnChanges(changes: SimpleChanges) {
+ ngOnChanges(_changes: SimpleChanges) {
this.refreshData();
}
diff --git a/ui/src/app/assets/components/asset-overview/asset-overview.component.ts b/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
index e897657b6e..3a875e2da7 100644
--- a/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
+++ b/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
@@ -240,20 +240,17 @@ export class SpAssetOverviewComponent implements OnInit {
}
openPermissionsDialog(asset: SpAssetModel) {
- const dialogRef = this.dialogService.open(
- ObjectPermissionDialogComponent,
- {
- panelType: PanelType.SLIDE_IN_PANEL,
- title: this.translateService.instant('Manage permissions'),
- width: '70vw',
- data: {
- objectInstanceId: asset.elementId,
- headerTitle:
- this.translateService.instant(
- 'Manage permissions for asset ',
- ) + asset.assetName,
- },
+ this.dialogService.open(ObjectPermissionDialogComponent, {
+ panelType: PanelType.SLIDE_IN_PANEL,
+ title: this.translateService.instant('Manage permissions'),
+ width: '70vw',
+ data: {
+ objectInstanceId: asset.elementId,
+ headerTitle:
+ this.translateService.instant(
+ 'Manage permissions for asset ',
+ ) + asset.assetName,
},
- );
+ });
}
}
diff --git a/ui/src/app/chart-shared/components/chart-container/chart-container.component.ts b/ui/src/app/chart-shared/components/chart-container/chart-container.component.ts
index 1bf1833485..65f4c231b1 100644
--- a/ui/src/app/chart-shared/components/chart-container/chart-container.component.ts
+++ b/ui/src/app/chart-shared/components/chart-container/chart-container.component.ts
@@ -242,7 +242,7 @@ export class ChartContainerComponent
this.quickSelections ??=
this.timeSelectionService.defaultQuickTimeSelections;
this.labels ??= this.timeSelectionService.defaultLabels;
- this.auth$ = this.currentUserService.user$.subscribe(user => {
+ this.auth$ = this.currentUserService.user$.subscribe(_user => {
this.hasDataExplorerWritePrivileges = this.authService.hasRole(
UserPrivilege.PRIVILEGE_WRITE_DATA_EXPLORER_VIEW,
);
@@ -363,7 +363,7 @@ export class ChartContainerComponent
this.componentRef.instance.dashboardChartOverrides =
this.dashboardChartOverrides;
const remove$ =
- this.componentRef.instance.removeWidgetCallback.subscribe(ev =>
+ this.componentRef.instance.removeWidgetCallback.subscribe(_ev =>
this.removeWidget(),
);
const timer$ = this.componentRef.instance.timerCallback.subscribe(ev =>
@@ -381,7 +381,7 @@ export class ChartContainerComponent
results => this.queryResultsEmitter.emit(results),
);
- this.componentRef.onDestroy(destroy => {
+ this.componentRef.onDestroy(_destroy => {
this.componentRef.instance.cleanupSubscriptions();
remove$?.unsubscribe();
timer$?.unsubscribe();
diff --git a/ui/src/app/chart-shared/components/charts/base/echarts-widget.component.ts b/ui/src/app/chart-shared/components/charts/base/echarts-widget.component.ts
index 07d669d1cb..4ca7f47352 100644
--- a/ui/src/app/chart-shared/components/charts/base/echarts-widget.component.ts
+++ b/ui/src/app/chart-shared/components/charts/base/echarts-widget.component.ts
@@ -94,7 +94,7 @@ export class SpEchartsWidgetComponent<T extends DataExplorerWidgetModel>
this.setShownComponents(false, true, false, false);
}
- onResize(width: number, height: number) {
+ onResize(_width: number, _height: number) {
this.configReady = true;
if (this.latestData) {
this.refreshView();
diff --git a/ui/src/app/chart-shared/components/charts/image/image-widget.component.ts b/ui/src/app/chart-shared/components/charts/image/image-widget.component.ts
index f151a155ad..7380e9b694 100644
--- a/ui/src/app/chart-shared/components/charts/image/image-widget.component.ts
+++ b/ui/src/app/chart-shared/components/charts/image/image-widget.component.ts
@@ -98,7 +98,7 @@ export class ImageWidgetComponent
}
handleUpdatedFields(
- addedFields: DataExplorerField[],
- removedFields: DataExplorerField[],
+ _addedFields: DataExplorerField[],
+ _removedFields: DataExplorerField[],
) {}
}
diff --git a/ui/src/app/chart-shared/components/charts/map/map-widget.component.ts b/ui/src/app/chart-shared/components/charts/map/map-widget.component.ts
index 2afaaa0ce2..5870fb9f49 100644
--- a/ui/src/app/chart-shared/components/charts/map/map-widget.component.ts
+++ b/ui/src/app/chart-shared/components/charts/map/map-widget.component.ts
@@ -161,8 +161,8 @@ export class MapWidgetComponent
}
handleUpdatedFields(
- addedFields: DataExplorerField[],
- removedFields: DataExplorerField[],
+ _addedFields: DataExplorerField[],
+ _removedFields: DataExplorerField[],
) {}
private invalidateMapSize(): void {
diff --git a/ui/src/app/chart-shared/components/charts/status/status-widget.component.ts b/ui/src/app/chart-shared/components/charts/status/status-widget.component.ts
index c01e27b587..882d10482e 100644
--- a/ui/src/app/chart-shared/components/charts/status/status-widget.component.ts
+++ b/ui/src/app/chart-shared/components/charts/status/status-widget.component.ts
@@ -150,7 +150,7 @@ export class StatusWidgetComponent
}
}
- onResize(width: number, heigth: number): void {}
+ onResize(_width: number, _heigth: number): void {}
handleUpdatedFields(
addedFields: DataExplorerField[],
diff --git a/ui/src/app/chart-shared/components/charts/traffic-light/traffic-light-widget.component.ts b/ui/src/app/chart-shared/components/charts/traffic-light/traffic-light-widget.component.ts
index 1eff3879cb..99759449e1 100644
--- a/ui/src/app/chart-shared/components/charts/traffic-light/traffic-light-widget.component.ts
+++ b/ui/src/app/chart-shared/components/charts/traffic-light/traffic-light-widget.component.ts
@@ -159,7 +159,7 @@ export class TrafficLightWidgetComponent
}
}
- onResize(width: number, heigth: number) {}
+ onResize(_width: number, _heigth: number) {}
handleUpdatedFields(
addedFields: DataExplorerField[],
diff --git a/ui/src/app/chart-shared/echarts-renderer/base-single-field-echarts-renderer.ts b/ui/src/app/chart-shared/echarts-renderer/base-single-field-echarts-renderer.ts
index d28d271bc9..133f658821 100644
--- a/ui/src/app/chart-shared/echarts-renderer/base-single-field-echarts-renderer.ts
+++ b/ui/src/app/chart-shared/echarts-renderer/base-single-field-echarts-renderer.ts
@@ -150,7 +150,7 @@ export abstract class SpBaseSingleFieldEchartsRenderer<
options: EChartsOption,
widgetConfig: T,
numberOfCharts: number,
- series: S[],
+ _series: S[],
) {
if (this.showAxes()) {
const axisOptions = this.axisGeneratorService.makeAxisOptions(
@@ -226,7 +226,7 @@ export abstract class SpBaseSingleFieldEchartsRenderer<
return 'category';
}
- getDefaultSeriesName(widgetConfig: T): string {
+ getDefaultSeriesName(_widgetConfig: T): string {
return 'Default';
}
}
diff --git a/ui/src/app/chart-shared/services/field-update.service.ts b/ui/src/app/chart-shared/services/field-update.service.ts
index 2fdb62158d..4b0ce8aaca 100644
--- a/ui/src/app/chart-shared/services/field-update.service.ts
+++ b/ui/src/app/chart-shared/services/field-update.service.ts
@@ -84,7 +84,7 @@ export class SpFieldUpdateService {
field,
fieldUpdateInfo.fieldProvider.allFields,
fieldUpdateInfo,
- field => true,
+ _field => true,
);
}
}
diff --git a/ui/src/app/chart/components/chart-overview/chart-overview.component.ts b/ui/src/app/chart/components/chart-overview/chart-overview.component.ts
index 68b0b3ccae..0392e254e4 100644
--- a/ui/src/app/chart/components/chart-overview/chart-overview.component.ts
+++ b/ui/src/app/chart/components/chart-overview/chart-overview.component.ts
@@ -66,7 +66,7 @@ export class ChartOverviewComponent implements OnInit, OnDestroy {
this.breadcrumbService.updateBreadcrumb(
this.breadcrumbService.getRootLink(SpChartRoutes.BASE),
);
- this.auth$ = this.currentUserService.user$.subscribe(user => {
+ this.auth$ = this.currentUserService.user$.subscribe(_user => {
this.hasDataExplorerWritePrivileges = this.authService.hasRole(
UserPrivilege.PRIVILEGE_WRITE_DATA_EXPLORER_VIEW,
);
diff --git a/ui/src/app/chart/components/chart-view/chart-view.component.ts b/ui/src/app/chart/components/chart-view/chart-view.component.ts
index a52a3a3575..33a73bde94 100644
--- a/ui/src/app/chart/components/chart-view/chart-view.component.ts
+++ b/ui/src/app/chart/components/chart-view/chart-view.component.ts
@@ -186,7 +186,7 @@ export class ChartViewComponent
});
}
- onAddWidget(event: Tuple2<DataLakeMeasure, DataExplorerWidgetModel>) {
+ onAddWidget(_event: Tuple2<DataLakeMeasure, DataExplorerWidgetModel>) {
if (!this.originalDataView?.visualizationConfig) {
this.setDefaultValuesOnOriginalDataViewForNewCharts();
}
diff --git a/ui/src/app/configuration/dialog/manage-site/manage-site-dialog.component.ts b/ui/src/app/configuration/dialog/manage-site/manage-site-dialog.component.ts
index 36bf53bb19..7bc66bdd22 100644
--- a/ui/src/app/configuration/dialog/manage-site/manage-site-dialog.component.ts
+++ b/ui/src/app/configuration/dialog/manage-site/manage-site-dialog.component.ts
@@ -93,6 +93,6 @@ export class ManageSiteDialogComponent implements OnInit {
AssetConstants.ASSET_SITES_APP_DOC_NAME,
this.clonedSite,
);
- observable.subscribe(res => this.close(true));
+ observable.subscribe(_res => this.close(true));
}
}
diff --git a/ui/src/app/configuration/email-configuration/email-configuration.component.ts b/ui/src/app/configuration/email-configuration/email-configuration.component.ts
index 4b10c9e5c2..c84b3d009c 100644
--- a/ui/src/app/configuration/email-configuration/email-configuration.component.ts
+++ b/ui/src/app/configuration/email-configuration/email-configuration.component.ts
@@ -237,7 +237,7 @@ export class EmailConfigurationComponent implements OnInit {
this.sendingTestMailInProgress = true;
this.mailConfig.testRecipientAddress = this.defaultRecipient;
this.mailConfigService.sendTestMail(this.mailConfig).subscribe(
- result => {
+ _result => {
this.sendingTestMailInProgress = false;
this.sendingTestMailSuccess = true;
},
diff --git a/ui/src/app/configuration/export/import-dialog/data-import-dialog.component.ts b/ui/src/app/configuration/export/import-dialog/data-import-dialog.component.ts
index 45093e3416..7270ca702b 100644
--- a/ui/src/app/configuration/export/import-dialog/data-import-dialog.component.ts
+++ b/ui/src/app/configuration/export/import-dialog/data-import-dialog.component.ts
@@ -124,7 +124,7 @@ export class SpDataImportDialogComponent {
this.currentImportStep++;
}
},
- error => {
+ _error => {
this.uploadError = true;
},
);
@@ -135,7 +135,7 @@ export class SpDataImportDialogComponent {
this.currentImportStep = 2;
this.dataExportService
.triggerImport(this.selectedUploadFile, this.importConfiguration)
- .subscribe(result => {
+ .subscribe(_result => {
this.dialogRef.close();
});
}
diff --git a/ui/src/app/configuration/files/file-overview/file-overview.component.ts b/ui/src/app/configuration/files/file-overview/file-overview.component.ts
index 99bb8b7809..64eb52634b 100644
--- a/ui/src/app/configuration/files/file-overview/file-overview.component.ts
+++ b/ui/src/app/configuration/files/file-overview/file-overview.component.ts
@@ -106,7 +106,7 @@ export class FileOverviewComponent implements OnInit {
if (ev === 'confirm') {
this.filesService
.deleteFile(fileMetadata.fileId)
- .subscribe(response => {
+ .subscribe(_response => {
this.refreshFiles();
});
}
diff --git a/ui/src/app/configuration/general-configuration/general-configuration.component.ts b/ui/src/app/configuration/general-configuration/general-configuration.component.ts
index 44e037561b..41cbf7d577 100644
--- a/ui/src/app/configuration/general-configuration/general-configuration.component.ts
+++ b/ui/src/app/configuration/general-configuration/general-configuration.component.ts
@@ -315,7 +315,7 @@ export class GeneralConfigurationComponent implements OnInit {
this.generalConfigService
.updateGeneralConfig(this.generalConfig)
- .subscribe(result => {
+ .subscribe(_result => {
this.loadConfig();
});
}
diff --git a/ui/src/app/configuration/security-configuration/role-configuration/role-configuration.component.ts b/ui/src/app/configuration/security-configuration/role-configuration/role-configuration.component.ts
index ec413f3158..20df89b097 100644
--- a/ui/src/app/configuration/security-configuration/role-configuration/role-configuration.component.ts
+++ b/ui/src/app/configuration/security-configuration/role-configuration/role-configuration.component.ts
@@ -119,7 +119,7 @@ export class SecurityRoleConfigComponent implements OnInit {
});
dialogRef.afterClosed().subscribe(result => {
if (result === 'confirm') {
- this.roleService.delete(role).subscribe(response => {
+ this.roleService.delete(role).subscribe(_response => {
this.loadRoles();
});
}
diff --git a/ui/src/app/configuration/security-configuration/user-group-configuration/user-group-configuration.component.ts b/ui/src/app/configuration/security-configuration/user-group-configuration/user-group-configuration.component.ts
index fd4ee78e7d..488f209d71 100644
--- a/ui/src/app/configuration/security-configuration/user-group-configuration/user-group-configuration.component.ts
+++ b/ui/src/app/configuration/security-configuration/user-group-configuration/user-group-configuration.component.ts
@@ -109,9 +109,11 @@ export class SecurityUserGroupConfigComponent implements OnInit {
});
dialogRef.afterClosed().subscribe(result => {
if (result === 'confirm') {
- this.userGroupService.deleteGroup(group).subscribe(response => {
- this.loadAllGroups();
- });
+ this.userGroupService
+ .deleteGroup(group)
+ .subscribe(_response => {
+ this.loadAllGroups();
+ });
}
});
}
diff --git a/ui/src/app/connect/components/adapter-details/abstract-adapter-details.directive.ts b/ui/src/app/connect/components/adapter-details/abstract-adapter-details.directive.ts
index 348ebaf4ba..54fa3f8bec 100644
--- a/ui/src/app/connect/components/adapter-details/abstract-adapter-details.directive.ts
+++ b/ui/src/app/connect/components/adapter-details/abstract-adapter-details.directive.ts
@@ -45,7 +45,7 @@ export abstract class SpAbstractAdapterDetailsDirective {
adapterNotFound = false;
onInit(): void {
- this.currentUserService.user$.subscribe(user => {
+ this.currentUserService.user$.subscribe(_user => {
const elementId = this.activatedRoute.snapshot.params.elementId;
if (elementId) {
this.tabs = new SpAdapterDetailsTabs().getTabs(elementId);
diff --git a/ui/src/app/connect/components/existing-adapters/existing-adapters.component.ts b/ui/src/app/connect/components/existing-adapters/existing-adapters.component.ts
index cba1c1f980..a639664909 100644
--- a/ui/src/app/connect/components/existing-adapters/existing-adapters.component.ts
+++ b/ui/src/app/connect/components/existing-adapters/existing-adapters.component.ts
@@ -175,7 +175,7 @@ export class ExistingAdaptersComponent implements OnInit, OnDestroy {
this.breadcrumbService.updateBreadcrumb(
this.breadcrumbService.getRootLink(SpConnectRoutes.BASE),
);
- this.user$ = this.currentUserService.user$.subscribe(user => {
+ this.user$ = this.currentUserService.user$.subscribe(_user => {
this.getAdaptersRunning();
});
this.tutorial$ = this.shepherdService.tutorialActive$.subscribe(
diff --git a/ui/src/app/connect/dialog/delete-adapter-dialog/delete-adapter-dialog.component.ts b/ui/src/app/connect/dialog/delete-adapter-dialog/delete-adapter-dialog.component.ts
index d374add960..f1bff10041 100644
--- a/ui/src/app/connect/dialog/delete-adapter-dialog/delete-adapter-dialog.component.ts
+++ b/ui/src/app/connect/dialog/delete-adapter-dialog/delete-adapter-dialog.component.ts
@@ -73,7 +73,7 @@ export class DeleteAdapterDialogComponent {
this.dataMarketplaceService
.deleteAdapter(this.adapter, deleteAssociatedPipelines)
.subscribe(
- data => {
+ _data => {
this.close(true);
},
error => {
diff --git a/ui/src/app/connect/dialog/transformation-script-documentation/transformation-script-documentation-dialog.component.ts b/ui/src/app/connect/dialog/transformation-script-documentation/transformation-script-documentation-dialog.component.ts
index e6b22112aa..c965f793d8 100644
--- a/ui/src/app/connect/dialog/transformation-script-documentation/transformation-script-documentation-dialog.component.ts
+++ b/ui/src/app/connect/dialog/transformation-script-documentation/transformation-script-documentation-dialog.component.ts
@@ -24,7 +24,6 @@ import { MatDivider } from '@angular/material/divider';
import { MatIcon } from '@angular/material/icon';
import { MatTooltip } from '@angular/material/tooltip';
import {
- FlexDirective,
LayoutAlignDirective,
LayoutDirective,
LayoutGapDirective,
diff --git a/ui/src/app/connect/services/static-value-transform.service.ts b/ui/src/app/connect/services/static-value-transform.service.ts
index a9179d4409..e931974fcd 100644
--- a/ui/src/app/connect/services/static-value-transform.service.ts
+++ b/ui/src/app/connect/services/static-value-transform.service.ts
@@ -17,7 +17,6 @@
*/
import { Injectable } from '@angular/core';
-import { IdGeneratorService } from '../../core-services/id-generator/id-generator.service';
@Injectable({ providedIn: 'root' })
/**
diff --git a/ui/src/app/core-ui/pipeline-element-template-config/pipeline-element-template-config.component.ts b/ui/src/app/core-ui/pipeline-element-template-config/pipeline-element-template-config.component.ts
index f8a2e888e1..b432b9e689 100644
--- a/ui/src/app/core-ui/pipeline-element-template-config/pipeline-element-template-config.component.ts
+++ b/ui/src/app/core-ui/pipeline-element-template-config/pipeline-element-template-config.component.ts
@@ -102,6 +102,6 @@ export class PipelineElementTemplateConfigComponent implements OnInit {
deleteTemplate(templateId: string) {
this.pipelineElementTemplateService
.deletePipelineElementTemplate(templateId)
- .subscribe(result => this.loadTemplates());
+ .subscribe(_result => this.loadTemplates());
}
}
diff --git a/ui/src/app/core-ui/static-properties/static-code-input/static-code-input.component.ts b/ui/src/app/core-ui/static-properties/static-code-input/static-code-input.component.ts
index 40b2af2e63..c791fde413 100644
--- a/ui/src/app/core-ui/static-properties/static-code-input/static-code-input.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-code-input/static-code-input.component.ts
@@ -97,9 +97,9 @@ export class StaticCodeInputComponent
this.enableCodeHints();
}
- onStatusChange(status: any) {}
+ onStatusChange(_status: any) {}
- onValueChange(value: any) {}
+ onValueChange(_value: any) {}
resetCode() {
this.staticProperty.value = this.staticProperty.codeTemplate;
diff --git a/ui/src/app/core-ui/static-properties/static-collection/add-to-collection/add-to-collection.component.ts b/ui/src/app/core-ui/static-properties/static-collection/add-to-collection/add-to-collection.component.ts
index f6c1437980..57f406c52a 100644
--- a/ui/src/app/core-ui/static-properties/static-collection/add-to-collection/add-to-collection.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-collection/add-to-collection/add-to-collection.component.ts
@@ -102,7 +102,7 @@ export class AddToCollectionComponent {
const fileReader = new FileReader();
this.fileName = target.files[0].name;
- fileReader.onload = e => {
+ fileReader.onload = _e => {
this.parseCsv(fileReader.result).subscribe(res => {
res.pop();
res.forEach((row, i) => {
diff --git a/ui/src/app/core-ui/static-properties/static-collection/static-collection.component.ts b/ui/src/app/core-ui/static-properties/static-collection/static-collection.component.ts
index 6da0a9daf1..19f1cfa09c 100644
--- a/ui/src/app/core-ui/static-properties/static-collection/static-collection.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-collection/static-collection.component.ts
@@ -85,7 +85,7 @@ export class StaticCollectionComponent extends AbstractValidatedStaticPropertyRe
this.staticProperty.members.splice(i, 1).slice(0);
}
- onStatusChange(status: any) {}
+ onStatusChange(_status: any) {}
- onValueChange(value: any) {}
+ onValueChange(_value: any) {}
}
diff --git a/ui/src/app/core-ui/static-properties/static-color-picker/static-color-picker.component.ts b/ui/src/app/core-ui/static-properties/static-color-picker/static-color-picker.component.ts
index c9f2a6f66d..cbbd15833a 100644
--- a/ui/src/app/core-ui/static-properties/static-color-picker/static-color-picker.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-color-picker/static-color-picker.component.ts
@@ -89,7 +89,7 @@ export class StaticColorPickerComponent
);
}
- onStatusChange(status: any) {}
+ onStatusChange(_status: any) {}
onValueChange(value: any) {
this.staticProperty.selectedColor = value;
diff --git a/ui/src/app/core-ui/static-properties/static-file-input/static-file-input.component.ts b/ui/src/app/core-ui/static-properties/static-file-input/static-file-input.component.ts
index d0bc38dd0b..e7f4eeb698 100644
--- a/ui/src/app/core-ui/static-properties/static-file-input/static-file-input.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-file-input/static-file-input.component.ts
@@ -199,7 +199,7 @@ export class StaticFileInputComponent
this.fetchFileMetadata(filename);
}
},
- error => {},
+ _error => {},
);
} else {
this.openRenameDialog();
@@ -219,7 +219,7 @@ export class StaticFileInputComponent
return fileMetadata ? fileMetadata.filename : '';
}
- onStatusChange(status: any) {}
+ onStatusChange(_status: any) {}
onValueChange(value: any) {
this.staticProperty.locationPath = value.filename;
diff --git a/ui/src/app/core-ui/static-properties/static-free-input/static-free-input.component.ts b/ui/src/app/core-ui/static-properties/static-free-input/static-free-input.component.ts
index 09ac9adb6f..21422c5fca 100644
--- a/ui/src/app/core-ui/static-properties/static-free-input/static-free-input.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-free-input/static-free-input.component.ts
@@ -140,7 +140,7 @@ export class StaticFreeInputComponent
this.applyCompletedConfiguration(valid);
}
- onStatusChange(status: any) {}
+ onStatusChange(_status: any) {}
onValueChange(value: any) {
this.staticProperty.value = value;
diff --git a/ui/src/app/core-ui/static-properties/static-mapping-nary/static-mapping-nary.component.ts b/ui/src/app/core-ui/static-properties/static-mapping-nary/static-mapping-nary.component.ts
index 22c797296d..8db38f02d4 100644
--- a/ui/src/app/core-ui/static-properties/static-mapping-nary/static-mapping-nary.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-mapping-nary/static-mapping-nary.component.ts
@@ -73,7 +73,7 @@ export class StaticMappingNaryComponent
}
}
- selectOption(property: any, $event) {
+ selectOption(property: any) {
if (property['checked']) {
this.addProperty(property);
} else {
@@ -123,9 +123,9 @@ export class StaticMappingNaryComponent
});
}
- onStatusChange(status: any) {}
+ onStatusChange(_status: any) {}
- onValueChange(value: any) {
+ onValueChange(_value: any) {
this.applyCompletedConfiguration();
}
}
diff --git a/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts b/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
index 8e325377a1..787b4e90e7 100644
--- a/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-mapping-unary/static-mapping-unary.component.ts
@@ -83,7 +83,7 @@ export class StaticMappingUnaryComponent
return validators;
}
- onStatusChange(status: any) {}
+ onStatusChange(_status: any) {}
onValueChange(value: any) {
this.staticProperty.selectedProperty = value;
diff --git a/ui/src/app/core-ui/static-properties/static-runtime-resolvable-group/static-runtime-resolvable-group.component.ts b/ui/src/app/core-ui/static-properties/static-runtime-resolvable-group/static-runtime-resolvable-group.component.ts
index 348e16de52..eb7b5f027a 100644
--- a/ui/src/app/core-ui/static-properties/static-runtime-resolvable-group/static-runtime-resolvable-group.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-runtime-resolvable-group/static-runtime-resolvable-group.component.ts
@@ -60,7 +60,7 @@ export class StaticRuntimeResolvableGroupComponent
@Output() inputEmitter: EventEmitter<boolean> = new EventEmitter<boolean>();
- handleConfigurationUpdate(event: ConfigurationInfo): void {}
+ handleConfigurationUpdate(_event: ConfigurationInfo): void {}
ngOnInit(): void {
super.onInit();
diff --git a/ui/src/app/core-ui/static-properties/static-runtime-resolvable-input/base-runtime-resolvable-input.ts b/ui/src/app/core-ui/static-properties/static-runtime-resolvable-input/base-runtime-resolvable-input.ts
index c56248636d..251935d200 100644
--- a/ui/src/app/core-ui/static-properties/static-runtime-resolvable-input/base-runtime-resolvable-input.ts
+++ b/ui/src/app/core-ui/static-properties/static-runtime-resolvable-input/base-runtime-resolvable-input.ts
@@ -39,7 +39,6 @@ import {
SimpleChanges,
inject,
} from '@angular/core';
-import { ConfigurationInfo } from '../../../connect/model/ConfigurationInfo';
@Directive()
export abstract class BaseRuntimeResolvableInput<
diff --git a/ui/src/app/core-ui/static-properties/static-secret-input/static-secret-input.component.ts b/ui/src/app/core-ui/static-properties/static-secret-input/static-secret-input.component.ts
index 9b745e8dc2..b282ba562f 100644
--- a/ui/src/app/core-ui/static-properties/static-secret-input/static-secret-input.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-secret-input/static-secret-input.component.ts
@@ -77,7 +77,7 @@ export class StaticSecretInputComponent
);
}
- onStatusChange(status: any) {}
+ onStatusChange(_status: any) {}
onValueChange(value: any) {
this.staticProperty.value = value;
diff --git a/ui/src/app/core-ui/static-properties/static-slide-toggle/static-slide-toggle.component.ts b/ui/src/app/core-ui/static-properties/static-slide-toggle/static-slide-toggle.component.ts
index dfc2220921..7d693359c2 100644
--- a/ui/src/app/core-ui/static-properties/static-slide-toggle/static-slide-toggle.component.ts
+++ b/ui/src/app/core-ui/static-properties/static-slide-toggle/static-slide-toggle.component.ts
@@ -48,7 +48,7 @@ export class StaticSlideToggleComponent
this.applyCompletedConfiguration(true);
}
- onStatusChange(status: any) {}
+ onStatusChange(_status: any) {}
onValueChange(value: any) {
this.staticProperty.selected = value;
diff --git a/ui/src/app/core/auth/guards/page-auth.can-activate.guard.ts b/ui/src/app/core/auth/guards/page-auth.can-activate.guard.ts
index e87c2151ec..b45faf1811 100644
--- a/ui/src/app/core/auth/guards/page-auth.can-activate.guard.ts
+++ b/ui/src/app/core/auth/guards/page-auth.can-activate.guard.ts
@@ -33,7 +33,7 @@ export class PageAuthGuard implements CanActivate, CanActivateChild {
canActivate(
route: ActivatedRouteSnapshot,
- state: RouterStateSnapshot,
+ _state: RouterStateSnapshot,
): MaybeAsync<GuardResult> {
return this.canActivateChild(route);
}
diff --git a/ui/src/app/core/setup/guards/base-configured.can-activate.guard.ts b/ui/src/app/core/setup/guards/base-configured.can-activate.guard.ts
index 71e98345a2..7494d4c451 100644
--- a/ui/src/app/core/setup/guards/base-configured.can-activate.guard.ts
+++ b/ui/src/app/core/setup/guards/base-configured.can-activate.guard.ts
@@ -32,8 +32,8 @@ export abstract class BaseConfiguredCanActivateGuard implements CanActivate {
protected authService = inject(AuthService);
canActivate(
- route: ActivatedRouteSnapshot,
- state: RouterStateSnapshot,
+ _route: ActivatedRouteSnapshot,
+ _state: RouterStateSnapshot,
):
| Observable<boolean | UrlTree>
| Promise<boolean | UrlTree>
@@ -48,7 +48,7 @@ export abstract class BaseConfiguredCanActivateGuard implements CanActivate {
resolve(this.onIsConfigured());
}
},
- error => {
+ _error => {
const url = this.router.parseUrl('startup');
resolve(url);
},
diff --git a/ui/src/app/core/setup/guards/registration-allowed.can-activate.guard.ts b/ui/src/app/core/setup/guards/registration-allowed.can-activate.guard.ts
index 22963fe820..ccccc288e5 100644
--- a/ui/src/app/core/setup/guards/registration-allowed.can-activate.guard.ts
+++ b/ui/src/app/core/setup/guards/registration-allowed.can-activate.guard.ts
@@ -33,8 +33,8 @@ export class RegistrationAllowedCanActivateGuard {
private loginService = inject(LoginService);
canActivate(
- route: ActivatedRouteSnapshot,
- state: RouterStateSnapshot,
+ _route: ActivatedRouteSnapshot,
+ _state: RouterStateSnapshot,
):
| Observable<boolean | UrlTree>
| Promise<boolean | UrlTree>
diff --git a/ui/src/app/core/setup/guards/restore-password-allowed.can-activate.guard.ts b/ui/src/app/core/setup/guards/restore-password-allowed.can-activate.guard.ts
index 1e06442176..e7f51df072 100644
--- a/ui/src/app/core/setup/guards/restore-password-allowed.can-activate.guard.ts
+++ b/ui/src/app/core/setup/guards/restore-password-allowed.can-activate.guard.ts
@@ -33,8 +33,8 @@ export class RestorePasswordAllowedCanActivateGuard {
private loginService = inject(LoginService);
canActivate(
- route: ActivatedRouteSnapshot,
- state: RouterStateSnapshot,
+ _route: ActivatedRouteSnapshot,
+ _state: RouterStateSnapshot,
):
| Observable<boolean | UrlTree>
| Promise<boolean | UrlTree>
diff --git a/ui/src/app/dashboard-kiosk/components/kiosk/dashboard-kiosk.component.ts b/ui/src/app/dashboard-kiosk/components/kiosk/dashboard-kiosk.component.ts
index 77dc44bc8b..45f4defe32 100644
--- a/ui/src/app/dashboard-kiosk/components/kiosk/dashboard-kiosk.component.ts
+++ b/ui/src/app/dashboard-kiosk/components/kiosk/dashboard-kiosk.component.ts
@@ -133,7 +133,7 @@ export class DashboardKioskComponent implements OnInit, OnDestroy {
}
setTimeout(() => this.createRefreshListener(), 5000);
},
- error: err => {
+ error: _err => {
setTimeout(() => this.createRefreshListener(), 5000);
},
});
diff --git a/ui/src/app/dashboard-shared/components/chart-view/grid-view/dashboard-grid-view.component.ts b/ui/src/app/dashboard-shared/components/chart-view/grid-view/dashboard-grid-view.component.ts
index e37fc3904e..78d2138c4f 100644
--- a/ui/src/app/dashboard-shared/components/chart-view/grid-view/dashboard-grid-view.component.ts
+++ b/ui/src/app/dashboard-shared/components/chart-view/grid-view/dashboard-grid-view.component.ts
@@ -127,5 +127,5 @@ export class DashboardGridViewComponent
return true;
}
- selectNewWidget(widgetId): void {}
+ selectNewWidget(_widgetId): void {}
}
diff --git a/ui/src/app/dashboard/components/overview/dashboard-overview.component.ts b/ui/src/app/dashboard/components/overview/dashboard-overview.component.ts
index dba612fa9a..5a2b74b53a 100644
--- a/ui/src/app/dashboard/components/overview/dashboard-overview.component.ts
+++ b/ui/src/app/dashboard/components/overview/dashboard-overview.component.ts
@@ -72,7 +72,7 @@ export class DashboardOverviewComponent implements OnInit, OnDestroy {
this.breadcrumbService.updateBreadcrumb(
this.breadcrumbService.getRootLink(SpDashboardRoutes.BASE),
);
- this.user$ = this.currentUserService.user$.subscribe(user => {
+ this.user$ = this.currentUserService.user$.subscribe(_user => {
this.hasDashboardWritePrivileges = this.authService.hasRole(
UserPrivilege.PRIVILEGE_WRITE_DASHBOARD,
);
diff --git a/ui/src/app/dashboard/components/panel/dashboard-panel.component.ts b/ui/src/app/dashboard/components/panel/dashboard-panel.component.ts
index b508838153..c2acdb9d8d 100644
--- a/ui/src/app/dashboard/components/panel/dashboard-panel.component.ts
+++ b/ui/src/app/dashboard/components/panel/dashboard-panel.component.ts
@@ -247,7 +247,7 @@ export class DashboardPanelComponent
this.dashboard.metadata.lastModifiedEpochMs = Date.now();
this.dashboardService
.updateDashboard(this.dashboard)
- .subscribe(result => {
+ .subscribe(_result => {
this.routingService.navigateToDashboardOverview(true);
});
}
diff --git a/ui/src/app/dataset/components/datalake-configuration/datalake-configuration-entry.ts b/ui/src/app/dataset/components/datalake-configuration/datalake-configuration-entry.ts
index 8e814381f8..48bdda2273 100644
--- a/ui/src/app/dataset/components/datalake-configuration/datalake-configuration-entry.ts
+++ b/ui/src/app/dataset/components/datalake-configuration/datalake-configuration-entry.ts
@@ -1,5 +1,4 @@
import { RetentionTimeConfig } from '@streampipes/platform-services';
-import { RetentionConfig } from '../../dialog/data-retention-dialog/model/retention-config.model';
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
diff --git a/ui/src/app/dataset/dialog/data-retention-dialog/data-retention-dialog.component.ts b/ui/src/app/dataset/dialog/data-retention-dialog/data-retention-dialog.component.ts
index bee63ad5f6..abae5303a5 100644
--- a/ui/src/app/dataset/dialog/data-retention-dialog/data-retention-dialog.component.ts
+++ b/ui/src/app/dataset/dialog/data-retention-dialog/data-retention-dialog.component.ts
@@ -110,10 +110,10 @@ export class DataRetentionDialogComponent implements OnInit {
this.datalakeRestService
.cleanup(this.measurementIndex, this.retentionConfig)
.subscribe({
- next: data => {
+ next: _data => {
this.close(true);
},
- error: err => {
+ error: _err => {
this.close(false);
},
});
@@ -122,7 +122,7 @@ export class DataRetentionDialogComponent implements OnInit {
deleteCleanUp() {
this.datalakeRestService
.deleteCleanup(this.measurementIndex)
- .subscribe(data => {
+ .subscribe(_data => {
this.close(true);
});
}
@@ -137,7 +137,7 @@ export class DataRetentionDialogComponent implements OnInit {
},
});
- dialogRef.afterClosed().subscribe(data => {
+ dialogRef.afterClosed().subscribe(_data => {
this.close(true);
});
}
diff --git a/ui/src/app/dataset/dialog/data-retention-now-dialog/data-retention-now-dialog.component.ts b/ui/src/app/dataset/dialog/data-retention-now-dialog/data-retention-now-dialog.component.ts
index 529576ce48..1366d0dac5 100644
--- a/ui/src/app/dataset/dialog/data-retention-now-dialog/data-retention-now-dialog.component.ts
+++ b/ui/src/app/dataset/dialog/data-retention-now-dialog/data-retention-now-dialog.component.ts
@@ -65,7 +65,7 @@ export class DataRetentionNowDialogComponent implements OnInit {
.runCleanupNow(this.measurementIndex)
.pipe(finalize(() => (this.isInProgress = false)))
.subscribe(
- data => {
+ _data => {
this.isError = false;
this.currentStatus = this.translateService.instant(
'Sync was successful.',
diff --git a/ui/src/app/dataset/dialog/delete-datalake-index/delete-datalake-index-dialog.component.ts b/ui/src/app/dataset/dialog/delete-datalake-index/delete-datalake-index-dialog.component.ts
index 6f11dc3f00..41561be132 100644
--- a/ui/src/app/dataset/dialog/delete-datalake-index/delete-datalake-index-dialog.component.ts
+++ b/ui/src/app/dataset/dialog/delete-datalake-index/delete-datalake-index-dialog.component.ts
@@ -80,7 +80,7 @@ export class DeleteDatalakeIndexComponent implements OnInit {
this.translateService.instant('Truncating data...');
this.datalakeRestService
.removeData(this.measurementIndex)
- .subscribe(data => {
+ .subscribe(_data => {
this.close(true);
});
}
@@ -92,7 +92,7 @@ export class DeleteDatalakeIndexComponent implements OnInit {
// this.datalakeRestService.dropSingleMeasurementSeries(measurmentIndex);
this.datalakeRestService
.dropSingleMeasurementSeries(this.measurementIndex)
- .subscribe(data => {
+ .subscribe(_data => {
this.close(true);
});
}
diff --git a/ui/src/app/dataset/dialog/delete-export-provider/delete-export-provider-dialog.component.ts b/ui/src/app/dataset/dialog/delete-export-provider/delete-export-provider-dialog.component.ts
index b1efd9594a..ee27fbcc4b 100644
--- a/ui/src/app/dataset/dialog/delete-export-provider/delete-export-provider-dialog.component.ts
+++ b/ui/src/app/dataset/dialog/delete-export-provider/delete-export-provider-dialog.component.ts
@@ -61,7 +61,7 @@ export class DeleteExportProviderComponent {
this.currentStatus = 'Deleting export provider.';
this.exportProviderRestService
.deleteExportProvider(this.providerId)
- .subscribe(data => {
+ .subscribe(_data => {
this.close(true);
});
}
diff --git a/ui/src/app/dataset/dialog/export-provider-dialog/export-provider-dialog.component.ts b/ui/src/app/dataset/dialog/export-provider-dialog/export-provider-dialog.component.ts
index 9b5474125e..8ceab6942a 100644
--- a/ui/src/app/dataset/dialog/export-provider-dialog/export-provider-dialog.component.ts
+++ b/ui/src/app/dataset/dialog/export-provider-dialog/export-provider-dialog.component.ts
@@ -129,7 +129,7 @@ export class ExportProviderComponent implements OnInit {
try {
new URL(value);
return null;
- } catch (e) {
+ } catch (_e) {
return { invalidUri: true };
}
}
diff --git a/ui/src/app/editor/components/output-strategy/custom-output/custom-output-strategy.component.ts b/ui/src/app/editor/components/output-strategy/custom-output/custom-output-strategy.component.ts
index 1183e35ea4..113e1abd40 100644
--- a/ui/src/app/editor/components/output-strategy/custom-output/custom-output-strategy.component.ts
+++ b/ui/src/app/editor/components/output-strategy/custom-output/custom-output-strategy.component.ts
@@ -82,7 +82,7 @@ export class CustomOutputStrategyComponent
);
// This is needed to trigger update of scope
this.outputStrategy.selectedPropertyKeys =
- this.outputStrategy.selectedPropertyKeys.filter(el => true);
+ this.outputStrategy.selectedPropertyKeys.filter(_el => true);
this.checkFormValidity();
}
diff --git a/ui/src/app/editor/components/output-strategy/property-selection/property-selection.component.ts b/ui/src/app/editor/components/output-strategy/property-selection/property-selection.component.ts
index 24418ae22e..eeb27efe0e 100644
--- a/ui/src/app/editor/components/output-strategy/property-selection/property-selection.component.ts
+++ b/ui/src/app/editor/components/output-strategy/property-selection/property-selection.component.ts
@@ -73,7 +73,7 @@ export class PropertySelectionComponent implements OnInit {
this.outputStrategy.selectedPropertyKeys.push(runtimeId);
// This is needed to trigger update of scope
this.outputStrategy.selectedPropertyKeys =
- this.outputStrategy.selectedPropertyKeys.filter(el => true);
+ this.outputStrategy.selectedPropertyKeys.filter(_el => true);
}
remove(runtimeId) {
diff --git a/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly-options/pipeline-assembly-options.component.ts b/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly-options/pipeline-assembly-options.component.ts
index fe591aebc3..cdeabf855d 100644
--- a/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly-options/pipeline-assembly-options.component.ts
+++ b/ui/src/app/editor/components/pipeline-assembly/pipeline-assembly-options/pipeline-assembly-options.component.ts
@@ -143,7 +143,7 @@ export class PipelineAssemblyOptionsComponent {
});
}
- showClearAssemblyConfirmDialog(event: any) {
+ showClearAssemblyConfirmDialog(_event: any) {
const dialogRef = this.dialog.open(ConfirmDialogComponent, {
width: '500px',
data: {
diff --git a/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand-row/pipeline-element-icon-stand-row.component.ts b/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand-row/pipeline-element-icon-stand-row.component.ts
index 5d19b2bd93..2b5c97dcbe 100644
--- a/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand-row/pipeline-element-icon-stand-row.component.ts
+++ b/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand-row/pipeline-element-icon-stand-row.component.ts
@@ -100,7 +100,7 @@ export class PipelineElementIconStandRowComponent implements OnInit {
return PipelineElementTypeUtils.toCssShortHand(elementType);
}
- updateMouseOver(e: string) {
+ updateMouseOver(_e: string) {
this.currentMouseOver = !this.currentMouseOver;
}
diff --git a/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand.component.ts b/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand.component.ts
index 8c5f62b3ea..8daf4d26a5 100644
--- a/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand.component.ts
+++ b/ui/src/app/editor/components/pipeline-element-icon-stand/pipeline-element-icon-stand.component.ts
@@ -192,7 +192,7 @@ export class PipelineElementIconStandComponent
ui.helper.appendTo('#content');
$('#outerAssemblyArea').css('border', '2px dashed #39b54a');
},
- stop(el, ui) {
+ stop(_el, _ui) {
$('#outerAssemblyArea').css('border', '0');
},
});
diff --git a/ui/src/app/editor/dialog/compatible-elements/compatible-elements.component.ts b/ui/src/app/editor/dialog/compatible-elements/compatible-elements.component.ts
index a4b88f47ec..cdd4dbe8dc 100644
--- a/ui/src/app/editor/dialog/compatible-elements/compatible-elements.component.ts
+++ b/ui/src/app/editor/dialog/compatible-elements/compatible-elements.component.ts
@@ -70,7 +70,7 @@ export class CompatibleElementsComponent implements OnInit {
ngOnInit() {
this.possibleElements.sort((a, b) => a.name.localeCompare(b.name));
- this.possibleElements.forEach(pe => {
+ this.possibleElements.forEach(_pe => {
this.styles.push(this.makeStandardStyle());
});
}
diff --git a/ui/src/app/editor/dialog/customize/customize.component.ts b/ui/src/app/editor/dialog/customize/customize.component.ts
index 2e9cb750c8..eea8a9bdb9 100644
--- a/ui/src/app/editor/dialog/customize/customize.component.ts
+++ b/ui/src/app/editor/dialog/customize/customize.component.ts
@@ -154,9 +154,9 @@ export class CustomizeComponent implements OnInit, AfterViewInit {
this.parentForm = this.fb.group({});
- this.parentForm.valueChanges.subscribe(v => {});
+ this.parentForm.valueChanges.subscribe(_v => {});
- this.parentForm.statusChanges.subscribe(status => {
+ this.parentForm.statusChanges.subscribe(_status => {
this.formValid = this.viewInitialized && this.parentForm.valid;
});
if (this.shepherdService.isTourActive()) {
@@ -234,7 +234,7 @@ export class CustomizeComponent implements OnInit, AfterViewInit {
this.template.templateConfigs = this.convert(this.templateConfigs);
this.pipelineElementTemplateService
.storePipelineElementTemplate(this.template)
- .subscribe(result => {
+ .subscribe(_result => {
this.loadPipelineElementTemplates();
this.templateMode = false;
});
diff --git a/ui/src/app/editor/dialog/pipeline-element-discovery/pipeline-element-discovery.component.ts b/ui/src/app/editor/dialog/pipeline-element-discovery/pipeline-element-discovery.component.ts
index 1fe4bb8cec..26ffed3c9c 100644
--- a/ui/src/app/editor/dialog/pipeline-element-discovery/pipeline-element-discovery.component.ts
+++ b/ui/src/app/editor/dialog/pipeline-element-discovery/pipeline-element-discovery.component.ts
@@ -69,7 +69,7 @@ export class PipelineElementDiscoveryComponent implements OnInit {
ngOnInit() {
this.currentElements.sort((a, b) => a.name.localeCompare(b.name));
- this.currentElements.forEach(pe => {
+ this.currentElements.forEach(_pe => {
this.styles.push(this.makeStandardStyle());
});
}
diff --git a/ui/src/app/editor/dialog/save-pipeline/save-pipeline.component.ts b/ui/src/app/editor/dialog/save-pipeline/save-pipeline.component.ts
index 67f16784d6..0853a11381 100644
--- a/ui/src/app/editor/dialog/save-pipeline/save-pipeline.component.ts
+++ b/ui/src/app/editor/dialog/save-pipeline/save-pipeline.component.ts
@@ -370,7 +370,7 @@ export class SavePipelineComponent implements OnInit {
this.showPipelineOperationStatus(status, pipelineAction);
}
- onFailure(msg?: any) {
+ onFailure(_msg?: any) {
this.operationCompleted = true;
this.operationSuccess = false;
if (this.statusIndicators.length > 0) {
diff --git a/ui/src/app/home/components/asset-table/home-asset-table.component.ts b/ui/src/app/home/components/asset-table/home-asset-table.component.ts
index 482d93c01a..8f0535790a 100644
--- a/ui/src/app/home/components/asset-table/home-asset-table.component.ts
+++ b/ui/src/app/home/components/asset-table/home-asset-table.component.ts
@@ -109,7 +109,7 @@ export class HomeAssetTableComponent implements OnInit, OnChanges {
};
}
- ngOnChanges(changes: SimpleChanges) {
+ ngOnChanges(_changes: SimpleChanges) {
this.dataSource.data = this.assets;
setTimeout(() => {
this.dataSource.sort = this.sort;
diff --git a/ui/src/app/home/dialog/welcome-tour/welcome-tour.component.ts b/ui/src/app/home/dialog/welcome-tour/welcome-tour.component.ts
index b867c56daf..60fe452a98 100644
--- a/ui/src/app/home/dialog/welcome-tour/welcome-tour.component.ts
+++ b/ui/src/app/home/dialog/welcome-tour/welcome-tour.component.ts
@@ -65,7 +65,7 @@ export class WelcomeTourComponent implements OnInit {
this.currentUser.hideTutorial = true;
this.profileService
.updateUserProfile(this.currentUser)
- .subscribe(data => {
+ .subscribe(_data => {
this.authService.updateTokenAndUserInfo();
this.close();
});
diff --git a/ui/src/app/login/components/activate-account/activate-account.component.ts b/ui/src/app/login/components/activate-account/activate-account.component.ts
index 2f9ce2121f..15956c4992 100644
--- a/ui/src/app/login/components/activate-account/activate-account.component.ts
+++ b/ui/src/app/login/components/activate-account/activate-account.component.ts
@@ -59,11 +59,11 @@ export class ActivateAccountComponent extends BaseLoginPageDirective {
this.accountActivationService
.activateAccount(this.activationCode)
.subscribe(
- success => {
+ _success => {
this.activationPerformed = true;
this.activationSuccess = true;
},
- error => {
+ _error => {
this.activationPerformed = true;
},
);
diff --git a/ui/src/app/login/components/login/login.component.ts b/ui/src/app/login/components/login/login.component.ts
index 6d7a665b9a..5f78b3cbff 100644
--- a/ui/src/app/login/components/login/login.component.ts
+++ b/ui/src/app/login/components/login/login.component.ts
@@ -92,7 +92,7 @@ export class LoginComponent extends BaseLoginPageDirective {
queryParams: { returnUrl: this.returnUrl },
});
},
- response => {
+ _response => {
// error
this.loading = false;
this.authenticationFailed = true;
diff --git a/ui/src/app/login/components/register/register.component.ts b/ui/src/app/login/components/register/register.component.ts
index f9ef8e0055..8d7f4b45ad 100644
--- a/ui/src/app/login/components/register/register.component.ts
+++ b/ui/src/app/login/components/register/register.component.ts
@@ -82,7 +82,7 @@ export class RegisterComponent extends BaseLoginPageDirective {
this.registrationError = undefined;
this.registrationInProcess = true;
this.loginService.registerUser(this.registrationData).subscribe(
- response => {
+ _response => {
this.registrationInProcess = false;
this.registrationSuccess = true;
},
diff --git a/ui/src/app/login/components/restore-password/restore-password.component.ts b/ui/src/app/login/components/restore-password/restore-password.component.ts
index ed06ae1eeb..ff33557226 100644
--- a/ui/src/app/login/components/restore-password/restore-password.component.ts
+++ b/ui/src/app/login/components/restore-password/restore-password.component.ts
@@ -74,11 +74,11 @@ export class RestorePasswordComponent extends BaseLoginPageDirective {
sendRestorePasswordLink() {
this.restoreCompleted = false;
this.loginService.sendRestorePasswordLink(this.username).subscribe(
- response => {
+ _response => {
this.restoreSuccess = true;
this.restoreCompleted = true;
},
- error => {
+ _error => {
this.restoreSuccess = false;
this.restoreCompleted = true;
},
diff --git a/ui/src/app/login/components/set-new-password/set-new-password.component.ts b/ui/src/app/login/components/set-new-password/set-new-password.component.ts
index a9041545a6..ae43729b7f 100644
--- a/ui/src/app/login/components/set-new-password/set-new-password.component.ts
+++ b/ui/src/app/login/components/set-new-password/set-new-password.component.ts
@@ -88,8 +88,8 @@ export class SetNewPasswordComponent extends BaseLoginPageDirective {
this.restorePasswordService
.checkRecoveryCode(this.recoveryCode)
.subscribe(
- success => {},
- error => {
+ _success => {},
+ _error => {
this.navigateToLoginPage();
},
);
@@ -122,10 +122,10 @@ export class SetNewPasswordComponent extends BaseLoginPageDirective {
this.restorePasswordService
.restorePassword(this.recoveryCode, this.registrationModel)
.subscribe(
- result => {
+ _result => {
this.updateStatus(false, true, true);
},
- error => {
+ _error => {
this.updateStatus(false, false, true);
},
);
diff --git a/ui/src/app/pipeline-details/pipeline-details.component.ts b/ui/src/app/pipeline-details/pipeline-details.component.ts
index b92275394f..138faea569 100644
--- a/ui/src/app/pipeline-details/pipeline-details.component.ts
+++ b/ui/src/app/pipeline-details/pipeline-details.component.ts
@@ -113,7 +113,7 @@ export class SpPipelineDetailsComponent implements OnInit, OnDestroy {
{ key: 'e', action: () => this.onShortcutEdit() },
]);
- this.currentUser$ = this.currentUserService.user$.subscribe(user => {
+ this.currentUser$ = this.currentUserService.user$.subscribe(_user => {
this.hasPipelineWritePrivileges = this.authService.hasRole(
UserPrivilege.PRIVILEGE_WRITE_PIPELINE,
);
@@ -145,7 +145,7 @@ export class SpPipelineDetailsComponent implements OnInit, OnDestroy {
}
return response;
}),
- catchError(error => {
+ catchError(_error => {
this.pipelineAvailable = false;
return of(new PipelineCanvasMetadata());
}),
diff --git a/ui/src/app/pipelines/dialog/delete-pipeline/delete-pipeline-dialog.component.ts b/ui/src/app/pipelines/dialog/delete-pipeline/delete-pipeline-dialog.component.ts
index 2ba72e56bb..98d42f58bb 100644
--- a/ui/src/app/pipelines/dialog/delete-pipeline/delete-pipeline-dialog.component.ts
+++ b/ui/src/app/pipelines/dialog/delete-pipeline/delete-pipeline-dialog.component.ts
@@ -66,7 +66,7 @@ export class DeletePipelineDialogComponent {
);
this.pipelineService
.deleteOwnPipeline(this.pipeline._id)
- .subscribe(data => {
+ .subscribe(_data => {
this.close(true);
});
}
@@ -77,10 +77,10 @@ export class DeletePipelineDialogComponent {
'Stopping pipeline...',
);
this.pipelineService.stopPipeline(this.pipeline._id).subscribe(
- data => {
+ _data => {
this.deletePipeline();
},
- data => {
+ _data => {
this.deletePipeline();
},
);
diff --git a/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts b/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
index 1e9ffb94ee..b950427485 100644
--- a/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
+++ b/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
@@ -49,7 +49,7 @@ export class PipelineNotificationsComponent {
if (this.pipeline.healthStatus === 'REQUIRES_ATTENTION') {
this.pipeline.healthStatus = 'OK';
}
- this.pipelineService.updatePipeline(this.pipeline).subscribe(msg => {
+ this.pipelineService.updatePipeline(this.pipeline).subscribe(_msg => {
this.dialogRef.close();
});
}
diff --git a/ui/src/app/pipelines/dialog/pipeline-status/pipeline-status-dialog.component.ts b/ui/src/app/pipelines/dialog/pipeline-status/pipeline-status-dialog.component.ts
index 01933e07cd..d99b87d832 100644
--- a/ui/src/app/pipelines/dialog/pipeline-status/pipeline-status-dialog.component.ts
+++ b/ui/src/app/pipelines/dialog/pipeline-status/pipeline-status-dialog.component.ts
@@ -86,7 +86,7 @@ export class PipelineStatusDialogComponent implements OnInit {
this.pipelineOperationStatus = msg;
this.operationInProgress = false;
},
- error => {
+ _error => {
this.operationInProgress = false;
this.pipelineOperationStatus = {
title: this.translateService.instant('Network Error'),
@@ -105,7 +105,7 @@ export class PipelineStatusDialogComponent implements OnInit {
this.pipelineOperationStatus = msg;
this.operationInProgress = false;
},
- error => {
+ _error => {
this.operationInProgress = false;
this.pipelineOperationStatus = {
title: 'Network Error',
@@ -126,7 +126,7 @@ export class PipelineStatusDialogComponent implements OnInit {
this.pipelineOperationStatus = msg;
this.operationInProgress = false;
},
- error => {
+ _error => {
this.operationInProgress = false;
this.pipelineOperationStatus = {
title: this.translateService.instant('Network Error'),
diff --git a/ui/src/app/pipelines/dialog/start-all-pipelines/start-all-pipelines-dialog.component.ts b/ui/src/app/pipelines/dialog/start-all-pipelines/start-all-pipelines-dialog.component.ts
index 3d62cda9ce..87f931e397 100644
--- a/ui/src/app/pipelines/dialog/start-all-pipelines/start-all-pipelines-dialog.component.ts
+++ b/ui/src/app/pipelines/dialog/start-all-pipelines/start-all-pipelines-dialog.component.ts
@@ -116,7 +116,7 @@ export class StartAllPipelinesDialogComponent implements OnInit {
? this.successStr
: this.errorStr;
},
- data => {
+ _data => {
this.installationStatus[index].status = this.errorStr;
},
)
@@ -143,7 +143,7 @@ export class StartAllPipelinesDialogComponent implements OnInit {
? this.successStr
: this.errorStr;
},
- data => {
+ _data => {
this.installationStatus[index].status = this.errorStr;
},
)
diff --git a/ui/src/app/pipelines/pipelines.component.ts b/ui/src/app/pipelines/pipelines.component.ts
index 233cdc3302..c0fc480d2a 100644
--- a/ui/src/app/pipelines/pipelines.component.ts
+++ b/ui/src/app/pipelines/pipelines.component.ts
@@ -112,7 +112,7 @@ export class PipelinesComponent implements OnInit, OnDestroy {
this.breadcrumbService.updateBreadcrumb(
this.breadcrumbService.getRootLink(SpPipelineRoutes.BASE),
);
- this.user$ = this.currentUserService.user$.subscribe(user => {
+ this.user$ = this.currentUserService.user$.subscribe(_user => {
this.hasPipelineWritePrivileges = this.authService.hasRole(
UserPrivilege.PRIVILEGE_WRITE_PIPELINE,
);
diff --git a/ui/src/app/pipelines/services/pipeline-operations.service.ts b/ui/src/app/pipelines/services/pipeline-operations.service.ts
index ef6c64f037..1fab25370e 100644
--- a/ui/src/app/pipelines/services/pipeline-operations.service.ts
+++ b/ui/src/app/pipelines/services/pipeline-operations.service.ts
@@ -84,7 +84,7 @@ export class PipelineOperationsService {
toggleAction: string,
toggleRunningOperation?,
) {
- dialogRef.afterClosed().subscribe(msg => {
+ dialogRef.afterClosed().subscribe(_msg => {
refreshPipelinesEmitter.emit(true);
if (toggleRunningOperation) {
toggleRunningOperation(toggleAction);
@@ -147,7 +147,7 @@ export class PipelineOperationsService {
},
});
- dialogRef.afterClosed().subscribe(close => {
+ dialogRef.afterClosed().subscribe(_close => {
refreshPipelinesEmitter.emit(true);
});
}
diff --git a/ui/src/app/profile/components/general/general-profile-settings.component.ts b/ui/src/app/profile/components/general/general-profile-settings.component.ts
index d9ac4c7555..02e4b4e8ab 100644
--- a/ui/src/app/profile/components/general/general-profile-settings.component.ts
+++ b/ui/src/app/profile/components/general/general-profile-settings.component.ts
@@ -111,7 +111,7 @@ export class GeneralProfileSettingsComponent
updateAppearanceMode() {
this.profileService
.updateAppearanceMode(this.userData.username, this.darkMode)
- .subscribe(response => {
+ .subscribe(_response => {
this.darkModeChanged = true;
});
}
diff --git a/ui/src/app/profile/components/token/token-management-settings.component.ts b/ui/src/app/profile/components/token/token-management-settings.component.ts
index 754b09447a..43c734214d 100644
--- a/ui/src/app/profile/components/token/token-management-settings.component.ts
+++ b/ui/src/app/profile/components/token/token-management-settings.component.ts
@@ -136,7 +136,7 @@ export class TokenManagementSettingsComponent
this.userData.userApiTokens.splice(removeIndex, 1);
this.profileService
.updateUserProfile(this.userData)
- .subscribe(response => {
+ .subscribe(_response => {
this.receiveUserData();
});
}
diff --git a/ui/src/app/profile/dialog/change-email/change-email-dialog.component.ts b/ui/src/app/profile/dialog/change-email/change-email-dialog.component.ts
index 0ed0fb0f83..c21004f101 100644
--- a/ui/src/app/profile/dialog/change-email/change-email-dialog.component.ts
+++ b/ui/src/app/profile/dialog/change-email/change-email-dialog.component.ts
@@ -127,7 +127,7 @@ export class ChangeEmailDialogComponent implements OnInit {
this.clonedUser.username = this.email;
this.clonedUser.password = this.confirmPw;
this.userService.updateUsername(this.clonedUser).subscribe(
- result => {
+ _result => {
this.close(true);
},
error => {
diff --git a/ui/src/app/profile/dialog/change-password/change-password-dialog.component.ts b/ui/src/app/profile/dialog/change-password/change-password-dialog.component.ts
index a6ba119277..3f287619b6 100644
--- a/ui/src/app/profile/dialog/change-password/change-password-dialog.component.ts
+++ b/ui/src/app/profile/dialog/change-password/change-password-dialog.component.ts
@@ -122,7 +122,7 @@ export class ChangePasswordDialogComponent implements OnInit {
existingPassword: this.existingPw,
};
this.userService.updatePassword(this.user, req).subscribe(
- response => {
+ _response => {
this.close(true);
},
error => {
diff --git a/ui/src/app/services/auth.service.ts b/ui/src/app/services/auth.service.ts
index f086eebf7d..5b0329a691 100644
--- a/ui/src/app/services/auth.service.ts
+++ b/ui/src/app/services/auth.service.ts
@@ -126,7 +126,7 @@ export class AuthService {
observer.next(false);
}
},
- error => {
+ _error => {
observer.error();
},
),
diff --git a/ui/src/app/services/editor-autocompletion.service.ts b/ui/src/app/services/editor-autocompletion.service.ts
index 6c01a55a82..000f21c999 100644
--- a/ui/src/app/services/editor-autocompletion.service.ts
+++ b/ui/src/app/services/editor-autocompletion.service.ts
@@ -206,7 +206,7 @@ export class EditorAutocompletionService {
}
private createJavaScriptContextCompletions(
- monaco: typeof monacoType,
+ _monaco: typeof monacoType,
): JavaScriptCompletionTemplate[] {
return [
{
diff --git a/ui/src/main.ts b/ui/src/main.ts
index bfc5b28df7..eb45b71708 100644
--- a/ui/src/main.ts
+++ b/ui/src/main.ts
@@ -39,8 +39,7 @@ echarts.registerTransform(RoundValuesTransform);
echarts.registerTransform(MapTransform);
echarts.registerTransform(PieAggregateTransform);
-// required
-import * as $ from 'jquery';
+import 'jquery';
bootstrapApplication(AppComponent, {
...appConfig,