Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 event bus #3259

Merged
merged 10 commits into from
Jan 27, 2025
Merged

V3 event bus #3259

merged 10 commits into from
Jan 27, 2025

Conversation

Annoraaq
Copy link
Collaborator

@Annoraaq Annoraaq commented Jan 10, 2025

Add new event emitter to v3 ui.

Inspired by: https://v3-migration.vuejs.org/breaking-changes/events-api#event-bus

@Annoraaq Annoraaq requested review from berggren January 10, 2025 15:22
Copy link
Contributor

@berggren berggren left a comment

Choose a reason for hiding this comment

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

LGTM - just one comment on the choice of emitter library.

timesketch/frontend-v3/src/event-bus.js Outdated Show resolved Hide resolved
@@ -14,7 +14,8 @@
"roboto-fontface": "*",
"vue": "^3.4.31",
"vuetify": "^3.6.11",
"axios": "^1.7.7"
"axios": "^1.7.7",
"tiny-emitter": "^2.1.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

I use "mitt" in openrelik, another emitter library. What is the benefit of tiny-emitter? Or is it just another implementation of the same thing? :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see in the Vue migration guide.
"This provides the same event emitter API as in Vue 2."

Nice, then we don't have to change the caller code.

@berggren
Copy link
Contributor

Feel free to merge when you have fixed the conflicts 👍🏼

@Annoraaq
Copy link
Collaborator Author

Feel free to merge when you have fixed the conflicts 👍🏼

I don't have permissions to merge.

@berggren berggren merged commit 79c693f into google:master Jan 27, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants