mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-08 14:03:53 +02:00
f12d35609a
* Add auto save to store plugin * Put jsdoc at constructor instead of class level * Clippy * Use enum instead of bool * Some(AutoSaveMessage::Cancel) | None * from_millis * u64 * Add change file * Rename to emit_on_change * should use Duration in `with_store` * Add breaking change notice to change file * Emit change event for inserts by reset * Update readme example * Update example * Remove extra line * Make description clear it only works with managed * Fix links in docstring * Fix doc string closing * get_mut * Proof of concept * fmt * Load store on create * cargo fmt * Fix merge conflits * Format * small cleanup * update docs, use `impl Into<JsonValue>` * fix doctests, further simplification of api * add store options --------- Co-authored-by: Tillmann <28728469+tweidinger@users.noreply.github.com> Co-authored-by: Lucas Nogueira <lucas@tauri.app>
373 lines
3.5 KiB
Markdown
373 lines
3.5 KiB
Markdown
## Default Permission
|
|
|
|
This permission set configures what kind of
|
|
operations are available from the store plugin.
|
|
|
|
#### Granted Permissions
|
|
|
|
All operations are enabled by default.
|
|
|
|
|
|
|
|
- `allow-create-store`
|
|
- `allow-clear`
|
|
- `allow-delete`
|
|
- `allow-entries`
|
|
- `allow-get`
|
|
- `allow-has`
|
|
- `allow-keys`
|
|
- `allow-length`
|
|
- `allow-load`
|
|
- `allow-reset`
|
|
- `allow-save`
|
|
- `allow-set`
|
|
- `allow-values`
|
|
|
|
## Permission Table
|
|
|
|
<table>
|
|
<tr>
|
|
<th>Identifier</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-clear`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the clear command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-clear`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the clear command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-create-store`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the create_store command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-create-store`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the create_store command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-delete`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the delete command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-delete`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the delete command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-entries`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the entries command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-entries`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the entries command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-get`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the get command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-get`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the get command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-has`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the has command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-has`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the has command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-keys`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the keys command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-keys`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the keys command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-length`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the length command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-length`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the length command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-load`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the load command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-load`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the load command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-reset`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the reset command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-reset`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the reset command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-save`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the save command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-save`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the save command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-set`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the set command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-set`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the set command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:allow-values`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Enables the values command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
|
|
`store:deny-values`
|
|
|
|
</td>
|
|
<td>
|
|
|
|
Denies the values command without any pre-configured scope.
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|