GithubHelp home page GithubHelp logo

gottenborg / meteor-universe-accounts-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vazco/meteor-universe-accounts-ui

0.0 1.0 0.0 47 KB

Accounts UI replacement for Universe using React and Semantic UI

JavaScript 100.00%

meteor-universe-accounts-ui's Introduction

Universe Accounts UI

A replacement for accounts-ui designed to work in Universe ecosystem: Modules, React and Semantic UI.

Installation

meteor add universe:accounts-ui
  • This package assumes that you're using React

  • This package uses Semantic UI styling classes, but you have to add styles on your own, e.g.

    • meteor add semantic:ui
  • Login options will show based on installed packages and you need to add them manually, e.g.

    • meteor add accounts-password accounts-facebook ...

Usage

  • You need to set up own routes
  • Place accounts-ui components where you wish to render forms

Basic usage could look like:

import {ComboBox} from 'meteor/universe:accounts-ui';

Router.route('/login', {
    name: 'login',
    action () {
        mount(Layout, {
            content: <ComboBox />
        });
    }
});

Available components

  • LoginBox - simple login form
  • RegisterBox - simple register form
  • ComboBox - both above forms combined into one
  • ResetPasswordBox - password reset form
  • EnrollmentBox - password init form

Configuration

No config yet, but will have similar configuration to accounts-ui.

Know issues

  • Has UI for password reset, but don't provide server-side functionality yet.
  • You need to set ServiceConfiguration options for external services on your own, no forms yet

Examples

EnrollmentBox

import {EnrollmentBox} from 'meteor/universe:accounts-ui';

Accounts.onEnrollmentLink((token, done) => {
    Meteor.setTimeout(() => { // to mount after FlowRouter (you can also use Accounts.urls.enrollAccount)
        const onComplete = () => {
            done();
            FlowRouter.go('/');
        };
        mount(MainLayout, {
            content: <EnrollmentBox token={token} onComplete={onComplete} />
        });
    }, 100);
});```

meteor-universe-accounts-ui's People

Contributors

cristo-rabani avatar macrusher avatar newsiberian avatar nieziemski avatar mprzodala avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.