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

tikey-soft-web

v1.0.5

Published

This Project is a base library for speeding up development process for TikeySoft team.

Downloads

3

Readme

TikeySoftWeb

This Project is a base library for speeding up development process for TikeySoft team.

Installation

Add these packages into the package.json

"tikey-soft-web": "^1.0.4",

"ngx-spinner": "^16.0.2",
"primeflex": "^3.3.1",
"primeicons": "^7.0.0",
"primeng": "^17.13.0",

Add styles for ngx-spinner and primeNG

Add style module in angular.json

"styles": [
  "src/styles.scss",
  "node_modules/ngx-spinner/animations/line-scale-party.css"
],

Change line-scale-party.css in case using other spinner type. Find out more at: ngx-spinner

Add these into styles.scss

@import "primeng/resources/themes/lara-light-blue/theme.css";
@import "primeng/resources/primeng.css";
@import "primeicons/primeicons.css";
@import "primeflex/primeflex.css";

Add environments

Create environments folder with 2 files environement.ts and environment.development.ts with values.

export const environment = {
  production: false, // false for environment.development.ts and true for environment.ts
  apiUrl: 'http://localhost:8001/',
  language: 'vi',
  appName: 'Hệ thống kiểm soát Công đoạn đùn nhôm',
  customerHomepage: "https://www.vmd-jsc.com/",
  menuItems: [
    {label: 'Dashboard', icon: 'pi pi-home', routerLink: '/main/dashboard'},
    {label: 'Sản phẩm', icon: 'pi pi-list', routerLink: '/main/products'},
  ]
};

These are examples, please adjust according to the working project. In this, there will be 2 pages in the application: Dashboard and Sản phẩm

Config routes

Update app.routes.ts

Import library components, services and import environment

import {LoginPageComponent, MainPageComponent, LandingPageComponent, AuthGuard} from "../../../TikeySoft-Web/dist/auth";
import {environment} from "../environments/environment";

Create components and define routes in the application, these are examples for 2 components Dashboard and Product

import {ProductComponent} from "./product/product.component";
import {DashboardComponent} from "./dashboard/dashboard.component";

const mainRoutes: Routes = [
  {path: '', component: LandingPageComponent},
  {path: 'dashboard', component: DashboardComponent},
  {path: 'products', component: ProductComponent},
];

Update the routes variable

export const routes: Routes = [
  {path: '', component: LoginPageComponent},
  {
    path: 'main',
    component: MainPageComponent,
    data: {appName: environment.appName, menuItems: environment.menuItems, customerHomepage: environment.customerHomepage},
    canActivate: [AuthGuard],
    children: mainRoutes
  },
  {path: '**', redirectTo: ''}
];

Config application

Update app.config.ts

Add providers for the application

//import { provideRouter } from '@angular/router'; update this line to
import {provideRouter, withComponentInputBinding} from '@angular/router';
import {provideAnimations} from "@angular/platform-browser/animations";

Import library components, services and import environment

import {HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi} from "@angular/common/http";
import {MessageService} from "primeng/api";
import {ResponseInterceptor,HeaderInterceptor, AuthService, LanguageService} from "../../../TikeySoft-Web/dist/auth";
import {environment} from "../environments/environment";

Update appConfig variable

export const appConfig: ApplicationConfig = {
  providers: [
    AuthService, {provide: 'apiUrl', useValue: environment.apiUrl},
    LanguageService, {provide: 'language', useValue: environment.language},
    provideRouter(routes, withComponentInputBinding()),
    provideAnimations(),
    provideHttpClient(withInterceptorsFromDi()),
    { provide:HTTP_INTERCEPTORS, useClass:ResponseInterceptor, multi:true},
    { provide:HTTP_INTERCEPTORS, useClass:HeaderInterceptor, multi:true},
    { provide: MessageService }]
};

Update App module

Update app.component.ts

import { Component } from '@angular/core';
import {RouterOutlet} from "@angular/router";
import {ToastModule} from "primeng/toast";
import {NgxSpinnerModule} from "ngx-spinner";

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  standalone: true,
  imports: [
    RouterOutlet,
    ToastModule, //Add this line
    NgxSpinnerModule, //Add this line
  ],
  styleUrl: './app.component.scss'
})
export class AppComponent {
  title = 'Application Name';
}

Update app.component.html

<p-toast></p-toast>
<ngx-spinner type="line-scale-party" [fullScreen] = "true"></ngx-spinner>
<router-outlet></router-outlet>

Change the spinner type (line-scale-party) in case using other spinner type (remember to change according to angular.json style). Find out more at: ngx-spinner

Add Customer Logo asset

Add customer logo with the name customer-logo.png into assets folder