95 Commits

Author SHA1 Message Date
Fabian-Lars
80040860a0 ci: set up covector (#329)
* ci: set up covector

* remove postpublish

* push new tags to mirrors

* fetch tags of current repo in workflow file

* use our fork of create-pull-request action

* fmt

* use org tokens

* simplify string subst

* fmt again

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4799361831

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2023-04-25 15:32:40 +00:00
Fabian-Lars
6fc229aab1 fix(window-state): fix command names
Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4795748763

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2023-04-25 09:13:47 +00:00
FabianLars
13eab87f29 fix: Change out dir of type declaration files, fixes #321
Closes #322

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4730794281

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2023-04-18 09:33:31 +00:00
Fabian-Lars
b60f1ab060 chore(deps): Update all deps. Run pnpm dedupe (#320)
Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4723441558

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2023-04-17 16:19:46 +00:00
Fabian-Lars
a79b09665f ci: set pnpm version (#319)
* ci: set pnpm version

* fmt

* missed one

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4723212261 \n\nCo-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2023-04-17 15:55:37 +00:00
Amr Bashir
b2c9cf8a0d feat(window-state): add js api, closes #254 (#309)
* feat(window-state): add js api, closes #254

* symlink tsconfig.json

* update symlink

* Update plugins/window-state/package.json

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>

* Update Cargo.toml

* move to cmd.rs

* Update plugins/window-state/guest-js/index.ts

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4723002931\nCo-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2023-04-17 15:33:12 +00:00
FabianLars
dae20cf2ef chore(window-state): readme typo (#290)
Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4520538533
2023-03-25 18:11:43 +00:00
FabianLars
abd0ad82c8 fix(deps): update rust crate bitflags to v2 (#277)
* fix(deps): update rust crate bitflags to v2

* derive clone and copy

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4404701588
2023-03-13 12:09:26 +00:00
amrbashir
ecffabf8f2 fix(window-state): Use outer position (#276)
Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4388247609
2023-03-10 20:36:13 +00:00
FabianLars
88f2a73934 chore: Add MSRV to all readmes (#255)
* chore: Add MSRV to all readmes

* fix single-instance support matrix

* wording

* wording

* typo

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4184387391
2023-02-15 13:33:25 +00:00
FabianLars
47edc6a761 docs: fix typo (#117)
Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4042531291
2023-01-30 09:44:55 +00:00
FabianLars
0d501805ec fix(window-state): update state before saving (#111)
* fix(windows-state): update state before saving

regression introduced in #104

* update readme

* don't panic on non-existing windows

* Restore Cargo.lock

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4008260681
2023-01-25 17:10:14 +00:00
JonasKruckenberg
b4bb5979b4 Merge pull request #104 from tauri-apps/feat/window-state/flags
feat(window-state): add flags to control what is saved/restored

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/3998978119
2023-01-24 17:51:02 +00:00
amrbashir
ade3fe3bf5 fix(window-state): compare position with available monitors bounds (#48)
* remember monitor data

* check only if the position exists

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/3873805350
2023-01-09 12:34:41 +00:00
JonasKruckenberg
8f544c348e Update mirrors.txt
Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/3861993261
2023-01-07 12:07:44 +00:00
Elijah Lopez
17f4680629 fix: save/restore physical positions, closes #45 (#48) 2022-11-12 00:51:43 +02:00
amrbashir
7260f68132 chore: fix some warnings 2022-11-11 14:08:42 +02:00
Guilherme Oenning
4004af6116 feat: add extra options to show window Always/Auto/Never (#47)
* add extra options to auto_show

Signed-off-by: goenning <me@goenning.net>

* Update src/lib.rs

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>

* move docs around

Signed-off-by: goenning <me@goenning.net>

* typo

Signed-off-by: goenning <me@goenning.net>

* rename to show_mode

Signed-off-by: goenning <me@goenning.net>

* add default impl

* clippy
2022-11-08 12:47:07 +02:00
amrbashir
854d4b23e3 fix: save logical position 2022-11-08 12:41:19 +02:00
Angus Peart
bda0fe3a7d fix: sets window size correctly on differing dpi monitors (#44)
* fix: sets window size correctly on differing dpi monitors

* use logical sizes

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2022-11-07 19:47:42 +02:00
armand-colin
2f4cd57b1e switched order of set_size and set_position (#42)
* switched order of `set_size` and `set_position`

Switched `set_size` and `set_position`, because it makes the window move slightly after each reopening if it has been resized

* Update src/lib.rs

* Update src/lib.rs

* clippy
2022-10-31 13:22:11 +02:00
Parker Mauney
bf0df5d127 Fix example app link in README (#43) 2022-10-17 08:40:32 +02:00
Lucas Nogueira
ccb9436ba7 feat: add skip_initial_state 2022-10-05 11:42:42 -03:00
Lucas Nogueira
13cd8a40d8 refactor: rename to denylist 2022-10-05 11:27:09 -03:00
Amr Bashir
25b9c686c1 fix: fallback to current_monitor, closes #40 (#41)
* fix: fllback to primary_monitor, closes #40

* use the monitor name

* add some margins for default
2022-09-26 19:32:30 +02:00
Amr Bashir
0ec8a27275 ci: use less specfic version for create-pull-request 2022-09-23 17:32:28 +02:00
Amr Bashir
063cf92b45 ci: migrate to the org-level ORG_CRATES_IO_TOKEN 2022-09-23 16:58:57 +02:00
amythos
faf8936a21 feat: support exlude windows (#39)
* feat: support exlude windows

* fix: rename methods from set_* to with_*

* fix: rename exlude_windows to blacklist

* Update src/lib.rs

* Update src/lib.rs

* Update src/lib.rs

* fix: rename exlude_set to blacklist_set and add docs
2022-09-22 18:01:04 +02:00
amrbashir
96b6575e97 chore: update example to svelte with vite 2022-09-16 17:53:48 +02:00
amrbashir
f1996c773c chore(deps): update example deps 2022-09-16 17:21:06 +02:00
amrbashir
ceb9808d32 chore: update example lock file 2022-09-16 17:10:13 +02:00
KPidS
ca28c63dc2 feat: save fullscreen state (#37) 2022-09-16 16:50:44 +02:00
mantou
1bf7f84a65 feat: support restore window decorations (#36) 2022-08-31 01:25:16 +02:00
mantou
d495b5cb77 Allow disabled auto show (#35) 2022-08-23 16:32:18 +02:00
Lucas Nogueira
a10a3defb4 refactor: remove skip_check_on_window_create
the API is no longer needed, we've fixed the deadlocks
2022-06-24 15:36:21 -03:00
Lucas Nogueira
36209ed719 chore(ci): remove unused nodejs setup 2022-06-19 19:30:35 -03:00
Lucas Nogueira
801050527e fix(manifest): repository url 2022-06-19 19:28:26 -03:00
Lucas Fernandes Nogueira
496b66a5b2 Merge pull request #31 from tauri-apps/release/version-updates 2022-06-19 15:03:37 -07:00
Lucas Nogueira
84fc92030a chore: adjust description 2022-06-19 19:03:28 -03:00
lucasfernog
fab3262dd6 apply version updates 2022-06-19 22:03:12 +00:00
Lucas Nogueira
35e0f30e6c feat: prepare initial release 2022-06-19 19:02:14 -03:00
Lucas Nogueira
00e21f9915 chore: update to tauri v1 2022-06-16 11:27:04 -03:00
renovate[bot]
6a40c756dc fix(deps): update rust crate tauri to 1.0.0 (#29)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-16 11:14:41 +02:00
Lucas Nogueira
f2be3e090c feat: update tauri to rc.15, closes #30 2022-06-14 13:11:15 -03:00
renovate[bot]
360ed1b1fc fix(deps): update rust crate tauri to 1.0.0-rc.11 (#26)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 03:12:06 +02:00
Jonas Kruckenberg
c198d375fd Merge pull request #27 from tauri-apps/update-deps
chore(deps): update bulk
2022-05-07 11:28:31 +02:00
Jonas Kruckenberg
64f846f360 chore(deps): update bulk 2022-05-05 18:39:11 +02:00
Lucas Nogueira
49a2f1135b feat: expose api to persist cache 2022-04-12 13:43:05 -03:00
Lucas Fernandes Nogueira
82342704cd Merge pull request #24 from tauri-apps/feat/builder 2022-04-12 09:22:19 -07:00
Lucas Nogueira
09146fcfc1 Revert "expose window metadata"
This reverts commit bbe26323eb.
2022-04-12 11:49:36 -03:00