Socket
Socket
Sign inDemoInstall

@dasmeta/event-manager-ui

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dasmeta/event-manager-ui

This is the @dasmeta/event-manager-ui simple put powerful UI.


Version published
Weekly downloads
6
decreased by-25%
Maintainers
3
Weekly downloads
 
Created
Source

install

 // npm
 npm install @dasmeta/event-manager-ui
 // yarn 
 yarn add @dasmeta/event-manager-ui

usage

import React from "react";
import { PageDetailProvider } from "components/Page/PageDetail";
import MicroServiceUI from "@dasmeta/microservice-ui";


const getStats = async () => {
    // ...
    return [];
};
const republishFail = async ({topic, subscription}) => {
    // ...
};
const republishError = async ({topic, subscription}) => {
    // ...
};
const cleanAnomaly = async ({topic, subscription}) => {
    // ...
};
const populateMissing = async ({topic, subscription}) => {
    // ...
};
const calculateStats = async () => {
    // ...
};
const getError = async ({topic, subscription}) => {
    // ...
    return [];
};
const getEvent = async (eventId) => {
    // ...
    return {};
};

const googleBoard = "YOUR_GOOGLE_DASHBOARD_URL";
const googleZone = "GOOGLE_ZONE";
const googleProjectId = "YOUR_GOOGLE_PROJECT_ID";

export default () => {
    return (
        <MicroServiceUI
            onGetStats={async (...args) => {
                const { list } = await getStats(...args);
                return list;
            }}
            onRepublishFail={republishFail}
            onRepublishError={republishError}
            onCleanAnomaly={cleanAnomaly}
            onPopulateMissing={populateMissing}
            onCalculateStats={calculateStats}
            onGetError={async (...args) => {
                const { list } = await getError(...args);
                return list;
            }}
            onGetEvent={getEvent}
            options={{
                googleBoard,
                googleZone,
                googleProjectId,
            }}
            render={({ title, renderActions, renderSearch, renderLinks, renderList }) => (
                <>
                    <PageDetailProvider
                        title={title}
                        action={renderActions()}
                        content={renderSearch()}
                        extraContent={renderLinks()}
                    />
                    {renderList()}
                </>
            )}
        />
    );
};

Keywords

FAQs

Package last updated on 07 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc