open-index/open-npm huggingface dataset:
npm package: @pantherpdf/cloud-editor-react
Description: [PantherPDF](https://www.pantherpdf.com/) is a *report editor* and *PDF generator* service for creating customized PDF reports.
Latest version: 1.0.0-beta.2

# PantherPDF Cloud Editor *React* component

[PantherPDF](https://www.pantherpdf.com/) is a *report editor* and *PDF
generator* service for creating customized PDF reports.

This package is a **thin wrapper** around a cloud based editor for simplified
integration into React apps.
There is also a [Vue](https://www.npmjs.com/package/@pantherpdf/cloud-editor-vue)
and [Angular](https://www.npmjs.com/package/@pantherpdf/cloud-editor-angular) wrapper.

Underlying editor is open source and available [here](https://www.npmjs.com/package/pantherpdf).

## Installation
```bash
npm install --save @pantherpdf/cloud-editor-react
```

## Example using `reportSecret`:
Report data is stored on PantherPDF database.

```tsx
import CloudEditor from '@pantherpdf/cloud-editor-react';

export function EditorPage()
{
  return (
    <CloudEditor
      reportSecret="..."
      style={{ width: '100%', height: '95vh', border: 'none' }}
    />
  );
}
```

## Example using `value`:
Report data is stored on customer's database.

```tsx
import { useState } from 'react';
import CloudEditor, { ReportCloudData } from '@pantherpdf/cloud-editor-react';

export function EditorPage()
{
  const [report, setReport] = useState<ReportCloudData>(null);
  return (
    <CloudEditor
      editorKey="..."
      value={report}
      onChange={setReport}
      style={{ width: '100%', height: '95vh', border: 'none' }}
    />
  );
}
```

## Props

| Parameter       | Description                                                |
|-----------------|------------------------------------------------------------|
| `reportSecret`  | Access token for a report.                                 |
| `editorKey`     | Access token for editor.                                   |
| `lang`          | Editor language. Possible values: `en` (default, uses metric units) and `en-us` which uses imperial units. |
| `value`         | `ReportCloudData` from customer's database.                |
| `onChange`      | Callback when value changes.                               |

# License
MIT
npm package: @pantherpdf/cloud-editor-vue
Description: [PantherPDF](https://www.pantherpdf.com/) is a *report editor* and *PDF generator* service for creating customized PDF reports.
Latest version: 1.0.0-beta.1

# PantherPDF Cloud Editor *Vue* component

[PantherPDF](https://www.pantherpdf.com/) is a *report editor* and *PDF
generator* service for creating customized PDF reports.

This package is a **thin wrapper** around a cloud based editor for simplified
integration into Vue 3 apps.
There is also a [React](https://www.npmjs.com/package/@pantherpdf/cloud-editor-react)
and [Angular](https://www.npmjs.com/package/@pantherpdf/cloud-editor-angular) wrapper.

Underlying editor is open source and available [here](https://www.npmjs.com/package/pantherpdf).

## Installation
```bash
npm install --save @pantherpdf/cloud-editor-vue
```

## Registration

Global registration

```ts
import Vue3CloudEditor from "@pantherpdf/cloud-editor-vue";

createApp(App)
  .use(router)
  .use(Vue3CloudEditor)
  .mount("#app");
```

OR

```ts
import { CloudEditor } from "@pantherpdf/cloud-editor-vue";

export default defineComponent({
  components: { CloudEditor },
});
```

## Example using `reportSecret`:
Report data is stored on PantherPDF database.

```vue
<template>
  <CloudEditor
    reportSecret="..."
    style="width: 100%; height: 100vh;"
  />
</template>
```

## Example using `v-model`:
Report data is stored on customer's database.

```vue
<template>
  <CloudEditor
    v-model="reportValue"
    editorKey="..."
    style="width: 100%; height: 100vh;"
  />
</template>

<script lang="ts">
  import type { ReportCloudData } from '@pantherpdf/cloud-editor-vue';
  import { defineComponent, ref } from 'vue'

  export default defineComponent({
    setup() {
      const reportValue = ref<ReportCloudData>(null);
      return {
        reportValue,
      };
    },
  });
</script>
```

## Props

| Parameter       | Description                                                |
|-----------------|------------------------------------------------------------|
| `reportSecret`  | Access token for a report.                                 |
| `editorKey`     | Access token for editor.                                   |
| `lang`          | Editor language. Possible values: `en` (default, uses metric units) and `en-us` which uses imperial units. |
| `model`         | `ReportCloudData` from customer's database.                |

# License
MIT
npm package: @pantherswap-libs/sdk
Description: 🛠 An SDK for building applications on top of pantherswap.
Latest version: 1.0.0

# PantherSwap SDK

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pantherswap/panther-swap-sdk.git
```

Move into the panther-swap-sdk working directory

```sh
cd panther-swap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @pantherswap-libs/uikit
Description: Set of UI components for panther projects
Latest version: 0.1.1

# Panther UIkit

Panther UIkit is a set of React components and hooks used to build pages on Panther's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @pantherswap-libs/uikit`

## Setup

### Theme

Before using Panther UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@pantherswap-libs/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@pantherswap-libs/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.
npm package: @pantherswap/sdk
Description: An SDK for building applications on top of PantherSwap.
Latest version: 2.1.2

# PantherSwap SDK

In-depth documentation on this SDK is available at [docs.pantherswap.com](https://docs.pantherswap.com/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pantherswap/pantherswap-sdk.git
```

Move into the pantherswap-sdk working directory

```sh
cd pantherswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @pantherx.dev/backend-client-common
Description: Commonly used client backend modules
Author: Franz Geffke
Latest version: 0.5.11

# (NEW) Central Management Backend-Library

[![npm version](https://badge.fury.io/js/@pantherx.dev%2Fbackend-client-common.svg)](https://badge.fury.io/js/@pantherx.dev%2Fbackend-client-common)

This library contains shared classes, interfaces and other backend-specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**

## Usage

Install with

```bash
npm i --save @pantherx.dev/backend-client-common
```
npm package: @pantherx.dev/backend-database-module
Description: Commonly used backend modules
Author: Franz Geffke
Latest version: 0.8.1

# (NEW) Central Management Backend-Library

[![npm version](https://badge.fury.io/js/@pantherx.dev%2Fbackend-database-module.svg)](https://badge.fury.io/js/@pantherx.dev%2Fbackend-database-module)

This library contains shared classes, interfaces and other backend-specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**

## Usage

Install with

```bash
npm i --save @pantherx.dev/backend-database-module
```
npm package: @pantherx.dev/backend-device-auth
Description: Backend Device Authentication Module
Author: Franz Geffke
Latest version: 0.8.0

# Device Authentication Module for Backend

[![npm version](https://badge.fury.io/js/@pantherx.dev%2Fbackend-device-auth.svg)](https://badge.fury.io/js/@pantherx.dev%2Fbackend-device-auth)

This library contains shared classes, interfaces and other non-platform specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**
npm package: @pantherx.dev/backend-frontend-auth
Description: Backend Frontend Authentication Moduule
Author: Franz Geffke
Latest version: 0.8.0

# Frontend Authentication Module for Backend

[![npm version](https://badge.fury.io/js/@pantherx.dev%2Fbackend-frontend-auth.svg)](https://badge.fury.io/js/@pantherx.dev%2Fbackend-frontend-auth)

This library contains shared classes, interfaces and other non-platform specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**
npm package: @pantherx.dev/backend-modules
Description: Commonly used backend modules
Author: Franz Geffke
Latest version: 0.8.0

# (NEW) Central Management Backend-Library

[![npm version](https://badge.fury.io/js/@pantherx.dev%2Fbackend-modules.svg)](https://badge.fury.io/js/@pantherx.dev%2Fbackend-modules)

This library contains shared classes, interfaces and other backend-specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**

## Usage

Install with

```bash
npm i --save @pantherx.dev/backend-modules
```
npm package: @pantherx.dev/backend-redis
Description: Backend Redis Module
Author: Franz Geffke
Latest version: 0.8.0

# Backend Redis Module

[![npm version](https://badge.fury.io/js/@pantherx.dev%2Fbackend-redis.svg)](https://badge.fury.io/js/@pantherx.dev%2Fbackend-redis)

This library contains shared classes, interfaces and other non-platform specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**
npm package: @pantherx.dev/backend-tests
Description: Backend Tests Module
Author: Franz Geffke
Latest version: 0.8.1

# Backend Tests Module

[![npm version](https://badge.fury.io/js/@pantherx.dev%2Fbackend-tests.svg)](https://badge.fury.io/js/@pantherx.dev%2Fbackend-tests)

This library contains shared classes, interfaces and other non-platform specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**
npm package: @pantherx.dev/casbin-rule-migration
Description: Limited casbin rule migration after code changes
Author: Franz Geffke
Latest version: 0.8.0

# Casbin Route Rules Migration

[![npm version](https://badge.fury.io/js/@pantherx.dev%2Fcasbin-rule-migration.svg)](https://badge.fury.io/js/@pantherx.dev%2Fcasbin-rule-migration)

This library contains shared classes, interfaces and other non-platform specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**

---

This will do a couple of things:

1. Read latest rules from code
2. Load last migration and related entities from the database
3. Run a comparison
4. Apply changes and create new migration

Here's an example

```bash
$ node dist/src/casbin-migration
=> Get latest migration
Found migration from Fri Aug 20 2021 15:24:09 GMT+0000 (Coordinated Universal Time) with ID fa3f5530-3651-4429-9f97-c501e4ce0dc1
Comparison finished. Results:
# Remain: 81
# Update: 0
# Create: 2
# Delete: 0
Applied changes to the database. Results:
# Create: 2
# Delete: 0
FINAL LIST OF MANAGED ID's [
  1160, 1161, 1162, 1163, 1164, 1165, 1166, 1167, 1168,
  1169, 1170, 1171, 1172, 1173, 1174, 1176, 1175, 1177,
  1178, 1179, 1180, 1181, 1182, 1183, 1184, 1185, 1186,
  1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195,
  1196, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1204,
  1205, 1206, 1207, 1208, 1209, 1210, 1211, 1212, 1213,
  1214, 1215, 1216, 1217, 1218, 1219, 1220, 1221, 1222,
  1223, 1224, 1225, 1226, 1227, 1228, 1229, 1230, 1231,
  1232, 1233, 1234, 1235, 1236, 1237, 1238, 1239, 1240,
  1241, 1242, 1243, 1244, 1245, 1246, 1247, 1248, 1249,
  1250, 1251, 1252, 1253, 1254, 1255
]
=> Saving new migration with 96 entries ...
```

With no migrations pending:

```bash
$ node dist/src/casbin-migration
=> Get latest migration
Found migration from Mon Sep 06 2021 04:01:34 GMT+0700 (Indochina Time) with ID 93ef9980-b4c2-4157-8b3c-dd5900967822
Comparison finished. Results:
# Remain: 95
# Update: 0
# Create: 0
# Delete: 0
No changes found. Nothing to do.
```

## Setup

Install with

```bash
npm i --save @pantherx.dev/casbin-rule-migration
```

Create a `casbin-migration.ts` in `src`:

```js
import { migrate } from 'packages/casbin-rule-migration/src'
import { allRouteRules, roleResourceAccessRules } from './permissions/identity-authorization-policies/rules'

migrate(allRouteRules, roleResourceAccessRules, false)
```

For this to work properly:

1. Start with an empty `casbin_rule` and `casbin_rule_migrations` table.
2. Start the server
3. Casbin rules will be created and initial migration saved.

From now on you can run this script, whenever there are any changes.

## Notes

-   We do not "update" database entries but delete the old one, and create a new one
npm package: @pantherx.dev/common
Description: Commonly used snippets
Author: Franz Geffke
Latest version: 0.8.0

# (NEW) Central Management Library

[![npm version](https://badge.fury.io/js/%40pantherx.dev%2Fcommon.svg)](https://badge.fury.io/js/%40pantherx.dev%2Fcommon)

This library contains shared classes, interfaces and other non-platform specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**

## Usage

Install with

```bash
npm i --save @pantherx.dev/common
```

and use like this:

```js
import {
  UserMaster,
  USER_ROLES_MASTER
  IdentityServerUserLog
} from "@pantherx.dev/common"
```

### Important

This library is constantly changing. Ensure that you fix this dependency to an exact version, or narrow version range:

```js
"dependencies": {
  "@pantherx.dev/common": "0.0.1",
}
```
npm package: @pantherx.dev/common-api
Description: Axios-powered, type-safe access to Central Management API
Author: Franz Geffke
Latest version: 0.8.0

# Central Management Library - Common API

[![npm version](https://badge.fury.io/js/%40pantherx.dev%2Fcommon-api.svg)](https://badge.fury.io/js/%40pantherx.dev%2Fcommon-api)

This library enables easy, axios-powered, type-safe access to Central Management API endpoints. It relies primarily on `@pantherx.dev/common`.

The collection was initially developed for testing, hence the rather verbose approach (axios config for each request), however, it also makes it very flexible and accessible. One benefit of using this, is that all odities are documented, and DTO's are up to date.

**This likely won't be useful to you unless you are working with us, or with / on one of our products.**

## Usage

Install with

```bash
npm i --save @pantherx.dev/common-api
```

and use like this:

```js
import { cmDocuments } from '@pantherx.dev/common'

const axiosConfig = {
    headers: {
        authorization: `Bearer ${access_token}`,
    },
    baseURL: 'https://identity.domain.com',
}
// Shortcut: axiosConfigDefault(accessToken)
const documents = await cmDocuments.list(axiosConfig)
```

Similiarly for others: `cmDevices`, `cmUsers`, ...

Default operations include:

-   `list`
-   `get`
-   `create`
-   `patch` (this might become `update` in the future)
-   `delete`
npm package: @pantherx.dev/common-frontend
Description: Commonly used snippets
Author: Franz Geffke
Latest version: 0.8.0

# (NEW) Central Management Library

[![npm version](https://badge.fury.io/js/@pantherx.dev%2Fcommon-frontend.svg)](https://badge.fury.io/js/@pantherx.dev%2Fcommon-frontend)

This library contains shared classes, interfaces and other non-platform specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

So: **This likely won't be useful to you unless you are working with us, or with / on one of our products.**
npm package: @pantherx.dev/node-pdf-signature
Description: Sign PDF-Buffer documents with a QR code.
Author: Franz Geffke
Latest version: 0.1.3

# node PDF Signature

Small (TS) library to "sign" PDF documents with a QR code.

The goal of this library is to enable novice users to easily verify whether a PDF (on, or off-screen "printed") is authentic, and has been signed, by directing them to a website.

## Example

File-based conversion:

```js
import { promises as fs } from 'fs';
import { signPdfBuffer } from '../src';

const source = 'source.pdf'
const destination = 'destination.pdf'
const message = `a1113493-b844-4169-95c5-a626c36e665c`
const qrCodeContent = `https://someurl.com/a1113493-b844-4169-95c5-a626c36e665c`

async function automatic() {
  const pdfBuffer = await fs.readFile(source)
  const modifiedPdf = await signPdfBuffer(pdfBuffer, message, qrCodeContent)
  await fs.writeFile(destination, modifiedPdf.data, 'utf-8') 
}
```

## TODO

- [ ] File based conversion
- [ ] Delete images after file-based conversion
- [ ] Properly handle horizontal and vertical orientation of input
- [ ] Rename input files prior to file-based conversion to mitigate some exploits
- [ ] Position the QR code in varios locations
- [ ] Embed `Signature` in PDF

## Thanks

The hard work is done by:

- `pdf-lib`
npm package: @pantherx.dev/px-central-management-library
Description: Shared classes, interfaces and other non-platform specific functions.
Author: Franz Geffke
Latest version: 0.1.1

# PX Central Management Library

[![npm version](https://badge.fury.io/js/%40pantherx.dev%2Fpx-central-management-library.svg)](https://badge.fury.io/js/%40pantherx.dev%2Fpx-central-management-library)

This library contains shared classes, interfaces and other non-platform specific functions. Even though the library is public, we do not provide support, or assurance for this to work now, or continue to work in the future.

## Usage

Install with

```bash
npm i --save @pantherx.dev/px-central-management-library
```

and use like this:

```js
import {
  UserMaster,
  USER_ROLES_MASTER
  IdentityServerUserLog
} from "@pantherx.dev/px-central-management-library"
```

### Important

This library is constantly changing. Ensure that you fix this dependency to an exact version, or narrow version range:

```js
"dependencies": {
  "@pantherx.dev/px-central-management-library": "0.0.24",
}
```