Tony
99321ddbfa
Remove StoreInner from pub and expose is_empty
2024-10-14 20:34:43 +08:00
Tony
02d077ea3b
Remove with_store
2024-10-14 15:32:47 +08:00
Tony
1498eb5404
Expose resolve_store_path
2024-10-14 09:58:52 +08:00
Tony
a020ae38e2
Remove unused pub(crate)
2024-10-11 13:24:47 +08:00
Tony
3f470a7a67
Clean up
2024-10-10 17:15:13 +08:00
Tony
39dec5d5b4
Change to close_resource and take &self
2024-10-10 16:12:57 +08:00
Tony
d88fcb5c8a
Return result in resolve_store_path
2024-10-10 15:53:32 +08:00
Tony
3413d2a0f7
Use close instead
2024-10-10 14:05:54 +08:00
Tony
a00cb15224
Rename inner store's inset method to set
2024-10-08 10:22:58 +08:00
Tony
dc5be009b7
Add create or existing
2024-10-05 16:21:27 +08:00
Tony
7faf8c31e0
Differentiate json null from no value for events
2024-10-04 17:09:41 +08:00
Tony
831105d7a8
Use undefined for empty value in get
2024-10-04 10:11:13 +08:00
Tony
1ef9f6a487
Use pretty json by default
2024-10-04 09:40:33 +08:00
Tony
4037589000
Add default (de)serialize fn
2024-10-04 08:47:30 +08:00
Tony
fc51b3d132
More docs for StoreBuilder::build
2024-10-03 22:36:51 +08:00
Tony
73f365d3f0
Show case how to use pretty json
2024-10-03 20:35:19 +08:00
Tony
4f13a03401
Fix js get and close store
2024-10-03 20:10:15 +08:00
Tony
718f5dc90d
Allow js to use pre-stored (de)serialize functions
2024-10-03 16:46:06 +08:00
Tony
d22de0257d
Use absolute path for store
2024-10-03 16:11:53 +08:00
Tony
45b2af4cfe
Docs
2024-10-03 15:23:22 +08:00
Tony
42c5a1cb56
try get first
2024-10-03 13:56:43 +08:00
Tony
3acf66ee57
Revert "Add get-or-create-store"
...
This reverts commit 7ffd769240 .
2024-10-03 13:53:59 +08:00
Tony
7ffd769240
Add get-or-create-store
2024-10-03 13:34:38 +08:00
Tony
79bc8d08f4
Add lazy store
2024-10-03 10:52:12 +08:00
Tony
6cdaa31959
Add store function
2024-10-03 10:17:47 +08:00
Tony
4cb9d8de5e
Add close store
2024-10-03 10:09:43 +08:00
Tony
8975d10bb7
Clean up
2024-10-03 09:44:46 +08:00
Tony
98d4fc4e9b
Remove share store
2024-10-03 09:33:42 +08:00
Tony
ea9c101da8
Store to resource table by default
2024-10-03 09:33:21 +08:00
Tony
35b439f70f
Enable auto save by default
2024-10-02 18:19:31 +08:00
Tony
9811756e6c
refactor(store): more reworks
2024-10-02 18:02:44 +08:00
Tony
7e5e34420b
Cancel auto save on save ( #1859 )
2024-10-01 23:13:20 -03:00
Tony
f12d35609a
feat(store)!: fully rework and add auto save ( #1550 )
...
* 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 >
2024-10-01 15:10:40 -03:00
Lucas Fernandes Nogueira
0c040bcc9a
fix(store): remove Android and iOS plugins, closes #1256 ( #1695 )
...
The Android and iOS support introduced on #1011 is not really supported - the Tauri path API correctly resolves the cache directory on mobile, and we can access those directly using Rust code.
This is a breaking change because we no longer uses the same directory to store the files - app_cache_dir returns a different location
2024-08-27 14:18:02 -03:00
Lucas Fernandes Nogueira
22a17980ff
feat: update to tauri beta.24 ( #1537 )
...
* feat: update to tauri beta.24
* remove .tauri
* pnpm build
2024-07-12 17:59:17 -03:00
Fabian-Lars
0d4d029011
build: Update pnpm to v9 ( #1309 )
...
* build: Update pnpm to v9
* update actions
* remove last actions-rs usage
* clippy
* clippy again
* revert default feature
2024-05-13 17:03:04 +02:00
Fabian-Lars
bb51a41d67
feat: Remove UNC prefix in paths returned to the frontend ( #1168 )
...
* feat: Remove UNC prefix in paths returned to the frontend
* that one doesn't count
* map instead of mut
* revert accidental ipc::response change
* move dunce to workspace root
2024-04-17 15:49:32 +02:00
Lucas Fernandes Nogueira
a04ea2f382
refactor: only inject API IIFE script when withGlobalTauri is true ( #1071 )
...
* refactor: only inject API IIFE script when withGlobalTauri is true
* fmt
* update tauri
2024-03-19 15:03:20 -03:00
Tony
79691e93e0
fix(store): with_store and StoreCollection become private in #1011 ( #1040 )
...
* Fix with_store become private in #1011
* Add change file
2024-03-07 11:52:33 +01:00
Ahmed Elkhoudiry
22f5acf240
feat(store): Add android & iOS support ( #1011 )
...
* update cli
* init android module
* upgdate gitignore
* add desktop and mobile
* android
* ios
* lib
* remove comment
* cargo fmt
* skip empty file creation
* android comments
* apple path
* Discard changes to plugins/store/ios/README.md
* stop auto directories creation
* Update README.md
2024-03-04 21:02:17 +02:00
Lucas Fernandes Nogueira
b1b9a02f9e
Merge pull request #971 from tauri-apps/chore/tauri-beta-3
...
chore: update to tauri beta.4
2024-02-21 14:32:22 -03:00
Lucas Nogueira
dbc0c0757e
dist
2024-02-19 17:16:06 -03:00
Lucas Nogueira
9dd1d09797
rebuild
2024-02-19 17:15:24 -03:00
Amr Bashir
7cefa2b0bd
pub
2024-02-19 16:03:32 +02:00
amrbashir
72db444401
feat(sql,store): add Builder::new
...
ref: https://github.com/tauri-apps/tauri/issues/8880
2024-02-19 15:54:56 +02:00
Tillmann
d198c01486
feat: update to tauri beta, add permissions ( #862 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev >
2024-02-03 15:14:41 -03:00
Fabian-Lars
387c2f9e0c
chore: Update Tauri to alpha.18 ( #802 )
2023-12-11 15:41:42 -03:00
Amr Bashir
1b98b85a1f
refactor: simplify rollup config and match @tauri-apps/api output style ( #722 )
...
* refactor: simplify rollup config and match `@tauri-apps/api` output style
* add license headers
* update api-iife.js [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2023-11-14 21:09:53 +02:00
Lucas Fernandes Nogueira
e438e0a62d
feat: update to alpha.17, typed mobile plugin IPC arguments ( #676 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2023-10-29 16:06:44 -03:00
Lucas Fernandes Nogueira
5c137365c6
chore: update to tauri alpha.16, api alpha.9 ( #673 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2023-10-20 13:50:18 -03:00