Skip to content

Operarations widget import#14

Merged
dirk-peter-c8y merged 10 commits intomainfrom
feature/operaration-widget
May 28, 2025
Merged

Operarations widget import#14
dirk-peter-c8y merged 10 commits intomainfrom
feature/operaration-widget

Conversation

@dirk-peter-c8y
Copy link
Contributor

@dirk-peter-c8y dirk-peter-c8y marked this pull request as ready for review March 21, 2025 14:34
Copy link
Collaborator

@hnaether-c8y hnaether-c8y left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with one suggestion

description: '',
component: OperationsWidgetComponent,
configComponent: OperationsWidgetConfigComponent,
previewImage: require('./assets/preview.png') as string,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could switch and use the new assets.ts approach where you define images as imports in a ts file and then do an export const. That way you can then use it as a const value and dont need the require.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll create a task to check other, already imported plugins to follow that approach

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#24

@dirk-peter-c8y dirk-peter-c8y merged commit b2c1f2c into main May 28, 2025
1 of 2 checks passed
@dirk-peter-c8y dirk-peter-c8y deleted the feature/operaration-widget branch May 28, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants