New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@deriv/dashboard

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deriv/dashboard

Deriv dashboard

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

@deriv/dashboard

Index

  • General - Contains general philosophy and overview of this package
  • Modules docs - Contains implementation guides (i.e., adding types, use observer, etc.)

Requirements

  • node
  • npm

Editor helpers

🚀 Quick start

  1. Install your dependencies:

    npm run bootstrap
    
  2. To build publish file:

    npm run build:publish dashboard
    
  3. Libary usage:

    ```jsx
    import React from 'react'
    import Dashboard from '@deriv/dashboard';
    
    const Component = ({client, ServerTIme, ui, WS, config}) => {
        return <Dashboard client={client} server_time={ServerTime} ui={ui} ws={WS} config={config} />;
    }
    
    
    Component.propTypes = {
        client: PropTypes.shape({
            is_logged_in: PropTypes.bool.isRequired,
            loginid: PropTypes.string.isRequired,
        }).isRequired,
        config: {
            asset_path: PropTypes.string.isRequired,
            has_router: PropTypes.bool.isRequired,
            is_deriv_crypto: PropTypes.bool.isRequired,
            routes: PropTypes.shape({
                home: PropTypes.string.isRequired,
                about_us: PropTypes.string.isRequired,
                explore: PropTypes.string.isRequired,
                resources: PropTypes.string.isRequired,
            }).isRequired,
        },
        ui: PropTypes.shape({
            height_offset: PropTypes.string,
            is_dark_mode_on: PropTypes.bool.isRequired,
            language: PropTypes.string.isRequired,
            components: PropTypes.shape({
                LoginPrompt: any,
                Page404: any,
            }).isRequired,
    }).isRequired,
    

    };

  4. File Structure

src
    ├── assets/
    │   ├── images/
    ├── components/
    │   ├── ...
    ├── constants/
    │   ├── ...
    ├── stores/
    │   ├── ...
    ├── types/
    │   ├── ...
    ├── index.js

index.js // publish file
webpack.config.js
package.json

FAQs

Package last updated on 16 Dec 2020

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