krasimir / kuker-emitters

Pluggable modules that send events to Kuker (https://github.com/krasimir/kuker)
MIT License
12 stars 1 forks source link

API docs #1

Open artalar opened 6 years ago

artalar commented 6 years ago

Hi! First of all thanks a lot for "kuker" - it's super easy and useful - add the custom emitter.

But u haven't any API section (besides example), can u add it?

My own main question - how can I group events?

krasimir commented 6 years ago

Hey, sorry. Here it is https://github.com/krasimir/kuker#writing-your-own-emitter

You may group events by choosing same type.

artalar commented 6 years ago

Ok, thx.

Can i nest events? For tree-like view

krasimir commented 6 years ago

Sorry. That's not possible right now.

p2kmgcl commented 5 years ago

@krasimir I am trying sending the same type and they are not grouped, they just show different labels, is that normal?

image

window.postMessage(
    {
        kuker: true,
        label: actionType + Math.random(),
        origin: 'store',
        payload: payload,
        state: nextState,
        time: (new Date()).getTime(),
        type: actionType
    },
    '*'
);
krasimir commented 5 years ago

Sorry, I wasn't clear when saying "group". It is a wrong term for that. By grouping I mean that those event may have their own color and Kuker displays them with same color. Not like they'll be nested into a single event (which by the way will be nice to implement).

p2kmgcl commented 5 years ago

Oh, my fault, in the examples I saw grouping-like logs and I thought that was the behaviour:

But now you say it's probably a combination of color change and manual indentation.

Thanks!

krasimir commented 5 years ago

Yep. 👍