npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@justbe-ionic-angular/alpha

v4.0.3

Published

jb ionic alpha module // experimental please dont use

Downloads

55

Readme

Ionic Alpha

Ionic alpha have common code that includes :
    1) Root Component
    2) Sidenavigation
    3) DeciderPage
    4) Application Update
    5) Auth

Root Component

This is the starting point, This component is passed to ionic module that is then the starting point of ionic application.

Following are the task done by the root component:
    1) Checks the alpha configurations and enable or disables the sidenav
    2) Navigates to decider page

DeciderPage

Following are the tasks done by decider page
    1) if application update configurations are provided it checks for application updates
    2) if application updates are available then navigates to appUpdatePage.
    3) Checks if user is already authenticated or not if yes, then navigates to home page, else navigates to auth page

Application Update

This page is opened if update is vailable and then playstore or appstore is opened according to your platform

Sidenav Page

This is the wrapper page to which you can pass your component which can be shown on sidenav

Auth

There are three way by which you can loggedin in to the application
    1) Facebook
    2) Google
    3) Mobile OTP

Installation

Use the node package manager npm to install @justbe-ionic-angular/alpha.

npm install @justbe-ionic-angular/alpha --save

Usage

import AlphaModule into your root app.module and pass RootComponent to IonicModule

import { NgModule } from '@angular/core';
import { AlphaModule, RootComponent } from '@justbe-ionic-angular/alpha';
@NgModule({
    declarations: [
        ..
    ],
    imports: [
        ..,
        IonicModule.forRoot(RootComponent, {
            ..,
            tabsHideOnSubPages: true,
            backButtonText: '',
            ..,
        }),
        AlphaModule,
        ..,
    ]
})
export class AppModule { }

configure AlphaModule at entry point of your application

import { Component } from '@angular/core';
import { AlphaService } from "@justbe-ionic-angular/alpha";
import { HomePage, SliderPage, SidenavPage } from "../path/to/your/pages"
@Component({
    templateUrl: 'root.component.html'
})
export class RootComponent {
    ..
    constructor(
        ..,
        private alphaService: AlphaService,
        ..
    ){}
    this.alphaService.setConfigurations({
         endPoint: AppConfig.API_ENDPT,
            type: 'api',
            ifAlreadyLoggedIn: { klass: HomePage },
            sliderConfigurations: { klass: SliderPage },
            sidenavConfigurations: { klass: SidenavPage },
            authConfigurations: { afterLoginSuccess: { klass: HomePage } },
            appUpdateConfigurations: {
                appName: AppConfig.APP_NAME,
                appVersion: AppConfig.APP_VERSION,
                cfEndPoint: AppConfig.CF_API_ENDPT,
                playstoreUrl: "market://details?id=com.beyoutech.one.louve.coach",
                itunesUrl: "itms-apps://itunes.apple.com/app/id1418392416"
            }
    })
}

License

MIT

cordova plugin need to be install manually ionic cordova plugin add cordova-plugin-app-preferences

this will automatically included as it is in dependency npm install --save @ionic-native/app-preferences@4