An open API service indexing awesome lists of open source software.

https://github.com/ipuppet/caio

An iOS clipboard tool based on JSBox
https://github.com/ipuppet/caio

caio clipboard-manager jsbox today-widget widget

Last synced: 6 months ago
JSON representation

An iOS clipboard tool based on JSBox

Awesome Lists containing this project

README

          

# CAIO

> Clipboard all in one.
> An iOS clipboard tool based on JSBox.

[See My Blog](https://blog.ultagic.com/#/detail/42/)

Support for home widgets and notification center widgets.

## Build Taio Action

The build script depends on [Parcel](https://parceljs.org/).

```shell
npm i -g parcel
npm run build
```

You can also use the packaged files directly [dist/CAIO.json](./dist/CAIO.json).

## Actions

> For details on how to write, see `scripts/action/README.md` or the book button in the upper right corner of the `Action` edit page in the app.

### `Action` data differences in different environments

- The data processed by the `Action` button at the top of the home page is the currently copied content.
- The data processed by the `Action` menu that pops up by long-pressing the list is the selected content.
- The data processed by the `Action` button in the editor is whatever is being edited.

## Today Widget

> Click to copy, long press to trigger the action.

Please try to avoid using the Today Widget when JSBox is running CAIO.

## WebDAV

> Sync data with WebDAV.

Config Example:
Host: `https://example.com/dav`
User: `guest`
Password: `password123`
Base Path: `/path/to/save`

## Shortcuts

Please add a new action called `Run JSBox script` and set the `Name` parameter to `CAIO`.

Next, set the `Parameter Dictionary` to a `Dictionary`.

### Clips

| Parameter | Type |
| --------- | ------ |
| set | Text |
| get | Number |
| delete | Number |
| table | Text |

- `set`: The content will be saved to CAIO unless there is already an existing item with the same content.
- `get`: The item at the specified index (e.g., 0) will be returned.
- `delete`: The item at the specified index (e.g., 0) will be deleted, returning its content.
- `table`: It will specify the table to either set or get the item from, with options being `["favorite", "clips"]`. This parameter is optional and has a default value of `clips`.

### Run Action

All `ActionData` parameters are supported, e.g. `args`.

| Parameter | Type |
| --------- | ---- |
| runAction | Text |
| text | Text |

- `runAction`: Long press the action on the JSBox action page to copy the URL Schema and fill it in here.
- `text`: Optional parameter to pass content to the action. When running JSBox in a shortcut, the script cannot access clipboard content, so you need to pass it through this parameter (use the shortcut's `Get Clipboard` action).