diff --git a/projects/aas-lib/src/lib/aas-lib.module.ts b/projects/aas-lib/src/lib/aas-lib.module.ts index 102087a1..a47379fe 100644 --- a/projects/aas-lib/src/lib/aas-lib.module.ts +++ b/projects/aas-lib/src/lib/aas-lib.module.ts @@ -39,6 +39,7 @@ import { messageTableReducer } from './message-table/massage-table.reducer'; import { MessageTableComponent } from './message-table/message-table.component'; import { SecuredImageComponent } from './secured-image/secured-image.component'; import { AASTableEffects } from './aas-table/aas-table.effects'; +import { ClipboardService } from './clipboard.service'; @NgModule({ declarations: [ @@ -92,6 +93,6 @@ import { AASTableEffects } from './aas-table/aas-table.effects'; MessageTableComponent, SecuredImageComponent, ], - providers: [], + providers: [ClipboardService], }) -export class AASLibModule {} \ No newline at end of file +export class AASLibModule {} diff --git a/projects/aas-lib/src/lib/aas-table/aas-table.actions.ts b/projects/aas-lib/src/lib/aas-table/aas-table.actions.ts index d23df515..b1919d6a 100644 --- a/projects/aas-lib/src/lib/aas-table/aas-table.actions.ts +++ b/projects/aas-lib/src/lib/aas-table/aas-table.actions.ts @@ -44,4 +44,4 @@ export const setSelections = createAction(AASTableActionType.SET_SELECTIONS, pro export const expandRow = createAction(AASTableActionType.EXPAND, props<{ row: AASTableRow }>()); -export const collapseRow = createAction(AASTableActionType.COLLAPSE, props<{ row: AASTableRow }>()); \ No newline at end of file +export const collapseRow = createAction(AASTableActionType.COLLAPSE, props<{ row: AASTableRow }>()); diff --git a/projects/aas-lib/src/lib/aas-table/aas-table.component.ts b/projects/aas-lib/src/lib/aas-table/aas-table.component.ts index 7c907b13..b20c75e4 100644 --- a/projects/aas-lib/src/lib/aas-table/aas-table.component.ts +++ b/projects/aas-lib/src/lib/aas-table/aas-table.component.ts @@ -128,6 +128,7 @@ export class AASTableComponent implements OnInit, OnChanges, OnDestroy { const query: AASQuery = { id: row.id, name: row.endpoint, + document: row.document, }; this.clipboard.set('AASQuery', query); @@ -155,4 +156,4 @@ export class AASTableComponent implements OnInit, OnChanges, OnDestroy { this.shiftKey = event.shiftKey; this.altKey = event.altKey; }; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/aas-table/aas-table.effects.ts b/projects/aas-lib/src/lib/aas-table/aas-table.effects.ts index 987980ae..f30ed6ad 100644 --- a/projects/aas-lib/src/lib/aas-table/aas-table.effects.ts +++ b/projects/aas-lib/src/lib/aas-table/aas-table.effects.ts @@ -162,4 +162,4 @@ export class AASTableEffects { row.nextSibling, ); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/aas-table/aas-table.reducer.ts b/projects/aas-lib/src/lib/aas-table/aas-table.reducer.ts index 2a82bd49..dacf735d 100644 --- a/projects/aas-lib/src/lib/aas-table/aas-table.reducer.ts +++ b/projects/aas-lib/src/lib/aas-table/aas-table.reducer.ts @@ -137,4 +137,4 @@ function collapseRow(state: AASTableState, row: AASTableRow): AASTableState { rows[index] = new AASTableRow(row.document, false, false, row.isLeaf, row.level, row.firstChild, row.nextSibling); return { ...state, rows }; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/aas-table/aas-table.selectors.ts b/projects/aas-lib/src/lib/aas-table/aas-table.selectors.ts index 2ab4017c..b8d92695 100644 --- a/projects/aas-lib/src/lib/aas-table/aas-table.selectors.ts +++ b/projects/aas-lib/src/lib/aas-table/aas-table.selectors.ts @@ -29,4 +29,4 @@ export const selectEverySelected = createSelector(getRows, (rows: AASTableRow[]) export const selectRows = createSelector(getState, state => { return state.rows; -}); \ No newline at end of file +}); diff --git a/projects/aas-lib/src/lib/aas-table/aas-table.state.ts b/projects/aas-lib/src/lib/aas-table/aas-table.state.ts index 085d0b79..ec9549f8 100644 --- a/projects/aas-lib/src/lib/aas-table/aas-table.state.ts +++ b/projects/aas-lib/src/lib/aas-table/aas-table.state.ts @@ -93,4 +93,4 @@ export interface AASTableState { export interface AASTableFeatureState { aasTable: AASTableState; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/aas-tree/aas-tree-api.service.ts b/projects/aas-lib/src/lib/aas-tree/aas-tree-api.service.ts index f4cf9bb5..31e4c754 100644 --- a/projects/aas-lib/src/lib/aas-tree/aas-tree-api.service.ts +++ b/projects/aas-lib/src/lib/aas-tree/aas-tree-api.service.ts @@ -52,4 +52,4 @@ export class AASTreeApiService { }); }); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/aas-tree/aas-tree-search.ts b/projects/aas-lib/src/lib/aas-tree/aas-tree-search.ts index f0ffdfd3..68d7ee8b 100644 --- a/projects/aas-lib/src/lib/aas-tree/aas-tree-search.ts +++ b/projects/aas-lib/src/lib/aas-tree/aas-tree-search.ts @@ -397,4 +397,4 @@ export class AASTreeSearch { return false; } } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/aas-tree/aas-tree.actions.ts b/projects/aas-lib/src/lib/aas-tree/aas-tree.actions.ts index a9053e38..fc99f78c 100644 --- a/projects/aas-lib/src/lib/aas-tree/aas-tree.actions.ts +++ b/projects/aas-lib/src/lib/aas-tree/aas-tree.actions.ts @@ -48,4 +48,4 @@ export const setMatchIndex = createAction(AASTreeActionType.SET_MATCH_INDEX, pro export const setSelectedElements = createAction( AASTreeActionType.SET_SELECTED_ELEMENTS, props<{ elements: aas.Referable[] }>(), -); \ No newline at end of file +); diff --git a/projects/aas-lib/src/lib/aas-tree/aas-tree.selectors.ts b/projects/aas-lib/src/lib/aas-tree/aas-tree.selectors.ts index 01618f67..5d4c40db 100644 --- a/projects/aas-lib/src/lib/aas-tree/aas-tree.selectors.ts +++ b/projects/aas-lib/src/lib/aas-tree/aas-tree.selectors.ts @@ -44,4 +44,4 @@ export const selectSomeSelected = createSelector( export const selectEverySelected = createSelector(getRows, rows => rows.length > 0 && rows.every(row => row.selected)); -export const selectSelectedRows = createSelector(getRows, rows => rows.filter(row => row.selected)); \ No newline at end of file +export const selectSelectedRows = createSelector(getRows, rows => rows.filter(row => row.selected)); diff --git a/projects/aas-lib/src/lib/aas-tree/operation-call-form/operation-call-form.component.ts b/projects/aas-lib/src/lib/aas-tree/operation-call-form/operation-call-form.component.ts index cc4cab92..71aa48e0 100644 --- a/projects/aas-lib/src/lib/aas-tree/operation-call-form/operation-call-form.component.ts +++ b/projects/aas-lib/src/lib/aas-tree/operation-call-form/operation-call-form.component.ts @@ -177,4 +177,4 @@ export class OperationCallFormComponent { } } } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/aas-tree/show-image-form/show-image-form.component.ts b/projects/aas-lib/src/lib/aas-tree/show-image-form/show-image-form.component.ts index c09c79b8..54b42109 100644 --- a/projects/aas-lib/src/lib/aas-tree/show-image-form/show-image-form.component.ts +++ b/projects/aas-lib/src/lib/aas-tree/show-image-form/show-image-form.component.ts @@ -28,4 +28,4 @@ export class ShowImageFormComponent { public close(): void { this._modal.close(); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/aas-tree/show-video-form/show-video-form.component.ts b/projects/aas-lib/src/lib/aas-tree/show-video-form/show-video-form.component.ts index cbf324e7..e41f25b7 100644 --- a/projects/aas-lib/src/lib/aas-tree/show-video-form/show-video-form.component.ts +++ b/projects/aas-lib/src/lib/aas-tree/show-video-form/show-video-form.component.ts @@ -28,4 +28,4 @@ export class ShowVideoFormComponent { public close(): void { this._modal.close(); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/auth/auth-api.service.ts b/projects/aas-lib/src/lib/auth/auth-api.service.ts index 8d647124..007b2173 100644 --- a/projects/aas-lib/src/lib/auth/auth-api.service.ts +++ b/projects/aas-lib/src/lib/auth/auth-api.service.ts @@ -53,4 +53,4 @@ export class AuthApiService { public deleteCookie(id: string, name: string): Observable { return this.http.delete(`/api/v1/users/${encodeBase64Url(id)}/cookies/${name}`); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/auth/auth.component.ts b/projects/aas-lib/src/lib/auth/auth.component.ts index 80359bec..daa48ec9 100644 --- a/projects/aas-lib/src/lib/auth/auth.component.ts +++ b/projects/aas-lib/src/lib/auth/auth.component.ts @@ -44,4 +44,4 @@ export class AuthComponent { public updateUserProfile(): void { this.auth.updateUserProfile().subscribe({ error: error => this.notify.error(error) }); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/auth/auth.interceptor.ts b/projects/aas-lib/src/lib/auth/auth.interceptor.ts index 07be3d88..66e1d56d 100644 --- a/projects/aas-lib/src/lib/auth/auth.interceptor.ts +++ b/projects/aas-lib/src/lib/auth/auth.interceptor.ts @@ -25,4 +25,4 @@ export class AuthInterceptor implements HttpInterceptor { return next.handle(req); } } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/auth/auth.service.ts b/projects/aas-lib/src/lib/auth/auth.service.ts index 1e5f0380..08dcedbe 100644 --- a/projects/aas-lib/src/lib/auth/auth.service.ts +++ b/projects/aas-lib/src/lib/auth/auth.service.ts @@ -332,4 +332,4 @@ export class AuthService { }); } } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/auth/login-form/login-form.component.ts b/projects/aas-lib/src/lib/auth/login-form/login-form.component.ts index df1f0ccd..41d9dd4b 100644 --- a/projects/aas-lib/src/lib/auth/login-form/login-form.component.ts +++ b/projects/aas-lib/src/lib/auth/login-form/login-form.component.ts @@ -118,4 +118,4 @@ export class LoginFormComponent { private clearMessages(): void { this.messages = []; } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/auth/profile-form/profile-form.component.ts b/projects/aas-lib/src/lib/auth/profile-form/profile-form.component.ts index e63f5ac4..0e3a7d72 100644 --- a/projects/aas-lib/src/lib/auth/profile-form/profile-form.component.ts +++ b/projects/aas-lib/src/lib/auth/profile-form/profile-form.component.ts @@ -108,4 +108,4 @@ export class ProfileFormComponent { private clearMessages(): void { this.messages = []; } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/auth/register-form/register-form.component.ts b/projects/aas-lib/src/lib/auth/register-form/register-form.component.ts index 7e5d0566..4bb83857 100644 --- a/projects/aas-lib/src/lib/auth/register-form/register-form.component.ts +++ b/projects/aas-lib/src/lib/auth/register-form/register-form.component.ts @@ -104,4 +104,4 @@ export class RegisterFormComponent { private clearMessages(): void { this.messages = []; } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/clipboard.service.ts b/projects/aas-lib/src/lib/clipboard.service.ts index b152a3aa..3adb8015 100644 --- a/projects/aas-lib/src/lib/clipboard.service.ts +++ b/projects/aas-lib/src/lib/clipboard.service.ts @@ -33,4 +33,4 @@ export class ClipboardService { this.data.clear(); } } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/convert.ts b/projects/aas-lib/src/lib/convert.ts index fd7a2c77..9485b803 100644 --- a/projects/aas-lib/src/lib/convert.ts +++ b/projects/aas-lib/src/lib/convert.ts @@ -171,4 +171,4 @@ export function convertBlobToBase64Async(blob: Blob): Promise { reader.onerror = reject; reader.readAsDataURL(blob); }); -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.actions.ts b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.actions.ts index 9881d2ac..b0db8ef4 100644 --- a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.actions.ts +++ b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.actions.ts @@ -22,4 +22,4 @@ export const initialize = createAction( items: GeneralItem[]; feedbacks: FeedbackItem[]; }>(), -); \ No newline at end of file +); diff --git a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.component.ts b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.component.ts index 80b71fd2..8c0b70da 100644 --- a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.component.ts +++ b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.component.ts @@ -236,4 +236,4 @@ export class CustomerFeedbackComponent implements SubmodelTemplate, OnInit, OnCh private findProperty(element: aas.SubmodelElementCollection, name: string): aas.Property | undefined { return element.value?.find(child => child.modelType === 'Property' && child.idShort === name) as aas.Property; } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.reducer.ts b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.reducer.ts index c92b6a0e..24f95b3c 100644 --- a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.reducer.ts +++ b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.reducer.ts @@ -43,4 +43,4 @@ function initialize( feedbacks: feedbacks, error: null, }; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.selectors.ts b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.selectors.ts index 74bf09d8..20461fc3 100644 --- a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.selectors.ts +++ b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.selectors.ts @@ -11,4 +11,4 @@ import { CustomerFeedbackFeatureState } from './customer-feedback.state'; const getCustomerFeedback = (state: CustomerFeedbackFeatureState) => state.customerFeedback; -export const selectCustomerFeedback = createSelector(getCustomerFeedback, customerFeedback => customerFeedback); \ No newline at end of file +export const selectCustomerFeedback = createSelector(getCustomerFeedback, customerFeedback => customerFeedback); diff --git a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.state.ts b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.state.ts index 341f51db..89db4347 100644 --- a/projects/aas-lib/src/lib/customer-feedback/customer-feedback.state.ts +++ b/projects/aas-lib/src/lib/customer-feedback/customer-feedback.state.ts @@ -32,4 +32,4 @@ export interface CustomerFeedbackState { export interface CustomerFeedbackFeatureState { customerFeedback: CustomerFeedbackState; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/digital-nameplate/digital-nameplate.component.ts b/projects/aas-lib/src/lib/digital-nameplate/digital-nameplate.component.ts index db536d56..70c38247 100644 --- a/projects/aas-lib/src/lib/digital-nameplate/digital-nameplate.component.ts +++ b/projects/aas-lib/src/lib/digital-nameplate/digital-nameplate.component.ts @@ -84,4 +84,4 @@ export class DigitalNameplateComponent implements SubmodelTemplate, OnChanges { return ''; } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/document.service.ts b/projects/aas-lib/src/lib/document.service.ts index 6024645b..9a7f08f7 100644 --- a/projects/aas-lib/src/lib/document.service.ts +++ b/projects/aas-lib/src/lib/document.service.ts @@ -19,4 +19,4 @@ export class DocumentService { public createElement(tagName: string, options?: ElementCreationOptions): HTMLElement { return document.createElement(tagName, options); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/download.service.ts b/projects/aas-lib/src/lib/download.service.ts index 0c4e5354..b4d87401 100644 --- a/projects/aas-lib/src/lib/download.service.ts +++ b/projects/aas-lib/src/lib/download.service.ts @@ -84,4 +84,4 @@ export class DownloadService { observe: 'events', }); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/library-table/library-table.component.ts b/projects/aas-lib/src/lib/library-table/library-table.component.ts index 58353d62..8fb2f0b0 100644 --- a/projects/aas-lib/src/lib/library-table/library-table.component.ts +++ b/projects/aas-lib/src/lib/library-table/library-table.component.ts @@ -48,4 +48,4 @@ export class LibraryTableComponent implements OnChanges { this.libraries = this.collection.map((library, i) => ({ id: i + 1, ...library })); } } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/localize/culture-info.ts b/projects/aas-lib/src/lib/localize/culture-info.ts index 383831b0..4bdbae10 100644 --- a/projects/aas-lib/src/lib/localize/culture-info.ts +++ b/projects/aas-lib/src/lib/localize/culture-info.ts @@ -9,4 +9,4 @@ export interface CultureInfo { localeId: string; name: string; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/localize/localize.component.ts b/projects/aas-lib/src/lib/localize/localize.component.ts index 36c646f0..b68ae641 100644 --- a/projects/aas-lib/src/lib/localize/localize.component.ts +++ b/projects/aas-lib/src/lib/localize/localize.component.ts @@ -89,4 +89,4 @@ export class LocalizeComponent implements OnInit, OnChanges, OnDestroy { localeId = localeId?.toLocaleLowerCase(); return cultures.find(item => item.localeId.toLocaleLowerCase() === localeId); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/max-length.pipe.ts b/projects/aas-lib/src/lib/max-length.pipe.ts index 0d830f3f..e27d6340 100644 --- a/projects/aas-lib/src/lib/max-length.pipe.ts +++ b/projects/aas-lib/src/lib/max-length.pipe.ts @@ -26,4 +26,4 @@ export class MaxLengthPipe implements PipeTransform { const end = value.slice(value.length - m2 + 2); return start + '...' + end; } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/message-table/massage-table.reducer.ts b/projects/aas-lib/src/lib/message-table/massage-table.reducer.ts index 1701c51a..12bd3ea3 100644 --- a/projects/aas-lib/src/lib/message-table/massage-table.reducer.ts +++ b/projects/aas-lib/src/lib/message-table/massage-table.reducer.ts @@ -42,4 +42,4 @@ function toggleShowInfo(state: MessageTableState): MessageTableState { function toggleShowWarning(state: MessageTableState): MessageTableState { return { ...state, showWarning: !state.showWarning }; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/message-table/message-table.actions.ts b/projects/aas-lib/src/lib/message-table/message-table.actions.ts index fcea28a5..3fc94b26 100644 --- a/projects/aas-lib/src/lib/message-table/message-table.actions.ts +++ b/projects/aas-lib/src/lib/message-table/message-table.actions.ts @@ -24,4 +24,4 @@ export const toggleShowInfo = createAction(MessageTableActionType.TOGGLE_SHOW_IN export const toggleShowWarning = createAction(MessageTableActionType.TOGGLE_SHOW_WARNING); -export const toggleShowError = createAction(MessageTableActionType.TOGGLE_SHOW_ERROR); \ No newline at end of file +export const toggleShowError = createAction(MessageTableActionType.TOGGLE_SHOW_ERROR); diff --git a/projects/aas-lib/src/lib/message-table/message-table.component.ts b/projects/aas-lib/src/lib/message-table/message-table.component.ts index b5e715ad..50f4e205 100644 --- a/projects/aas-lib/src/lib/message-table/message-table.component.ts +++ b/projects/aas-lib/src/lib/message-table/message-table.component.ts @@ -182,4 +182,4 @@ export class MessageTableComponent implements OnInit, OnChanges, OnDestroy { return 0; } } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/message-table/message-table.selectors.ts b/projects/aas-lib/src/lib/message-table/message-table.selectors.ts index 55fe68f1..262f7020 100644 --- a/projects/aas-lib/src/lib/message-table/message-table.selectors.ts +++ b/projects/aas-lib/src/lib/message-table/message-table.selectors.ts @@ -11,4 +11,4 @@ import { MessageTableFeatureState } from './message-table.state'; const getState = (state: MessageTableFeatureState) => state.messageTable; -export const selectState = createSelector(getState, state => state); \ No newline at end of file +export const selectState = createSelector(getState, state => state); diff --git a/projects/aas-lib/src/lib/message-table/message-table.state.ts b/projects/aas-lib/src/lib/message-table/message-table.state.ts index d5e9780f..b1e7129b 100644 --- a/projects/aas-lib/src/lib/message-table/message-table.state.ts +++ b/projects/aas-lib/src/lib/message-table/message-table.state.ts @@ -16,4 +16,4 @@ export interface MessageTableState { export interface MessageTableFeatureState { messageTable: MessageTableState; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/notify/notify.component.ts b/projects/aas-lib/src/lib/notify/notify.component.ts index 6f94c7d5..6f3729ee 100644 --- a/projects/aas-lib/src/lib/notify/notify.component.ts +++ b/projects/aas-lib/src/lib/notify/notify.component.ts @@ -29,4 +29,4 @@ export class NotifyComponent implements OnInit { public ngOnInit(): void { this.notify.clear(); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/notify/notify.service.ts b/projects/aas-lib/src/lib/notify/notify.service.ts index 2ca47218..cda45206 100644 --- a/projects/aas-lib/src/lib/notify/notify.service.ts +++ b/projects/aas-lib/src/lib/notify/notify.service.ts @@ -100,4 +100,4 @@ export class NotifyService { } } } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/score/score.component.ts b/projects/aas-lib/src/lib/score/score.component.ts index 782e4e4a..e8c9f786 100644 --- a/projects/aas-lib/src/lib/score/score.component.ts +++ b/projects/aas-lib/src/lib/score/score.component.ts @@ -32,4 +32,4 @@ export class ScoreComponent implements OnChanges { } } } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/secured-image/secured-image.component.ts b/projects/aas-lib/src/lib/secured-image/secured-image.component.ts index a2dc7bfe..8dde7e3d 100644 --- a/projects/aas-lib/src/lib/secured-image/secured-image.component.ts +++ b/projects/aas-lib/src/lib/secured-image/secured-image.component.ts @@ -57,4 +57,4 @@ export class SecuredImageComponent implements OnChanges { .get(url, { responseType: 'blob' }) .pipe(map(e => this.domSanitizer.bypassSecurityTrustResourceUrl(URL.createObjectURL(e)))); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/sortable-header.directive.ts b/projects/aas-lib/src/lib/sortable-header.directive.ts index a21dffb9..46ed9331 100644 --- a/projects/aas-lib/src/lib/sortable-header.directive.ts +++ b/projects/aas-lib/src/lib/sortable-header.directive.ts @@ -41,4 +41,4 @@ export class SortableHeaderDirective { this.direction = rotate[this.direction]; this.sort.emit({ column: this.sortable, direction: this.direction }); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/types/aas-query-params.ts b/projects/aas-lib/src/lib/types/aas-query-params.ts index 01c119c8..0193afc5 100644 --- a/projects/aas-lib/src/lib/types/aas-query-params.ts +++ b/projects/aas-lib/src/lib/types/aas-query-params.ts @@ -6,6 +6,8 @@ * *****************************************************************************/ +import { AASDocument } from 'common'; + export interface AASQueryParams { format?: string; id?: string; @@ -15,4 +17,5 @@ export interface AASQuery { id: string; name?: string; search?: string; -} \ No newline at end of file + document?: AASDocument; +} diff --git a/projects/aas-lib/src/lib/types/environment.ts b/projects/aas-lib/src/lib/types/environment.ts index 56221d68..e20a9feb 100644 --- a/projects/aas-lib/src/lib/types/environment.ts +++ b/projects/aas-lib/src/lib/types/environment.ts @@ -12,4 +12,4 @@ export interface Environment { version: string; homepage: string; author: string; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/types/errors.ts b/projects/aas-lib/src/lib/types/errors.ts index 2991c96b..69f6f4be 100644 --- a/projects/aas-lib/src/lib/types/errors.ts +++ b/projects/aas-lib/src/lib/types/errors.ts @@ -17,4 +17,4 @@ export const ERRORS = { PASSWORDS_NOT_EQUAL: 'ERROR_PASSWORDS_NOT_EQUAL', DASHBOARD_PAGE_ALREADY_EXISTS: 'ERROR_DASHBOARD_PAGE_ALREADY_EXISTS', UNAUTHORIZED_ACCESS: 'ERROR_UNAUTHORIZED_ACCESS', -}; \ No newline at end of file +}; diff --git a/projects/aas-lib/src/lib/types/info.ts b/projects/aas-lib/src/lib/types/info.ts index 9e5b98ec..137e5406 100644 --- a/projects/aas-lib/src/lib/types/info.ts +++ b/projects/aas-lib/src/lib/types/info.ts @@ -8,4 +8,4 @@ export const INFO = { NEW_PASSWORD_SENT: 'INFO_NEW_PASSWORD_SENT', -}; \ No newline at end of file +}; diff --git a/projects/aas-lib/src/lib/types/message-entry.ts b/projects/aas-lib/src/lib/types/message-entry.ts index 9e8f23cc..a607bdb3 100644 --- a/projects/aas-lib/src/lib/types/message-entry.ts +++ b/projects/aas-lib/src/lib/types/message-entry.ts @@ -12,4 +12,4 @@ export interface MessageEntry { delay: number; autohide: boolean; classname?: string; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/types/online-state.ts b/projects/aas-lib/src/lib/types/online-state.ts index 0276c7bd..94c7d600 100644 --- a/projects/aas-lib/src/lib/types/online-state.ts +++ b/projects/aas-lib/src/lib/types/online-state.ts @@ -6,4 +6,4 @@ * *****************************************************************************/ -export type OnlineState = 'offline' | 'online'; \ No newline at end of file +export type OnlineState = 'offline' | 'online'; diff --git a/projects/aas-lib/src/lib/types/view-mode.ts b/projects/aas-lib/src/lib/types/view-mode.ts index 9f567d60..b2ed4803 100644 --- a/projects/aas-lib/src/lib/types/view-mode.ts +++ b/projects/aas-lib/src/lib/types/view-mode.ts @@ -10,4 +10,4 @@ export enum ViewMode { Undefined = '', List = 'list', Tree = 'tree', -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/types/view-query-params.ts b/projects/aas-lib/src/lib/types/view-query-params.ts index 4594fd6e..bee6cf24 100644 --- a/projects/aas-lib/src/lib/types/view-query-params.ts +++ b/projects/aas-lib/src/lib/types/view-query-params.ts @@ -14,4 +14,4 @@ export interface ViewQueryParams { export interface ViewQuery { descriptor: SubmodelViewDescriptor; -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/web-socket-factory.service.ts b/projects/aas-lib/src/lib/web-socket-factory.service.ts index 0e046185..6f3fe1a6 100644 --- a/projects/aas-lib/src/lib/web-socket-factory.service.ts +++ b/projects/aas-lib/src/lib/web-socket-factory.service.ts @@ -27,4 +27,4 @@ export class WebSocketFactoryService { return webSocket(url); } -} \ No newline at end of file +} diff --git a/projects/aas-lib/src/lib/window.service.ts b/projects/aas-lib/src/lib/window.service.ts index ac7676bf..2dec09bc 100644 --- a/projects/aas-lib/src/lib/window.service.ts +++ b/projects/aas-lib/src/lib/window.service.ts @@ -67,4 +67,4 @@ export class WindowService { ): void { window.removeEventListener(type, listener, options); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/aas/aas.actions.ts b/projects/aas-portal/src/app/aas/aas.actions.ts index 5421eac8..b2c86041 100644 --- a/projects/aas-portal/src/app/aas/aas.actions.ts +++ b/projects/aas-portal/src/app/aas/aas.actions.ts @@ -40,6 +40,4 @@ export const setTemplateStorage = createAction( export const resetModified = createAction(AASActionType.RESET_MODIFIED, props<{ document: AASDocument }>()); export const setSearch = createAction(AASActionType.SET_SEARCH, props<{ search: string }>()); -export const setState = createAction( - AASActionType.SET_STATE, - props<{ value: 'offline' | 'online' }>()); \ No newline at end of file +export const setState = createAction(AASActionType.SET_STATE, props<{ value: 'offline' | 'online' }>()); diff --git a/projects/aas-portal/src/app/aas/aas.component.ts b/projects/aas-portal/src/app/aas/aas.component.ts index a44aedbf..2f40c63b 100644 --- a/projects/aas-portal/src/app/aas/aas.component.ts +++ b/projects/aas-portal/src/app/aas/aas.component.ts @@ -169,7 +169,11 @@ export class AASComponent implements OnInit, OnDestroy, AfterViewInit { } if (query) { - this.store.dispatch(AASActions.getDocument({ id: query.id, name: query.name })); + if (!query.document || !query.document.content) { + this.store.dispatch(AASActions.getDocument({ id: query.id, name: query.name })); + } else { + this.store.dispatch(AASActions.setDocument({ document: query.document })); + } } this.subscription.add( diff --git a/projects/aas-portal/src/app/aas/aas.effects.ts b/projects/aas-portal/src/app/aas/aas.effects.ts index 7c0db738..3c176f87 100644 --- a/projects/aas-portal/src/app/aas/aas.effects.ts +++ b/projects/aas-portal/src/app/aas/aas.effects.ts @@ -30,4 +30,4 @@ export class AASEffects { ), ); }); -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/aas/can-activate-aas.guard.ts b/projects/aas-portal/src/app/aas/can-activate-aas.guard.ts index d09eb3b3..9ad19b28 100644 --- a/projects/aas-portal/src/app/aas/can-activate-aas.guard.ts +++ b/projects/aas-portal/src/app/aas/can-activate-aas.guard.ts @@ -31,4 +31,4 @@ export class CanActivateAAS { return this.store.select(AASSelectors.selectHasDocument); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/aas/command-handler.service.ts b/projects/aas-portal/src/app/aas/command-handler.service.ts index de468610..261df29b 100644 --- a/projects/aas-portal/src/app/aas/command-handler.service.ts +++ b/projects/aas-portal/src/app/aas/command-handler.service.ts @@ -69,4 +69,4 @@ export class CommandHandlerService { this.commands = []; this.position = -1; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/aas/commands/delete-command.ts b/projects/aas-portal/src/app/aas/commands/delete-command.ts index 2cdd872f..fc38584b 100644 --- a/projects/aas-portal/src/app/aas/commands/delete-command.ts +++ b/projects/aas-portal/src/app/aas/commands/delete-command.ts @@ -112,4 +112,4 @@ export class DeleteCommand extends Command { protected onAbort(): void { noop(); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/aas/commands/new-element-command.ts b/projects/aas-portal/src/app/aas/commands/new-element-command.ts index 1e89e668..d0e7f06b 100644 --- a/projects/aas-portal/src/app/aas/commands/new-element-command.ts +++ b/projects/aas-portal/src/app/aas/commands/new-element-command.ts @@ -154,4 +154,4 @@ export class NewElementCommand extends Command { return children; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/aas/commands/update-element-command.ts b/projects/aas-portal/src/app/aas/commands/update-element-command.ts index 323e95ad..62b640a8 100644 --- a/projects/aas-portal/src/app/aas/commands/update-element-command.ts +++ b/projects/aas-portal/src/app/aas/commands/update-element-command.ts @@ -73,4 +73,4 @@ export class UpdateElementCommand extends Command { return children; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/aas/edit-element-form/edit-element-form.component.ts b/projects/aas-portal/src/app/aas/edit-element-form/edit-element-form.component.ts index aa65095b..4e7ca01e 100644 --- a/projects/aas-portal/src/app/aas/edit-element-form/edit-element-form.component.ts +++ b/projects/aas-portal/src/app/aas/edit-element-form/edit-element-form.component.ts @@ -307,4 +307,4 @@ export class EditElementFormComponent { private clearMessages() { this.messages = []; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/aas/new-element-form/new-element-form.component.ts b/projects/aas-portal/src/app/aas/new-element-form/new-element-form.component.ts index 2bd0beba..44f3911b 100644 --- a/projects/aas-portal/src/app/aas/new-element-form/new-element-form.component.ts +++ b/projects/aas-portal/src/app/aas/new-element-form/new-element-form.component.ts @@ -148,4 +148,4 @@ export class NewElementFormComponent { private clearMessages(): void { this.messages = []; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/about/about.component.ts b/projects/aas-portal/src/app/about/about.component.ts index 24187374..504924bf 100644 --- a/projects/aas-portal/src/app/about/about.component.ts +++ b/projects/aas-portal/src/app/about/about.component.ts @@ -62,4 +62,4 @@ export class AboutComponent implements OnInit, OnDestroy, AfterViewInit { public ngOnDestroy(): void { this.toolbar.clear(); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/about/server-api.service.ts b/projects/aas-portal/src/app/about/server-api.service.ts index 09c2d08f..18d481be 100644 --- a/projects/aas-portal/src/app/about/server-api.service.ts +++ b/projects/aas-portal/src/app/about/server-api.service.ts @@ -25,4 +25,4 @@ export class ServerApiService { public getMessages(): Observable { return this.http.get('/api/v1/app/messages'); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/app-routing.module.ts b/projects/aas-portal/src/app/app-routing.module.ts index 32919c0a..511b4dcc 100644 --- a/projects/aas-portal/src/app/app-routing.module.ts +++ b/projects/aas-portal/src/app/app-routing.module.ts @@ -29,4 +29,4 @@ const routes: Routes = [ exports: [RouterModule], providers: [CanActivateAAS], }) -export class AppRoutingModule {} \ No newline at end of file +export class AppRoutingModule {} diff --git a/projects/aas-portal/src/app/configuration.ts b/projects/aas-portal/src/app/configuration.ts index 0db88fad..61d6b5bd 100644 --- a/projects/aas-portal/src/app/configuration.ts +++ b/projects/aas-portal/src/app/configuration.ts @@ -42,4 +42,4 @@ export function getEndpointType(url: string | URL): AASEndpointType { default: throw new Error(`Protocol "${url.protocol}" is not supported.`); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/add-new-page-command.ts b/projects/aas-portal/src/app/dashboard/commands/add-new-page-command.ts index 92dc5aa5..ed39485e 100644 --- a/projects/aas-portal/src/app/dashboard/commands/add-new-page-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/add-new-page-command.ts @@ -22,4 +22,4 @@ export class AddNewPageCommand extends DashboardCommand { protected executing(): void { this.dashboard.addNew(this.pageName); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/dashboard-command.ts b/projects/aas-portal/src/app/dashboard/commands/dashboard-command.ts index 3413b97a..c4b40aee 100644 --- a/projects/aas-portal/src/app/dashboard/commands/dashboard-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/dashboard-command.ts @@ -80,4 +80,4 @@ export abstract class DashboardCommand extends Command { return grid; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/delete-item-command.ts b/projects/aas-portal/src/app/dashboard/commands/delete-item-command.ts index b6a2e9a9..fe93d66c 100644 --- a/projects/aas-portal/src/app/dashboard/commands/delete-item-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/delete-item-command.ts @@ -29,4 +29,4 @@ export class DeleteItemCommand extends DashboardCommand { this.validateItems(grid); this.dashboard.update(page, this.getRows(grid)); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/delete-page-command.ts b/projects/aas-portal/src/app/dashboard/commands/delete-page-command.ts index 3dabcdbc..cafeee95 100644 --- a/projects/aas-portal/src/app/dashboard/commands/delete-page-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/delete-page-command.ts @@ -23,4 +23,4 @@ export class DeletePageCommand extends DashboardCommand { protected executing(): void { this.dashboard.delete(this.page); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/move-down-command.ts b/projects/aas-portal/src/app/dashboard/commands/move-down-command.ts index 3f870882..c7a409a7 100644 --- a/projects/aas-portal/src/app/dashboard/commands/move-down-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/move-down-command.ts @@ -53,4 +53,4 @@ export class MoveDownCommand extends DashboardCommand { this.dashboard.update(page, rows); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/move-left-command.ts b/projects/aas-portal/src/app/dashboard/commands/move-left-command.ts index b99acfdb..776cda92 100644 --- a/projects/aas-portal/src/app/dashboard/commands/move-left-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/move-left-command.ts @@ -41,4 +41,4 @@ export class MoveLeftCommand extends DashboardCommand { this.dashboard.update(page, rows); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/move-right-command.ts b/projects/aas-portal/src/app/dashboard/commands/move-right-command.ts index cd54eeb2..d7310ec2 100644 --- a/projects/aas-portal/src/app/dashboard/commands/move-right-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/move-right-command.ts @@ -41,4 +41,4 @@ export class MoveRightCommand extends DashboardCommand { this.dashboard.update(page, rows); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/move-up-command.ts b/projects/aas-portal/src/app/dashboard/commands/move-up-command.ts index e7fdf281..cc13a617 100644 --- a/projects/aas-portal/src/app/dashboard/commands/move-up-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/move-up-command.ts @@ -53,4 +53,4 @@ export class MoveUpCommand extends DashboardCommand { this.dashboard.update(page, rows); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/rename-page-command.ts b/projects/aas-portal/src/app/dashboard/commands/rename-page-command.ts index 6544775c..ba9495f4 100644 --- a/projects/aas-portal/src/app/dashboard/commands/rename-page-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/rename-page-command.ts @@ -24,4 +24,4 @@ export class RenamePageCommand extends DashboardCommand { protected executing(): void { this.dashboard.rename(this.page, this.newName); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/set-chart-type-command.ts b/projects/aas-portal/src/app/dashboard/commands/set-chart-type-command.ts index af707a15..c8ff701e 100644 --- a/projects/aas-portal/src/app/dashboard/commands/set-chart-type-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/set-chart-type-command.ts @@ -34,4 +34,4 @@ export class SetChartTypeCommand extends DashboardCommand { throw new Error('Not implemented.'); } } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/set-color-command.ts b/projects/aas-portal/src/app/dashboard/commands/set-color-command.ts index f75e4255..4a022178 100644 --- a/projects/aas-portal/src/app/dashboard/commands/set-color-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/set-color-command.ts @@ -35,4 +35,4 @@ export class SetColorCommand extends DashboardCommand { throw new Error('Not implemented.'); } } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/commands/set-min-max-command.ts b/projects/aas-portal/src/app/dashboard/commands/set-min-max-command.ts index f93f0f1a..571b7992 100644 --- a/projects/aas-portal/src/app/dashboard/commands/set-min-max-command.ts +++ b/projects/aas-portal/src/app/dashboard/commands/set-min-max-command.ts @@ -37,4 +37,4 @@ export class SetMinMaxCommand extends DashboardCommand { this.dashboard.update(page); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/dashboard-api.service.ts b/projects/aas-portal/src/app/dashboard/dashboard-api.service.ts index 8cdf9020..38491c99 100644 --- a/projects/aas-portal/src/app/dashboard/dashboard-api.service.ts +++ b/projects/aas-portal/src/app/dashboard/dashboard-api.service.ts @@ -19,4 +19,4 @@ export class DashboardApiService { public getBlobValue(url: string): Observable { return this.http.get(url); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/dashboard.actions.ts b/projects/aas-portal/src/app/dashboard/dashboard.actions.ts index 273ed767..5671be4e 100644 --- a/projects/aas-portal/src/app/dashboard/dashboard.actions.ts +++ b/projects/aas-portal/src/app/dashboard/dashboard.actions.ts @@ -40,4 +40,4 @@ export const deletePage = createAction(DashboardActionType.DELETE_PAGE, props<{ export const renamePage = createAction(DashboardActionType.RENAME_PAGE, props<{ page: DashboardPage; name: string }>()); -export const setState = createAction(DashboardActionType.SET_STATE, props<{ state: DashboardState }>()); \ No newline at end of file +export const setState = createAction(DashboardActionType.SET_STATE, props<{ state: DashboardState }>()); diff --git a/projects/aas-portal/src/app/dashboard/dashboard.component.ts b/projects/aas-portal/src/app/dashboard/dashboard.component.ts index 4e61a91f..0e2ac15e 100644 --- a/projects/aas-portal/src/app/dashboard/dashboard.component.ts +++ b/projects/aas-portal/src/app/dashboard/dashboard.component.ts @@ -888,4 +888,4 @@ export class DashboardComponent implements OnInit, OnDestroy, AfterViewInit, Aft private isChart(value?: DashboardItem | null): value is DashboardChart { return value?.type === DashboardItemType.Chart; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/dashboard.reducer.ts b/projects/aas-portal/src/app/dashboard/dashboard.reducer.ts index 8878c0c7..e7e526d8 100644 --- a/projects/aas-portal/src/app/dashboard/dashboard.reducer.ts +++ b/projects/aas-portal/src/app/dashboard/dashboard.reducer.ts @@ -113,4 +113,4 @@ function addNewPage(state: DashboardState, name?: string): DashboardState { function setState(state: DashboardState): DashboardState { return state; -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/dashboard.selectors.ts b/projects/aas-portal/src/app/dashboard/dashboard.selectors.ts index 7f43eb91..77d9af30 100644 --- a/projects/aas-portal/src/app/dashboard/dashboard.selectors.ts +++ b/projects/aas-portal/src/app/dashboard/dashboard.selectors.ts @@ -28,4 +28,4 @@ export const selectRows = createSelector(getRows, rows => rows); export const selectPage = createSelector(getName, getPages, (name, pages) => pages.find(page => page.name === name)); -export const selectState = createSelector(getState, state => state); \ No newline at end of file +export const selectState = createSelector(getState, state => state); diff --git a/projects/aas-portal/src/app/dashboard/dashboard.service.ts b/projects/aas-portal/src/app/dashboard/dashboard.service.ts index 8c10ecea..51896c89 100644 --- a/projects/aas-portal/src/app/dashboard/dashboard.service.ts +++ b/projects/aas-portal/src/app/dashboard/dashboard.service.ts @@ -429,4 +429,4 @@ export class DashboardService { const blue = Math.trunc(Math.random() * 255).toString(16); return '#' + red + green + blue; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/dashboard/dashboard.state.ts b/projects/aas-portal/src/app/dashboard/dashboard.state.ts index add190f9..343fbd85 100644 --- a/projects/aas-portal/src/app/dashboard/dashboard.state.ts +++ b/projects/aas-portal/src/app/dashboard/dashboard.state.ts @@ -87,4 +87,4 @@ export interface DashboardState { export interface State { dashboard: DashboardState; -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/http-loader-factory.ts b/projects/aas-portal/src/app/http-loader-factory.ts index 57373a46..734db600 100644 --- a/projects/aas-portal/src/app/http-loader-factory.ts +++ b/projects/aas-portal/src/app/http-loader-factory.ts @@ -11,4 +11,4 @@ import { TranslateHttpLoader } from '@ngx-translate/http-loader'; export function HttpLoaderFactory(http: HttpClient) { return new TranslateHttpLoader(http, './assets/i18n/', '.json'); -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/index.ts b/projects/aas-portal/src/app/index.ts index 082f07a2..732db731 100644 --- a/projects/aas-portal/src/app/index.ts +++ b/projects/aas-portal/src/app/index.ts @@ -9,4 +9,4 @@ import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { AuthInterceptor } from 'aas-lib'; -export const httpInterceptorProviders = [{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }]; \ No newline at end of file +export const httpInterceptorProviders = [{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }]; diff --git a/projects/aas-portal/src/app/main/main-api.service.ts b/projects/aas-portal/src/app/main/main-api.service.ts index fc031370..6128f740 100644 --- a/projects/aas-portal/src/app/main/main-api.service.ts +++ b/projects/aas-portal/src/app/main/main-api.service.ts @@ -27,4 +27,4 @@ export class MainApiService { public getDocument(id: string): Observable { return this.http.get(`/api/v1/documents/${encodeBase64Url(id)}`); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/main/main.component.ts b/projects/aas-portal/src/app/main/main.component.ts index 2ee7bb97..e9457eba 100644 --- a/projects/aas-portal/src/app/main/main.component.ts +++ b/projects/aas-portal/src/app/main/main.component.ts @@ -111,4 +111,4 @@ export class MainComponent implements OnInit, OnDestroy { private nextToolbar(value: TemplateRef | null): TemplateRef { return value ?? this.emptyToolbar; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.ts b/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.ts index 6f0b0eea..563ec97b 100644 --- a/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.ts +++ b/projects/aas-portal/src/app/start/add-endpoint-form/add-endpoint-form.component.ts @@ -139,4 +139,4 @@ export class AddEndpointFormComponent { private createMessage(id: string, ...args: unknown[]): string { return stringFormat(this.translate.instant(id), args); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/favorites-form/favorites-form.component.ts b/projects/aas-portal/src/app/start/favorites-form/favorites-form.component.ts index b1a6e32f..a24eff71 100644 --- a/projects/aas-portal/src/app/start/favorites-form/favorites-form.component.ts +++ b/projects/aas-portal/src/app/start/favorites-form/favorites-form.component.ts @@ -92,4 +92,4 @@ export class FavoritesFormComponent { this.messages = []; } } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/favorites-form/favorites-form.store.ts b/projects/aas-portal/src/app/start/favorites-form/favorites-form.store.ts index 07ce7c26..c8554f06 100644 --- a/projects/aas-portal/src/app/start/favorites-form/favorites-form.store.ts +++ b/projects/aas-portal/src/app/start/favorites-form/favorites-form.store.ts @@ -55,4 +55,4 @@ export class FavoritesFormStore extends ComponentStore { return { ...state, items }; }); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/favorites.service.ts b/projects/aas-portal/src/app/start/favorites.service.ts index 4749ce7b..032eb1c2 100644 --- a/projects/aas-portal/src/app/start/favorites.service.ts +++ b/projects/aas-portal/src/app/start/favorites.service.ts @@ -78,4 +78,4 @@ export class FavoritesService { this._lists = lists; this.auth.setCookie('.Favorites', JSON.stringify(this._lists)); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/remove-endpoint-form/remove-endpoint-form.component.ts b/projects/aas-portal/src/app/start/remove-endpoint-form/remove-endpoint-form.component.ts index e2b2c59f..52386fe1 100644 --- a/projects/aas-portal/src/app/start/remove-endpoint-form/remove-endpoint-form.component.ts +++ b/projects/aas-portal/src/app/start/remove-endpoint-form/remove-endpoint-form.component.ts @@ -55,4 +55,4 @@ export class RemoveEndpointFormComponent { this.messages = []; } } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/start-api.service.ts b/projects/aas-portal/src/app/start/start-api.service.ts index 1e17dd4d..fa161988 100644 --- a/projects/aas-portal/src/app/start/start-api.service.ts +++ b/projects/aas-portal/src/app/start/start-api.service.ts @@ -100,4 +100,4 @@ export class StartApiService { `/api/v1/containers/${encodeBase64Url(endpointName)}/documents/${encodeBase64Url(id)}/hierarchy`, ); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/start.actions.ts b/projects/aas-portal/src/app/start/start.actions.ts index 1fdbb5d7..33b847d0 100644 --- a/projects/aas-portal/src/app/start/start.actions.ts +++ b/projects/aas-portal/src/app/start/start.actions.ts @@ -74,4 +74,4 @@ export const setFavorites = createAction( props<{ name: string; documents: AASDocument[] }>(), ); -export const removeFavorites = createAction(StartActionType.REMOVE_FAVORITES, props<{ favorites: AASDocument[] }>()); \ No newline at end of file +export const removeFavorites = createAction(StartActionType.REMOVE_FAVORITES, props<{ favorites: AASDocument[] }>()); diff --git a/projects/aas-portal/src/app/start/start.component.ts b/projects/aas-portal/src/app/start/start.component.ts index e3b85e3a..2f263002 100644 --- a/projects/aas-portal/src/app/start/start.component.ts +++ b/projects/aas-portal/src/app/start/start.component.ts @@ -390,4 +390,4 @@ export class StartComponent implements OnDestroy, AfterViewInit { private selectSubmodels(document: AASDocument, semanticId: string): aas.Submodel[] { return document.content?.submodels.filter(submodel => resolveSemanticId(submodel) === semanticId) ?? []; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/start.effects.ts b/projects/aas-portal/src/app/start/start.effects.ts index ebedb413..edfdda22 100644 --- a/projects/aas-portal/src/app/start/start.effects.ts +++ b/projects/aas-portal/src/app/start/start.effects.ts @@ -9,9 +9,9 @@ import { Injectable } from '@angular/core'; import { Actions, createEffect, ofType } from '@ngrx/effects'; import { Action, Store } from '@ngrx/store'; -import { AASDocument, AASDocumentId, AASPage } from 'common'; -import { EMPTY, exhaustMap, map, mergeMap, first, concat, of, from, Observable } from 'rxjs'; import { TranslateService } from '@ngx-translate/core'; +import { EMPTY, exhaustMap, map, mergeMap, first, concat, of, from, Observable } from 'rxjs'; +import { AASDocument, AASDocumentId, AASPage } from 'common'; import { ViewMode } from 'aas-lib'; import * as StartActions from './start.actions'; @@ -228,4 +228,4 @@ export class StartEffects { ), ); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/start.reducer.ts b/projects/aas-portal/src/app/start/start.reducer.ts index d261ca99..b926c8a6 100644 --- a/projects/aas-portal/src/app/start/start.reducer.ts +++ b/projects/aas-portal/src/app/start/start.reducer.ts @@ -78,4 +78,4 @@ function removeFavorites(state: StartState, favorites: AASDocument[]): StartStat ); return { ...state, documents }; -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/start.selectors.ts b/projects/aas-portal/src/app/start/start.selectors.ts index e5abda56..78ec1346 100644 --- a/projects/aas-portal/src/app/start/start.selectors.ts +++ b/projects/aas-portal/src/app/start/start.selectors.ts @@ -34,4 +34,4 @@ export const selectIsFirstPage = createSelector(getState, state => state.isFirst export const selectIsLastPage = createSelector(getState, state => state.isLastPage); -export const selectFavorites = createSelector(getState, state => state.favorites); \ No newline at end of file +export const selectFavorites = createSelector(getState, state => state.favorites); diff --git a/projects/aas-portal/src/app/start/start.state.ts b/projects/aas-portal/src/app/start/start.state.ts index 14e3f7d2..11128d53 100644 --- a/projects/aas-portal/src/app/start/start.state.ts +++ b/projects/aas-portal/src/app/start/start.state.ts @@ -27,4 +27,4 @@ export interface FavoritesList { export interface StartFeatureState { start: StartState; -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/start/upload-form/upload-form.component.ts b/projects/aas-portal/src/app/start/upload-form/upload-form.component.ts index 6c880daa..422cc204 100644 --- a/projects/aas-portal/src/app/start/upload-form/upload-form.component.ts +++ b/projects/aas-portal/src/app/start/upload-form/upload-form.component.ts @@ -73,4 +73,4 @@ export class UploadFormComponent { this.modal.close(); } } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/toolbar.service.ts b/projects/aas-portal/src/app/toolbar.service.ts index 62dfd391..2d10b7d1 100644 --- a/projects/aas-portal/src/app/toolbar.service.ts +++ b/projects/aas-portal/src/app/toolbar.service.ts @@ -28,4 +28,4 @@ export class ToolbarService { public clear(): void { Promise.resolve().then(() => this.toolbarTemplate$.next(null)); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/types/command.ts b/projects/aas-portal/src/app/types/command.ts index eea775c5..8a2dbabb 100644 --- a/projects/aas-portal/src/app/types/command.ts +++ b/projects/aas-portal/src/app/types/command.ts @@ -95,4 +95,4 @@ export abstract class Command { return reference; } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/types/dashboard-query-params.ts b/projects/aas-portal/src/app/types/dashboard-query-params.ts index c9d86068..a7d3bd2d 100644 --- a/projects/aas-portal/src/app/types/dashboard-query-params.ts +++ b/projects/aas-portal/src/app/types/dashboard-query-params.ts @@ -12,4 +12,4 @@ export interface DashboardQueryParams { export interface DashboardQuery { page: string; -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/types/doc-ref.ts b/projects/aas-portal/src/app/types/doc-ref.ts index 102a6e82..a3018f60 100644 --- a/projects/aas-portal/src/app/types/doc-ref.ts +++ b/projects/aas-portal/src/app/types/doc-ref.ts @@ -11,4 +11,4 @@ export interface DocRef { id: string; /** The URL of the container that contains the AAS document. */ url: string; -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/types/errors.ts b/projects/aas-portal/src/app/types/errors.ts index 2991c96b..69f6f4be 100644 --- a/projects/aas-portal/src/app/types/errors.ts +++ b/projects/aas-portal/src/app/types/errors.ts @@ -17,4 +17,4 @@ export const ERRORS = { PASSWORDS_NOT_EQUAL: 'ERROR_PASSWORDS_NOT_EQUAL', DASHBOARD_PAGE_ALREADY_EXISTS: 'ERROR_DASHBOARD_PAGE_ALREADY_EXISTS', UNAUTHORIZED_ACCESS: 'ERROR_UNAUTHORIZED_ACCESS', -}; \ No newline at end of file +}; diff --git a/projects/aas-portal/src/app/types/info.ts b/projects/aas-portal/src/app/types/info.ts index 9e5b98ec..137e5406 100644 --- a/projects/aas-portal/src/app/types/info.ts +++ b/projects/aas-portal/src/app/types/info.ts @@ -8,4 +8,4 @@ export const INFO = { NEW_PASSWORD_SENT: 'INFO_NEW_PASSWORD_SENT', -}; \ No newline at end of file +}; diff --git a/projects/aas-portal/src/app/types/intl.d.ts b/projects/aas-portal/src/app/types/intl.d.ts index e928fa21..24729eac 100644 --- a/projects/aas-portal/src/app/types/intl.d.ts +++ b/projects/aas-portal/src/app/types/intl.d.ts @@ -8,4 +8,4 @@ declare namespace Intl { function getCanonicalLocales(locales: string | string[]): string[]; -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/types/selection-mode.ts b/projects/aas-portal/src/app/types/selection-mode.ts index f04661ce..d620fa38 100644 --- a/projects/aas-portal/src/app/types/selection-mode.ts +++ b/projects/aas-portal/src/app/types/selection-mode.ts @@ -9,4 +9,4 @@ export enum SelectionMode { Single = 'Single', Multiple = 'Multiple', -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/view/view-api.service.ts b/projects/aas-portal/src/app/view/view-api.service.ts index f3b3bea9..3a92b0b0 100644 --- a/projects/aas-portal/src/app/view/view-api.service.ts +++ b/projects/aas-portal/src/app/view/view-api.service.ts @@ -30,4 +30,4 @@ export class ViewApiService { `/api/v1/containers/${encodeBase64Url(endpoint)}/documents/${encodeBase64Url(id)}`, ); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/view/view.component.ts b/projects/aas-portal/src/app/view/view.component.ts index 879a3408..6f61528f 100644 --- a/projects/aas-portal/src/app/view/view.component.ts +++ b/projects/aas-portal/src/app/view/view.component.ts @@ -100,4 +100,4 @@ export class ViewComponent implements OnInit, AfterViewInit, OnDestroy { this.subscription.unsubscribe(); this.toolbar.clear(); } -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/view/view.effects.ts b/projects/aas-portal/src/app/view/view.effects.ts index 4d7910d9..47ff786e 100644 --- a/projects/aas-portal/src/app/view/view.effects.ts +++ b/projects/aas-portal/src/app/view/view.effects.ts @@ -41,4 +41,4 @@ export class ViewEffects { ), ); }); -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/view/view.reducer.ts b/projects/aas-portal/src/app/view/view.reducer.ts index da3d99f5..276cc6b6 100644 --- a/projects/aas-portal/src/app/view/view.reducer.ts +++ b/projects/aas-portal/src/app/view/view.reducer.ts @@ -22,4 +22,4 @@ export const viewReducer = createReducer( function initView(state: ViewState, submodels: DocumentSubmodelPair[], template: string | undefined): ViewState { return { ...state, submodels, template }; -} \ No newline at end of file +} diff --git a/projects/aas-portal/src/app/view/view.selectors.ts b/projects/aas-portal/src/app/view/view.selectors.ts index 9b11e7e6..af3df024 100644 --- a/projects/aas-portal/src/app/view/view.selectors.ts +++ b/projects/aas-portal/src/app/view/view.selectors.ts @@ -14,4 +14,4 @@ const getTemplate = (state: State) => state.view.template; export const selectSubmodels = createSelector(getSubmodels, submodels => submodels); -export const selectTemplate = createSelector(getTemplate, template => template); \ No newline at end of file +export const selectTemplate = createSelector(getTemplate, template => template); diff --git a/projects/aas-portal/src/app/view/view.state.ts b/projects/aas-portal/src/app/view/view.state.ts index 07c16643..f595bb2f 100644 --- a/projects/aas-portal/src/app/view/view.state.ts +++ b/projects/aas-portal/src/app/view/view.state.ts @@ -15,4 +15,4 @@ export interface ViewState { export interface State { view: ViewState; -} \ No newline at end of file +} diff --git a/projects/aas-server/src/app/packages/aasx-directory/aasx-directory.ts b/projects/aas-server/src/app/packages/aasx-directory/aasx-directory.ts index 06f785d5..8e347c79 100644 --- a/projects/aas-server/src/app/packages/aasx-directory/aasx-directory.ts +++ b/projects/aas-server/src/app/packages/aasx-directory/aasx-directory.ts @@ -10,7 +10,7 @@ import { aas, ApplicationError } from 'common'; import { join } from 'path'; import { readFile } from 'fs/promises'; import { ERRORS } from '../../errors.js'; -import { FileStorage, FileStorageEntry } from '../../file-storage/file-storage.js'; +import { FileStorage } from '../../file-storage/file-storage.js'; import { Logger } from '../../logging/logger.js'; import { AASPackage } from '../aas-package.js'; import { AASResource } from '../aas-resource.js'; diff --git a/projects/aas-server/src/app/packages/opcua/opcua-data-type-dictionary.ts b/projects/aas-server/src/app/packages/opcua/opcua-data-type-dictionary.ts index 63a73523..ec3d0833 100644 --- a/projects/aas-server/src/app/packages/opcua/opcua-data-type-dictionary.ts +++ b/projects/aas-server/src/app/packages/opcua/opcua-data-type-dictionary.ts @@ -7,7 +7,14 @@ *****************************************************************************/ import { aas } from 'common'; -import { BrowseDescriptionLike, ClientSession, NodeClass, NodeIdLike, ReferenceDescription, resolveNodeId } from 'node-opcua'; +import { + BrowseDescriptionLike, + ClientSession, + NodeClass, + NodeIdLike, + ReferenceDescription, + resolveNodeId, +} from 'node-opcua'; interface DataTypeEntry { obj: ReferenceDescription;