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

crud-component-alur-kerja

v0.0.24

Published

A blank schematics

Downloads

52

Readme

Readme

Install Latest

  • npm i crud-component-alur-kerja

Create CRUD Command

  • ng g crud-component-alur-kerja:crud-component --name=<nama_collection_bpmn> --path=src/app/pages(metronic path) untuk melakukan generate otamatis
  • contoh ng g crud-component-alur-kerja:crud-component --name=organization --path=src/app/pages
  • setelah itu masuk ke folder src/app/pages/organization
  • sesuaikan beberapa konfigurasi
  • masuk ke organization.service.ts, edit dan sesuaikan bagian variable API_URL
  • contoh API_URL = '${environment.apiUrl}/crud/organization';
  • edit dan sesuaikan header (jika API nya menggunakan bearer token)
  • contoh myHeader = getAWSHeaders(localStorage.getItem('id_token'))
  • edit dan sesuaikan function filterForm() dan filter() utk menambah filter pencarian, secara default pencarian nya menggunakan id
  • comment function getForms() pada ngOnInit() jika tidak ingin menggunakan manual form bukan mengambil dari BE
  • jika ingin menambah pada tabel nya, bisa edit dan sesuaikan pada file organization.component.html
  • jika ingin menambah sorting pada tabel gunakan code ini, taruh code ini di dalam th nya <app-sort-icon column="<paramater_di_be_nya>" [activeColumn]="sorting.column" [activeDirection]="sorting.direction" (sort)="sort($event)"></app-sort-icon>
  • jika ingin memakai form manual tanpa dari BE, cukup edit const transFormArrForm dengan format array object, seperti berikut:
[
    {
        title: 'Nama',
        form: 'name',
        type: 'text',
        mandatory: true
    }
]
  • edit dan sesuaikan function prepareFormData() dan prepareFormEdit() pada file src/app/pages/organization/component/edit-organization-modal.component.ts, kedua function tsb berfungsi sebagai payload json object utk dikirim ke BE, sesuaikan dengan kebutuhan BE, contoh seperti berikut:
    prepareFormData() {
        //    OVERRIDE THIS
        const formData = this.formGroup.value;
        this.formObj.name = formData.name;
        this.formObj.code = formData.code;
    }

    prepareFormEdit() {
        //    OVERRIDE THIS
        const formData = this.formGroup.value;
        return {
            name: formData.name,
            code: formData.code,
        };
    }

Create BPMN Command

  • ng g crud-component-alur-kerja:bpmn-component --name=<nama_collection_bpmn> --path=src/app/pages(metronic path) untuk melakukan generate otamatis
  • contoh ng g crud-component-alur-kerja:crud-component --name=single-approval --path=src/app/pages
  • setelah itu masuk ke folder src/app/pages/single-approval
  • sesuaikan beberapa konfigurasi
  • masuk ke organization.service.ts, edit dan sesuaikan bagian variable API_URL
  • contoh API_URL = '${environment.apiUrl}/crud/singleApproval';
  • edit dan sesuaikan header (jika API nya menggunakan bearer token)
  • contoh myHeader = getAWSHeaders(localStorage.getItem('id_token'))
  • edit dan sesuaikan function filterForm() dan filter() utk menambah filter pencarian, secara default pencarian nya menggunakan id
  • untuk saat ini customization di bpmn cuman segitu saja...