-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from ferreira-tb:next
BREAKING CHANGE: rename `async-pinia` feature to `unstable-async`
- Loading branch information
Showing
107 changed files
with
2,905 additions
and
1,898 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
name: Deploy docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: pages | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
run_install: true | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
|
||
- run: | | ||
pnpm run build:docs | ||
touch packages/docs/.vitepress/dist/.nojekyll | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: packages/docs/.vitepress/dist | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: build | ||
runs-on: ubuntu-latest | ||
name: Deploy | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
name: Deploy docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: pages | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
run_install: true | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v4 | ||
|
||
- run: | | ||
pnpm run build:docs | ||
touch docs/.vitepress/dist/.nojekyll | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: docs/.vitepress/dist | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: build | ||
runs-on: ubuntu-latest | ||
name: Deploy | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
# tauri-plugin-pinia | ||
# tauri-store | ||
|
||
Persistent Pinia stores for Tauri and Vue. | ||
Persistent stores for Tauri. | ||
|
||
## Features | ||
|
||
- Save your Pinia stores to disk. | ||
- Synchronize your stores across multiple windows. | ||
- Save your stores to disk. | ||
- Synchronize across multiple windows. | ||
- Debounce store updates. | ||
|
||
## Documentation | ||
|
||
Check the [documentation](https://tb.dev.br/tauri-plugin-pinia/getting-started.html) for more information on how to install and use the plugin. | ||
|
||
## Supported Tauri Version | ||
|
||
This plugin requires Tauri `2.0.0-rc` or later. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[package] | ||
name = "tauri-plugin-pinia" | ||
description = "Persistent Pinia stores for Tauri" | ||
version = "0.5.1" | ||
version = "0.6.0" | ||
documentation = "https://docs.rs/tauri-plugin-pinia" | ||
homepage = "https://tb.dev.br/tauri-plugin-pinia" | ||
repository = "https://github.com/ferreira-tb/tauri-plugin-pinia" | ||
authors = ["Andrew Ferreira <[email protected]>"] | ||
license = "MIT" | ||
readme = "../README.md" | ||
readme = "./README.md" | ||
keywords = ["plugin", "tauri", "tauri-plugin", "vue", "pinia"] | ||
links = "tauri-plugin-pinia" | ||
|
||
|
@@ -19,7 +19,7 @@ workspace = true | |
|
||
[package.metadata.docs.rs] | ||
no-default-features = true | ||
features = ["async-pinia"] | ||
features = ["unstable-async"] | ||
rustc-args = ["--cfg", "docsrs"] | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
|
||
|
@@ -36,22 +36,15 @@ thiserror = "1.0" | |
version = "0.8" | ||
optional = true | ||
|
||
[dependencies.tracing] | ||
[dependencies.tauri-store] | ||
version = "0.1" | ||
optional = true | ||
|
||
[dependencies.tokio] | ||
version = "1.39" | ||
optional = true | ||
default-features = false | ||
features = ["fs", "io-util", "time"] | ||
path = "../tauri-store" | ||
features = ["derive"] | ||
|
||
[build-dependencies.tauri-plugin] | ||
version = "2.0.0-rc" | ||
features = ["build"] | ||
|
||
[features] | ||
async-pinia = ["tokio"] | ||
ahash = ["dep:ahash", "ahash/serde"] | ||
tracing = ["dep:tracing"] | ||
tokio = ["dep:tokio"] | ||
unstable-async = ["tauri-store/unstable-async"] | ||
ahash = ["tauri-store/ahash", "dep:ahash", "ahash/serde"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# tauri-plugin-pinia | ||
|
||
Persistent Pinia stores for Tauri and Vue. | ||
|
||
## Features | ||
|
||
- Save your stores to disk. | ||
- Synchronize across multiple windows. | ||
- Debounce store updates. | ||
|
||
## Documentation | ||
|
||
Check the [documentation](https://tb.dev.br/tauri-store/pinia/getting-started.html) for more information on how to install and use the plugin. | ||
|
||
## Supported Tauri Version | ||
|
||
This plugin requires Tauri `2.0.0-rc` or later. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const COMMANDS: &[&str] = &[ | ||
"clear_autosave", | ||
"disable_sync", | ||
"enable_sync", | ||
"get_pinia_path", | ||
"get_store_ids", | ||
"get_store_path", | ||
"get_store_state", | ||
"load", | ||
"patch", | ||
"save", | ||
"save_all", | ||
"save_some", | ||
"set_autosave", | ||
"unload", | ||
]; | ||
|
||
fn main() { | ||
tauri_plugin::Builder::new(COMMANDS).build(); | ||
} |
13 changes: 13 additions & 0 deletions
13
crates/tauri-plugin-pinia/permissions/autogenerated/commands/clear_autosave.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Automatically generated - DO NOT EDIT! | ||
|
||
"$schema" = "../../schemas/schema.json" | ||
|
||
[[permission]] | ||
identifier = "allow-clear-autosave" | ||
description = "Enables the clear_autosave command without any pre-configured scope." | ||
commands.allow = ["clear_autosave"] | ||
|
||
[[permission]] | ||
identifier = "deny-clear-autosave" | ||
description = "Denies the clear_autosave command without any pre-configured scope." | ||
commands.deny = ["clear_autosave"] |
13 changes: 13 additions & 0 deletions
13
crates/tauri-plugin-pinia/permissions/autogenerated/commands/disable_sync.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Automatically generated - DO NOT EDIT! | ||
|
||
"$schema" = "../../schemas/schema.json" | ||
|
||
[[permission]] | ||
identifier = "allow-disable-sync" | ||
description = "Enables the disable_sync command without any pre-configured scope." | ||
commands.allow = ["disable_sync"] | ||
|
||
[[permission]] | ||
identifier = "deny-disable-sync" | ||
description = "Denies the disable_sync command without any pre-configured scope." | ||
commands.deny = ["disable_sync"] |
13 changes: 13 additions & 0 deletions
13
crates/tauri-plugin-pinia/permissions/autogenerated/commands/enable_sync.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Automatically generated - DO NOT EDIT! | ||
|
||
"$schema" = "../../schemas/schema.json" | ||
|
||
[[permission]] | ||
identifier = "allow-enable-sync" | ||
description = "Enables the enable_sync command without any pre-configured scope." | ||
commands.allow = ["enable_sync"] | ||
|
||
[[permission]] | ||
identifier = "deny-enable-sync" | ||
description = "Denies the enable_sync command without any pre-configured scope." | ||
commands.deny = ["enable_sync"] |
13 changes: 13 additions & 0 deletions
13
crates/tauri-plugin-pinia/permissions/autogenerated/commands/get_pinia_path.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Automatically generated - DO NOT EDIT! | ||
|
||
"$schema" = "../../schemas/schema.json" | ||
|
||
[[permission]] | ||
identifier = "allow-get-pinia-path" | ||
description = "Enables the get_pinia_path command without any pre-configured scope." | ||
commands.allow = ["get_pinia_path"] | ||
|
||
[[permission]] | ||
identifier = "deny-get-pinia-path" | ||
description = "Denies the get_pinia_path command without any pre-configured scope." | ||
commands.deny = ["get_pinia_path"] |
13 changes: 13 additions & 0 deletions
13
crates/tauri-plugin-pinia/permissions/autogenerated/commands/get_store_ids.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Automatically generated - DO NOT EDIT! | ||
|
||
"$schema" = "../../schemas/schema.json" | ||
|
||
[[permission]] | ||
identifier = "allow-get-store-ids" | ||
description = "Enables the get_store_ids command without any pre-configured scope." | ||
commands.allow = ["get_store_ids"] | ||
|
||
[[permission]] | ||
identifier = "deny-get-store-ids" | ||
description = "Denies the get_store_ids command without any pre-configured scope." | ||
commands.deny = ["get_store_ids"] |
13 changes: 13 additions & 0 deletions
13
crates/tauri-plugin-pinia/permissions/autogenerated/commands/get_store_path.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Automatically generated - DO NOT EDIT! | ||
|
||
"$schema" = "../../schemas/schema.json" | ||
|
||
[[permission]] | ||
identifier = "allow-get-store-path" | ||
description = "Enables the get_store_path command without any pre-configured scope." | ||
commands.allow = ["get_store_path"] | ||
|
||
[[permission]] | ||
identifier = "deny-get-store-path" | ||
description = "Denies the get_store_path command without any pre-configured scope." | ||
commands.deny = ["get_store_path"] |
13 changes: 13 additions & 0 deletions
13
crates/tauri-plugin-pinia/permissions/autogenerated/commands/get_store_state.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Automatically generated - DO NOT EDIT! | ||
|
||
"$schema" = "../../schemas/schema.json" | ||
|
||
[[permission]] | ||
identifier = "allow-get-store-state" | ||
description = "Enables the get_store_state command without any pre-configured scope." | ||
commands.allow = ["get_store_state"] | ||
|
||
[[permission]] | ||
identifier = "deny-get-store-state" | ||
description = "Denies the get_store_state command without any pre-configured scope." | ||
commands.deny = ["get_store_state"] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.