Skip to content
View coject's full-sized avatar

Block or report coject

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
coject/README.md

Coject

Promise based HTTP client for the browser and node.js

WebsiteDocumentation

npm version Gitpod Ready-to-Code install size npm downloads gitter chat Known Vulnerabilities

Coject v2.0

The Coject library exported as React.js components. All Component Is Dependency On Material UI Library.

Installation

Using npm:

// npm install
$ npm i coject

// yarn install
$ yarn add coject

Dependency npm [For JavaScript/TypeScript Project]:

// npm install
$ npm i @emotion/react @emotion/styled @mui/icons-material @mui/material @mui/x-data-grid @mui/x-date-pickers coject moment coject-hijri react-hook-form react-toastify tss-react axios

// yarn install
$ yarn add @emotion/react @emotion/styled @mui/icons-material @mui/material @mui/x-data-grid @mui/x-date-pickers coject moment coject-hijri react-hook-form react-toastify tss-react axios
<!-- Add Font In /public/index.html Head -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">

Important

  1. Create .env File In The Same Directory Where Your package.json Is
  2. Define The Following Variable GENERATE_SOURCEMAP=false

In React.js:

// Load Input Components
import { Form, Input } from 'coject';

// Use It Inside Component
function FormApp() {
  return (
    <>
      <Form onSubmit={(formData) => console.log(formData)}>
          <Input type="email" name="username" label="Username" />
          <Input type="password" name="password" label="Password" />
      </Form>
    </>
  );
}

const root = createRoot(document.getElementById('root'));
root.render(<App />);

See the package source for more details.

Note:
Install Material UI for Coject use in the React.js > 16.

⚠️ Scanner Component (Important Notice)

The Scanner component depends on Asprise ScannerJS, which has important technical limitations that users must be aware of.

Requirements

  • ScannerJS requires a native scanner client installation on the user's machine.
  • The setup dialog (Download / Run / Scan) appears only if the scanner client is NOT installed.
  • If the client is already installed, the setup dialog will not appear again.
  • The presence of window.scanner does not guarantee that a physical scanner device is available.

Script Loading (Required)

ScannerJS must be loaded synchronously before using the Scanner component.

You must include the following script in your application's index.html:

<script src="//cdn.asprise.com/scannerjs/scanner.js"></script>

### Support

Tested in Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.

Popular repositories Loading

  1. DataTables DataTables Public

    Forked from DataTables/DataTables

    Tables plug-in for jQuery

    CSS

  2. bootstrap bootstrap Public

    Forked from twbs/bootstrap

    The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

    JavaScript

  3. html2pdf.js html2pdf.js Public

    Forked from eKoopmans/html2pdf.js

    Client-side HTML-to-PDF rendering using pure JS.

    JavaScript

  4. jquery jquery Public

    Forked from jquery/jquery

    jQuery JavaScript Library

    JavaScript

  5. popper-core popper-core Public

    Forked from floating-ui/floating-ui

    🍿Positioning tooltips and popovers is difficult. Popper is here to help!

    JavaScript

  6. html2canvas html2canvas Public

    Forked from asoliman1984/html2canvas

    Screenshots with JavaScript

    TypeScript