GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hackstrap/blink-npm: Blink NPM Package

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
example
example
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
.travis.yml
.travis.yml
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
tsconfig.test.json
tsconfig.test.json
 
 
webpack.config.js
webpack.config.js
 
 

Repository files navigation

blink-npm

This repo contains the code for blink npm pakage

NPM



Install

npm install --save @hackstrap/blink-npm

For usage in Next.js application execute following command

npm install next-remove-imports

This will remove all .less/.css/.scss/.sass/.styl imports from all packages in node_modules.

// add this piece of code in next.config.js file
const removeImports = require('next-remove-imports')({
  options: {}
})
module.exports = removeImports()

npm i @material-ui/[email protected]
npm i @material-ui/[email protected]


Usage

import React, { Component } from 'react'

import { BlinkApp } from 'blink-npm'
// Importing CSS files
import 'blink-npm/dist/index.css'
import 'react-date-range/dist/styles.css' // base css file from react-date-range
import 'react-date-range/dist/theme/default.css' // theme css file from react-date-range
// CSS files for @uiw/react-md-editor
import '@uiw/react-md-editor/dist/markdown-editor.css'
import '@uiw/react-markdown-preview/dist/markdown.css'

class Example extends Component {
  render() {
    return (
      <BlinkApp
        userInfo={{ Header: 'startup_name', accessor: 'startup_id' }}
        screen={'startupScreen'}
        view={'homeView'}
        page={'metrics'}
        apiRoute={'https://demo-organization.com/'}
        token={'token_value'}
      />
    )
  }
}

Props which user can pass in BlinkApp

  1. All the props passed here are stored in a global Object with the help of context API and can be accessed anywhere in the app.
  2. screen,view,page props are used for in app navigation. Pass the correct values to load the required page.
  3. Pass name and id of startup/investor in the format shown above in userInfo props.

Overall Structure of BlinkApp

Pass following values to screen,view,page props to load required pages accordingly

Screen => startupScreen:

  • View => home

    • page => metrics
    • page => notes
  • View => tables

    • page => revenue
    • page => expenses
    • page => employee
    • page => notes
  • View => settings

    • page => profile

Screen => investorScreen

  • View => dashboard

    • page => metrics
    • page => notes
  • View => settings

    • page => profile

License

MIT © AbhijeetNandvikar

About

Blink NPM Package

www.npmjs.com/package/@hackstrap/blink-npm

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.