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

tims-ionic-library

v0.4.49

Published

TimsIonicLibrary is an early-stage development project aimed at creating a reusable component library for Ionic applications, with backend support powered by Supabase. This library enables easy integration of frequently used Ionic components into new proj

Downloads

27,275

Readme

TimsIonicLibrary

TimsIonicLibrary is an early-stage development project aimed at creating a reusable component library for Ionic applications, with backend support powered by Supabase. This library enables easy integration of frequently used Ionic components into new projects, making it simple to deploy with backend configurations managed by Supabase.

Project Status

⚠️ Early Development Notice: TimsIonicLibrary is currently in the early stages of development. While some features are functional, others are still under construction, and breaking changes may occur. You are welcome to use it to explore or integrate components, but production use is not recommended at this time.

Key Features

  • Reusable Components: A set of standalone, reusable components built for Ionic.
  • Supabase Integration: Seamless integration with Supabase for backend functionalities.
  • Easy to Use: Designed for flexibility, allowing integration into various Ionic projects.

Installation

To use this library in your Ionic project, install it with

npm i tims-ionic-library@latest

You need to add this const in your environment.ts & environement.prod.ts

export const tim_environment = {
  global_config : {
    // Name of the app
    app_name: 'my-app',
    // Logo of the app
    app_logo: 'assets/icon/favicon.png',
    // Version of the app (while changed a pop up will be shown)
    app_version: '1.0.0',
    // Default Font Family of the app
    app_font_family: 'Roboto',
    // Default Theme of the app ( Default, Light , Dark , Red, Purple, Pink, Lemon, Ocean)
    app_theme: 'Default',
    // Modules activated in the app
    modules_activated: ['display', 'articles', 'users' , 'settings', 'mc servers', 'Sponsor', 'logs'],
  },
  auth_config : {
    // Auth Settings
    oauth_providers: ['discord', 'google', 'account'],
    login_redirect_url: '/home',
    logout_redirect_url: '/auth/login',
    // Styles
    // ** button **
    button_fill: 'solid',
    button_shape: '',
    button_color: 'primary',
    // ** input **
    input_fill: 'outline',
    input_color: 'primary',
    input_label_placement: 'stacked',

  },
  supabase_config : {
    // Supabase Settings
    // URL of the supabase instance
    supabase_url: '<SupaBase URL>',
    // Public Key of the supabase instance ( service key )
    supabase_key: '<SupaBase Key>',
  },
  admin_dashboard_config : {
    // Admin Dashboard Settings
    // Data displayed in the admin display
    data_module_activated: ['user_count', 'player_count']
  }
}

You also need to import the main module in your main.ts file and link your environment variables with a providers

import { bootstrapApplication } from '@angular/platform-browser';
import { RouteReuseStrategy, provideRouter, withPreloading, PreloadAllModules } from '@angular/router';
import { IonicRouteStrategy, provideIonicAngular } from '@ionic/angular/standalone';

import { routes } from './app/app.routes';
import { AppComponent } from './app/app.component';
import {importProvidersFrom} from "@angular/core";
import {TimIonicLibraryModule} from "tims-ionic-library";
import { TIM_ENVIRONMENT } from 'tims-ionic-library';
import {environment} from "./environments/environment.prod";


bootstrapApplication(AppComponent, {
  providers: [
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
    {provide: TIM_ENVIRONMENT, useValue: tim_environment},
    provideIonicAngular(),
    importProvidersFrom(TimIonicLibraryModule),
    provideRouter(routes, withPreloading(PreloadAllModules)),
  ],
});

You will be able to use the actual working components of the library

  • Auth components
  • login/logout button
  • Admin User List

License

MIT License


Thank you for exploring TimsIonicLibrary! Feel free to reach out with questions or suggestions as we continue development towards a reliable library for the Ionic and Supabase ecosystem.