Socket
Book a DemoInstallSign in
Socket

apollo-authentication-semantic-ui

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-authentication-semantic-ui

UI for apollo authentication

1.1.10
latest
Source
npmnpm
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

Introduction

The Accounts UI component based on Redux and Semantic UI.

Installation

Add the accounts reducer to your list of reducers. From this moment on, your account info along with the currently logged user will be stored in your store under "accounts" key.

import { reducer as accountsReducer } from 'apollo-authentication-semantic-ui';

// import all other reducers

const rootReducer = combineReducers({
  accounts: accountsReducer,
  ...
});

Components

The package adds two different components

  • AccountsView - is the main accounts component
  • UserView - is the top menu component for showing the logout / profile button

This is the example on how you can use it in the page:

import { AccountsView, UserView } from 'apollo-authentication-semantic-ui';

const component = () => {
  <div>
    <div className="ui inverted blue menu topMenu">
      <a className="header item" href="/"><i className="icon bug"></i>Marking</a>
      <div className="right menu">
        <UserView />
      </div>
    </div>
    <div className="ui page grid">
      <div className="ui column">
        <AccountsView />
      </div>
    </div>
  </div>
}

Limitations

This is a very limited component, that currently support only the "accounts-password" and semantic-ui. If you search for highly customisable component that supports all kinds of ui packages, please go use https://atmospherejs.com/std/accounts-ui

If you wish to expand this package with your UI by rewriting the pure UI components I'm very much keen to accept your PRs.

Keywords

Apollo

FAQs

Package last updated on 01 Nov 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.