open-index/open-npm huggingface dataset:
npm package: @sinc-gmbh/textcontrol-promises
Description: Wraps TXTextControl Callback API to work with Objects and Promises.
Author: Björn Nast
Latest version: 34.0.0

# textcontrol-promises
Build up on [TXTextControl](https://www.textcontrol.com/)
## Description
Wraps TXTextControl Callback API to work with Objects and Promises.

It also includes typescript definitions for its classes.
Therefore it can easy be used in typescript projects.

## Installation
`yarn install @sinc-gmbh/textcontrol-promises `

## Usage

1. make TXTextControl global object known to access enums and other instances.  
   I created a "./types/global.d.ts" in my demo project like this:

    ``` javascript
    import {TXTextControlTypeDefinition} from "@sinc-gmbh/textcontrol-promises";
    declare global{
        var TXTextControl: typeof TXTextControlTypeDefinition;
    }
    ```
2. For using the TypeDefinition with JSDoc in a js file you can import the type definition with an alias
    ``` javascript
    /** @import {TXTextControlTypeDefinition as TXTextControl} from "@sinc-gmbh/textcontrol-promises" */
    ```

## Code Examples

- Create a TextControlContext to work with wrapped objects and initialize TextControl editor.
    ```javascript
    let txContext = new TextControlContext();
    ...
    const componentSetting = {
        containerID: "editor",
        webSocketURL: websocketUrl,
        editorSettings: {
        culture: "de-DE",
        uiCulture: "de-DE",
        },
        replaceContainer: true,
    };
    // resource url needs to point at /GetResource?name=tx-document-editor.min.js
    await txContext.initialize(componentSetting,resourceUrl);
    ...
    //waits until TextControlLoaded was fired
    await txContext.untilTextControlLoaded();
    ```
- Wrapped collections are supporting async iterators
    ```javascript
    for await (let field of this.txContext.applicationFields) {
        ...
    }  
    ```
- Wrap a native TextControl object by passing it to constructor
    ```javascript
    let table = new Table(txTableObject);
    ```
## Documentation
see [https://sinc-gmbh.github.io/textcontrol-promises](https://sinc-gmbh.github.io/textcontrol-promises)

## License

Copyright (c) 2023 SINC GmbH. All rights reserved.

Licensed under the [MIT](LICENSE) license.
npm package: @sincerecloud/sc-common-components
Description: vue3 ui ant-design-vue sincerecloud sc-ui typescript
Latest version: 0.0.45

# sc-common-components

sincerecloud 通用组件库

**最新版本0.0.45**

[npm地址](https://www.npmjs.com/package/@sincerecloud/sc-common-components)

[cnpm地址](https://npmmirror.com/package/@sincerecloud/sc-common-components)

**如果cnpm 上的版本不是最新的，可以通过点击`SYNC`按钮来同步最新**

[cnd地址一 jsdelivr](https://cdn.jsdelivr.net/npm/@sincerecloud/sc-common-components/)

[cnd介绍页面 jsdelivr](https://www.jsdelivr.com/package/npm/@sincerecloud/sc-common-components?nav=stats)

[cnd地址二 unpkg](https://unpkg.com/browse/@sincerecloud/sc-common-components@0.0.45/)

## 引入 ant-design-vue

```shell

npm i ant-design-vue@2.2.8 -D
npm i @sincerecloud/sc-ui -D
npm i @sincerecloud/sc-common-components -D

```

**封装业务组件**

本项目是基于`ant-design-vue`组件库固定版本（2.2.8）基础上开发的，所以在使用本项目前请安装`ant-design-vue@2.2.8`;

使用简介：

`main.js/main.ts`根文件中引入`index.css`

```js
import '@sincerecloud/sc-common-component/style.css'
// 或者 直接引入less文件
import '@sincerecloud/sc-common-component/style/index.less'
```

**如需引入 less 文件 请注意一下几点**

1. 要本地安装`ant-design-vue`库
2. 新增webpack、vite 配置如下：

```js
// config.js 文件
{
  resolve: {
    alias: [
      { find: /^~/, replacement: '' }
    ]
  },
  css: {
    preprocessorOptions: {
      less: {
        // modifyVars: themeVariables,
        javascriptEnabled: true
      },
    }
  }
}
```

本项目也支持按需加载

`App.vue`

```js
import { createSensitiveOperationsModal } from '@sincerecloud/sc-common-components'
```

## 问题

如有问题请及时反馈
npm package: @sincerecloud/sc-ui
Description: vue3 ui ant-design-vue sincerecloud sc-ui typescript
Latest version: 0.0.211

# sc-ui

ant-design-vue vue3 ts ui

**最新版本0.0.211**

[文档地址](http://sc-ui.voneyun.com/)

[npm地址](https://www.npmjs.com/package/@sincerecloud/sc-ui)

[cnpm地址](https://npmmirror.com/package/@sincerecloud/sc-ui)

**如果cnpm 上的版本不是最新的，可以通过点击`SYNC`按钮来同步最新**

[cnd地址一 jsdelivr](https://cdn.jsdelivr.net/npm/@sincerecloud/sc-ui/)

[cnd介绍页面 jsdelivr](https://www.jsdelivr.com/package/npm/@sincerecloud/sc-ui?nav=stats)

[cnd地址二 unpkg](https://unpkg.com/browse/@sincerecloud/sc-ui@0.0.67/)

## 引入 ant-design-vue

```shell

npm i ant-design-vue@2.2.8 -D
npm i @sincerecloud/sc-ui -D

```

本项目是基于`ant-design-vue`组件库固定版本（2.2.8）基础上开发的，所以在使用本项目前请安装`ant-design-vue@2.2.8`;

使用简介：

`main.js/main.ts`根文件中引入`index.css`

```js
import '@sincerecloud/sc-ui/style.css'
// 或者 直接引入less文件
import '@sincerecloud/sc-ui/style/index.less'
```

**如需引入 less 文件 请注意一下几点**

1. 要本地安装`ant-design-vue`库
2. 新增webpack、vite 配置如下：

```js
// config.js 文件
{
  resolve: {
    alias: [
      { find: /^~/, replacement: '' }
    ]
  },
  css: {
    preprocessorOptions: {
      less: {
        // modifyVars: themeVariables,
        javascriptEnabled: true
      },
    }
  }
}
```

本项目也支持按需加载

`App.vue`

```js
import { ScAlert } from '@sincerecloud/sc-ui'
```

## 问题

如有问题请及时反馈
npm package: @sincerecloud/sc-utils
Description: sc-utils is a tools source
Author: @blockdous
Latest version: 0.0.29

# @sincerecloud/sc-utils

- 包含HighAxios 类，对axios 二次封装，处理预定状态码
- 常用object处理方法
- 中英翻译查询方法
- 常用正则表达式

## 安装

```bash
npm install axios
npm install @sincerecloud/sc-utils
```

具体文档请使用 `yarn dev` 查看

## 初始化

初始化**baseHttp**工厂函数

```ts
import { HighAxios, getAxios } from '@sincerecloud/sc-utils'

// getAxios 初始化 工厂函数
const baseHttp = getAxios(config)
// or 通过HigAxios 初始化 工厂函数
// const getAxios = HighAxios(config)
// const baseHttp = getAxios(config)

```

## object

**查找方法**

```ts
/**
 * @param {Object} obj 对象
 * @param {String} prototype 属性名
 * @returns Boolean
 */
export const hasOwn = (obj: Object, prototype: string) => {
  return Object.hasOwnProperty.call(obj, prototype);
};

/**
 * 深度获取对象的值
 * @param collection Data source
 * @param keyPath Key path array
 * @param notSetValue Default value for not found
 */
export const getObjectIn = (collection: Object, keyPath: string[], notSetValue:unknown = null) => {
  return keyPath.reduce((rlt: any, keyIndex: string) => {
    return (rlt && rlt[keyIndex] ? rlt[keyIndex] : null)
  }, collection) || notSetValue
}
```
npm package: @sinceredogeswap/sdk
Description: 🛠 An SDK for building applications on top of Sinceredogeswap.
Latest version: 1.0.0

# Sinceredogeswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## 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/sinceredogeswap/sinceredoge-swap-sdk.git
```

Move into the sinceredogeswap-sdk working directory

```sh
cd sinceredogeswap-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: @sinceredogeswap/uikit
Description: Set of UI components for SincereDoge projects
Latest version: 1.0.0

# 🐕 SincereDoge UIkit

[![Version](https://img.shields.io/npm/v/@sinceredogeswap/uikit)](https://www.npmjs.com/package/@sinceredogeswap/uikit) [![Size](https://img.shields.io/bundlephobia/min/@sinceredogeswap/uikit)](https://www.npmjs.com/package/@sinceredogeswap/uikit)

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

## Install

`yarn add @sinceredogeswap/uikit`


## Setup

### Theme

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

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

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@sinceredogeswap/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.